[03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:20]accept exits with 9 [03:28:20]New connection [03:28:20]New thread 3066731876 created [03:28:20]Thread 3066588516 joined [03:28:20]Waiting for new connection... [03:28:20] Sock 9.Parse request [03:28:20]Sock 9.Check first char [03:28:20]Sock 9.First char is OK [03:28:20]request: POST /json_proto HTTP/1.0 [03:28:20]Method: POST [03:28:20]URL: /json_proto [03:28:20]Method is POST - this is cgi request [03:28:20]url: /json_proto [03:28:20]query_string will be loaded in cgi processing [03:28:20]execute_cgi json_proto POST (null) [03:28:20]execute_cgi path=json_proto method=POST [03:28:20]POST find Content-Length [03:28:20]Host: 172.17.41.195:8080 [03:28:20]Content-Length: 1209 [03:28:20]Content-Type: application/json [03:28:20] [03:28:20]POST finish read [03:28:20]Found Content-Length = 1209 [03:28: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)507096\u000A15.05.2024 03:10\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.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:28:20]execute_script... [03:28: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)507096\u000A15.05.2024 03:10\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.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:28:20]POST & json_proto [03:28:20]process_json_proto [03:28:20]json parsed OK: [03:28:20]protocol is kg_v1.0 [03:28:20]action value=print_text [03:28:20]process_action print_text [03:28:20]cmd_print_text [03:28:20]ExternCall_PrintAddStr [03:28:20]wPrintStart [03:28:20]Write to MH i2c: 01 00 00 76 1B 91 [03:28:20]Write i2c OK [03:28:20]MH_I2C_Read... [03:28:20]Read from MH i2c: 01 [03:28:20]MH_I2C_Read... [03:28:20]Read from MH i2c: 01 07 00 [03:28:20]MH_I2C_Read... [03:28:20]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [03:28:20]RasterBufferAndPrint [03:28:20]line *****ТОВАРНЫЙ ЧЕК***** [03:28:20]line АЗС-91 [03:28:20]line Партнер нефть [03:28:20]line 02508201610067 [03:28:20]line Кассир : Арстанбеков Н. [03:28:20]line Счет N : (1)507096 [03:28:20]line 15.05.2024 03:10 [03:28:20]line ПРОДАЖА [03:28:20]line ТРК (МРК, ГНК): 31 [03:28:20]line Вид ГСМ : 2710194210 [03:28:20]line ДТ-К-5 [03:28:20]line 40.000 x 74.70 [03:28:20]line ИТОГ: 2988.00 [03:28:20]line Тип оплаты: Талоны: Топливная Карта [03:28:20]line 02750 [03:28:20]line ______________________ [03:28:20]line (подпись) [03:28:20]written 0, free lines is 4095 [03:28:21]Write to MH i2c: 01 00 00 8A 1B A5 [03:28:21]Write i2c OK [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: 01 [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: 01 07 00 [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 0F 0E C9 [03:28:21]RasterBufferAndPrint [03:28:21]line [03:28:21]line [03:28:21]line [03:28:21]line [03:28:21]line [03:28:21]written 0, free lines is 3601 [03:28:21]MH_Cut [03:28:21]Write to MH i2c: D1 01 00 91 1B 01 7E [03:28:21]Write i2c OK [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: D1 [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: D1 01 00 [03:28:21]MH_I2C_Read... [03:28:21]Read from MH i2c: D1 01 00 91 1B 00 7D [03:28:21]Write to MH i2c: 01 00 00 92 1B AD [03:28:21]Write i2c OK [03:28:21]MH_I2C_Read... [03:28:21]*** Cut start [03:28:21]*** Purtial cut [03:28:21]*** CUTSNS_PIN = 0 [03:28:21]*** Stage 1: CUTSNS_PIN = 1 [03:28:23]Read from MH i2c: 01 [03:28:23]MH_I2C_Read... [03:28:23]*** Stop cut motor [03:28:23]*** Cut end [03:28:23]Read from MH i2c: 01 07 00 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [03:28:23]process_action print_text done [03:28:23]requested_data is exist [03:28:23]produce_requested_data [03:28:23]requested_item fm.sn is exist - process it [03:28:23]wFMCommunicate request_size=4 [03:28:23]MH_SAM_APDU [03:28:23]CAPDU: 80 11 00 00 [03:28:23]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [03:28:23]Write i2c OK [03:28:23]MH_I2C_Read... [03:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:23]Read from MH i2c: E2 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 17 00 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [03:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:28:23]wFMCommunicate OK [03:28:23]requested_item fd.num is exist - process it [03:28:23]SAM_PROTO_GetFieldsCounters [03:28:23]wFMCommunicate request_size=4 [03:28:23]MH_SAM_APDU [03:28:23]CAPDU: 80 13 00 00 [03:28:23]Write to MH i2c: E2 08 00 94 1B 80 13 00 00 00 00 00 00 2B [03:28:23]Write i2c OK [03:28:23]MH_I2C_Read... [03:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:28:23]Read from MH i2c: E2 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 62 00 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 62 00 94 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 74 06 01 00 0E 04 04 00 64 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 43 [03:28: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 74 06 01 00 0E 04 04 00 64 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 [03:28:23]wFMCommunicate OK [03:28:23]SAM_PROTO_GetFieldsCounters done [03:28:23]requested_item shift.num is exist - process it [03:28:23]requested_item shift.opened is exist - process it [03:28:23]req_shift_opened [03:28:23]FM_GetShiftState [03:28:23]SAM_PROTO_GetShiftState [03:28:23]wFMCommunicate request_size=4 [03:28:23]MH_SAM_APDU [03:28:23]CAPDU: 80 13 01 00 [03:28:23]Write to MH i2c: E2 08 00 95 1B 80 13 01 00 00 00 00 00 2D [03:28:23]Write i2c OK [03:28:23]MH_I2C_Read... [03:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:23]Read from MH i2c: E2 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 0E 00 [03:28:23]MH_I2C_Read... [03:28:23]Read from MH i2c: E2 0E 00 95 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [03:28:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [03:28:23]wFMCommunicate OK [03:28:23]SAM_PROTO_GetShiftState done [03:28:23]FM_GetShiftState done [03:28:23]req_shift_opened done [03:28:23]requested_item shift.open_date is exist - process it [03:28:23]req_shift_open_date [03:28:23]req_shift_open_date done [03:28:23]produce_requested_data done [03:28:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [03:28:23]process_action_free print_text [03:28:23]json_value_free [03:28:23]json_value_free done [03:28:23]process_json_proto returns [03:28:23]Send response to host [03:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [03:28:23]free response buf [03:28:23]execute_script done [03:28:23]execute_script returns [03:28:23]free content buf [03:28:23]Sock 9.Close socket [03:28:23]Sock 9.Thread stoped [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]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:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:34:58]accept exits with 7 [03:34:58]New connection [03:34:58]New thread 3066588516 created [03:34:58]Thread 3066731876 joined [03:34:58]Waiting for new connection... [03:34:58] Sock 7.Parse request [03:34:58]Sock 7.Check first char [03:34:58]Sock 7.First char is OK [03:34:58]request: POST /json_proto HTTP/1.0 [03:34:58]Method: POST [03:34:58]URL: /json_proto [03:34:58]Method is POST - this is cgi request [03:34:58]url: /json_proto [03:34:58]query_string will be loaded in cgi processing [03:34:58]execute_cgi json_proto POST (null) [03:34:58]execute_cgi path=json_proto method=POST [03:34:58]POST find Content-Length [03:34:58]Host: 172.17.41.195:8080 [03:34:58]Content-Length: 1209 [03:34:58]Content-Type: application/json [03:34:58] [03:34:58]POST finish read [03:34:58]Found Content-Length = 1209 [03:34: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)507097\u000A15.05.2024 03:17\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" ] } } [03:34:58]execute_script... [03:34: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)507097\u000A15.05.2024 03:17\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" ] } } [03:34:58]POST & json_proto [03:34:58]process_json_proto [03:34:58]json parsed OK: [03:34:58]protocol is kg_v1.0 [03:34:58]action value=print_text [03:34:58]process_action print_text [03:34:58]cmd_print_text [03:34:58]ExternCall_PrintAddStr [03:34:58]wPrintStart [03:34:58]Write to MH i2c: 01 00 00 96 1B B1 [03:34:58]Write i2c OK [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 07 00 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 07 00 96 1B 00 00 00 00 00 FF 0F C6 [03:34:58]RasterBufferAndPrint [03:34:58]line *****ТОВАРНЫЙ ЧЕК***** [03:34:58]line АЗС-91 [03:34:58]line Партнер нефть [03:34:58]line 02508201610067 [03:34:58]line Кассир : Арстанбеков Н. [03:34:58]line Счет N : (1)507097 [03:34:58]line 15.05.2024 03:17 [03:34:58]line ПРОДАЖА [03:34:58]line ТРК (МРК, ГНК): 21 [03:34:58]line Вид ГСМ : 2710194210 [03:34:58]line ДТ-К-5 [03:34:58]line 20.000 x 74.70 [03:34:58]line ИТОГ: 1494.00 [03:34:58]line Тип оплаты: Талоны: Топливная Карта [03:34:58]line 02750 [03:34:58]line ______________________ [03:34:58]line (подпись) [03:34:58]written 0, free lines is 4095 [03:34:58]Write to MH i2c: 01 00 00 AA 1B C5 [03:34:58]Write i2c OK [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 07 00 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 0E 0E E8 [03:34:58]RasterBufferAndPrint [03:34:58]line [03:34:58]line [03:34:58]line [03:34:58]line [03:34:58]line [03:34:58]written 0, free lines is 3599 [03:34:58]MH_Cut [03:34:58]Write to MH i2c: D1 01 00 B1 1B 01 9E [03:34:58]Write i2c OK [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: D1 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: D1 01 00 [03:34:58]MH_I2C_Read... [03:34:58]Read from MH i2c: D1 01 00 B1 1B 00 9D [03:34:58]Write to MH i2c: 01 00 00 B2 1B CD [03:34:58]Write i2c OK [03:34:58]MH_I2C_Read... [03:34:59]*** Cut start [03:34:59]*** Purtial cut [03:34:59]*** Stage 1: CUTSNS_PIN = 1 [03:34:59]Read from MH i2c: 01 [03:34:59]MH_I2C_Read... [03:34:59]Read from MH i2c: 01 07 00 [03:34:59]MH_I2C_Read... [03:34:59]*** Stop cut motor [03:34:59]*** Cut end [03:34:59]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 FF 0F E2 [03:34:59]process_action print_text done [03:34:59]requested_data is exist [03:34:59]produce_requested_data [03:34:59]requested_item fm.sn is exist - process it [03:34:59]wFMCommunicate request_size=4 [03:34:59]MH_SAM_APDU [03:34:59]CAPDU: 80 11 00 00 [03:34:59]Write to MH i2c: E2 08 00 B3 1B 80 11 00 00 00 00 00 00 48 [03:34:59]Write i2c OK [03:34:59]MH_I2C_Read... [03:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:34:59]Read from MH i2c: E2 [03:34:59]MH_I2C_Read... [03:34:59]Read from MH i2c: E2 17 00 [03:34:59]MH_I2C_Read... [03:34:59]Read from MH i2c: E2 17 00 B3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [03:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:34:59]wFMCommunicate OK [03:34:59]requested_item fd.num is exist - process it [03:34:59]SAM_PROTO_GetFieldsCounters [03:34:59]wFMCommunicate request_size=4 [03:34:59]MH_SAM_APDU [03:34:59]CAPDU: 80 13 00 00 [03:34:59]Write to MH i2c: E2 08 00 B4 1B 80 13 00 00 00 00 00 00 4B [03:34:59]Write i2c OK [03:34:59]MH_I2C_Read... [03:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:35:00]Read from MH i2c: E2 [03:35:00]MH_I2C_Read... [03:35:00]Read from MH i2c: E2 62 00 [03:35:00]MH_I2C_Read... [03:35:00]Read from MH i2c: E2 62 00 B4 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 74 06 01 00 0E 04 04 00 64 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 63 [03:35: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 74 06 01 00 0E 04 04 00 64 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 [03:35:00]wFMCommunicate OK [03:35:00]SAM_PROTO_GetFieldsCounters done [03:35:00]requested_item shift.num is exist - process it [03:35:00]requested_item shift.opened is exist - process it [03:35:00]req_shift_opened [03:35:00]FM_GetShiftState [03:35:00]SAM_PROTO_GetShiftState [03:35:00]wFMCommunicate request_size=4 [03:35:00]MH_SAM_APDU [03:35:00]CAPDU: 80 13 01 00 [03:35:00]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [03:35:00]Write i2c OK [03:35:00]MH_I2C_Read... [03:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:35:00]Read from MH i2c: E2 [03:35:00]MH_I2C_Read... [03:35:00]Read from MH i2c: E2 0E 00 [03:35:00]MH_I2C_Read... [03:35:00]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F8 [03:35:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [03:35:00]wFMCommunicate OK [03:35:00]SAM_PROTO_GetShiftState done [03:35:00]FM_GetShiftState done [03:35:00]req_shift_opened done [03:35:00]requested_item shift.open_date is exist - process it [03:35:00]req_shift_open_date [03:35:00]req_shift_open_date done [03:35:00]produce_requested_data done [03:35:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [03:35:00]process_action_free print_text [03:35:00]json_value_free [03:35:00]json_value_free done [03:35:00]process_json_proto returns [03:35:00]Send response to host [03:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [03:35:00]free response buf [03:35:00]execute_script done [03:35:00]execute_script returns [03:35:00]free content buf [03:35:00]Sock 7.Close socket [03:35:00]Sock 7.Thread stoped [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [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:57]accept exits with 9 [04:39:57]New connection [04:39:57]New thread 3066731876 created [04:39:57]Thread 3066588516 joined [04:39:57]Waiting for new connection... [04:39:57] Sock 9.Parse request [04:39:57]Sock 9.Check first char [04:39:57]Sock 9.First char is OK [04:39:57]request: POST /json_proto HTTP/1.0 [04:39:57]Method: POST [04:39:57]URL: /json_proto [04:39:57]Method is POST - this is cgi request [04:39:57]url: /json_proto [04:39:57]query_string will be loaded in cgi processing [04:39:57]execute_cgi json_proto POST (null) [04:39:57]execute_cgi path=json_proto method=POST [04:39:57]POST find Content-Length [04:39:57]Host: 172.17.41.195:8080 [04:39:57]Content-Length: 1209 [04:39:57]Content-Type: application/json [04:39:57] [04:39:57]POST finish read [04:39:57]Found Content-Length = 1209 [04:39: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)507098\u000A15.05.2024 04:22\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 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" ] } } [04:39:57]execute_script... [04:39: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)507098\u000A15.05.2024 04:22\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 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" ] } } [04:39:57]POST & json_proto [04:39:57]process_json_proto [04:39:57]json parsed OK: [04:39:57]protocol is kg_v1.0 [04:39:57]action value=print_text [04:39:57]process_action print_text [04:39:57]cmd_print_text [04:39:57]ExternCall_PrintAddStr [04:39:57]wPrintStart [04:39:57]Write to MH i2c: 01 00 00 B6 1B D1 [04:39:57]Write i2c OK [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 07 00 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 07 00 B6 1B 00 00 00 00 00 FF 0F E6 [04:39:57]RasterBufferAndPrint [04:39:57]line *****ТОВАРНЫЙ ЧЕК***** [04:39:57]line АЗС-91 [04:39:57]line Партнер нефть [04:39:57]line 02508201610067 [04:39:57]line Кассир : Арстанбеков Н. [04:39:57]line Счет N : (1)507098 [04:39:57]line 15.05.2024 04:22 [04:39:57]line ПРОДАЖА [04:39:57]line ТРК (МРК, ГНК): 21 [04:39:57]line Вид ГСМ : 2710194210 [04:39:57]line ДТ-К-5 [04:39:57]line 15.000 x 74.70 [04:39:57]line ИТОГ: 1120.50 [04:39:57]line Тип оплаты: Талоны: Топливная Карта [04:39:57]line 02750 [04:39:57]line ______________________ [04:39:57]line (подпись) [04:39:57]written 0, free lines is 4095 [04:39:57]Write to MH i2c: 01 00 00 CA 1B E5 [04:39:57]Write i2c OK [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 07 00 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 0F 0E 09 [04:39:57]RasterBufferAndPrint [04:39:57]line [04:39:57]line [04:39:57]line [04:39:57]line [04:39:57]line [04:39:57]written 0, free lines is 3600 [04:39:57]MH_Cut [04:39:57]Write to MH i2c: D1 01 00 D1 1B 01 BE [04:39:57]Write i2c OK [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: D1 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: D1 01 00 [04:39:57]MH_I2C_Read... [04:39:57]Read from MH i2c: D1 01 00 D1 1B 00 BD [04:39:57]Write to MH i2c: 01 00 00 D2 1B ED [04:39:57]Write i2c OK [04:39:57]MH_I2C_Read... [04:39:58]*** Cut start [04:39:58]*** Purtial cut [04:39:58]*** CUTSNS_PIN = 0 [04:39:58]*** Stage 1: CUTSNS_PIN = 1 [04:39:58]OFD Sender: No OFD packet to send [04:40:00]Read from MH i2c: 01 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: 01 07 00 [04:40:00]MH_I2C_Read... [04:40:00]*** Stop cut motor [04:40:00]*** Cut end [04:40:00]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 FF 0F 02 [04:40:00]process_action print_text done [04:40:00]requested_data is exist [04:40:00]produce_requested_data [04:40:00]requested_item fm.sn is exist - process it [04:40:00]wFMCommunicate request_size=4 [04:40:00]MH_SAM_APDU [04:40:00]CAPDU: 80 11 00 00 [04:40:00]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [04:40:00]Write i2c OK [04:40:00]MH_I2C_Read... [04:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:00]Read from MH i2c: E2 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 17 00 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [04:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:40:00]wFMCommunicate OK [04:40:00]requested_item fd.num is exist - process it [04:40:00]SAM_PROTO_GetFieldsCounters [04:40:00]wFMCommunicate request_size=4 [04:40:00]MH_SAM_APDU [04:40:00]CAPDU: 80 13 00 00 [04:40:00]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [04:40:00]Write i2c OK [04:40:00]MH_I2C_Read... [04:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:00]Read from MH i2c: E2 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 62 00 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 62 00 D4 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 74 06 01 00 0E 04 04 00 64 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 83 [04:40: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 74 06 01 00 0E 04 04 00 64 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:40:00]wFMCommunicate OK [04:40:00]SAM_PROTO_GetFieldsCounters done [04:40:00]requested_item shift.num is exist - process it [04:40:00]requested_item shift.opened is exist - process it [04:40:00]req_shift_opened [04:40:00]FM_GetShiftState [04:40:00]SAM_PROTO_GetShiftState [04:40:00]wFMCommunicate request_size=4 [04:40:00]MH_SAM_APDU [04:40:00]CAPDU: 80 13 01 00 [04:40:00]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [04:40:00]Write i2c OK [04:40:00]MH_I2C_Read... [04:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:00]Read from MH i2c: E2 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 0E 00 [04:40:00]MH_I2C_Read... [04:40:00]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 18 [04:40:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [04:40:00]wFMCommunicate OK [04:40:00]SAM_PROTO_GetShiftState done [04:40:00]FM_GetShiftState done [04:40:00]req_shift_opened done [04:40:00]requested_item shift.open_date is exist - process it [04:40:00]req_shift_open_date [04:40:00]req_shift_open_date done [04:40:00]produce_requested_data done [04:40:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [04:40:00]process_action_free print_text [04:40:00]json_value_free [04:40:00]json_value_free done [04:40:00]process_json_proto returns [04:40:00]Send response to host [04:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [04:40:00]free response buf [04:40:00]execute_script done [04:40:00]execute_script returns [04:40:00]free content buf [04:40:00]Sock 9.Close socket [04:40:00]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]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:14]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]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]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]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:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [05:46:04]accept exits with 7 [05:46:04]New connection [05:46:04]New thread 3066588516 created [05:46:04]Thread 3066731876 joined [05:46:04]Waiting for new connection... [05:46:04] Sock 7.Parse request [05:46:04]Sock 7.Check first char [05:46:04]Sock 7.First char is OK [05:46:04]request: POST /json_proto HTTP/1.0 [05:46:04]Method: POST [05:46:04]URL: /json_proto [05:46:04]Method is POST - this is cgi request [05:46:04]url: /json_proto [05:46:04]query_string will be loaded in cgi processing [05:46:04]execute_cgi json_proto POST (null) [05:46:04]execute_cgi path=json_proto method=POST [05:46:04]POST find Content-Length [05:46:04]Host: 172.17.41.195:8080 [05:46:04]Content-Length: 1209 [05:46:04]Content-Type: application/json [05:46:04] [05:46:04]POST finish read [05:46:04]Found Content-Length = 1209 [05:46: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)507099\u000A15.05.2024 05:28\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 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" ] } } [05:46:04]execute_script... [05:46: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)507099\u000A15.05.2024 05:28\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 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" ] } } [05:46:04]POST & json_proto [05:46:04]process_json_proto [05:46:04]json parsed OK: [05:46:04]protocol is kg_v1.0 [05:46:04]action value=print_text [05:46:04]process_action print_text [05:46:04]cmd_print_text [05:46:04]ExternCall_PrintAddStr [05:46:04]wPrintStart [05:46:04]Write to MH i2c: 01 00 00 D6 1B F1 [05:46:04]Write i2c OK [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 07 00 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 07 00 D6 1B 00 00 00 00 00 FF 0F 06 [05:46:04]RasterBufferAndPrint [05:46:04]line *****ТОВАРНЫЙ ЧЕК***** [05:46:04]line АЗС-91 [05:46:04]line Партнер нефть [05:46:04]line 02508201610067 [05:46:04]line Кассир : Арстанбеков Н. [05:46:04]line Счет N : (1)507099 [05:46:04]line 15.05.2024 05:28 [05:46:04]line ПРОДАЖА [05:46:04]line ТРК (МРК, ГНК): 31 [05:46:04]line Вид ГСМ : 2710194210 [05:46:04]line ДТ-К-5 [05:46:04]line 13.390 x 74.70 [05:46:04]line ИТОГ: 1000.23 [05:46:04]line Тип оплаты: Талоны: Топливная Карта [05:46:04]line 02750 [05:46:04]line ______________________ [05:46:04]line (подпись) [05:46:04]written 0, free lines is 4095 [05:46:04]Write to MH i2c: 01 00 00 EA 1B 05 [05:46:04]Write i2c OK [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 07 00 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 10 0E 2A [05:46:04]RasterBufferAndPrint [05:46:04]line [05:46:04]line [05:46:04]line [05:46:04]line [05:46:04]line [05:46:04]written 0, free lines is 3602 [05:46:04]MH_Cut [05:46:04]Write to MH i2c: D1 01 00 F1 1B 01 DE [05:46:04]Write i2c OK [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: D1 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: D1 01 00 [05:46:04]MH_I2C_Read... [05:46:04]Read from MH i2c: D1 01 00 F1 1B 00 DD [05:46:04]Write to MH i2c: 01 00 00 F2 1B 0D [05:46:04]Write i2c OK [05:46:04]MH_I2C_Read... [05:46:05]*** Cut start [05:46:05]*** Purtial cut [05:46:05]*** Stage 1: CUTSNS_PIN = 1 [05:46:05]Read from MH i2c: 01 [05:46:05]MH_I2C_Read... [05:46:05]*** Stop cut motor [05:46:05]*** Cut end [05:46:05]Read from MH i2c: 01 07 00 [05:46:05]MH_I2C_Read... [05:46:05]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 FF 0F 22 [05:46:05]process_action print_text done [05:46:05]requested_data is exist [05:46:05]produce_requested_data [05:46:05]requested_item fm.sn is exist - process it [05:46:05]wFMCommunicate request_size=4 [05:46:05]MH_SAM_APDU [05:46:05]CAPDU: 80 11 00 00 [05:46:05]Write to MH i2c: E2 08 00 F3 1B 80 11 00 00 00 00 00 00 88 [05:46:05]Write i2c OK [05:46:05]MH_I2C_Read... [05:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:05]Read from MH i2c: E2 [05:46:05]MH_I2C_Read... [05:46:05]Read from MH i2c: E2 17 00 [05:46:05]MH_I2C_Read... [05:46:05]Read from MH i2c: E2 17 00 F3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [05:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:46:05]wFMCommunicate OK [05:46:05]requested_item fd.num is exist - process it [05:46:05]SAM_PROTO_GetFieldsCounters [05:46:05]wFMCommunicate request_size=4 [05:46:05]MH_SAM_APDU [05:46:05]CAPDU: 80 13 00 00 [05:46:05]Write to MH i2c: E2 08 00 F4 1B 80 13 00 00 00 00 00 00 8B [05:46:05]Write i2c OK [05:46:05]MH_I2C_Read... [05:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:05]Read from MH i2c: E2 [05:46:05]MH_I2C_Read... [05:46:05]Read from MH i2c: E2 62 00 [05:46:05]MH_I2C_Read... [05:46:05]Read from MH i2c: E2 62 00 F4 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 74 06 01 00 0E 04 04 00 64 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 A3 [05:46: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 74 06 01 00 0E 04 04 00 64 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:46:05]wFMCommunicate OK [05:46:05]SAM_PROTO_GetFieldsCounters done [05:46:05]requested_item shift.num is exist - process it [05:46:05]requested_item shift.opened is exist - process it [05:46:05]req_shift_opened [05:46:05]FM_GetShiftState [05:46:05]SAM_PROTO_GetShiftState [05:46:05]wFMCommunicate request_size=4 [05:46:05]MH_SAM_APDU [05:46:05]CAPDU: 80 13 01 00 [05:46:05]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [05:46:05]Write i2c OK [05:46:05]MH_I2C_Read... [05:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:06]Read from MH i2c: E2 [05:46:06]MH_I2C_Read... [05:46:06]Read from MH i2c: E2 0E 00 [05:46:06]MH_I2C_Read... [05:46:06]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 38 [05:46:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [05:46:06]wFMCommunicate OK [05:46:06]SAM_PROTO_GetShiftState done [05:46:06]FM_GetShiftState done [05:46:06]req_shift_opened done [05:46:06]requested_item shift.open_date is exist - process it [05:46:06]req_shift_open_date [05:46:06]req_shift_open_date done [05:46:06]produce_requested_data done [05:46:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [05:46:06]process_action_free print_text [05:46:06]json_value_free [05:46:06]json_value_free done [05:46:06]process_json_proto returns [05:46:06]Send response to host [05:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [05:46:06]free response buf [05:46:06]execute_script done [05:46:06]execute_script returns [05:46:06]free content buf [05:46:06]Sock 7.Close socket [05:46:06]Sock 7.Thread stoped [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:47]accept exits with 10 [05:46:47]New connection [05:46:47]New thread 3066731876 created [05:46:47]Thread 3066588516 joined [05:46:47]Waiting for new connection... [05:46:47] Sock 10.Parse request [05:46:47]Sock 10.Check first char [05:46:47]Sock 10.First char is OK [05:46:47]request: POST /json_proto HTTP/1.0 [05:46:47]Method: POST [05:46:47]URL: /json_proto [05:46:47]Method is POST - this is cgi request [05:46:47]url: /json_proto [05:46:47]query_string will be loaded in cgi processing [05:46:47]execute_cgi json_proto POST (null) [05:46:47]execute_cgi path=json_proto method=POST [05:46:47]POST find Content-Length [05:46:47]Host: 172.17.41.195:8080 [05:46:47]Content-Length: 1208 [05:46:47]Content-Type: application/json [05:46:47] [05:46:47]POST finish read [05:46:47]Found Content-Length = 1208 [05:46: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)507100\u000A15.05.2024 05:29\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" ] } } [05:46:47]execute_script... [05:46: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)507100\u000A15.05.2024 05:29\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" ] } } [05:46:47]POST & json_proto [05:46:47]process_json_proto [05:46:47]json parsed OK: [05:46:47]protocol is kg_v1.0 [05:46:47]action value=print_text [05:46:47]process_action print_text [05:46:47]cmd_print_text [05:46:47]ExternCall_PrintAddStr [05:46:47]wPrintStart [05:46:47]Write to MH i2c: 01 00 00 F6 1B 11 [05:46:47]Write i2c OK [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 07 00 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 07 00 F6 1B 00 00 00 00 00 FF 0F 26 [05:46:47]RasterBufferAndPrint [05:46:47]line *****ТОВАРНЫЙ ЧЕК***** [05:46:47]line АЗС-91 [05:46:47]line Партнер нефть [05:46:47]line 02508201610067 [05:46:47]line Кассир : Арстанбеков Н. [05:46:47]line Счет N : (1)507100 [05:46:47]line 15.05.2024 05:29 [05:46:47]line ПРОДАЖА [05:46:47]line ТРК (МРК, ГНК): 11 [05:46:47]line Вид ГСМ : 2710194210 [05:46:47]line ДТ-К-5 [05:46:47]line 10.000 x 74.70 [05:46:47]line ИТОГ: 747.00 [05:46:47]line Тип оплаты: Талоны: Топливная Карта [05:46:47]line 02750 [05:46:47]line ______________________ [05:46:47]line (подпись) [05:46:47]written 0, free lines is 4095 [05:46:47]Write to MH i2c: 01 00 00 0A 1C 26 [05:46:47]Write i2c OK [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 07 00 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 0E 0E 49 [05:46:47]RasterBufferAndPrint [05:46:47]line [05:46:47]line [05:46:47]line [05:46:47]line [05:46:47]line [05:46:47]written 0, free lines is 3600 [05:46:47]MH_Cut [05:46:47]Write to MH i2c: D1 01 00 11 1C 01 FF [05:46:47]Write i2c OK [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: D1 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: D1 01 00 [05:46:47]MH_I2C_Read... [05:46:47]Read from MH i2c: D1 01 00 11 1C 00 FE [05:46:47]Write to MH i2c: 01 00 00 12 1C 2E [05:46:47]Write i2c OK [05:46:47]MH_I2C_Read... [05:46:47]*** Cut start [05:46:47]*** Purtial cut [05:46:47]*** CUTSNS_PIN = 0 [05:46:48]*** Stage 1: CUTSNS_PIN = 1 [05:46:49]Read from MH i2c: 01 [05:46:49]MH_I2C_Read... [05:46:49]*** Stop cut motor [05:46:49]*** Cut end [05:46:49]Read from MH i2c: 01 07 00 [05:46:49]MH_I2C_Read... [05:46:49]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 FF 0F 43 [05:46:49]process_action print_text done [05:46:49]requested_data is exist [05:46:49]produce_requested_data [05:46:49]requested_item fm.sn is exist - process it [05:46:49]wFMCommunicate request_size=4 [05:46:49]MH_SAM_APDU [05:46:49]CAPDU: 80 11 00 00 [05:46:49]Write to MH i2c: E2 08 00 13 1C 80 11 00 00 00 00 00 00 A9 [05:46:49]Write i2c OK [05:46:49]MH_I2C_Read... [05:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:49]Read from MH i2c: E2 [05:46:49]MH_I2C_Read... [05:46:49]Read from MH i2c: E2 17 00 [05:46:49]MH_I2C_Read... [05:46:49]Read from MH i2c: E2 17 00 13 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [05:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:46:49]wFMCommunicate OK [05:46:49]requested_item fd.num is exist - process it [05:46:49]SAM_PROTO_GetFieldsCounters [05:46:49]wFMCommunicate request_size=4 [05:46:49]MH_SAM_APDU [05:46:49]CAPDU: 80 13 00 00 [05:46:49]Write to MH i2c: E2 08 00 14 1C 80 13 00 00 00 00 00 00 AC [05:46:49]Write i2c OK [05:46:49]MH_I2C_Read... [05:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:50]Read from MH i2c: E2 [05:46:50]MH_I2C_Read... [05:46:50]Read from MH i2c: E2 62 00 [05:46:50]MH_I2C_Read... [05:46:50]Read from MH i2c: E2 62 00 14 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 74 06 01 00 0E 04 04 00 64 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 C4 [05:46: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 74 06 01 00 0E 04 04 00 64 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:46:50]wFMCommunicate OK [05:46:50]SAM_PROTO_GetFieldsCounters done [05:46:50]requested_item shift.num is exist - process it [05:46:50]requested_item shift.opened is exist - process it [05:46:50]req_shift_opened [05:46:50]FM_GetShiftState [05:46:50]SAM_PROTO_GetShiftState [05:46:50]wFMCommunicate request_size=4 [05:46:50]MH_SAM_APDU [05:46:50]CAPDU: 80 13 01 00 [05:46:50]Write to MH i2c: E2 08 00 15 1C 80 13 01 00 00 00 00 00 AE [05:46:50]Write i2c OK [05:46:50]MH_I2C_Read... [05:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:50]Read from MH i2c: E2 [05:46:50]MH_I2C_Read... [05:46:50]Read from MH i2c: E2 0E 00 [05:46:50]MH_I2C_Read... [05:46:50]Read from MH i2c: E2 0E 00 15 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 59 [05:46:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [05:46:50]wFMCommunicate OK [05:46:50]SAM_PROTO_GetShiftState done [05:46:50]FM_GetShiftState done [05:46:50]req_shift_opened done [05:46:50]requested_item shift.open_date is exist - process it [05:46:50]req_shift_open_date [05:46:50]req_shift_open_date done [05:46:50]produce_requested_data done [05:46:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [05:46:50]process_action_free print_text [05:46:50]json_value_free [05:46:50]json_value_free done [05:46:50]process_json_proto returns [05:46:50]Send response to host [05:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [05:46:50]free response buf [05:46:50]execute_script done [05:46:50]execute_script returns [05:46:50]free content buf [05:46:50]Sock 10.Close socket [05:46:50]Sock 10.Thread stoped [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:11]accept exits with 9 [05:48:11]New connection [05:48:11]New thread 3066588516 created [05:48:11]Thread 3066731876 joined [05:48:11]Waiting for new connection... [05:48:11] Sock 9.Parse request [05:48:11]Sock 9.Check first char [05:48:11]Sock 9.First char is OK [05:48:11]request: POST /json_proto HTTP/1.0 [05:48:11]Method: POST [05:48:11]URL: /json_proto [05:48:11]Method is POST - this is cgi request [05:48:11]url: /json_proto [05:48:11]query_string will be loaded in cgi processing [05:48:11]execute_cgi json_proto POST (null) [05:48:11]execute_cgi path=json_proto method=POST [05:48:11]POST find Content-Length [05:48:11]Host: 172.17.41.195:8080 [05:48:11]Content-Length: 1211 [05:48:11]Content-Type: application/json [05:48:11] [05:48:11]POST finish read [05:48:11]Found Content-Length = 1211 [05:48: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)507101\u000A15.05.2024 05:30\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" ] } } [05:48:11]execute_script... [05:48: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)507101\u000A15.05.2024 05:30\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" ] } } [05:48:11]POST & json_proto [05:48:11]process_json_proto [05:48:11]json parsed OK: [05:48:11]protocol is kg_v1.0 [05:48:11]action value=print_text [05:48:11]process_action print_text [05:48:11]cmd_print_text [05:48:11]ExternCall_PrintAddStr [05:48:11]wPrintStart [05:48:11]Write to MH i2c: 01 00 00 16 1C 32 [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 16 1C 00 00 00 00 00 FF 0F 47 [05:48:11]RasterBufferAndPrint [05:48:11]line *****ТОВАРНЫЙ ЧЕК***** [05:48:11]line АЗС-91 [05:48:11]line Партнер нефть [05:48:11]line 02508201610067 [05:48:11]line Кассир : Арстанбеков Н. [05:48:11]line Счет N : (1)507101 [05:48:11]line 15.05.2024 05:30 [05:48:11]line ПРОДАЖА [05:48:11]line ТРК (МРК, ГНК): 43 [05:48:11]line Вид ГСМ : 2710124130 [05:48:11]line Аи-92-К-5 [05:48:11]line 10.480 x 66.80 [05:48:11]line ИТОГ: 700.06 [05:48:11]line Тип оплаты: Талоны: Топливная Карта [05:48:11]line 02750 [05:48:11]line ______________________ [05:48:11]line (подпись) [05:48:11]written 0, free lines is 4095 [05:48:11]Write to MH i2c: 01 00 00 2A 1C 46 [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: 01 07 00 2A 1C 00 00 00 00 00 11 0E 6C [05:48:11]RasterBufferAndPrint [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]line [05:48:11]written 0, free lines is 3603 [05:48:11]MH_Cut [05:48:11]Write to MH i2c: D1 01 00 31 1C 01 1F [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 01 00 [05:48:11]MH_I2C_Read... [05:48:11]Read from MH i2c: D1 01 00 31 1C 00 1E [05:48:11]Write to MH i2c: 01 00 00 32 1C 4E [05:48:11]Write i2c OK [05:48:11]MH_I2C_Read... [05:48:12]OFD Sender: No OFD packet to send [05:48:12]*** Cut start [05:48:12]*** Purtial cut [05:48:12]*** Stage 1: CUTSNS_PIN = 1 [05:48:12]Read from MH i2c: 01 [05:48:12]MH_I2C_Read... [05:48:12]*** Stop cut motor [05:48:12]*** Cut end [05:48:12]Read from MH i2c: 01 07 00 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: 01 07 00 32 1C 00 00 00 00 00 FF 0F 63 [05:48:12]process_action print_text done [05:48:12]requested_data is exist [05:48:12]produce_requested_data [05:48:12]requested_item fm.sn is exist - process it [05:48:12]wFMCommunicate request_size=4 [05:48:12]MH_SAM_APDU [05:48:12]CAPDU: 80 11 00 00 [05:48:12]Write to MH i2c: E2 08 00 33 1C 80 11 00 00 00 00 00 00 C9 [05:48:12]Write i2c OK [05:48:12]MH_I2C_Read... [05:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:48:12]Read from MH i2c: E2 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 17 00 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 17 00 33 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [05:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:48:12]wFMCommunicate OK [05:48:12]requested_item fd.num is exist - process it [05:48:12]SAM_PROTO_GetFieldsCounters [05:48:12]wFMCommunicate request_size=4 [05:48:12]MH_SAM_APDU [05:48:12]CAPDU: 80 13 00 00 [05:48:12]Write to MH i2c: E2 08 00 34 1C 80 13 00 00 00 00 00 00 CC [05:48:12]Write i2c OK [05:48:12]MH_I2C_Read... [05:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:48:12]Read from MH i2c: E2 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 62 00 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 62 00 34 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 74 06 01 00 0E 04 04 00 64 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 E4 [05:48: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 74 06 01 00 0E 04 04 00 64 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:48:12]wFMCommunicate OK [05:48:12]SAM_PROTO_GetFieldsCounters done [05:48:12]requested_item shift.num is exist - process it [05:48:12]requested_item shift.opened is exist - process it [05:48:12]req_shift_opened [05:48:12]FM_GetShiftState [05:48:12]SAM_PROTO_GetShiftState [05:48:12]wFMCommunicate request_size=4 [05:48:12]MH_SAM_APDU [05:48:12]CAPDU: 80 13 01 00 [05:48:12]Write to MH i2c: E2 08 00 35 1C 80 13 01 00 00 00 00 00 CE [05:48:12]Write i2c OK [05:48:12]MH_I2C_Read... [05:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:48:12]Read from MH i2c: E2 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 0E 00 [05:48:12]MH_I2C_Read... [05:48:12]Read from MH i2c: E2 0E 00 35 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 79 [05:48:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [05:48:12]wFMCommunicate OK [05:48:12]SAM_PROTO_GetShiftState done [05:48:12]FM_GetShiftState done [05:48:12]req_shift_opened done [05:48:12]requested_item shift.open_date is exist - process it [05:48:12]req_shift_open_date [05:48:12]req_shift_open_date done [05:48:12]produce_requested_data done [05:48:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [05:48:12]process_action_free print_text [05:48:12]json_value_free [05:48:12]json_value_free done [05:48:12]process_json_proto returns [05:48:12]Send response to host [05:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [05:48:12]free response buf [05:48:12]execute_script done [05:48:12]execute_script returns [05:48:12]free content buf [05:48:12]Sock 9.Close socket [05:48:12]Sock 9.Thread stoped [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]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:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]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:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:01]accept exits with 10 [06:30:01]New connection [06:30:01]New thread 3066731876 created [06:30:01]Thread 3066588516 joined [06:30:01]Waiting for new connection... [06:30:01] Sock 10.Parse request [06:30:01]Sock 10.Check first char [06:30:01]Sock 10.First char is OK [06:30:01]request: POST /json_proto HTTP/1.0 [06:30:01]Method: POST [06:30:01]URL: /json_proto [06:30:01]Method is POST - this is cgi request [06:30:01]url: /json_proto [06:30:01]query_string will be loaded in cgi processing [06:30:01]execute_cgi json_proto POST (null) [06:30:01]execute_cgi path=json_proto method=POST [06:30:01]POST find Content-Length [06:30:01]Host: 172.17.41.195:8080 [06:30:01]Content-Length: 679 [06:30:01]Content-Type: application/json [06:30:01] [06:30:01]POST finish read [06:30:01]Found Content-Length = 679 [06:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507102", "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 }]} ], "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:30:01]execute_script... [06:30: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)507102", "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 }]} ], "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:30:01]POST & json_proto [06:30:01]process_json_proto [06:30:01]json parsed OK: [06:30:01]protocol is kg_v1.0 [06:30:01]action value=close_receipt [06:30:01]process_action close_receipt [06:30:01]cmd_close_receipt [06:30:01]MH_GetDate [06:30:01]Write to MH i2c: F0 00 00 36 1C 41 [06:30:01]Write i2c OK [06:30:01]MH_I2C_Read... [06:30:01]Read from MH i2c: F0 [06:30:01]MH_I2C_Read... [06:30:01]Read from MH i2c: F0 09 00 [06:30:01]MH_I2C_Read... [06:30:01]Read from MH i2c: F0 09 00 36 1C 00 6C 56 44 66 FC 21 6F 64 A6 [06:30:01]GetLastDocTimeStamp 1715739895 [06:30:01]current date 1715754604 [06:30:01]FM_GetShiftState [06:30:01]SAM_PROTO_GetShiftState [06:30:01]wFMCommunicate request_size=4 [06:30:01]MH_SAM_APDU [06:30:01]CAPDU: 80 13 01 00 [06:30:01]Write to MH i2c: E2 08 00 37 1C 80 13 01 00 00 00 00 00 D0 [06:30:01]Write i2c OK [06:30:01]MH_I2C_Read... [06:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:01]Read from MH i2c: E2 [06:30:01]MH_I2C_Read... [06:30:01]Read from MH i2c: E2 0E 00 [06:30:01]MH_I2C_Read... [06:30:01]Read from MH i2c: E2 0E 00 37 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7B [06:30:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [06:30:01]wFMCommunicate OK [06:30:01]SAM_PROTO_GetShiftState done [06:30:01]FM_GetShiftState done [06:30:01]opened in 1715732471 [06:30:01]opened+sec_in_day 1715818871 [06:30:01]quantity*price = 100023 [06:30:01]sum+1 = 100024 [06:30:01]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 СНО: Общий режим Чек 7 15.05.2024 06:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67189 ФПД: 67622495207611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T063004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67189&fm=67622495207611&tin=02508201610067®Number=0000000000091845&sum=100000 [06:30:02]StoreToDocumentArchive [06:30:02]shift 356 fd 67189 [06:30:02]save to /storage/0356/doc_00067189 [06:30:02]save last doc name /storage/0356/doc_00067189 to /storage/kkm_last_doc_name [06:30:02]save OK [06:30:02]Clear old archive folders... [06:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:30:02]tlvbuf is B6F1F2D0 [06:30:02]SAM_PROTO_ClearQueue [06:30:02]wFMCommunicate request_size=4 [06:30:02]MH_SAM_APDU [06:30:02]CAPDU: 80 09 00 00 [06:30:02]Write to MH i2c: E2 08 00 44 1C 80 09 00 00 00 00 00 00 D2 [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 44 1C 00 90 00 D4 [06:30:02]RAPDU: 90 00 [06:30:02]wFMCommunicate OK [06:30:02]SAM_PROTO_ClearQueue done [06:30:02]KKMCreateOFDPacket [06:30:02]OFDProtocolAddRootSTLVToBuf [06:30:02]FM_MakeSignedData [06:30:02]FM_MakeSignedData [06:30:02]SAM_PROTO_SignData [06:30:02]wFMCommunicate request_size=4 [06:30:02]MH_SAM_APDU [06:30:02]CAPDU: 80 0D 01 02 [06:30:02]Write to MH i2c: E2 08 00 45 1C 80 0D 01 02 00 00 00 00 DA [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 45 1C 00 90 00 D5 [06:30:02]RAPDU: 90 00 [06:30:02]wFMCommunicate OK [06:30:02]wFMCommunicate request_size=255 [06:30:02]MH_SAM_APDU [06:30:02]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 07 00 00 00 F4 03 04 00 6C 56 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 06 01 00 35 04 06 00 3D 80 96 CE [06:30:02]Write to MH i2c: E2 02 01 46 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 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 07 00 00 00 F4 03 04 00 6C 56 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 06 01 00 35 04 06 00 3D 80 96 CE 00 00 29 [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 46 1C 00 90 00 D6 [06:30:02]RAPDU: 90 00 [06:30:02]wFMCommunicate OK [06:30:02]wFMCommunicate request_size=7 [06:30:02]MH_SAM_APDU [06:30:02]CAPDU: 80 0D 02 02 02 40 BB [06:30:02]Write to MH i2c: E2 0A 00 47 1C 80 0D 02 02 02 00 40 BB 00 00 DC [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [06:30:02]RAPDU: 90 00 [06:30:02]wFMCommunicate OK [06:30:02]wFMCommunicate request_size=4 [06:30:02]MH_SAM_APDU [06:30:02]CAPDU: 80 0D 03 02 [06:30:02]Write to MH i2c: E2 08 00 48 1C 80 0D 03 02 00 00 00 00 DF [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 0B 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 0B 00 48 1C 00 02 B9 3A 93 42 12 DA 9F 90 00 35 [06:30:02]RAPDU: 02 B9 3A 93 42 12 DA 9F 90 00 [06:30:02]wFMCommunicate OK [06:30:02]SAM_PROTO_SignData done [06:30:02]FM_MakeSignedData done [06:30:02]CreateOFDProtocolMessage [06:30:02]wFMCommunicate request_size=4 [06:30:02]MH_SAM_APDU [06:30:02]CAPDU: 80 11 00 00 [06:30:02]Write to MH i2c: E2 08 00 49 1C 80 11 00 00 00 00 00 00 DF [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:02]Read from MH i2c: E2 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 17 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: E2 17 00 49 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [06:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:30:02]wFMCommunicate OK [06:30:02]CreateOFDProtocolMessage done [06:30:02]OFDSenderStorePacket 67189 [06:30:02]StoreOFDPacket docnum=67189 [06:30: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 0C 01 00 00 56 1C 04 01 81 61 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 07 00 00 00 F4 03 04 00 6C 56 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 06 01 00 35 04 06 00 3D 80 96 CE 40 BB 02 B9 3A 93 42 12 DA 9F [06:30:02]CheckFolder [06:30:02]dirname=/storage/ofd_packets [06:30:02]CheckFolder done [06:30:02]ProducePacketName [06:30:02]name=ofd_packets/00067189 [06:30:02]NVStorageSaveData ofd_packets/00067189 [06:30:02]File name is /storage/ofd_packets/00067189 [06:30:02]Write 298 bytes [06:30:02]NVStorageSaveData done [06:30:02]OFDSenderStorePacket done [06:30:02]KKMCreateOFDPacket done [06:30:02]NVStorageSaveData kkm_last_timestamp [06:30:02]File name is /storage/kkm_last_timestamp [06:30:02]Write 4 bytes [06:30:02]NVStorageSaveData done [06:30:02]ExternCall_PrintAddStr [06:30:02]wPrintStart [06:30:02]Write to MH i2c: 01 00 00 4A 1C 66 [06:30:02]Write i2c OK [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: 01 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: 01 07 00 [06:30:02]MH_I2C_Read... [06:30:02]Read from MH i2c: 01 07 00 4A 1C 00 00 00 00 00 FF 0F 7B [06:30:02]RasterBufferAndPrint [06:30:02]line Счет N : (1)507102 [06:30:02]line ИНН: 02508201610067 [06:30:02]line Контрольно-Кассовый Чек [06:30:02]line ПРОДАЖА [06:30:02]line ТРК (МРК, ГНК) : 21 [06:30:02]line Товар: 2710194210 [06:30:02]line ДТ-К-5 [06:30:02]line 13.390 * 74.70 [06:30:02]line = 1000.23 [06:30:02]line НДС 12% НСП 1% [06:30:02]line > о реализуемом товаре [06:30:02]line ОКРУГЛЕНИЕ: -0.23 [06:30:02]line ИТОГО: 1000.00 [06:30:02]line Внесено: 1000.00 [06:30:02]line СДАЧА: 0.00 [06:30:02]line НСП 1% : 8.85 [06:30:02]line НДС 12% : 106.22 [06:30:02]line Наличными: 1000.00 [06:30:02]line Безнал.: 0.00 [06:30:02]line Место: АЗС № 91 "Партнер Нефть" [06:30:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:30:02]line СНО: Общий режим [06:30:02]line Чек 7 15.05.2024 06:30 [06:30:02]line Смена: 356 ФФД: 1.0 [06:30:02]line ЗНМ: 0300000119 [06:30:02]line РНМ: 0000000000091845 [06:30:02]line Версия ККМ: 001 [06:30:02]line ФМ: 0000000000871829 [06:30:02]line ФД: 67189 [06:30:02]line ФПД: 67622495207611 [06:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T063004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67189&fm=67622495207611&tin=02508201610067®Number=0000000000091845&sum=100000 [06:30:03]OFD Sender: Processing packet 67189 [packets to send 35, broken 34] [06:30:03]ProducePacketName [06:30:03]name=ofd_packets/00067189 [06:30:03]OFD Sender: To server: pG, [06:30:03]CommunicateWithHost lk.salyk.kg:30040 [06:30:03]ConnectInit lk.salyk.kg [06:30:03]written 0, free lines is 4095 [06:30:03]Connected sock=9 [06:30: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 0C 01 00 00 56 1C 04 01 81 61 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 07 00 00 00 F4 03 04 00 6C 56 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 06 01 00 35 04 06 00 3D 80 96 CE 40 BB 02 B9 3A 93 42 12 DA 9F [06:30: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 05 7A 47 00 D3 62 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 75 06 01 00 F4 03 04 00 4A FE 43 66 B6 04 01 00 00 4A 03 8F CB 67 0B 39 0B [06:30:03]CommunicateWithHost err = 0 [06:30:03]CheckOFDResponse [06:30:03]1017 (14) - 77093643461234 [06:30:03]1041 (16) - 0000000000871829 [06:30:03]1040 (4) - 67189 [06:30:03]1012 (4) - 15.05.2024 00:14 [06:30:03]1206 (1) - 0 [06:30:03]OFD Sender: Remove packet 67189 [06:30:03]ProducePacketName [06:30:03]name=ofd_packets/00067189 [06:30:03]NVStorageDeleteData [06:30:03]Write to MH i2c: 01 00 00 74 1C 90 [06:30:03]Write i2c OK [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: 01 [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: 01 07 00 [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: 01 07 00 74 1C 00 00 00 00 00 B3 0C 56 [06:30:03]RasterBufferAndPrint [06:30:03]line [06:30:03]line [06:30:03]line [06:30:03]line [06:30:03]line [06:30:03]written 0, free lines is 3257 [06:30:03]MH_Cut [06:30:03]Write to MH i2c: D1 01 00 7B 1C 01 69 [06:30:03]Write i2c OK [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: D1 [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: D1 01 00 [06:30:03]MH_I2C_Read... [06:30:03]Read from MH i2c: D1 01 00 7B 1C 00 68 [06:30:03]Write to MH i2c: 01 00 00 7C 1C 98 [06:30:03]Write i2c OK [06:30:03]MH_I2C_Read... [06:30:04]OFD Sender: No OFD packet to send [06:30:04]*** Cut start [06:30:04]*** Purtial cut [06:30:04]*** CUTSNS_PIN = 0 [06:30:04]*** Stage 1: CUTSNS_PIN = 1 [06:30:06]Read from MH i2c: 01 [06:30:06]MH_I2C_Read... [06:30:06]*** Stop cut motor [06:30:06]*** Cut end [06:30:06]Read from MH i2c: 01 07 00 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: 01 07 00 7C 1C 00 00 00 00 00 FF 0F AD [06:30:06]process_action close_receipt done [06:30:06]requested_data is exist [06:30:06]produce_requested_data [06:30:06]requested_item fm.sn is exist - process it [06:30:06]wFMCommunicate request_size=4 [06:30:06]MH_SAM_APDU [06:30:06]CAPDU: 80 11 00 00 [06:30:06]Write to MH i2c: E2 08 00 7D 1C 80 11 00 00 00 00 00 00 13 [06:30:06]Write i2c OK [06:30:06]MH_I2C_Read... [06:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:06]Read from MH i2c: E2 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 17 00 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 17 00 7D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [06: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 [06:30:06]wFMCommunicate OK [06:30:06]requested_item fd.num is exist - process it [06:30:06]SAM_PROTO_GetFieldsCounters [06:30:06]wFMCommunicate request_size=4 [06:30:06]MH_SAM_APDU [06:30:06]CAPDU: 80 13 00 00 [06:30:06]Write to MH i2c: E2 08 00 7E 1C 80 13 00 00 00 00 00 00 16 [06:30:06]Write i2c OK [06:30:06]MH_I2C_Read... [06:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:06]Read from MH i2c: E2 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 62 00 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 62 00 7E 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 75 06 01 00 0E 04 04 00 64 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 32 [06: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 75 06 01 00 0E 04 04 00 64 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 [06:30:06]wFMCommunicate OK [06:30:06]SAM_PROTO_GetFieldsCounters done [06:30:06]requested_item shift.num is exist - process it [06:30:06]requested_item shift.opened is exist - process it [06:30:06]req_shift_opened [06:30:06]FM_GetShiftState [06:30:06]SAM_PROTO_GetShiftState [06:30:06]wFMCommunicate request_size=4 [06:30:06]MH_SAM_APDU [06:30:06]CAPDU: 80 13 01 00 [06:30:06]Write to MH i2c: E2 08 00 7F 1C 80 13 01 00 00 00 00 00 18 [06:30:06]Write i2c OK [06:30:06]MH_I2C_Read... [06:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:06]Read from MH i2c: E2 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 0E 00 [06:30:06]MH_I2C_Read... [06:30:06]Read from MH i2c: E2 0E 00 7F 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C3 [06:30:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [06:30:06]wFMCommunicate OK [06:30:06]SAM_PROTO_GetShiftState done [06:30:06]FM_GetShiftState done [06:30:06]req_shift_opened done [06:30:06]requested_item shift.open_date is exist - process it [06:30:06]req_shift_open_date [06:30:06]req_shift_open_date done [06:30:06]produce_requested_data done [06:30:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67189,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [06:30:06]process_action_free close_receipt [06:30:06]json_value_free [06:30:06]json_value_free done [06:30:06]process_json_proto returns [06:30:06]Send response to host [06:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67189,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [06:30:06]free response buf [06:30:06]execute_script done [06:30:06]execute_script returns [06:30:06]free content buf [06:30:06]Sock 10.Close socket [06:30:06]Sock 10.Thread stoped [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:12]accept exits with 7 [06:49:12]New connection [06:49:12]New thread 3066588516 created [06:49:12]Thread 3066731876 joined [06:49:12]Waiting for new connection... [06:49:12] Sock 7.Parse request [06:49:12]Sock 7.Check first char [06:49:12]Sock 7.First char is OK [06:49:12]request: POST /json_proto HTTP/1.0 [06:49:12]Method: POST [06:49:12]URL: /json_proto [06:49:12]Method is POST - this is cgi request [06:49:12]url: /json_proto [06:49:12]query_string will be loaded in cgi processing [06:49:12]execute_cgi json_proto POST (null) [06:49:12]execute_cgi path=json_proto method=POST [06:49:12]POST find Content-Length [06:49:12]Host: 172.17.41.195:8080 [06:49:12]Content-Length: 670 [06:49:12]Content-Type: application/json [06:49:12] [06:49:12]POST finish read [06:49:12]Found Content-Length = 670 [06:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507103", "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" : 7.380, "sum" : 500.36, "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:49:12]execute_script... [06:49: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)507103", "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" : 7.380, "sum" : 500.36, "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:49:12]POST & json_proto [06:49:12]process_json_proto [06:49:12]json parsed OK: [06:49:12]protocol is kg_v1.0 [06:49:12]action value=close_receipt [06:49:12]process_action close_receipt [06:49:12]cmd_close_receipt [06:49:12]MH_GetDate [06:49:12]Write to MH i2c: F0 00 00 80 1C 8B [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: F0 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: F0 09 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: F0 09 00 80 1C 00 EB 5A 44 66 FC 21 6F 64 73 [06:49:12]GetLastDocTimeStamp 1715754604 [06:49:12]current date 1715755755 [06:49:12]FM_GetShiftState [06:49:12]SAM_PROTO_GetShiftState [06:49:12]wFMCommunicate request_size=4 [06:49:12]MH_SAM_APDU [06:49:12]CAPDU: 80 13 01 00 [06:49:12]Write to MH i2c: E2 08 00 81 1C 80 13 01 00 00 00 00 00 1A [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:12]Read from MH i2c: E2 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 0E 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 0E 00 81 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C5 [06:49:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [06:49:12]wFMCommunicate OK [06:49:12]SAM_PROTO_GetShiftState done [06:49:12]FM_GetShiftState done [06:49:12]opened in 1715732471 [06:49:12]opened+sec_in_day 1715818871 [06:49:12]quantity*price = 50036 [06:49:12]sum+1 = 50037 [06:49:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 8 15.05.2024 06:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67190 ФПД: 84825435262965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T064915&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67190&fm=84825435262965&tin=02508201610067®Number=0000000000091845&sum=50000 [06:49:13]StoreToDocumentArchive [06:49:13]shift 356 fd 67190 [06:49:13]save to /storage/0356/doc_00067190 [06:49:13]save last doc name /storage/0356/doc_00067190 to /storage/kkm_last_doc_name [06:49:13]save OK [06:49:13]Clear old archive folders... [06:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:49:13]tlvbuf is 0037A790 [06:49:13]SAM_PROTO_ClearQueue [06:49:13]wFMCommunicate request_size=4 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 09 00 00 [06:49:13]Write to MH i2c: E2 08 00 8E 1C 80 09 00 00 00 00 00 00 1C [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:13]Read from MH i2c: E2 03 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 8E 1C 00 90 00 1E [06:49:13]RAPDU: 90 00 [06:49:13]wFMCommunicate OK [06:49:13]SAM_PROTO_ClearQueue done [06:49:13]KKMCreateOFDPacket [06:49:13]OFDProtocolAddRootSTLVToBuf [06:49:13]FM_MakeSignedData [06:49:13]FM_MakeSignedData [06:49:13]SAM_PROTO_SignData [06:49:13]wFMCommunicate request_size=4 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 0D 01 02 [06:49:13]Write to MH i2c: E2 08 00 8F 1C 80 0D 01 02 00 00 00 00 24 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:13]Read from MH i2c: E2 03 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [06:49:13]RAPDU: 90 00 [06:49:13]wFMCommunicate OK [06:49:13]wFMCommunicate request_size=255 [06:49:13]MH_SAM_APDU [06:49:13]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 08 00 00 00 F4 03 04 00 EB 5A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 06 01 00 35 04 06 00 [06:49:13]Write to MH i2c: E2 02 01 90 1C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 08 00 00 00 F4 03 04 00 EB 5A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 06 01 00 35 04 06 00 00 00 AB [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [06:49:13]RAPDU: 90 00 [06:49:13]wFMCommunicate OK [06:49:13]wFMCommunicate request_size=11 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 0D 02 02 06 4D 25 F5 EF CF F5 [06:49:13]Write to MH i2c: E2 0E 00 91 1C 80 0D 02 02 06 00 4D 25 F5 EF CF F5 00 00 4D [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [06:49:13]RAPDU: 90 00 [06:49:13]wFMCommunicate OK [06:49:13]wFMCommunicate request_size=4 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 0D 03 02 [06:49:13]Write to MH i2c: E2 08 00 92 1C 80 0D 03 02 00 00 00 00 29 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 0B 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 0B 00 92 1C 00 65 44 FC 16 55 A2 EF E5 90 00 B0 [06:49:13]RAPDU: 65 44 FC 16 55 A2 EF E5 90 00 [06:49:13]wFMCommunicate OK [06:49:13]SAM_PROTO_SignData done [06:49:13]FM_MakeSignedData done [06:49:13]CreateOFDProtocolMessage [06:49:13]wFMCommunicate request_size=4 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 11 00 00 [06:49:13]Write to MH i2c: E2 08 00 93 1C 80 11 00 00 00 00 00 00 29 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 17 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 17 00 93 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [06:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:49:13]wFMCommunicate OK [06:49:13]CreateOFDProtocolMessage done [06:49:13]OFDSenderStorePacket 67190 [06:49:13]StoreOFDPacket docnum=67190 [06:49: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 10 01 00 00 F8 E5 08 01 A8 0E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 08 00 00 00 F4 03 04 00 EB 5A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 06 01 00 35 04 06 00 4D 25 F5 EF CF F5 65 44 FC 16 55 A2 EF E5 [06:49:13]CheckFolder [06:49:13]dirname=/storage/ofd_packets [06:49:13]CheckFolder done [06:49:13]ProducePacketName [06:49:13]name=ofd_packets/00067190 [06:49:13]NVStorageSaveData ofd_packets/00067190 [06:49:13]File name is /storage/ofd_packets/00067190 [06:49:13]Write 302 bytes [06:49:13]NVStorageSaveData done [06:49:13]OFDSenderStorePacket done [06:49:13]KKMCreateOFDPacket done [06:49:13]NVStorageSaveData kkm_last_timestamp [06:49:13]File name is /storage/kkm_last_timestamp [06:49:13]Write 4 bytes [06:49:13]NVStorageSaveData done [06:49:13]ExternCall_PrintAddStr [06:49:13]wPrintStart [06:49:13]Write to MH i2c: 01 00 00 94 1C B0 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 07 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 07 00 94 1C 00 00 00 00 00 FF 0F C5 [06:49:13]RasterBufferAndPrint [06:49:13]line Счет N : (1)507103 [06:49:13]line ИНН: 02508201610067 [06:49:13]line Контрольно-Кассовый Чек [06:49:13]line ПРОДАЖА [06:49:13]line ТРК (МРК, ГНК) : 42 [06:49:13]line Товар: 2710124130 [06:49:13]line Super-92-К-5 [06:49:13]line 7.380 * 67.80 [06:49:13]line = 500.36 [06:49:13]line НДС 12% НСП 1% [06:49:13]line > о реализуемом товаре [06:49:13]line ОКРУГЛЕНИЕ: -0.36 [06:49:13]line ИТОГО: 500.00 [06:49:13]line Внесено: 500.00 [06:49:13]line СДАЧА: 0.00 [06:49:13]line НСП 1% : 4.43 [06:49:13]line НДС 12% : 53.14 [06:49:13]line Наличными: 500.00 [06:49:13]line Безнал.: 0.00 [06:49:13]line Место: АЗС № 91 "Партнер Нефть" [06:49:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:49:13]line СНО: Общий режим [06:49:13]line Чек 8 15.05.2024 06:49 [06:49:13]line Смена: 356 ФФД: 1.0 [06:49:13]line ЗНМ: 0300000119 [06:49:13]line РНМ: 0000000000091845 [06:49:13]line Версия ККМ: 001 [06:49:13]line ФМ: 0000000000871829 [06:49:13]line ФД: 67190 [06:49:13]line ФПД: 84825435262965 [06:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T064915&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67190&fm=84825435262965&tin=02508201610067®Number=0000000000091845&sum=50000 [06:49:14]written 0, free lines is 4095 [06:49:14]OFD Sender: Processing packet 67190 [packets to send 35, broken 34] [06:49:14]ProducePacketName [06:49:14]name=ofd_packets/00067190 [06:49:14]OFD Sender: To server: pG, [06:49:14]CommunicateWithHost lk.salyk.kg:30040 [06:49:14]ConnectInit lk.salyk.kg [06:49:14]Connected sock=10 [06:49: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 F8 E5 08 01 A8 0E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 08 00 00 00 F4 03 04 00 EB 5A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 76 06 01 00 35 04 06 00 4D 25 F5 EF CF F5 65 44 FC 16 55 A2 EF E5 [06:49: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 46 A5 47 00 7D BC 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 76 06 01 00 F4 03 04 00 C9 02 44 66 B6 04 01 00 00 84 92 0F 27 08 9E FE 64 [06:49:14]CommunicateWithHost err = 0 [06:49:14]CheckOFDResponse [06:49:14]1017 (14) - 77093643461234 [06:49:14]1041 (16) - 0000000000871829 [06:49:14]1040 (4) - 67190 [06:49:14]1012 (4) - 15.05.2024 00:33 [06:49:14]1206 (1) - 0 [06:49:14]OFD Sender: Remove packet 67190 [06:49:14]ProducePacketName [06:49:14]name=ofd_packets/00067190 [06:49:14]NVStorageDeleteData [06:49:14]Write to MH i2c: 01 00 00 BE 1C DA [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: 01 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: 01 07 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 BB 0C A8 [06:49:14]RasterBufferAndPrint [06:49:14]line [06:49:14]line [06:49:14]line [06:49:14]line [06:49:14]line [06:49:14]written 0, free lines is 3265 [06:49:14]MH_Cut [06:49:14]Write to MH i2c: D1 01 00 C5 1C 01 B3 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: D1 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: D1 01 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: D1 01 00 C5 1C 00 B2 [06:49:14]Write to MH i2c: 01 00 00 C6 1C E2 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:15]OFD Sender: No OFD packet to send [06:49:15]*** Cut start [06:49:15]*** Purtial cut [06:49:15]*** Stage 1: CUTSNS_PIN = 1 [06:49:15]Read from MH i2c: 01 [06:49:15]MH_I2C_Read... [06:49:15]*** Stop cut motor [06:49:15]*** Cut end [06:49:15]Read from MH i2c: 01 07 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 07 00 C6 1C 00 00 00 00 00 FF 0F F7 [06:49:15]process_action close_receipt done [06:49:15]requested_data is exist [06:49:15]produce_requested_data [06:49:15]requested_item fm.sn is exist - process it [06:49:15]wFMCommunicate request_size=4 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 11 00 00 [06:49:15]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 17 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 17 00 C7 1C 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:49: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:49:15]wFMCommunicate OK [06:49:15]requested_item fd.num is exist - process it [06:49:15]SAM_PROTO_GetFieldsCounters [06:49:15]wFMCommunicate request_size=4 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 13 00 00 [06:49:15]Write to MH i2c: E2 08 00 C8 1C 80 13 00 00 00 00 00 00 60 [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 62 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 62 00 C8 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 76 06 01 00 0E 04 04 00 64 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 80 [06:49: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 76 06 01 00 0E 04 04 00 64 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:49:15]wFMCommunicate OK [06:49:15]SAM_PROTO_GetFieldsCounters done [06:49:15]requested_item shift.num is exist - process it [06:49:15]requested_item shift.opened is exist - process it [06:49:15]req_shift_opened [06:49:15]FM_GetShiftState [06:49:15]SAM_PROTO_GetShiftState [06:49:15]wFMCommunicate request_size=4 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 13 01 00 [06:49:15]Write to MH i2c: E2 08 00 C9 1C 80 13 01 00 00 00 00 00 62 [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:16]Read from MH i2c: E2 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: E2 0E 00 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: E2 0E 00 C9 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0D [06:49:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [06:49:16]wFMCommunicate OK [06:49:16]SAM_PROTO_GetShiftState done [06:49:16]FM_GetShiftState done [06:49:16]req_shift_opened done [06:49:16]requested_item shift.open_date is exist - process it [06:49:16]req_shift_open_date [06:49:16]req_shift_open_date done [06:49:16]produce_requested_data done [06:49:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67190,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [06:49:16]process_action_free close_receipt [06:49:16]json_value_free [06:49:16]json_value_free done [06:49:16]process_json_proto returns [06:49:16]Send response to host [06:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67190,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [06:49:16]free response buf [06:49:16]execute_script done [06:49:16]execute_script returns [06:49:16]free content buf [06:49:16]Sock 7.Close socket [06:49:16]Sock 7.Thread stoped [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:47]accept exits with 9 [06:49:47]New connection [06:49:47]New thread 3066731876 created [06:49:47]Thread 3066588516 joined [06:49:47]Waiting for new connection... [06:49:47] Sock 9.Parse request [06:49:47]Sock 9.Check first char [06:49:47]Sock 9.First char is OK [06:49:47]request: POST /json_proto HTTP/1.0 [06:49:47]Method: POST [06:49:47]URL: /json_proto [06:49:47]Method is POST - this is cgi request [06:49:47]url: /json_proto [06:49:47]query_string will be loaded in cgi processing [06:49:47]execute_cgi json_proto POST (null) [06:49:47]execute_cgi path=json_proto method=POST [06:49:47]POST find Content-Length [06:49:47]Host: 172.17.41.195:8080 [06:49:47]Content-Length: 1209 [06:49:47]Content-Type: application/json [06:49:47] [06:49:47]POST finish read [06:49:47]Found Content-Length = 1209 [06:49: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)507104\u000A15.05.2024 06: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 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" ] } } [06:49:47]execute_script... [06:49: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)507104\u000A15.05.2024 06: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 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" ] } } [06:49:47]POST & json_proto [06:49:47]process_json_proto [06:49:47]json parsed OK: [06:49:47]protocol is kg_v1.0 [06:49:47]action value=print_text [06:49:47]process_action print_text [06:49:47]cmd_print_text [06:49:47]ExternCall_PrintAddStr [06:49:47]wPrintStart [06:49:47]Write to MH i2c: 01 00 00 CA 1C E6 [06:49:47]Write i2c OK [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 07 00 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 07 00 CA 1C 00 00 00 00 00 FF 0F FB [06:49:47]RasterBufferAndPrint [06:49:47]line *****ТОВАРНЫЙ ЧЕК***** [06:49:47]line АЗС-91 [06:49:47]line Партнер нефть [06:49:47]line 02508201610067 [06:49:47]line Кассир : Арстанбеков Н. [06:49:47]line Счет N : (1)507104 [06:49:47]line 15.05.2024 06:32 [06:49:47]line ПРОДАЖА [06:49:47]line ТРК (МРК, ГНК): 11 [06:49:47]line Вид ГСМ : 2710194210 [06:49:47]line ДТ-К-5 [06:49:47]line 13.390 x 74.70 [06:49:47]line ИТОГ: 1000.23 [06:49:47]line Тип оплаты: Талоны: Топливная Карта [06:49:47]line 02750 [06:49:47]line ______________________ [06:49:47]line (подпись) [06:49:47]written 0, free lines is 4095 [06:49:47]Write to MH i2c: 01 00 00 DE 1C FA [06:49:47]Write i2c OK [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 07 00 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 0E 0E 1D [06:49:47]RasterBufferAndPrint [06:49:47]line [06:49:47]line [06:49:47]line [06:49:47]line [06:49:47]line [06:49:47]written 0, free lines is 3600 [06:49:47]MH_Cut [06:49:47]Write to MH i2c: D1 01 00 E5 1C 01 D3 [06:49:47]Write i2c OK [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: D1 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: D1 01 00 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: D1 01 00 E5 1C 00 D2 [06:49:47]Write to MH i2c: 01 00 00 E6 1C 02 [06:49:47]Write i2c OK [06:49:47]MH_I2C_Read... [06:49:48]*** Cut start [06:49:48]*** Purtial cut [06:49:48]*** CUTSNS_PIN = 0 [06:49:48]*** Stage 1: CUTSNS_PIN = 1 [06:49:50]Read from MH i2c: 01 [06:49:50]MH_I2C_Read... [06:49:50]*** Stop cut motor [06:49:50]*** Cut end [06:49:50]Read from MH i2c: 01 07 00 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: 01 07 00 E6 1C 00 00 00 00 00 FF 0F 17 [06:49:50]process_action print_text done [06:49:50]requested_data is exist [06:49:50]produce_requested_data [06:49:50]requested_item fm.sn is exist - process it [06:49:50]wFMCommunicate request_size=4 [06:49:50]MH_SAM_APDU [06:49:50]CAPDU: 80 11 00 00 [06:49:50]Write to MH i2c: E2 08 00 E7 1C 80 11 00 00 00 00 00 00 7D [06:49:50]Write i2c OK [06:49:50]MH_I2C_Read... [06:49:50]OFD Sender: No OFD packet to send [06:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:50]Read from MH i2c: E2 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 17 00 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 17 00 E7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [06:49: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:49:50]wFMCommunicate OK [06:49:50]requested_item fd.num is exist - process it [06:49:50]SAM_PROTO_GetFieldsCounters [06:49:50]wFMCommunicate request_size=4 [06:49:50]MH_SAM_APDU [06:49:50]CAPDU: 80 13 00 00 [06:49:50]Write to MH i2c: E2 08 00 E8 1C 80 13 00 00 00 00 00 00 80 [06:49:50]Write i2c OK [06:49:50]MH_I2C_Read... [06:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:50]Read from MH i2c: E2 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 62 00 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 62 00 E8 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 76 06 01 00 0E 04 04 00 64 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 A0 [06:49: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 76 06 01 00 0E 04 04 00 64 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:49:50]wFMCommunicate OK [06:49:50]SAM_PROTO_GetFieldsCounters done [06:49:50]requested_item shift.num is exist - process it [06:49:50]requested_item shift.opened is exist - process it [06:49:50]req_shift_opened [06:49:50]FM_GetShiftState [06:49:50]SAM_PROTO_GetShiftState [06:49:50]wFMCommunicate request_size=4 [06:49:50]MH_SAM_APDU [06:49:50]CAPDU: 80 13 01 00 [06:49:50]Write to MH i2c: E2 08 00 E9 1C 80 13 01 00 00 00 00 00 82 [06:49:50]Write i2c OK [06:49:50]MH_I2C_Read... [06:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:50]Read from MH i2c: E2 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 0E 00 [06:49:50]MH_I2C_Read... [06:49:50]Read from MH i2c: E2 0E 00 E9 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2D [06:49:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [06:49:50]wFMCommunicate OK [06:49:50]SAM_PROTO_GetShiftState done [06:49:50]FM_GetShiftState done [06:49:50]req_shift_opened done [06:49:50]requested_item shift.open_date is exist - process it [06:49:50]req_shift_open_date [06:49:50]req_shift_open_date done [06:49:50]produce_requested_data done [06:49:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67190,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [06:49:50]process_action_free print_text [06:49:50]json_value_free [06:49:50]json_value_free done [06:49:50]process_json_proto returns [06:49:50]Send response to host [06:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67190,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [06:49:50]free response buf [06:49:50]execute_script done [06:49:50]execute_script returns [06:49:50]free content buf [06:49:50]Sock 9.Close socket [06:49:50]Sock 9.Thread stoped [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]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:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]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:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:23]accept exits with 7 [07:10:23]New connection [07:10:23]New thread 3066588516 created [07:10:23]Thread 3066731876 joined [07:10:23]Waiting for new connection... [07:10:23] Sock 7.Parse request [07:10:23]Sock 7.Check first char [07:10:23]Sock 7.First char is OK [07:10:23]request: POST /json_proto HTTP/1.0 [07:10:23]Method: POST [07:10:23]URL: /json_proto [07:10:23]Method is POST - this is cgi request [07:10:23]url: /json_proto [07:10:23]query_string will be loaded in cgi processing [07:10:23]execute_cgi json_proto POST (null) [07:10:23]execute_cgi path=json_proto method=POST [07:10:23]POST find Content-Length [07:10:23]Host: 172.17.41.195:8080 [07:10:23]Content-Length: 677 [07:10:23]Content-Type: application/json [07:10:23] [07:10:23]POST finish read [07:10:23]Found Content-Length = 677 [07:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507105", "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" ] } } [07:10:23]execute_script... [07:10: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)507105", "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" ] } } [07:10:23]POST & json_proto [07:10:23]process_json_proto [07:10:23]json parsed OK: [07:10:23]protocol is kg_v1.0 [07:10:23]action value=close_receipt [07:10:23]process_action close_receipt [07:10:23]cmd_close_receipt [07:10:23]MH_GetDate [07:10:23]Write to MH i2c: F0 00 00 EA 1C F5 [07:10:23]Write i2c OK [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: F0 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: F0 09 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: F0 09 00 EA 1C 00 E2 5F 44 66 FC 21 6F 64 D9 [07:10:23]GetLastDocTimeStamp 1715755755 [07:10:23]current date 1715757026 [07:10:23]FM_GetShiftState [07:10:23]SAM_PROTO_GetShiftState [07:10:23]wFMCommunicate request_size=4 [07:10:23]MH_SAM_APDU [07:10:23]CAPDU: 80 13 01 00 [07:10:23]Write to MH i2c: E2 08 00 EB 1C 80 13 01 00 00 00 00 00 84 [07:10:23]Write i2c OK [07:10:23]MH_I2C_Read... [07:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:23]Read from MH i2c: E2 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 0E 00 [07:10:23]MH_I2C_Read... [07:10:23]Read from MH i2c: E2 0E 00 EB 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2F [07:10:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:10:23]wFMCommunicate OK [07:10:23]SAM_PROTO_GetShiftState done [07:10:23]FM_GetShiftState done [07:10:23]opened in 1715732471 [07:10:23]opened+sec_in_day 1715818871 [07:10:23]quantity*price = 50033 [07:10:23]sum+1 = 50034 [07:10: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 СНО: Общий режим Чек 9 15.05.2024 07:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67191 ФПД: 215809279450516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67191&fm=215809279450516&tin=02508201610067®Number=0000000000091845&sum=50000 [07:10:24]StoreToDocumentArchive [07:10:24]shift 356 fd 67191 [07:10:24]save to /storage/0356/doc_00067191 [07:10:24]save last doc name /storage/0356/doc_00067191 to /storage/kkm_last_doc_name [07:10:24]save OK [07:10:24]Clear old archive folders... [07:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:24]tlvbuf is 00330850 [07:10:24]SAM_PROTO_ClearQueue [07:10:24]wFMCommunicate request_size=4 [07:10:24]MH_SAM_APDU [07:10:24]CAPDU: 80 09 00 00 [07:10:24]Write to MH i2c: E2 08 00 F8 1C 80 09 00 00 00 00 00 00 86 [07:10:24]Write i2c OK [07:10:24]MH_I2C_Read... [07:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:24]Read from MH i2c: E2 [07:10:24]MH_I2C_Read... [07:10:24]Read from MH i2c: E2 03 00 [07:10:24]MH_I2C_Read... [07:10:24]Read from MH i2c: E2 03 00 F8 1C 00 90 00 88 [07:10:24]RAPDU: 90 00 [07:10:24]wFMCommunicate OK [07:10:24]SAM_PROTO_ClearQueue done [07:10:24]KKMCreateOFDPacket [07:10:24]OFDProtocolAddRootSTLVToBuf [07:10:24]FM_MakeSignedData [07:10:24]FM_MakeSignedData [07:10:24]SAM_PROTO_SignData [07:10:24]wFMCommunicate request_size=4 [07:10:24]MH_SAM_APDU [07:10:24]CAPDU: 80 0D 01 02 [07:10:24]Write to MH i2c: E2 08 00 F9 1C 80 0D 01 02 00 00 00 00 8E [07:10:24]Write i2c OK [07:10:24]MH_I2C_Read... [07:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:24]Read from MH i2c: E2 [07:10:24]MH_I2C_Read... [07:10:24]Read from MH i2c: E2 03 00 [07:10:24]MH_I2C_Read... [07:10:24]Read from MH i2c: E2 03 00 F9 1C 00 90 00 89 [07:10:24]RAPDU: 90 00 [07:10:24]wFMCommunicate OK [07:10:24]wFMCommunicate request_size=255 [07:10:24]MH_SAM_APDU [07:10: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 09 00 00 00 F4 03 04 00 E2 5F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 06 01 00 35 04 06 00 C4 [07:10:24]Write to MH i2c: E2 02 01 FA 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 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 09 00 00 00 F4 03 04 00 E2 5F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 06 01 00 35 04 06 00 C4 00 00 B4 [07:10:24]Write i2c OK [07:10:24]MH_I2C_Read... [07:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:25]Read from MH i2c: E2 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 03 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 03 00 FA 1C 00 90 00 8A [07:10:25]RAPDU: 90 00 [07:10:25]wFMCommunicate OK [07:10:25]wFMCommunicate request_size=10 [07:10:25]MH_SAM_APDU [07:10:25]CAPDU: 80 0D 02 02 05 47 03 70 DD 94 [07:10:25]Write to MH i2c: E2 0D 00 FB 1C 80 0D 02 02 05 00 47 03 70 DD 94 00 00 C6 [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:25]Read from MH i2c: E2 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 03 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [07:10:25]RAPDU: 90 00 [07:10:25]wFMCommunicate OK [07:10:25]wFMCommunicate request_size=4 [07:10:25]MH_SAM_APDU [07:10:25]CAPDU: 80 0D 03 02 [07:10:25]Write to MH i2c: E2 08 00 FC 1C 80 0D 03 02 00 00 00 00 93 [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:25]Read from MH i2c: E2 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 0B 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 0B 00 FC 1C 00 D7 FD 28 85 C2 12 58 F1 90 00 32 [07:10:25]RAPDU: D7 FD 28 85 C2 12 58 F1 90 00 [07:10:25]wFMCommunicate OK [07:10:25]SAM_PROTO_SignData done [07:10:25]FM_MakeSignedData done [07:10:25]CreateOFDProtocolMessage [07:10:25]wFMCommunicate request_size=4 [07:10:25]MH_SAM_APDU [07:10:25]CAPDU: 80 11 00 00 [07:10:25]Write to MH i2c: E2 08 00 FD 1C 80 11 00 00 00 00 00 00 93 [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:25]Read from MH i2c: E2 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 17 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 17 00 FD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [07:10: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:10:25]wFMCommunicate OK [07:10:25]CreateOFDProtocolMessage done [07:10:25]OFDSenderStorePacket 67191 [07:10:25]StoreOFDPacket docnum=67191 [07:10: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 75 BB 07 01 CE 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 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 09 00 00 00 F4 03 04 00 E2 5F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 06 01 00 35 04 06 00 C4 47 03 70 DD 94 D7 FD 28 85 C2 12 58 F1 [07:10:25]CheckFolder [07:10:25]dirname=/storage/ofd_packets [07:10:25]CheckFolder done [07:10:25]ProducePacketName [07:10:25]name=ofd_packets/00067191 [07:10:25]NVStorageSaveData ofd_packets/00067191 [07:10:25]File name is /storage/ofd_packets/00067191 [07:10:25]Write 301 bytes [07:10:25]NVStorageSaveData done [07:10:25]OFDSenderStorePacket done [07:10:25]KKMCreateOFDPacket done [07:10:25]NVStorageSaveData kkm_last_timestamp [07:10:25]File name is /storage/kkm_last_timestamp [07:10:25]Write 4 bytes [07:10:25]NVStorageSaveData done [07:10:25]ExternCall_PrintAddStr [07:10:25]wPrintStart [07:10:25]Write to MH i2c: 01 00 00 FE 1C 1A [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: 01 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: 01 07 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: 01 07 00 FE 1C 00 00 00 00 00 FF 0F 2F [07:10:25]RasterBufferAndPrint [07:10:25]line Счет N : (1)507105 [07:10:25]line ИНН: 02508201610067 [07:10:25]line Контрольно-Кассовый Чек [07:10:25]line ПРОДАЖА [07:10:25]line ТРК (МРК, ГНК) : 43 [07:10:25]line Товар: 2710124130 [07:10:25]line Аи-92-К-5 [07:10:25]line 7.490 * 66.80 [07:10:25]line = 500.33 [07:10:25]line НДС 12% НСП 1% [07:10:25]line > о реализуемом товаре [07:10:25]line ОКРУГЛЕНИЕ: -0.33 [07:10:25]line ИТОГО: 500.00 [07:10:25]line Внесено: 500.00 [07:10:25]line СДАЧА: 0.00 [07:10:25]line НСП 1% : 4.43 [07:10:25]line НДС 12% : 53.13 [07:10:25]line Наличными: 500.00 [07:10:25]line Безнал.: 0.00 [07:10:25]line Место: АЗС № 91 "Партнер Нефть" [07:10:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:10:25]line СНО: Общий режим [07:10:25]line Чек 9 15.05.2024 07:10 [07:10:25]line Смена: 356 ФФД: 1.0 [07:10:25]line ЗНМ: 0300000119 [07:10:25]line РНМ: 0000000000091845 [07:10:25]line Версия ККМ: 001 [07:10:25]line ФМ: 0000000000871829 [07:10:25]line ФД: 67191 [07:10:25]line ФПД: 215809279450516 [07:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67191&fm=215809279450516&tin=02508201610067®Number=0000000000091845&sum=50000 [07:10:25]OFD Sender: Processing packet 67191 [packets to send 35, broken 34] [07:10:25]ProducePacketName [07:10:25]name=ofd_packets/00067191 [07:10:25]OFD Sender: To server: pG, [07:10:25]CommunicateWithHost lk.salyk.kg:30040 [07:10:25]ConnectInit lk.salyk.kg [07:10:25]written 0, free lines is 4095 [07:10:25]Connected sock=10 [07:10: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 75 BB 07 01 CE 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 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 09 00 00 00 F4 03 04 00 E2 5F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 77 06 01 00 35 04 06 00 C4 47 03 70 DD 94 D7 FD 28 85 C2 12 58 F1 [07:10: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 B4 37 47 00 1F 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 77 06 01 00 F4 03 04 00 C0 07 44 66 B6 04 01 00 00 93 3D 90 A2 EC 07 EE 1B [07:10:25]CommunicateWithHost err = 0 [07:10:25]CheckOFDResponse [07:10:25]1017 (14) - 77093643461234 [07:10:25]1041 (16) - 0000000000871829 [07:10:25]1040 (4) - 67191 [07:10:25]1012 (4) - 15.05.2024 00:54 [07:10:25]1206 (1) - 0 [07:10:25]OFD Sender: Remove packet 67191 [07:10:25]ProducePacketName [07:10:25]name=ofd_packets/00067191 [07:10:25]NVStorageDeleteData [07:10:26]Write to MH i2c: 01 00 00 28 1D 45 [07:10:26]Write i2c OK [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: 01 [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: 01 07 00 [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: 01 07 00 28 1D 00 00 00 00 00 C7 0C 1F [07:10:26]RasterBufferAndPrint [07:10:26]line [07:10:26]line [07:10:26]line [07:10:26]line [07:10:26]line [07:10:26]written 0, free lines is 3278 [07:10:26]MH_Cut [07:10:26]Write to MH i2c: D1 01 00 2F 1D 01 1E [07:10:26]Write i2c OK [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: D1 [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: D1 01 00 [07:10:26]MH_I2C_Read... [07:10:26]Read from MH i2c: D1 01 00 2F 1D 00 1D [07:10:26]Write to MH i2c: 01 00 00 30 1D 4D [07:10:26]Write i2c OK [07:10:26]MH_I2C_Read... [07:10:26]OFD Sender: No OFD packet to send [07:10:26]*** Cut start [07:10:26]*** Purtial cut [07:10:26]*** Stage 1: CUTSNS_PIN = 1 [07:10:27]Read from MH i2c: 01 [07:10:27]MH_I2C_Read... [07:10:27]*** Stop cut motor [07:10:27]*** Cut end [07:10:27]Read from MH i2c: 01 07 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: 01 07 00 30 1D 00 00 00 00 00 FF 0F 62 [07:10:27]process_action close_receipt done [07:10:27]requested_data is exist [07:10:27]produce_requested_data [07:10:27]requested_item fm.sn is exist - process it [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 11 00 00 [07:10:27]Write to MH i2c: E2 08 00 31 1D 80 11 00 00 00 00 00 00 C8 [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 17 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 17 00 31 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [07: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 [07:10:27]wFMCommunicate OK [07:10:27]requested_item fd.num is exist - process it [07:10:27]SAM_PROTO_GetFieldsCounters [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 13 00 00 [07:10:27]Write to MH i2c: E2 08 00 32 1D 80 13 00 00 00 00 00 00 CB [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 62 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 62 00 32 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 77 06 01 00 0E 04 04 00 64 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 EF [07:10: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 77 06 01 00 0E 04 04 00 64 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 [07:10:27]wFMCommunicate OK [07:10:27]SAM_PROTO_GetFieldsCounters done [07:10:27]requested_item shift.num is exist - process it [07:10:27]requested_item shift.opened is exist - process it [07:10:27]req_shift_opened [07:10:27]FM_GetShiftState [07:10:27]SAM_PROTO_GetShiftState [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 13 01 00 [07:10:27]Write to MH i2c: E2 08 00 33 1D 80 13 01 00 00 00 00 00 CD [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 0E 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 0E 00 33 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 78 [07:10:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:10:27]wFMCommunicate OK [07:10:27]SAM_PROTO_GetShiftState done [07:10:27]FM_GetShiftState done [07:10:27]req_shift_opened done [07:10:27]requested_item shift.open_date is exist - process it [07:10:27]req_shift_open_date [07:10:27]req_shift_open_date done [07:10:27]produce_requested_data done [07:10:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67191,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:10:27]process_action_free close_receipt [07:10:27]json_value_free [07:10:27]json_value_free done [07:10:27]process_json_proto returns [07:10:27]Send response to host [07:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67191,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:10:27]free response buf [07:10:27]execute_script done [07:10:27]execute_script returns [07:10:27]free content buf [07:10:27]Sock 7.Close socket [07:10:27]Sock 7.Thread stoped [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:33]accept exits with 9 [07:14:33]New connection [07:14:33]New thread 3066731876 created [07:14:33]Thread 3066588516 joined [07:14:33]Waiting for new connection... [07:14:33] Sock 9.Parse request [07:14:33]Sock 9.Check first char [07:14:33]Sock 9.First char is OK [07:14:33]request: POST /json_proto HTTP/1.0 [07:14:33]Method: POST [07:14:33]URL: /json_proto [07:14:33]Method is POST - this is cgi request [07:14:33]url: /json_proto [07:14:33]query_string will be loaded in cgi processing [07:14:33]execute_cgi json_proto POST (null) [07:14:33]execute_cgi path=json_proto method=POST [07:14:33]POST find Content-Length [07:14:33]Host: 172.17.41.195:8080 [07:14:33]Content-Length: 677 [07:14:33]Content-Type: application/json [07:14:33] [07:14:33]POST finish read [07:14:33]Found Content-Length = 677 [07:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507106", "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.240, "sum" : 550.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:33]execute_script... [07:14: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)507106", "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.240, "sum" : 550.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:33]POST & json_proto [07:14:33]process_json_proto [07:14:33]json parsed OK: [07:14:33]protocol is kg_v1.0 [07:14:33]action value=close_receipt [07:14:33]process_action close_receipt [07:14:33]cmd_close_receipt [07:14:33]MH_GetDate [07:14:33]Write to MH i2c: F0 00 00 34 1D 40 [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 09 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: F0 09 00 34 1D 00 DC 60 44 66 FC 21 6F 64 1F [07:14:33]GetLastDocTimeStamp 1715757026 [07:14:33]current date 1715757276 [07:14:33]FM_GetShiftState [07:14:33]SAM_PROTO_GetShiftState [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 13 01 00 [07:14:33]Write to MH i2c: E2 08 00 35 1D 80 13 01 00 00 00 00 00 CF [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:33]Read from MH i2c: E2 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 35 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7A [07:14:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:14:33]wFMCommunicate OK [07:14:33]SAM_PROTO_GetShiftState done [07:14:33]FM_GetShiftState done [07:14:33]opened in 1715732471 [07:14:33]opened+sec_in_day 1715818871 [07:14:33]quantity*price = 55043 [07:14:33]sum+1 = 55044 [07:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 10 15.05.2024 07:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67192 ФПД: 165758670137408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071436&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67192&fm=165758670137408&tin=02508201610067®Number=0000000000091845&sum=55000 [07:14:34]StoreToDocumentArchive [07:14:34]shift 356 fd 67192 [07:14:34]save to /storage/0356/doc_00067192 [07:14:34]save last doc name /storage/0356/doc_00067192 to /storage/kkm_last_doc_name [07:14:34]save OK [07:14:34]Clear old archive folders... [07:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:34]tlvbuf is 0033FB30 [07:14:34]SAM_PROTO_ClearQueue [07:14:34]wFMCommunicate request_size=4 [07:14:34]MH_SAM_APDU [07:14:34]CAPDU: 80 09 00 00 [07:14:34]Write to MH i2c: E2 08 00 42 1D 80 09 00 00 00 00 00 00 D1 [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 03 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 03 00 42 1D 00 90 00 D3 [07:14:34]RAPDU: 90 00 [07:14:34]wFMCommunicate OK [07:14:34]SAM_PROTO_ClearQueue done [07:14:34]KKMCreateOFDPacket [07:14:34]OFDProtocolAddRootSTLVToBuf [07:14:34]FM_MakeSignedData [07:14:34]FM_MakeSignedData [07:14:34]SAM_PROTO_SignData [07:14:34]wFMCommunicate request_size=4 [07:14:34]MH_SAM_APDU [07:14:34]CAPDU: 80 0D 01 02 [07:14:34]Write to MH i2c: E2 08 00 43 1D 80 0D 01 02 00 00 00 00 D9 [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:34]Read from MH i2c: E2 03 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 03 00 43 1D 00 90 00 D4 [07:14:34]RAPDU: 90 00 [07:14:34]wFMCommunicate OK [07:14:34]wFMCommunicate request_size=255 [07:14:34]MH_SAM_APDU [07:14: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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 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 DC 60 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 06 01 00 35 04 06 00 96 [07:14:34]Write to MH i2c: E2 02 01 44 1D 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 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 DC 60 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 06 01 00 35 04 06 00 96 00 00 DD [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 03 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [07:14:34]RAPDU: 90 00 [07:14:34]wFMCommunicate OK [07:14:34]wFMCommunicate request_size=10 [07:14:34]MH_SAM_APDU [07:14:34]CAPDU: 80 0D 02 02 05 C1 B2 A6 E8 40 [07:14:34]Write to MH i2c: E2 0D 00 45 1D 80 0D 02 02 05 00 C1 B2 A6 E8 40 00 00 27 [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [07:14:35]RAPDU: 90 00 [07:14:35]wFMCommunicate OK [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 0D 03 02 [07:14:35]Write to MH i2c: E2 08 00 46 1D 80 0D 03 02 00 00 00 00 DE [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 0B 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 0B 00 46 1D 00 24 4A 8E B6 65 97 5D 8B 90 00 75 [07:14:35]RAPDU: 24 4A 8E B6 65 97 5D 8B 90 00 [07:14:35]wFMCommunicate OK [07:14:35]SAM_PROTO_SignData done [07:14:35]FM_MakeSignedData done [07:14:35]CreateOFDProtocolMessage [07:14:35]wFMCommunicate request_size=4 [07:14:35]MH_SAM_APDU [07:14:35]CAPDU: 80 11 00 00 [07:14:35]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:35]Read from MH i2c: E2 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: E2 17 00 [07:14:35]MH_I2C_Read... [07:14:35]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 [07:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:14:35]wFMCommunicate OK [07:14:35]CreateOFDProtocolMessage done [07:14:35]OFDSenderStorePacket 67192 [07:14:35]StoreOFDPacket docnum=67192 [07:14: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 1C 99 07 01 2F 9F 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 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 DC 60 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 06 01 00 35 04 06 00 96 C1 B2 A6 E8 40 24 4A 8E B6 65 97 5D 8B [07:14:35]CheckFolder [07:14:35]dirname=/storage/ofd_packets [07:14:35]CheckFolder done [07:14:35]ProducePacketName [07:14:35]name=ofd_packets/00067192 [07:14:35]NVStorageSaveData ofd_packets/00067192 [07:14:35]File name is /storage/ofd_packets/00067192 [07:14:35]Write 301 bytes [07:14:35]NVStorageSaveData done [07:14:35]OFDSenderStorePacket done [07:14:35]KKMCreateOFDPacket done [07:14:35]NVStorageSaveData kkm_last_timestamp [07:14:35]File name is /storage/kkm_last_timestamp [07:14:35]Write 4 bytes [07:14:35]NVStorageSaveData done [07:14:35]ExternCall_PrintAddStr [07:14:35]wPrintStart [07:14:35]Write to MH i2c: 01 00 00 48 1D 65 [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 48 1D 00 00 00 00 00 FF 0F 7A [07:14:35]RasterBufferAndPrint [07:14:35]line Счет N : (1)507106 [07:14:35]line ИНН: 02508201610067 [07:14:35]line Контрольно-Кассовый Чек [07:14:35]line ПРОДАЖА [07:14:35]line ТРК (МРК, ГНК) : 23 [07:14:35]line Товар: 2710124130 [07:14:35]line Аи-92-К-5 [07:14:35]line 8.240 * 66.80 [07:14:35]line = 550.43 [07:14:35]line НДС 12% НСП 1% [07:14:35]line > о реализуемом товаре [07:14:35]line ОКРУГЛЕНИЕ: -0.43 [07:14:35]line ИТОГО: 550.00 [07:14:35]line Внесено: 550.00 [07:14:35]line СДАЧА: 0.00 [07:14:35]line НСП 1% : 4.87 [07:14:35]line НДС 12% : 58.45 [07:14:35]line Наличными: 550.00 [07:14:35]line Безнал.: 0.00 [07:14:35]line Место: АЗС № 91 "Партнер Нефть" [07:14:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:14:35]line СНО: Общий режим [07:14:35]line Чек 10 15.05.2024 07:14 [07:14:35]line Смена: 356 ФФД: 1.0 [07:14:35]line ЗНМ: 0300000119 [07:14:35]line РНМ: 0000000000091845 [07:14:35]line Версия ККМ: 001 [07:14:35]line ФМ: 0000000000871829 [07:14:35]line ФД: 67192 [07:14:35]line ФПД: 165758670137408 [07:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071436&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67192&fm=165758670137408&tin=02508201610067®Number=0000000000091845&sum=55000 [07:14:35]OFD Sender: Processing packet 67192 [packets to send 35, broken 34] [07:14:35]ProducePacketName [07:14:35]name=ofd_packets/00067192 [07:14:35]OFD Sender: To server: pG, [07:14:35]CommunicateWithHost lk.salyk.kg:30040 [07:14:35]ConnectInit lk.salyk.kg [07:14:35]written 0, free lines is 4095 [07:14:35]Connected sock=10 [07:14: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 1C 99 07 01 2F 9F 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 30 20 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 03 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 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 DC 60 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 06 01 00 35 04 06 00 96 C1 B2 A6 E8 40 24 4A 8E B6 65 97 5D 8B [07:14: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 7B C4 47 00 1C A1 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 78 06 01 00 F4 03 04 00 BA 08 44 66 B6 04 01 00 00 9F B1 09 2D 16 F0 72 52 [07:14:35]CommunicateWithHost err = 0 [07:14:35]CheckOFDResponse [07:14:35]1017 (14) - 77093643461234 [07:14:35]1041 (16) - 0000000000871829 [07:14:35]1040 (4) - 67192 [07:14:35]1012 (4) - 15.05.2024 00:58 [07:14:35]1206 (1) - 0 [07:14:35]OFD Sender: Remove packet 67192 [07:14:35]ProducePacketName [07:14:35]name=ofd_packets/00067192 [07:14:35]NVStorageDeleteData [07:14:35]Write to MH i2c: 01 00 00 72 1D 8F [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: 01 07 00 72 1D 00 00 00 00 00 BE 0C 60 [07:14:35]RasterBufferAndPrint [07:14:35]line [07:14:35]line [07:14:35]line [07:14:35]line [07:14:35]line [07:14:35]written 0, free lines is 3269 [07:14:35]MH_Cut [07:14:35]Write to MH i2c: D1 01 00 79 1D 01 68 [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: D1 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: D1 01 00 [07:14:35]MH_I2C_Read... [07:14:35]Read from MH i2c: D1 01 00 79 1D 00 67 [07:14:35]Write to MH i2c: 01 00 00 7A 1D 97 [07:14:35]Write i2c OK [07:14:35]MH_I2C_Read... [07:14:36]OFD Sender: No OFD packet to send [07:14:36]*** Cut start [07:14:36]*** Purtial cut [07:14:36]*** CUTSNS_PIN = 0 [07:14:36]*** Stage 1: CUTSNS_PIN = 1 [07:14:38]Read from MH i2c: 01 [07:14:38]MH_I2C_Read... [07:14:38]*** Stop cut motor [07:14:38]*** Cut end [07:14:38]Read from MH i2c: 01 07 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: 01 07 00 7A 1D 00 00 00 00 00 FF 0F AC [07:14:38]process_action close_receipt done [07:14:38]requested_data is exist [07:14:38]produce_requested_data [07:14:38]requested_item fm.sn is exist - process it [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 11 00 00 [07:14:38]Write to MH i2c: E2 08 00 7B 1D 80 11 00 00 00 00 00 00 12 [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 17 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 17 00 7B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [07:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:14:38]wFMCommunicate OK [07:14:38]requested_item fd.num is exist - process it [07:14:38]SAM_PROTO_GetFieldsCounters [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 13 00 00 [07:14:38]Write to MH i2c: E2 08 00 7C 1D 80 13 00 00 00 00 00 00 15 [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 62 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 62 00 7C 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 78 06 01 00 0E 04 04 00 64 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 3D [07:14: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 78 06 01 00 0E 04 04 00 64 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 [07:14:38]wFMCommunicate OK [07:14:38]SAM_PROTO_GetFieldsCounters done [07:14:38]requested_item shift.num is exist - process it [07:14:38]requested_item shift.opened is exist - process it [07:14:38]req_shift_opened [07:14:38]FM_GetShiftState [07:14:38]SAM_PROTO_GetShiftState [07:14:38]wFMCommunicate request_size=4 [07:14:38]MH_SAM_APDU [07:14:38]CAPDU: 80 13 01 00 [07:14:38]Write to MH i2c: E2 08 00 7D 1D 80 13 01 00 00 00 00 00 17 [07:14:38]Write i2c OK [07:14:38]MH_I2C_Read... [07:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:38]Read from MH i2c: E2 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 0E 00 [07:14:38]MH_I2C_Read... [07:14:38]Read from MH i2c: E2 0E 00 7D 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C2 [07:14:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:14:38]wFMCommunicate OK [07:14:38]SAM_PROTO_GetShiftState done [07:14:38]FM_GetShiftState done [07:14:38]req_shift_opened done [07:14:38]requested_item shift.open_date is exist - process it [07:14:38]req_shift_open_date [07:14:38]req_shift_open_date done [07:14:38]produce_requested_data done [07:14:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67192,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:14:38]process_action_free close_receipt [07:14:38]json_value_free [07:14:38]json_value_free done [07:14:38]process_json_proto returns [07:14:38]Send response to host [07:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67192,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:14:38]free response buf [07:14:38]execute_script done [07:14:38]execute_script returns [07:14:38]free content buf [07:14:38]Sock 9.Close socket [07:14:38]Sock 9.Thread stoped [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]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:24]accept exits with 7 [07:19:24]New connection [07:19:24]New thread 3066588516 created [07:19:24]Thread 3066731876 joined [07:19:24]Waiting for new connection... [07:19:24] Sock 7.Parse request [07:19:24]Sock 7.Check first char [07:19:24]Sock 7.First char is OK [07:19:24]request: POST /json_proto HTTP/1.0 [07:19:24]Method: POST [07:19:24]URL: /json_proto [07:19:24]Method is POST - this is cgi request [07:19:24]url: /json_proto [07:19:24]query_string will be loaded in cgi processing [07:19:24]execute_cgi json_proto POST (null) [07:19:24]execute_cgi path=json_proto method=POST [07:19:24]POST find Content-Length [07:19:24]Host: 172.17.41.195:8080 [07:19:24]Content-Length: 682 [07:19:24]Content-Type: application/json [07:19:24] [07:19:24]POST finish read [07:19:24]Found Content-Length = 682 [07:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507107", "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 }]} ], "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" ] } } [07:19:24]execute_script... [07:19: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)507107", "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 }]} ], "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" ] } } [07:19:24]POST & json_proto [07:19:24]process_json_proto [07:19:24]json parsed OK: [07:19:24]protocol is kg_v1.0 [07:19:24]action value=close_receipt [07:19:24]process_action close_receipt [07:19:24]cmd_close_receipt [07:19:24]MH_GetDate [07:19:24]Write to MH i2c: F0 00 00 7E 1D 8A [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: F0 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: F0 09 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: F0 09 00 7E 1D 00 FF 61 44 66 FC 21 6F 64 8D [07:19:24]GetLastDocTimeStamp 1715757276 [07:19:24]current date 1715757567 [07:19:24]FM_GetShiftState [07:19:24]SAM_PROTO_GetShiftState [07:19:24]wFMCommunicate request_size=4 [07:19:24]MH_SAM_APDU [07:19:24]CAPDU: 80 13 01 00 [07:19:24]Write to MH i2c: E2 08 00 7F 1D 80 13 01 00 00 00 00 00 19 [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:24]Read from MH i2c: E2 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 0E 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 0E 00 7F 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C4 [07:19:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:19:24]wFMCommunicate OK [07:19:24]SAM_PROTO_GetShiftState done [07:19:24]FM_GetShiftState done [07:19:24]opened in 1715732471 [07:19:24]opened+sec_in_day 1715818871 [07:19:24]quantity*price = 100066 [07:19:24]sum+1 = 100067 [07:19:24]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 СНО: Общий режим Чек 11 15.05.2024 07:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67193 ФПД: 250663752445278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67193&fm=250663752445278&tin=02508201610067®Number=0000000000091845&sum=100000 [07:19:25]StoreToDocumentArchive [07:19:25]shift 356 fd 67193 [07:19:25]save to /storage/0356/doc_00067193 [07:19:25]save last doc name /storage/0356/doc_00067193 to /storage/kkm_last_doc_name [07:19:25]save OK [07:19:25]Clear old archive folders... [07:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:25]tlvbuf is 00341C80 [07:19:25]SAM_PROTO_ClearQueue [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 09 00 00 [07:19:25]Write to MH i2c: E2 08 00 8C 1D 80 09 00 00 00 00 00 00 1B [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [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 8C 1D 00 90 00 1D [07:19:25]RAPDU: 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_ClearQueue done [07:19:25]KKMCreateOFDPacket [07:19:25]OFDProtocolAddRootSTLVToBuf [07:19:25]FM_MakeSignedData [07:19:25]FM_MakeSignedData [07:19:25]SAM_PROTO_SignData [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 0D 01 02 [07:19:25]Write to MH i2c: E2 08 00 8D 1D 80 0D 01 02 00 00 00 00 23 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:26]Read from MH i2c: E2 03 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [07:19:26]RAPDU: 90 00 [07:19:26]wFMCommunicate OK [07:19:26]wFMCommunicate request_size=255 [07:19:26]MH_SAM_APDU [07:19:26]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 0B 00 00 00 F4 03 04 00 FF 61 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 06 01 00 35 04 06 00 E3 [07:19:26]Write to MH i2c: E2 02 01 8E 1D 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 0B 00 00 00 F4 03 04 00 FF 61 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 06 01 00 35 04 06 00 E3 00 00 D9 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:26]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 03 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [07:19:26]RAPDU: 90 00 [07:19:26]wFMCommunicate OK [07:19:26]wFMCommunicate request_size=10 [07:19:26]MH_SAM_APDU [07:19:26]CAPDU: 80 0D 02 02 05 FA 33 EC 2D 5E [07:19:26]Write to MH i2c: E2 0D 00 8F 1D 80 0D 02 02 05 00 FA 33 EC 2D 5E 00 00 D4 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:26]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 03 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [07:19:26]RAPDU: 90 00 [07:19:26]wFMCommunicate OK [07:19:26]wFMCommunicate request_size=4 [07:19:26]MH_SAM_APDU [07:19:26]CAPDU: 80 0D 03 02 [07:19:26]Write to MH i2c: E2 08 00 90 1D 80 0D 03 02 00 00 00 00 28 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:26]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 0B 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 0B 00 90 1D 00 91 F8 0D 2B 9A 49 90 AB 90 00 08 [07:19:26]RAPDU: 91 F8 0D 2B 9A 49 90 AB 90 00 [07:19:26]wFMCommunicate OK [07:19:26]SAM_PROTO_SignData done [07:19:26]FM_MakeSignedData done [07:19:26]CreateOFDProtocolMessage [07:19:26]wFMCommunicate request_size=4 [07:19:26]MH_SAM_APDU [07:19:26]CAPDU: 80 11 00 00 [07:19:26]Write to MH i2c: E2 08 00 91 1D 80 11 00 00 00 00 00 00 28 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:26]Read from MH i2c: E2 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 17 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: E2 17 00 91 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [07:19:26]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:26]wFMCommunicate OK [07:19:26]CreateOFDProtocolMessage done [07:19:26]OFDSenderStorePacket 67193 [07:19:26]StoreOFDPacket docnum=67193 [07:19: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 D9 42 07 01 7A 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 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 0B 00 00 00 F4 03 04 00 FF 61 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 06 01 00 35 04 06 00 E3 FA 33 EC 2D 5E 91 F8 0D 2B 9A 49 90 AB [07:19:26]CheckFolder [07:19:26]dirname=/storage/ofd_packets [07:19:26]CheckFolder done [07:19:26]ProducePacketName [07:19:26]name=ofd_packets/00067193 [07:19:26]NVStorageSaveData ofd_packets/00067193 [07:19:26]File name is /storage/ofd_packets/00067193 [07:19:26]Write 301 bytes [07:19:26]NVStorageSaveData done [07:19:26]OFDSenderStorePacket done [07:19:26]KKMCreateOFDPacket done [07:19:26]NVStorageSaveData kkm_last_timestamp [07:19:26]File name is /storage/kkm_last_timestamp [07:19:26]Write 4 bytes [07:19:26]NVStorageSaveData done [07:19:26]ExternCall_PrintAddStr [07:19:26]wPrintStart [07:19:26]Write to MH i2c: 01 00 00 92 1D AF [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 92 1D 00 00 00 00 00 FF 0F C4 [07:19:26]RasterBufferAndPrint [07:19:26]line Счет N : (1)507107 [07:19:26]line ИНН: 02508201610067 [07:19:26]line Контрольно-Кассовый Чек [07:19:26]line ПРОДАЖА [07:19:26]line ТРК (МРК, ГНК) : 43 [07:19:26]line Товар: 2710124130 [07:19:26]line Аи-92-К-5 [07:19:26]line 14.980 * 66.80 [07:19:26]line = 1000.66 [07:19:26]line НДС 12% НСП 1% [07:19:26]line > о реализуемом товаре [07:19:26]line ОКРУГЛЕНИЕ: -0.66 [07:19:26]line ИТОГО: 1000.00 [07:19:26]line Внесено: 1000.00 [07:19:26]line СДАЧА: 0.00 [07:19:26]line НСП 1% : 8.85 [07:19:26]line НДС 12% : 106.26 [07:19:26]line Наличными: 1000.00 [07:19:26]line Безнал.: 0.00 [07:19:26]line Место: АЗС № 91 "Партнер Нефть" [07:19:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:19:26]line СНО: Общий режим [07:19:26]line Чек 11 15.05.2024 07:19 [07:19:26]line Смена: 356 ФФД: 1.0 [07:19:26]line ЗНМ: 0300000119 [07:19:26]line РНМ: 0000000000091845 [07:19:26]line Версия ККМ: 001 [07:19:26]line ФМ: 0000000000871829 [07:19:26]line ФД: 67193 [07:19:26]line ФПД: 250663752445278 [07:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T071927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67193&fm=250663752445278&tin=02508201610067®Number=0000000000091845&sum=100000 [07:19:26]written 0, free lines is 4095 [07:19:26]OFD Sender: Processing packet 67193 [packets to send 35, broken 34] [07:19:26]ProducePacketName [07:19:26]name=ofd_packets/00067193 [07:19:26]OFD Sender: To server: pG, [07:19:26]CommunicateWithHost lk.salyk.kg:30040 [07:19:26]ConnectInit lk.salyk.kg [07:19:26]Connected sock=9 [07:19: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 D9 42 07 01 7A 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 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 0B 00 00 00 F4 03 04 00 FF 61 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 06 01 00 35 04 06 00 E3 FA 33 EC 2D 5E 91 F8 0D 2B 9A 49 90 AB [07:19: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 59 EA 47 00 E3 90 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 79 06 01 00 F4 03 04 00 DD 09 44 66 B6 04 01 00 00 CA 4E 59 9C 53 17 83 A2 [07:19:27]CommunicateWithHost err = 0 [07:19:27]CheckOFDResponse [07:19:27]1017 (14) - 77093643461234 [07:19:27]1041 (16) - 0000000000871829 [07:19:27]1040 (4) - 67193 [07:19:27]1012 (4) - 15.05.2024 01:03 [07:19:27]1206 (1) - 0 [07:19:27]OFD Sender: Remove packet 67193 [07:19:27]ProducePacketName [07:19:27]name=ofd_packets/00067193 [07:19:27]NVStorageDeleteData [07:19:27]Write to MH i2c: 01 00 00 BC 1D D9 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: 01 [07:19:27]MH_I2C_Read... [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 BC 1D 00 00 00 00 00 C2 0C AE [07:19:27]RasterBufferAndPrint [07:19:27]line [07:19:27]line [07:19:27]line [07:19:27]line [07:19:27]line [07:19:27]written 0, free lines is 3272 [07:19:27]MH_Cut [07:19:27]Write to MH i2c: D1 01 00 C3 1D 01 B2 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: D1 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: D1 01 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: D1 01 00 C3 1D 00 B1 [07:19:27]Write to MH i2c: 01 00 00 C4 1D E1 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]OFD Sender: No OFD packet to send [07:19:28]*** Cut start [07:19:28]*** Purtial cut [07:19:28]*** Stage 1: CUTSNS_PIN = 1 [07:19:28]Read from MH i2c: 01 [07:19:28]MH_I2C_Read... [07:19:28]*** Stop cut motor [07:19:28]*** Cut end [07:19:28]Read from MH i2c: 01 07 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 FF 0F F6 [07:19:28]process_action close_receipt done [07:19:28]requested_data is exist [07:19:28]produce_requested_data [07:19:28]requested_item fm.sn is exist - process it [07:19:28]wFMCommunicate request_size=4 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 11 00 00 [07:19:28]Write to MH i2c: E2 08 00 C5 1D 80 11 00 00 00 00 00 00 5C [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:28]Read from MH i2c: E2 17 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 17 00 C5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [07:19:28]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:28]wFMCommunicate OK [07:19:28]requested_item fd.num is exist - process it [07:19:28]SAM_PROTO_GetFieldsCounters [07:19:28]wFMCommunicate request_size=4 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 13 00 00 [07:19:28]Write to MH i2c: E2 08 00 C6 1D 80 13 00 00 00 00 00 00 5F [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 62 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 62 00 C6 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 79 06 01 00 0E 04 04 00 64 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 8B [07:19:28]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 79 06 01 00 0E 04 04 00 64 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 [07:19:28]wFMCommunicate OK [07:19:28]SAM_PROTO_GetFieldsCounters done [07:19:28]requested_item shift.num is exist - process it [07:19:28]requested_item shift.opened is exist - process it [07:19:28]req_shift_opened [07:19:28]FM_GetShiftState [07:19:28]SAM_PROTO_GetShiftState [07:19:28]wFMCommunicate request_size=4 [07:19:28]MH_SAM_APDU [07:19:28]CAPDU: 80 13 01 00 [07:19:28]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [07:19:28]Write i2c OK [07:19:28]MH_I2C_Read... [07:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:28]Read from MH i2c: E2 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 0E 00 [07:19:28]MH_I2C_Read... [07:19:28]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0C [07:19:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:19:28]wFMCommunicate OK [07:19:28]SAM_PROTO_GetShiftState done [07:19:28]FM_GetShiftState done [07:19:28]req_shift_opened done [07:19:28]requested_item shift.open_date is exist - process it [07:19:28]req_shift_open_date [07:19:28]req_shift_open_date done [07:19:28]produce_requested_data done [07:19:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:19:28]process_action_free close_receipt [07:19:28]json_value_free [07:19:28]json_value_free done [07:19:28]process_json_proto returns [07:19:28]Send response to host [07:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:19:28]free response buf [07:19:28]execute_script done [07:19:28]execute_script returns [07:19:28]free content buf [07:19:28]Sock 7.Close socket [07:19:28]Sock 7.Thread stoped [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:38]accept exits with 10 [07:22:38]New connection [07:22:38]New thread 3066731876 created [07:22:38]Thread 3066588516 joined [07:22:38]Waiting for new connection... [07:22:38] Sock 10.Parse request [07:22:38]Sock 10.Check first char [07:22:38]Sock 10.First char is OK [07:22:38]request: POST /json_proto HTTP/1.0 [07:22:38]Method: POST [07:22:38]URL: /json_proto [07:22:38]Method is POST - this is cgi request [07:22:38]url: /json_proto [07:22:38]query_string will be loaded in cgi processing [07:22:38]execute_cgi json_proto POST (null) [07:22:38]execute_cgi path=json_proto method=POST [07:22:38]POST find Content-Length [07:22:38]Host: 172.17.41.195:8080 [07:22:38]Content-Length: 1209 [07:22:38]Content-Type: application/json [07:22:38] [07:22:38]POST finish read [07:22:38]Found Content-Length = 1209 [07:22:38]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)507108\u000A15.05.2024 07: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 22.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1643.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" ] } } [07:22:38]execute_script... [07:22:38]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)507108\u000A15.05.2024 07: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 22.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1643.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" ] } } [07:22:38]POST & json_proto [07:22:38]process_json_proto [07:22:38]json parsed OK: [07:22:38]protocol is kg_v1.0 [07:22:38]action value=print_text [07:22:38]process_action print_text [07:22:38]cmd_print_text [07:22:38]ExternCall_PrintAddStr [07:22:38]wPrintStart [07:22:38]Write to MH i2c: 01 00 00 C8 1D E5 [07:22:38]Write i2c OK [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 07 00 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 07 00 C8 1D 00 00 00 00 00 FF 0F FA [07:22:38]RasterBufferAndPrint [07:22:38]line *****ТОВАРНЫЙ ЧЕК***** [07:22:38]line АЗС-91 [07:22:38]line Партнер нефть [07:22:38]line 02508201610067 [07:22:38]line Кассир : Арстанбеков Н. [07:22:38]line Счет N : (1)507108 [07:22:38]line 15.05.2024 07:05 [07:22:38]line ПРОДАЖА [07:22:38]line ТРК (МРК, ГНК): 31 [07:22:38]line Вид ГСМ : 2710194210 [07:22:38]line ДТ-К-5 [07:22:38]line 22.000 x 74.70 [07:22:38]line ИТОГ: 1643.40 [07:22:38]line Тип оплаты: Талоны: Топливная Карта [07:22:38]line 02750 [07:22:38]line ______________________ [07:22:38]line (подпись) [07:22:38]written 0, free lines is 4095 [07:22:38]Write to MH i2c: 01 00 00 DC 1D F9 [07:22:38]Write i2c OK [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 07 00 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: 01 07 00 DC 1D 00 00 00 00 00 0E 0E 1C [07:22:38]RasterBufferAndPrint [07:22:38]line [07:22:38]line [07:22:38]line [07:22:38]line [07:22:38]line [07:22:38]written 0, free lines is 3600 [07:22:38]MH_Cut [07:22:38]Write to MH i2c: D1 01 00 E3 1D 01 D2 [07:22:38]Write i2c OK [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: D1 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: D1 01 00 [07:22:38]MH_I2C_Read... [07:22:38]Read from MH i2c: D1 01 00 E3 1D 00 D1 [07:22:38]Write to MH i2c: 01 00 00 E4 1D 01 [07:22:38]Write i2c OK [07:22:38]MH_I2C_Read... [07:22:39]*** Cut start [07:22:39]*** Purtial cut [07:22:39]*** CUTSNS_PIN = 0 [07:22:39]*** Stage 1: CUTSNS_PIN = 1 [07:22:41]Read from MH i2c: 01 [07:22:41]MH_I2C_Read... [07:22:41]*** Stop cut motor [07:22:41]*** Cut end [07:22:41]Read from MH i2c: 01 07 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: 01 07 00 E4 1D 00 00 00 00 00 FF 0F 16 [07:22:41]process_action print_text done [07:22:41]requested_data is exist [07:22:41]produce_requested_data [07:22:41]requested_item fm.sn is exist - process it [07:22:41]wFMCommunicate request_size=4 [07:22:41]MH_SAM_APDU [07:22:41]CAPDU: 80 11 00 00 [07:22:41]Write to MH i2c: E2 08 00 E5 1D 80 11 00 00 00 00 00 00 7C [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:41]Read from MH i2c: E2 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 17 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 17 00 E5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [07:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:22:41]wFMCommunicate OK [07:22:41]requested_item fd.num is exist - process it [07:22:41]SAM_PROTO_GetFieldsCounters [07:22:41]wFMCommunicate request_size=4 [07:22:41]MH_SAM_APDU [07:22:41]CAPDU: 80 13 00 00 [07:22:41]Write to MH i2c: E2 08 00 E6 1D 80 13 00 00 00 00 00 00 7F [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:41]Read from MH i2c: E2 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 62 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 62 00 E6 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 79 06 01 00 0E 04 04 00 64 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 AB [07:22: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 79 06 01 00 0E 04 04 00 64 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 [07:22:41]wFMCommunicate OK [07:22:41]SAM_PROTO_GetFieldsCounters done [07:22:41]requested_item shift.num is exist - process it [07:22:41]requested_item shift.opened is exist - process it [07:22:41]req_shift_opened [07:22:41]FM_GetShiftState [07:22:41]SAM_PROTO_GetShiftState [07:22:41]wFMCommunicate request_size=4 [07:22:41]MH_SAM_APDU [07:22:41]CAPDU: 80 13 01 00 [07:22:41]Write to MH i2c: E2 08 00 E7 1D 80 13 01 00 00 00 00 00 81 [07:22:41]Write i2c OK [07:22:41]MH_I2C_Read... [07:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:41]Read from MH i2c: E2 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 0E 00 [07:22:41]MH_I2C_Read... [07:22:41]Read from MH i2c: E2 0E 00 E7 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2C [07:22:41]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:22:41]wFMCommunicate OK [07:22:41]SAM_PROTO_GetShiftState done [07:22:41]FM_GetShiftState done [07:22:41]req_shift_opened done [07:22:41]requested_item shift.open_date is exist - process it [07:22:41]req_shift_open_date [07:22:41]req_shift_open_date done [07:22:41]produce_requested_data done [07:22:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:22:41]process_action_free print_text [07:22:41]json_value_free [07:22:41]json_value_free done [07:22:41]process_json_proto returns [07:22:41]Send response to host [07:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:22:41]free response buf [07:22:41]execute_script done [07:22:41]execute_script returns [07:22:41]free content buf [07:22:41]Sock 10.Close socket [07:22:41]Sock 10.Thread stoped [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:23]accept exits with 7 [07:29:23]New connection [07:29:23]New thread 3066588516 created [07:29:23]Thread 3066731876 joined [07:29:23]Waiting for new connection... [07:29:23] Sock 7.Parse request [07:29:23]Sock 7.Check first char [07:29:23]Sock 7.First char is OK [07:29:23]request: POST /json_proto HTTP/1.0 [07:29:23]Method: POST [07:29:23]URL: /json_proto [07:29:23]Method is POST - this is cgi request [07:29:23]url: /json_proto [07:29:23]query_string will be loaded in cgi processing [07:29:23]execute_cgi json_proto POST (null) [07:29:23]execute_cgi path=json_proto method=POST [07:29:23]POST find Content-Length [07:29:23]Host: 172.17.41.195:8080 [07:29:23]Content-Length: 1209 [07:29:23]Content-Type: application/json [07:29:23] [07:29:23]POST finish read [07:29:23]Found Content-Length = 1209 [07:29:23]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)507109\u000A15.05.2024 07:12\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 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:29:23]execute_script... [07:29:23]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)507109\u000A15.05.2024 07:12\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 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:29:23]POST & json_proto [07:29:23]process_json_proto [07:29:23]json parsed OK: [07:29:23]protocol is kg_v1.0 [07:29:23]action value=print_text [07:29:23]process_action print_text [07:29:23]cmd_print_text [07:29:23]ExternCall_PrintAddStr [07:29:23]wPrintStart [07:29:23]Write to MH i2c: 01 00 00 E8 1D 05 [07:29:23]Write i2c OK [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 07 00 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 07 00 E8 1D 00 00 00 00 00 FF 0F 1A [07:29:23]RasterBufferAndPrint [07:29:23]line *****ТОВАРНЫЙ ЧЕК***** [07:29:23]line АЗС-91 [07:29:23]line Партнер нефть [07:29:23]line 02508201610067 [07:29:23]line Кассир : Арстанбеков Н. [07:29:23]line Счет N : (1)507109 [07:29:23]line 15.05.2024 07:12 [07:29:23]line ПРОДАЖА [07:29:23]line ТРК (МРК, ГНК): 31 [07:29:23]line Вид ГСМ : 2710194210 [07:29:23]line ДТ-К-5 [07:29:23]line 13.390 x 74.70 [07:29:23]line ИТОГ: 1000.23 [07:29:23]line Тип оплаты: Талоны: Топливная Карта [07:29:23]line 02750 [07:29:23]line ______________________ [07:29:23]line (подпись) [07:29:23]written 0, free lines is 4095 [07:29:23]Write to MH i2c: 01 00 00 FC 1D 19 [07:29:23]Write i2c OK [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 07 00 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: 01 07 00 FC 1D 00 00 00 00 00 0E 0E 3C [07:29:23]RasterBufferAndPrint [07:29:23]line [07:29:23]line [07:29:23]line [07:29:23]line [07:29:23]line [07:29:23]written 0, free lines is 3600 [07:29:23]MH_Cut [07:29:23]Write to MH i2c: D1 01 00 03 1E 01 F3 [07:29:23]Write i2c OK [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: D1 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: D1 01 00 [07:29:23]MH_I2C_Read... [07:29:23]Read from MH i2c: D1 01 00 03 1E 00 F2 [07:29:23]Write to MH i2c: 01 00 00 04 1E 22 [07:29:23]Write i2c OK [07:29:23]MH_I2C_Read... [07:29:24]*** Cut start [07:29:24]*** Purtial cut [07:29:24]*** Stage 1: CUTSNS_PIN = 1 [07:29:24]Read from MH i2c: 01 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: 01 07 00 [07:29:24]MH_I2C_Read... [07:29:24]*** Stop cut motor [07:29:24]*** Cut end [07:29:24]Read from MH i2c: 01 07 00 04 1E 00 00 00 00 00 FF 0F 37 [07:29:24]process_action print_text done [07:29:24]requested_data is exist [07:29:24]produce_requested_data [07:29:24]requested_item fm.sn is exist - process it [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 11 00 00 [07:29:24]Write to MH i2c: E2 08 00 05 1E 80 11 00 00 00 00 00 00 9D [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 17 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 17 00 05 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [07:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:29:24]wFMCommunicate OK [07:29:24]requested_item fd.num is exist - process it [07:29:24]SAM_PROTO_GetFieldsCounters [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 13 00 00 [07:29:24]Write to MH i2c: E2 08 00 06 1E 80 13 00 00 00 00 00 00 A0 [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 62 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 62 00 06 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 79 06 01 00 0E 04 04 00 64 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 CC [07:29: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 79 06 01 00 0E 04 04 00 64 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 [07:29:24]wFMCommunicate OK [07:29:24]SAM_PROTO_GetFieldsCounters done [07:29:24]requested_item shift.num is exist - process it [07:29:24]requested_item shift.opened is exist - process it [07:29:24]req_shift_opened [07:29:24]FM_GetShiftState [07:29:24]SAM_PROTO_GetShiftState [07:29:24]wFMCommunicate request_size=4 [07:29:24]MH_SAM_APDU [07:29:24]CAPDU: 80 13 01 00 [07:29:24]Write to MH i2c: E2 08 00 07 1E 80 13 01 00 00 00 00 00 A2 [07:29:24]Write i2c OK [07:29:24]MH_I2C_Read... [07:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:24]Read from MH i2c: E2 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 0E 00 [07:29:24]MH_I2C_Read... [07:29:24]Read from MH i2c: E2 0E 00 07 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4D [07:29:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:29:24]wFMCommunicate OK [07:29:24]SAM_PROTO_GetShiftState done [07:29:24]FM_GetShiftState done [07:29:24]req_shift_opened done [07:29:24]requested_item shift.open_date is exist - process it [07:29:24]req_shift_open_date [07:29:24]req_shift_open_date done [07:29:24]produce_requested_data done [07:29:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:29:24]process_action_free print_text [07:29:24]json_value_free [07:29:24]json_value_free done [07:29:24]process_json_proto returns [07:29:24]Send response to host [07:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67193,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:29:24]free response buf [07:29:24]execute_script done [07:29:24]execute_script returns [07:29:24]free content buf [07:29:24]Sock 7.Close socket [07:29:24]Sock 7.Thread stoped [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [07:39:06]New connection [07:39:06]New thread 3066731876 created [07:39:06]Thread 3066588516 joined [07:39:06]Waiting for new connection... [07:39:06] Sock 9.Parse request [07:39:06]Sock 9.Check first char [07:39:06]Sock 9.First char is OK [07:39:06]request: POST /json_proto HTTP/1.0 [07:39:06]Method: POST [07:39:06]URL: /json_proto [07:39:06]Method is POST - this is cgi request [07:39:06]url: /json_proto [07:39:06]query_string will be loaded in cgi processing [07:39:06]execute_cgi json_proto POST (null) [07:39:06]execute_cgi path=json_proto method=POST [07:39:06]POST find Content-Length [07:39:06]Host: 172.17.41.195:8080 [07:39:06]Content-Length: 677 [07:39:06]Content-Type: application/json [07:39:06] [07:39:06]POST finish read [07:39:06]Found Content-Length = 677 [07:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507111", "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:39:06]execute_script... [07:39: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)507111", "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:39:06]POST & json_proto [07:39:06]process_json_proto [07:39:06]json parsed OK: [07:39:06]protocol is kg_v1.0 [07:39:06]action value=close_receipt [07:39:06]process_action close_receipt [07:39:06]cmd_close_receipt [07:39:06]MH_GetDate [07:39:06]Write to MH i2c: F0 00 00 08 1E 15 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: F0 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: F0 09 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: F0 09 00 08 1E 00 9D 66 44 66 FC 21 6F 64 BB [07:39:06]GetLastDocTimeStamp 1715757567 [07:39:06]current date 1715758749 [07:39:06]FM_GetShiftState [07:39:06]SAM_PROTO_GetShiftState [07:39:06]wFMCommunicate request_size=4 [07:39:06]MH_SAM_APDU [07:39:06]CAPDU: 80 13 01 00 [07:39:06]Write to MH i2c: E2 08 00 09 1E 80 13 01 00 00 00 00 00 A4 [07:39:06]Write i2c OK [07:39:06]MH_I2C_Read... [07:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:06]Read from MH i2c: E2 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 0E 00 [07:39:06]MH_I2C_Read... [07:39:06]Read from MH i2c: E2 0E 00 09 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4F [07:39:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:39:06]wFMCommunicate OK [07:39:06]SAM_PROTO_GetShiftState done [07:39:06]FM_GetShiftState done [07:39:06]opened in 1715732471 [07:39:06]opened+sec_in_day 1715818871 [07:39:06]quantity*price = 50033 [07:39:06]sum+1 = 50034 [07:39: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 СНО: Общий режим Чек 12 15.05.2024 07:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67194 ФПД: 153315449623333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T073909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67194&fm=153315449623333&tin=02508201610067®Number=0000000000091845&sum=50000 [07:39:07]StoreToDocumentArchive [07:39:07]shift 356 fd 67194 [07:39:07]save to /storage/0356/doc_00067194 [07:39:07]save last doc name /storage/0356/doc_00067194 to /storage/kkm_last_doc_name [07:39:07]save OK [07:39:07]Clear old archive folders... [07:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:07]tlvbuf is B6F1F370 [07:39:07]SAM_PROTO_ClearQueue [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 09 00 00 [07:39:07]Write to MH i2c: E2 08 00 16 1E 80 09 00 00 00 00 00 00 A6 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [07:39:07]RAPDU: 90 00 [07:39:07]wFMCommunicate OK [07:39:07]SAM_PROTO_ClearQueue done [07:39:07]KKMCreateOFDPacket [07:39:07]OFDProtocolAddRootSTLVToBuf [07:39:07]FM_MakeSignedData [07:39:07]FM_MakeSignedData [07:39:07]SAM_PROTO_SignData [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 0D 01 02 [07:39:07]Write to MH i2c: E2 08 00 17 1E 80 0D 01 02 00 00 00 00 AE [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [07:39:07]RAPDU: 90 00 [07:39:07]wFMCommunicate OK [07:39:07]wFMCommunicate request_size=255 [07:39:07]MH_SAM_APDU [07:39: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 0C 00 00 00 F4 03 04 00 9D 66 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 06 01 00 35 04 06 00 8B [07:39:07]Write to MH i2c: E2 02 01 18 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 0C 00 00 00 F4 03 04 00 9D 66 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 06 01 00 35 04 06 00 8B 00 00 63 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [07:39:07]RAPDU: 90 00 [07:39:07]wFMCommunicate OK [07:39:07]wFMCommunicate request_size=10 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 0D 02 02 05 70 88 E9 D3 25 [07:39:07]Write to MH i2c: E2 0D 00 19 1E 80 0D 02 02 05 00 70 88 E9 D3 25 00 00 94 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [07:39:07]RAPDU: 90 00 [07:39:07]wFMCommunicate OK [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 0D 03 02 [07:39:07]Write to MH i2c: E2 08 00 1A 1E 80 0D 03 02 00 00 00 00 B3 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 0B 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 0B 00 1A 1E 00 6A C5 7C 07 1C 80 63 B3 90 00 18 [07:39:07]RAPDU: 6A C5 7C 07 1C 80 63 B3 90 00 [07:39:07]wFMCommunicate OK [07:39:07]SAM_PROTO_SignData done [07:39:07]FM_MakeSignedData done [07:39:07]CreateOFDProtocolMessage [07:39:07]wFMCommunicate request_size=4 [07:39:07]MH_SAM_APDU [07:39:07]CAPDU: 80 11 00 00 [07:39:07]Write to MH i2c: E2 08 00 1B 1E 80 11 00 00 00 00 00 00 B3 [07:39:07]Write i2c OK [07:39:07]MH_I2C_Read... [07:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:07]Read from MH i2c: E2 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 [07:39:07]MH_I2C_Read... [07:39:07]Read from MH i2c: E2 17 00 1B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [07:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:39:08]wFMCommunicate OK [07:39:08]CreateOFDProtocolMessage done [07:39:08]OFDSenderStorePacket 67194 [07:39:08]StoreOFDPacket docnum=67194 [07:39: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 9C BA 07 01 92 6C 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 0C 00 00 00 F4 03 04 00 9D 66 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 06 01 00 35 04 06 00 8B 70 88 E9 D3 25 6A C5 7C 07 1C 80 63 B3 [07:39:08]CheckFolder [07:39:08]dirname=/storage/ofd_packets [07:39:08]CheckFolder done [07:39:08]ProducePacketName [07:39:08]name=ofd_packets/00067194 [07:39:08]NVStorageSaveData ofd_packets/00067194 [07:39:08]File name is /storage/ofd_packets/00067194 [07:39:08]Write 301 bytes [07:39:08]NVStorageSaveData done [07:39:08]OFDSenderStorePacket done [07:39:08]KKMCreateOFDPacket done [07:39:08]NVStorageSaveData kkm_last_timestamp [07:39:08]File name is /storage/kkm_last_timestamp [07:39:08]Write 4 bytes [07:39:08]NVStorageSaveData done [07:39:08]ExternCall_PrintAddStr [07:39:08]wPrintStart [07:39:08]Write to MH i2c: 01 00 00 1C 1E 3A [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 07 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 07 00 1C 1E 00 00 00 00 00 FF 0F 4F [07:39:08]RasterBufferAndPrint [07:39:08]line Счет N : (1)507111 [07:39:08]line ИНН: 02508201610067 [07:39:08]line Контрольно-Кассовый Чек [07:39:08]line ПРОДАЖА [07:39:08]line ТРК (МРК, ГНК) : 33 [07:39:08]line Товар: 2710124130 [07:39:08]line Аи-92-К-5 [07:39:08]line 7.490 * 66.80 [07:39:08]line = 500.33 [07:39:08]line НДС 12% НСП 1% [07:39:08]line > о реализуемом товаре [07:39:08]line ОКРУГЛЕНИЕ: -0.33 [07:39:08]line ИТОГО: 500.00 [07:39:08]line Внесено: 500.00 [07:39:08]line СДАЧА: 0.00 [07:39:08]line НСП 1% : 4.43 [07:39:08]line НДС 12% : 53.13 [07:39:08]line Наличными: 500.00 [07:39:08]line Безнал.: 0.00 [07:39:08]line Место: АЗС № 91 "Партнер Нефть" [07:39:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:39:08]line СНО: Общий режим [07:39:08]line Чек 12 15.05.2024 07:39 [07:39:08]line Смена: 356 ФФД: 1.0 [07:39:08]line ЗНМ: 0300000119 [07:39:08]line РНМ: 0000000000091845 [07:39:08]line Версия ККМ: 001 [07:39:08]line ФМ: 0000000000871829 [07:39:08]line ФД: 67194 [07:39:08]line ФПД: 153315449623333 [07:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T073909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67194&fm=153315449623333&tin=02508201610067®Number=0000000000091845&sum=50000 [07:39:08]OFD Sender: Processing packet 67194 [packets to send 35, broken 34] [07:39:08]ProducePacketName [07:39:08]name=ofd_packets/00067194 [07:39:08]OFD Sender: To server: pG, [07:39:08]CommunicateWithHost lk.salyk.kg:30040 [07:39:08]ConnectInit lk.salyk.kg [07:39:08]written 0, free lines is 4095 [07:39:08]Connected sock=10 [07:39: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 9C BA 07 01 92 6C 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 0C 00 00 00 F4 03 04 00 9D 66 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7A 06 01 00 35 04 06 00 8B 70 88 E9 D3 25 6A C5 7C 07 1C 80 63 B3 [07:39: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 BF B8 47 00 0F 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 7A 06 01 00 F4 03 04 00 7B 0E 44 66 B6 04 01 00 00 42 2D FE D5 FF 93 89 A0 [07:39:08]CommunicateWithHost err = 0 [07:39:08]CheckOFDResponse [07:39:08]1017 (14) - 77093643461234 [07:39:08]1041 (16) - 0000000000871829 [07:39:08]1040 (4) - 67194 [07:39:08]1012 (4) - 15.05.2024 01:23 [07:39:08]1206 (1) - 0 [07:39:08]OFD Sender: Remove packet 67194 [07:39:08]ProducePacketName [07:39:08]name=ofd_packets/00067194 [07:39:08]NVStorageDeleteData [07:39:08]Write to MH i2c: 01 00 00 46 1E 64 [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 07 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: 01 07 00 46 1E 00 00 00 00 00 C3 0C 3A [07:39:08]RasterBufferAndPrint [07:39:08]line [07:39:08]line [07:39:08]line [07:39:08]line [07:39:08]line [07:39:08]written 0, free lines is 3272 [07:39:08]MH_Cut [07:39:08]Write to MH i2c: D1 01 00 4D 1E 01 3D [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: D1 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: D1 01 00 [07:39:08]MH_I2C_Read... [07:39:08]Read from MH i2c: D1 01 00 4D 1E 00 3C [07:39:08]Write to MH i2c: 01 00 00 4E 1E 6C [07:39:08]Write i2c OK [07:39:08]MH_I2C_Read... [07:39:09]OFD Sender: No OFD packet to send [07:39:09]*** Cut start [07:39:09]*** Purtial cut [07:39:09]*** CUTSNS_PIN = 0 [07:39:09]*** Stage 1: CUTSNS_PIN = 1 [07:39:11]Read from MH i2c: 01 [07:39:11]MH_I2C_Read... [07:39:11]*** Stop cut motor [07:39:11]*** Cut end [07:39:11]Read from MH i2c: 01 07 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: 01 07 00 4E 1E 00 00 00 00 00 FF 0F 81 [07:39:11]process_action close_receipt done [07:39:11]requested_data is exist [07:39:11]produce_requested_data [07:39:11]requested_item fm.sn is exist - process it [07:39:11]wFMCommunicate request_size=4 [07:39:11]MH_SAM_APDU [07:39:11]CAPDU: 80 11 00 00 [07:39:11]Write to MH i2c: E2 08 00 4F 1E 80 11 00 00 00 00 00 00 E7 [07:39:11]Write i2c OK [07:39:11]MH_I2C_Read... [07:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:11]Read from MH i2c: E2 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 17 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 17 00 4F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [07:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:39:11]wFMCommunicate OK [07:39:11]requested_item fd.num is exist - process it [07:39:11]SAM_PROTO_GetFieldsCounters [07:39:11]wFMCommunicate request_size=4 [07:39:11]MH_SAM_APDU [07:39:11]CAPDU: 80 13 00 00 [07:39:11]Write to MH i2c: E2 08 00 50 1E 80 13 00 00 00 00 00 00 EA [07:39:11]Write i2c OK [07:39:11]MH_I2C_Read... [07:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:11]Read from MH i2c: E2 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 62 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 62 00 50 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 7A 06 01 00 0E 04 04 00 64 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 1A [07:39: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 7A 06 01 00 0E 04 04 00 64 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 [07:39:11]wFMCommunicate OK [07:39:11]SAM_PROTO_GetFieldsCounters done [07:39:11]requested_item shift.num is exist - process it [07:39:11]requested_item shift.opened is exist - process it [07:39:11]req_shift_opened [07:39:11]FM_GetShiftState [07:39:11]SAM_PROTO_GetShiftState [07:39:11]wFMCommunicate request_size=4 [07:39:11]MH_SAM_APDU [07:39:11]CAPDU: 80 13 01 00 [07:39:11]Write to MH i2c: E2 08 00 51 1E 80 13 01 00 00 00 00 00 EC [07:39:11]Write i2c OK [07:39:11]MH_I2C_Read... [07:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:11]Read from MH i2c: E2 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 0E 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 0E 00 51 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 97 [07:39:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:39:11]wFMCommunicate OK [07:39:11]SAM_PROTO_GetShiftState done [07:39:11]FM_GetShiftState done [07:39:11]req_shift_opened done [07:39:11]requested_item shift.open_date is exist - process it [07:39:11]req_shift_open_date [07:39:11]req_shift_open_date done [07:39:11]produce_requested_data done [07:39:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:39:11]process_action_free close_receipt [07:39:11]json_value_free [07:39:11]json_value_free done [07:39:11]process_json_proto returns [07:39:11]Send response to host [07:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:39:11]free response buf [07:39:11]execute_script done [07:39:11]execute_script returns [07:39:11]free content buf [07:39:11]Sock 9.Close socket [07:39:11]Sock 9.Thread stoped [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:23]accept exits with 7 [07:39:23]New connection [07:39:23]New thread 3066588516 created [07:39:23]Thread 3066731876 joined [07:39:23]Waiting for new connection... [07:39:23] Sock 7.Parse request [07:39:23]Sock 7.Check first char [07:39:23]Sock 7.First char is OK [07:39:23]request: POST /json_proto HTTP/1.0 [07:39:23]Method: POST [07:39:23]URL: /json_proto [07:39:23]Method is POST - this is cgi request [07:39:23]url: /json_proto [07:39:23]query_string will be loaded in cgi processing [07:39:23]execute_cgi json_proto POST (null) [07:39:23]execute_cgi path=json_proto method=POST [07:39:23]POST find Content-Length [07:39:23]Host: 172.17.41.195:8080 [07:39:23]Content-Length: 1209 [07:39:23]Content-Type: application/json [07:39:23] [07:39:23]POST finish read [07:39:23]Found Content-Length = 1209 [07:39:23]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)507112\u000A15.05.2024 07:22\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:39:23]execute_script... [07:39:23]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)507112\u000A15.05.2024 07:22\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:39:23]POST & json_proto [07:39:23]process_json_proto [07:39:23]json parsed OK: [07:39:23]protocol is kg_v1.0 [07:39:23]action value=print_text [07:39:23]process_action print_text [07:39:23]cmd_print_text [07:39:23]ExternCall_PrintAddStr [07:39:23]wPrintStart [07:39:23]Write to MH i2c: 01 00 00 52 1E 70 [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 FF 0F 85 [07:39:23]RasterBufferAndPrint [07:39:23]line *****ТОВАРНЫЙ ЧЕК***** [07:39:23]line АЗС-91 [07:39:23]line Партнер нефть [07:39:23]line 02508201610067 [07:39:23]line Кассир : Арстанбеков Н. [07:39:23]line Счет N : (1)507112 [07:39:23]line 15.05.2024 07:22 [07:39:23]line ПРОДАЖА [07:39:23]line ТРК (МРК, ГНК): 21 [07:39:23]line Вид ГСМ : 2710194210 [07:39:23]line ДТ-К-5 [07:39:23]line 13.390 x 74.70 [07:39:23]line ИТОГ: 1000.23 [07:39:23]line Тип оплаты: Талоны: Топливная Карта [07:39:23]line 02750 [07:39:23]line ______________________ [07:39:23]line (подпись) [07:39:23]written 0, free lines is 4095 [07:39:23]Write to MH i2c: 01 00 00 66 1E 84 [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: 01 07 00 66 1E 00 00 00 00 00 0E 0E A7 [07:39:23]RasterBufferAndPrint [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]line [07:39:23]written 0, free lines is 3600 [07:39:23]MH_Cut [07:39:23]Write to MH i2c: D1 01 00 6D 1E 01 5D [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 01 00 [07:39:23]MH_I2C_Read... [07:39:23]Read from MH i2c: D1 01 00 6D 1E 00 5C [07:39:23]Write to MH i2c: 01 00 00 6E 1E 8C [07:39:23]Write i2c OK [07:39:23]MH_I2C_Read... [07:39:24]*** Cut start [07:39:24]*** Purtial cut [07:39:24]*** Stage 1: CUTSNS_PIN = 1 [07:39:24]OFD Sender: No OFD packet to send [07:39:24]Read from MH i2c: 01 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: 01 07 00 [07:39:24]MH_I2C_Read... [07:39:24]*** Stop cut motor [07:39:24]*** Cut end [07:39:24]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [07:39:24]process_action print_text done [07:39:24]requested_data is exist [07:39:24]produce_requested_data [07:39:24]requested_item fm.sn is exist - process it [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 11 00 00 [07:39:24]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 17 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5D [07:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:39:24]wFMCommunicate OK [07:39:24]requested_item fd.num is exist - process it [07:39:24]SAM_PROTO_GetFieldsCounters [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 13 00 00 [07:39:24]Write to MH i2c: E2 08 00 70 1E 80 13 00 00 00 00 00 00 0A [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 62 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 62 00 70 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 7A 06 01 00 0E 04 04 00 64 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 3A [07:39: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 7A 06 01 00 0E 04 04 00 64 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 [07:39:24]wFMCommunicate OK [07:39:24]SAM_PROTO_GetFieldsCounters done [07:39:24]requested_item shift.num is exist - process it [07:39:24]requested_item shift.opened is exist - process it [07:39:24]req_shift_opened [07:39:24]FM_GetShiftState [07:39:24]SAM_PROTO_GetShiftState [07:39:24]wFMCommunicate request_size=4 [07:39:24]MH_SAM_APDU [07:39:24]CAPDU: 80 13 01 00 [07:39:24]Write to MH i2c: E2 08 00 71 1E 80 13 01 00 00 00 00 00 0C [07:39:24]Write i2c OK [07:39:24]MH_I2C_Read... [07:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:24]Read from MH i2c: E2 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 0E 00 [07:39:24]MH_I2C_Read... [07:39:24]Read from MH i2c: E2 0E 00 71 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B7 [07:39:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:39:24]wFMCommunicate OK [07:39:24]SAM_PROTO_GetShiftState done [07:39:24]FM_GetShiftState done [07:39:24]req_shift_opened done [07:39:24]requested_item shift.open_date is exist - process it [07:39:24]req_shift_open_date [07:39:24]req_shift_open_date done [07:39:24]produce_requested_data done [07:39:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:39:24]process_action_free print_text [07:39:24]json_value_free [07:39:24]json_value_free done [07:39:24]process_json_proto returns [07:39:24]Send response to host [07:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:39:24]free response buf [07:39:24]execute_script done [07:39:24]execute_script returns [07:39:24]free content buf [07:39:24]Sock 7.Close socket [07:39:24]Sock 7.Thread stoped [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:48]accept exits with 9 [07:39:48]New connection [07:39:48]New thread 3066731876 created [07:39:48]Thread 3066588516 joined [07:39:48]Waiting for new connection... [07:39:48] Sock 9.Parse request [07:39:48]Sock 9.Check first char [07:39:48]Sock 9.First char is OK [07:39:48]request: POST /json_proto HTTP/1.0 [07:39:48]Method: POST [07:39:48]URL: /json_proto [07:39:48]Method is POST - this is cgi request [07:39:48]url: /json_proto [07:39:48]query_string will be loaded in cgi processing [07:39:48]execute_cgi json_proto POST (null) [07:39:48]execute_cgi path=json_proto method=POST [07:39:48]POST find Content-Length [07:39:48]Host: 172.17.41.195:8080 [07:39:48]Content-Length: 1209 [07:39:48]Content-Type: application/json [07:39:48] [07:39:48]POST finish read [07:39:48]Found Content-Length = 1209 [07:39: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)507110\u000A15.05.2024 07:22\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 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" ] } } [07:39:48]execute_script... [07:39: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)507110\u000A15.05.2024 07:22\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 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" ] } } [07:39:48]POST & json_proto [07:39:48]process_json_proto [07:39:48]json parsed OK: [07:39:48]protocol is kg_v1.0 [07:39:48]action value=print_text [07:39:48]process_action print_text [07:39:48]cmd_print_text [07:39:48]ExternCall_PrintAddStr [07:39:48]wPrintStart [07:39:48]Write to MH i2c: 01 00 00 72 1E 90 [07:39:48]Write i2c OK [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 07 00 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 07 00 72 1E 00 00 00 00 00 FF 0F A5 [07:39:48]RasterBufferAndPrint [07:39:48]line *****ТОВАРНЫЙ ЧЕК***** [07:39:48]line АЗС-91 [07:39:48]line Партнер нефть [07:39:48]line 02508201610067 [07:39:48]line Кассир : Арстанбеков Н. [07:39:48]line Счет N : (1)507110 [07:39:48]line 15.05.2024 07:22 [07:39:48]line ПРОДАЖА [07:39:48]line ТРК (МРК, ГНК): 41 [07:39:48]line Вид ГСМ : 2710194210 [07:39:48]line ДТ-К-5 [07:39:48]line 50.000 x 74.70 [07:39:48]line ИТОГ: 3735.00 [07:39:48]line Тип оплаты: Талоны: Топливная Карта [07:39:48]line 02750 [07:39:48]line ______________________ [07:39:48]line (подпись) [07:39:48]written 0, free lines is 4095 [07:39:48]Write to MH i2c: 01 00 00 86 1E A4 [07:39:48]Write i2c OK [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 07 00 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: 01 07 00 86 1E 00 00 00 00 00 0E 0E C7 [07:39:48]RasterBufferAndPrint [07:39:48]line [07:39:48]line [07:39:48]line [07:39:48]line [07:39:48]line [07:39:48]written 0, free lines is 3600 [07:39:48]MH_Cut [07:39:48]Write to MH i2c: D1 01 00 8D 1E 01 7D [07:39:48]Write i2c OK [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: D1 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: D1 01 00 [07:39:48]MH_I2C_Read... [07:39:48]Read from MH i2c: D1 01 00 8D 1E 00 7C [07:39:48]Write to MH i2c: 01 00 00 8E 1E AC [07:39:48]Write i2c OK [07:39:48]MH_I2C_Read... [07:39:48]*** Cut start [07:39:48]*** Purtial cut [07:39:48]*** CUTSNS_PIN = 0 [07:39:49]*** Stage 1: CUTSNS_PIN = 1 [07:39:49]OFD Sender: No OFD packet to send [07:39:50]Read from MH i2c: 01 [07:39:50]MH_I2C_Read... [07:39:50]Read from MH i2c: 01 07 00 [07:39:50]MH_I2C_Read... [07:39:50]*** Stop cut motor [07:39:50]*** Cut end [07:39:50]Read from MH i2c: 01 07 00 8E 1E 00 00 00 00 00 FF 0F C1 [07:39:50]process_action print_text done [07:39:50]requested_data is exist [07:39:50]produce_requested_data [07:39:50]requested_item fm.sn is exist - process it [07:39:50]wFMCommunicate request_size=4 [07:39:50]MH_SAM_APDU [07:39:50]CAPDU: 80 11 00 00 [07:39:50]Write to MH i2c: E2 08 00 8F 1E 80 11 00 00 00 00 00 00 27 [07:39:50]Write i2c OK [07:39:50]MH_I2C_Read... [07:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:50]Read from MH i2c: E2 [07:39:50]MH_I2C_Read... [07:39:50]Read from MH i2c: E2 17 00 [07:39:50]MH_I2C_Read... [07:39:50]Read from MH i2c: E2 17 00 8F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [07: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 [07:39:50]wFMCommunicate OK [07:39:50]requested_item fd.num is exist - process it [07:39:50]SAM_PROTO_GetFieldsCounters [07:39:50]wFMCommunicate request_size=4 [07:39:50]MH_SAM_APDU [07:39:50]CAPDU: 80 13 00 00 [07:39:50]Write to MH i2c: E2 08 00 90 1E 80 13 00 00 00 00 00 00 2A [07:39:50]Write i2c OK [07:39:50]MH_I2C_Read... [07:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:51]Read from MH i2c: E2 [07:39:51]MH_I2C_Read... [07:39:51]Read from MH i2c: E2 62 00 [07:39:51]MH_I2C_Read... [07:39:51]Read from MH i2c: E2 62 00 90 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 7A 06 01 00 0E 04 04 00 64 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 5A [07:39: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 7A 06 01 00 0E 04 04 00 64 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 [07:39:51]wFMCommunicate OK [07:39:51]SAM_PROTO_GetFieldsCounters done [07:39:51]requested_item shift.num is exist - process it [07:39:51]requested_item shift.opened is exist - process it [07:39:51]req_shift_opened [07:39:51]FM_GetShiftState [07:39:51]SAM_PROTO_GetShiftState [07:39:51]wFMCommunicate request_size=4 [07:39:51]MH_SAM_APDU [07:39:51]CAPDU: 80 13 01 00 [07:39:51]Write to MH i2c: E2 08 00 91 1E 80 13 01 00 00 00 00 00 2C [07:39:51]Write i2c OK [07:39:51]MH_I2C_Read... [07:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:51]Read from MH i2c: E2 [07:39:51]MH_I2C_Read... [07:39:51]Read from MH i2c: E2 0E 00 [07:39:51]MH_I2C_Read... [07:39:51]Read from MH i2c: E2 0E 00 91 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D7 [07:39:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:39:51]wFMCommunicate OK [07:39:51]SAM_PROTO_GetShiftState done [07:39:51]FM_GetShiftState done [07:39:51]req_shift_opened done [07:39:51]requested_item shift.open_date is exist - process it [07:39:51]req_shift_open_date [07:39:51]req_shift_open_date done [07:39:51]produce_requested_data done [07:39:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:39:51]process_action_free print_text [07:39:51]json_value_free [07:39:51]json_value_free done [07:39:51]process_json_proto returns [07:39:51]Send response to host [07:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67194,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:39:51]free response buf [07:39:51]execute_script done [07:39:51]execute_script returns [07:39:51]free content buf [07:39:51]Sock 9.Close socket [07:39:51]Sock 9.Thread stoped [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:24]accept exits with 7 [07:41:24]New connection [07:41:24]New thread 3066588516 created [07:41:24]Thread 3066731876 joined [07:41:24]Waiting for new connection... [07:41:24] Sock 7.Parse request [07:41:24]Sock 7.Check first char [07:41:24]Sock 7.First char is OK [07:41:24]request: POST /json_proto HTTP/1.0 [07:41:24]Method: POST [07:41:24]URL: /json_proto [07:41:24]Method is POST - this is cgi request [07:41:24]url: /json_proto [07:41:24]query_string will be loaded in cgi processing [07:41:24]execute_cgi json_proto POST (null) [07:41:24]execute_cgi path=json_proto method=POST [07:41:24]POST find Content-Length [07:41:24]Host: 172.17.41.195:8080 [07:41:24]Content-Length: 993 [07:41:24]Content-Type: application/json [07:41:24] [07:41:24]POST finish read [07:41:24]Found Content-Length = 993 [07:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12061", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 306.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:24]execute_script... [07:41: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 : (3)12061", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 306.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:24]POST & json_proto [07:41:24]process_json_proto [07:41:24]json parsed OK: [07:41:24]protocol is kg_v1.0 [07:41:24]action value=close_receipt [07:41:24]process_action close_receipt [07:41:24]cmd_close_receipt [07:41:24]MH_GetDate [07:41:24]Write to MH i2c: F0 00 00 92 1E 9F [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: F0 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: F0 09 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: F0 09 00 92 1E 00 27 67 44 66 FC 21 6F 64 D0 [07:41:24]GetLastDocTimeStamp 1715758749 [07:41:24]current date 1715758887 [07:41:24]FM_GetShiftState [07:41:24]SAM_PROTO_GetShiftState [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 13 01 00 [07:41:24]Write to MH i2c: E2 08 00 93 1E 80 13 01 00 00 00 00 00 2E [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0E 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0E 00 93 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D9 [07:41:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:41:24]wFMCommunicate OK [07:41:24]SAM_PROTO_GetShiftState done [07:41:24]FM_GetShiftState done [07:41:24]opened in 1715732471 [07:41:24]opened+sec_in_day 1715818871 [07:41:24]quantity*price = 9600 [07:41:24]sum+1 = 9601 [07:41:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 306.00 НСП 1% : 2.71 НДС 12% : 32.49 Наличными: 306.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 13 15.05.2024 07:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67195 ФПД: 210898070133923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074127&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67195&fm=210898070133923&tin=02508201610067®Number=0000000000091845&sum=30600 0 [07:41:25]StoreToDocumentArchive [07:41:25]shift 356 fd 67195 [07:41:25]save to /storage/0356/doc_00067195 [07:41:25]save last doc name /storage/0356/doc_00067195 to /storage/kkm_last_doc_name [07:41:25]save OK [07:41:25]Clear old archive folders... [07:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=426 [07:41:25]tlvbuf is 0037AB20 [07:41:25]SAM_PROTO_ClearQueue [07:41:25]wFMCommunicate request_size=4 [07:41:25]MH_SAM_APDU [07:41:25]CAPDU: 80 09 00 00 [07:41:25]Write to MH i2c: E2 08 00 A0 1E 80 09 00 00 00 00 00 00 30 [07:41:25]Write i2c OK [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 [07:41:25]MH_I2C_Read... [07:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:25]Read from MH i2c: E2 03 00 [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [07:41:25]RAPDU: 90 00 [07:41:25]wFMCommunicate OK [07:41:25]SAM_PROTO_ClearQueue done [07:41:25]KKMCreateOFDPacket [07:41:25]OFDProtocolAddRootSTLVToBuf [07:41:25]FM_MakeSignedData [07:41:25]FM_MakeSignedData [07:41:25]SAM_PROTO_SignData [07:41:25]wFMCommunicate request_size=4 [07:41:25]MH_SAM_APDU [07:41:25]CAPDU: 80 0D 01 02 [07:41:25]Write to MH i2c: E2 08 00 A1 1E 80 0D 01 02 00 00 00 00 38 [07:41:25]Write i2c OK [07:41:25]MH_I2C_Read... [07:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:25]Read from MH i2c: E2 [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 03 00 [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 03 00 A1 1E 00 90 00 33 [07:41:25]RAPDU: 90 00 [07:41:25]wFMCommunicate OK [07:41:25]wFMCommunicate request_size=255 [07:41:25]MH_SAM_APDU [07:41:25]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 [07:41:25]Write to MH i2c: E2 02 01 A2 1E 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 00 00 32 [07:41:25]Write i2c OK [07:41:25]MH_I2C_Read... [07:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:25]Read from MH i2c: E2 [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 03 00 [07:41:25]MH_I2C_Read... [07:41:25]Read from MH i2c: E2 03 00 A2 1E 00 90 00 34 [07:41:25]RAPDU: 90 00 [07:41:25]wFMCommunicate OK [07:41:25]wFMCommunicate request_size=185 [07:41:25]MH_SAM_APDU [07:41:25]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0C 00 00 00 00 07 04 06 00 88 77 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 27 67 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 06 01 00 35 04 06 00 BF CF 88 8D DC A3 [07:41:25]Write to MH i2c: E2 BC 00 A3 1E 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0C 00 00 00 00 07 04 06 00 88 77 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 27 67 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 06 01 00 35 04 06 00 BF CF 88 8D DC A3 00 00 B7 [07:41:25]Write i2c OK [07:41:25]MH_I2C_Read... [07:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:26]Read from MH i2c: E2 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 03 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 03 00 A3 1E 00 90 00 35 [07:41:26]RAPDU: 90 00 [07:41:26]wFMCommunicate OK [07:41:26]wFMCommunicate request_size=4 [07:41:26]MH_SAM_APDU [07:41:26]CAPDU: 80 0D 03 02 [07:41:26]Write to MH i2c: E2 08 00 A4 1E 80 0D 03 02 00 00 00 00 3D [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:26]Read from MH i2c: E2 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 0B 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 0B 00 A4 1E 00 92 F6 E8 56 A8 6C C0 C8 90 00 A0 [07:41:26]RAPDU: 92 F6 E8 56 A8 6C C0 C8 90 00 [07:41:26]wFMCommunicate OK [07:41:26]SAM_PROTO_SignData done [07:41:26]FM_MakeSignedData done [07:41:26]CreateOFDProtocolMessage [07:41:26]wFMCommunicate request_size=4 [07:41:26]MH_SAM_APDU [07:41:26]CAPDU: 80 11 00 00 [07:41:26]Write to MH i2c: E2 08 00 A5 1E 80 11 00 00 00 00 00 00 3D [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:26]Read from MH i2c: E2 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 17 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 17 00 A5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [07:41:26]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:26]wFMCommunicate OK [07:41:26]CreateOFDProtocolMessage done [07:41:26]OFDSenderStorePacket 67195 [07:41:26]StoreOFDPacket docnum=67195 [07:41: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 BE 01 00 00 10 55 B6 01 B3 28 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0C 00 00 00 00 07 04 06 00 88 77 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 27 67 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 06 01 00 35 04 06 00 BF CF 88 8D DC A3 92 F6 E8 56 A8 6C C0 C8 [07:41:26]CheckFolder [07:41:26]dirname=/storage/ofd_packets [07:41:26]CheckFolder done [07:41:26]ProducePacketName [07:41:26]name=ofd_packets/00067195 [07:41:26]NVStorageSaveData ofd_packets/00067195 [07:41:26]File name is /storage/ofd_packets/00067195 [07:41:26]Write 476 bytes [07:41:26]NVStorageSaveData done [07:41:26]OFDSenderStorePacket done [07:41:26]KKMCreateOFDPacket done [07:41:26]NVStorageSaveData kkm_last_timestamp [07:41:26]File name is /storage/kkm_last_timestamp [07:41:26]Write 4 bytes [07:41:26]NVStorageSaveData done [07:41:26]ExternCall_PrintAddStr [07:41:26]wPrintStart [07:41:26]Write to MH i2c: 01 00 00 A6 1E C4 [07:41:26]OFD Sender: Processing packet 67195 [packets to send 35, broken 34] [07:41:26]ProducePacketName [07:41:26]name=ofd_packets/00067195 [07:41:26]OFD Sender: To server: pG, [07:41:26]CommunicateWithHost lk.salyk.kg:30040 [07:41:26]ConnectInit lk.salyk.kg [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: 01 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: 01 07 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: 01 07 00 A6 1E 00 00 00 00 00 FF 0F D9 [07:41:26]RasterBufferAndPrint [07:41:26]line Счет N : (3)12061 [07:41:26]line ИНН: 02508201610067 [07:41:26]line Контрольно-Кассовый Чек [07:41:26]line ПРОДАЖА [07:41:26]line Товар: 4870202521216 [07:41:26]line Напиток MAXI чай 1,2 зел.лимон (новый) [07:41:26]line 1.000 * 96.00 [07:41:26]line = 96.00 [07:41:26]line НДС 12% НСП 1% [07:41:26]line > о реализуемом товаре [07:41:26]line Товар: 4870022003305 [07:41:26]line Напиток Gorilla эн нат ж/б 0,5/0,45л [07:41:26]line 2.000 * 105.00 [07:41:26]line = 210.00 [07:41:26]line НДС 12% НСП 1% [07:41:26]line > о реализуемом товаре [07:41:26]line ИТОГО: 306.00 [07:41:26]line НСП 1% : 2.71 [07:41:26]line НДС 12% : 32.49 [07:41:26]line Наличными: 306.00 [07:41:26]line Безнал.: 0.00 [07:41:26]line Место: АЗС № 91 "Партнер Нефть" [07:41:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:41:26]line СНО: Общий режим [07:41:26]line Чек 13 15.05.2024 07:41 [07:41:26]line Смена: 356 ФФД: 1.0 [07:41:26]line ЗНМ: 0300000119 [07:41:26]line РНМ: 0000000000091845 [07:41:26]line Версия ККМ: 001 [07:41:26]line ФМ: 0000000000871829 [07:41:26]line ФД: 67195 [07:41:26]line ФПД: 210898070133923 [07:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074127&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67195&fm=210898070133923&tin=02508201610067®Number=0000000000091845&sum=30600 [07:41:26]line 0 [07:41:26]written 0, free lines is 4095 [07:41:26]Connected sock=9 [07:41: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 BE 01 00 00 10 55 B6 01 B3 28 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0C 00 00 00 00 07 04 06 00 88 77 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 27 67 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7B 06 01 00 35 04 06 00 BF CF 88 8D DC A3 92 F6 E8 56 A8 6C C0 C8 [07:41: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 52 87 47 00 8F 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 7B 06 01 00 F4 03 04 00 05 0F 44 66 B6 04 01 00 00 CA AB 64 BD 86 85 55 B1 [07:41:26]CommunicateWithHost err = 0 [07:41:26]CheckOFDResponse [07:41:26]1017 (14) - 77093643461234 [07:41:26]1041 (16) - 0000000000871829 [07:41:26]1040 (4) - 67195 [07:41:26]1012 (4) - 15.05.2024 01:25 [07:41:26]1206 (1) - 0 [07:41:26]OFD Sender: Remove packet 67195 [07:41:26]ProducePacketName [07:41:26]name=ofd_packets/00067195 [07:41:26]NVStorageDeleteData [07:41:27]Write to MH i2c: 01 00 00 D5 1E F3 [07:41:27]Write i2c OK [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: 01 [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: 01 07 00 [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 49 0C 4F [07:41:27]RasterBufferAndPrint [07:41:27]line [07:41:27]line [07:41:27]line [07:41:27]line [07:41:27]line [07:41:27]written 0, free lines is 3151 [07:41:27]MH_Cut [07:41:27]Write to MH i2c: D1 01 00 DC 1E 01 CC [07:41:27]Write i2c OK [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: D1 [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: D1 01 00 [07:41:27]MH_I2C_Read... [07:41:27]Read from MH i2c: D1 01 00 DC 1E 00 CB [07:41:27]Write to MH i2c: 01 00 00 DD 1E FB [07:41:27]Write i2c OK [07:41:27]MH_I2C_Read... [07:41:27]OFD Sender: No OFD packet to send [07:41:27]*** Cut start [07:41:27]*** Purtial cut [07:41:27]*** Stage 1: CUTSNS_PIN = 1 [07:41:28]Read from MH i2c: 01 [07:41:28]MH_I2C_Read... [07:41:28]*** Stop cut motor [07:41:28]*** Cut end [07:41:28]Read from MH i2c: 01 07 00 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 FF 0F 10 [07:41:28]process_action close_receipt done [07:41:28]requested_data is exist [07:41:28]produce_requested_data [07:41:28]requested_item fm.sn is exist - process it [07:41:28]wFMCommunicate request_size=4 [07:41:28]MH_SAM_APDU [07:41:28]CAPDU: 80 11 00 00 [07:41:28]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [07:41:28]Write i2c OK [07:41:28]MH_I2C_Read... [07:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:28]Read from MH i2c: E2 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 17 00 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [07:41:28]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:28]wFMCommunicate OK [07:41:28]requested_item fd.num is exist - process it [07:41:28]SAM_PROTO_GetFieldsCounters [07:41:28]wFMCommunicate request_size=4 [07:41:28]MH_SAM_APDU [07:41:28]CAPDU: 80 13 00 00 [07:41:28]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [07:41:28]Write i2c OK [07:41:28]MH_I2C_Read... [07:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:28]Read from MH i2c: E2 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 62 00 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 62 00 DF 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 7B 06 01 00 0E 04 04 00 64 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 AD [07:41:28]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 7B 06 01 00 0E 04 04 00 64 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 [07:41:28]wFMCommunicate OK [07:41:28]SAM_PROTO_GetFieldsCounters done [07:41:28]requested_item shift.num is exist - process it [07:41:28]requested_item shift.opened is exist - process it [07:41:28]req_shift_opened [07:41:28]FM_GetShiftState [07:41:28]SAM_PROTO_GetShiftState [07:41:28]wFMCommunicate request_size=4 [07:41:28]MH_SAM_APDU [07:41:28]CAPDU: 80 13 01 00 [07:41:28]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [07:41:28]Write i2c OK [07:41:28]MH_I2C_Read... [07:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:28]Read from MH i2c: E2 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 0E 00 [07:41:28]MH_I2C_Read... [07:41:28]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 26 [07:41:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:41:28]wFMCommunicate OK [07:41:28]SAM_PROTO_GetShiftState done [07:41:28]FM_GetShiftState done [07:41:28]req_shift_opened done [07:41:28]requested_item shift.open_date is exist - process it [07:41:28]req_shift_open_date [07:41:28]req_shift_open_date done [07:41:28]produce_requested_data done [07:41:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:41:28]process_action_free close_receipt [07:41:28]json_value_free [07:41:28]json_value_free done [07:41:28]process_json_proto returns [07:41:28]Send response to host [07:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:41:28]free response buf [07:41:28]execute_script done [07:41:28]execute_script returns [07:41:28]free content buf [07:41:28]Sock 7.Close socket [07:41:28]Sock 7.Thread stoped [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:05]accept exits with 10 [07:43:05]New connection [07:43:05]New thread 3066731876 created [07:43:05]Thread 3066588516 joined [07:43:05]Waiting for new connection... [07:43:05] Sock 10.Parse request [07:43:05]Sock 10.Check first char [07:43:05]Sock 10.First char is OK [07:43:05]request: POST /json_proto HTTP/1.0 [07:43:05]Method: POST [07:43:05]URL: /json_proto [07:43:05]Method is POST - this is cgi request [07:43:05]url: /json_proto [07:43:05]query_string will be loaded in cgi processing [07:43:05]execute_cgi json_proto POST (null) [07:43:05]execute_cgi path=json_proto method=POST [07:43:05]POST find Content-Length [07:43:05]Host: 172.17.41.195:8080 [07:43:05]Content-Length: 1209 [07:43:05]Content-Type: application/json [07:43:05] [07:43:05]POST finish read [07:43:05]Found Content-Length = 1209 [07:43: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)507113\u000A15.05.2024 07:25\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" ] } } [07:43:05]execute_script... [07:43: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)507113\u000A15.05.2024 07:25\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" ] } } [07:43:05]POST & json_proto [07:43:05]process_json_proto [07:43:05]json parsed OK: [07:43:05]protocol is kg_v1.0 [07:43:05]action value=print_text [07:43:05]process_action print_text [07:43:05]cmd_print_text [07:43:05]ExternCall_PrintAddStr [07:43:05]wPrintStart [07:43:05]Write to MH i2c: 01 00 00 E1 1E FF [07:43:05]Write i2c OK [07:43:05]MH_I2C_Read... [07:43:05]Read from MH i2c: 01 [07:43:05]MH_I2C_Read... [07:43:05]Read from MH i2c: 01 07 00 [07:43:05]MH_I2C_Read... [07:43:05]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 FF 0F 14 [07:43:05]RasterBufferAndPrint [07:43:05]line *****ТОВАРНЫЙ ЧЕК***** [07:43:05]line АЗС-91 [07:43:05]line Партнер нефть [07:43:05]line 02508201610067 [07:43:05]line Кассир : Арстанбеков Н. [07:43:05]line Счет N : (1)507113 [07:43:05]line 15.05.2024 07:25 [07:43:05]line ПРОДАЖА [07:43:05]line ТРК (МРК, ГНК): 21 [07:43:05]line Вид ГСМ : 2710194210 [07:43:05]line ДТ-К-5 [07:43:05]line 20.090 x 74.70 [07:43:05]line ИТОГ: 1500.72 [07:43:05]line Тип оплаты: Талоны: Топливная Карта [07:43:05]line 02750 [07:43:05]line ______________________ [07:43:05]line (подпись) [07:43:05]written 0, free lines is 4095 [07:43:06]Write to MH i2c: 01 00 00 F5 1E 13 [07:43:06]Write i2c OK [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: 01 [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: 01 07 00 [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 0E 0E 36 [07:43:06]RasterBufferAndPrint [07:43:06]line [07:43:06]line [07:43:06]line [07:43:06]line [07:43:06]line [07:43:06]written 0, free lines is 3600 [07:43:06]MH_Cut [07:43:06]Write to MH i2c: D1 01 00 FC 1E 01 EC [07:43:06]Write i2c OK [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: D1 [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: D1 01 00 [07:43:06]MH_I2C_Read... [07:43:06]Read from MH i2c: D1 01 00 FC 1E 00 EB [07:43:06]Write to MH i2c: 01 00 00 FD 1E 1B [07:43:06]Write i2c OK [07:43:06]MH_I2C_Read... [07:43:06]*** Cut start [07:43:06]*** Purtial cut [07:43:06]*** CUTSNS_PIN = 0 [07:43:07]*** Stage 1: CUTSNS_PIN = 1 [07:43:07]OFD Sender: No OFD packet to send [07:43:08]Read from MH i2c: 01 [07:43:08]MH_I2C_Read... [07:43:08]*** Stop cut motor [07:43:08]*** Cut end [07:43:08]Read from MH i2c: 01 07 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: 01 07 00 FD 1E 00 00 00 00 00 FF 0F 30 [07:43:08]process_action print_text done [07:43:08]requested_data is exist [07:43:08]produce_requested_data [07:43:08]requested_item fm.sn is exist - process it [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 11 00 00 [07:43:08]Write to MH i2c: E2 08 00 FE 1E 80 11 00 00 00 00 00 00 96 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 17 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 17 00 FE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EC [07:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:43:08]wFMCommunicate OK [07:43:08]requested_item fd.num is exist - process it [07:43:08]SAM_PROTO_GetFieldsCounters [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 13 00 00 [07:43:08]Write to MH i2c: E2 08 00 FF 1E 80 13 00 00 00 00 00 00 99 [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 62 00 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 62 00 FF 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 7B 06 01 00 0E 04 04 00 64 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 CD [07:43: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 7B 06 01 00 0E 04 04 00 64 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 [07:43:08]wFMCommunicate OK [07:43:08]SAM_PROTO_GetFieldsCounters done [07:43:08]requested_item shift.num is exist - process it [07:43:08]requested_item shift.opened is exist - process it [07:43:08]req_shift_opened [07:43:08]FM_GetShiftState [07:43:08]SAM_PROTO_GetShiftState [07:43:08]wFMCommunicate request_size=4 [07:43:08]MH_SAM_APDU [07:43:08]CAPDU: 80 13 01 00 [07:43:08]Write to MH i2c: E2 08 00 00 1F 80 13 01 00 00 00 00 00 9C [07:43:08]Write i2c OK [07:43:08]MH_I2C_Read... [07:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:08]Read from MH i2c: E2 [07:43:08]MH_I2C_Read... [07:43:08]Read from MH i2c: E2 0E 00 [07:43:09]MH_I2C_Read... [07:43:09]Read from MH i2c: E2 0E 00 00 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 47 [07:43:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:43:09]wFMCommunicate OK [07:43:09]SAM_PROTO_GetShiftState done [07:43:09]FM_GetShiftState done [07:43:09]req_shift_opened done [07:43:09]requested_item shift.open_date is exist - process it [07:43:09]req_shift_open_date [07:43:09]req_shift_open_date done [07:43:09]produce_requested_data done [07:43:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:43:09]process_action_free print_text [07:43:09]json_value_free [07:43:09]json_value_free done [07:43:09]process_json_proto returns [07:43:09]Send response to host [07:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:43:09]free response buf [07:43:09]execute_script done [07:43:09]execute_script returns [07:43:09]free content buf [07:43:09]Sock 10.Close socket [07:43:09]Sock 10.Thread stoped [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:18]accept exits with 7 [07:44:18]New connection [07:44:18]New thread 3066588516 created [07:44:18]Thread 3066731876 joined [07:44:18]Waiting for new connection... [07:44:18] Sock 7.Parse request [07:44:18]Sock 7.Check first char [07:44:18]Sock 7.First char is OK [07:44:18]request: POST /json_proto HTTP/1.0 [07:44:18]Method: POST [07:44:18]URL: /json_proto [07:44:18]Method is POST - this is cgi request [07:44:18]url: /json_proto [07:44:18]query_string will be loaded in cgi processing [07:44:18]execute_cgi json_proto POST (null) [07:44:18]execute_cgi path=json_proto method=POST [07:44:18]POST find Content-Length [07:44:18]Host: 172.17.41.195:8080 [07:44:18]Content-Length: 1209 [07:44:18]Content-Type: application/json [07:44:18] [07:44:18]POST finish read [07:44:18]Found Content-Length = 1209 [07:44:18]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)507114\u000A15.05.2024 07:26\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.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" ] } } [07:44:18]execute_script... [07:44:18]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)507114\u000A15.05.2024 07:26\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.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" ] } } [07:44:18]POST & json_proto [07:44:18]process_json_proto [07:44:18]json parsed OK: [07:44:18]protocol is kg_v1.0 [07:44:18]action value=print_text [07:44:18]process_action print_text [07:44:18]cmd_print_text [07:44:18]ExternCall_PrintAddStr [07:44:18]wPrintStart [07:44:18]Write to MH i2c: 01 00 00 01 1F 20 [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 07 00 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 FF 0F 35 [07:44:18]RasterBufferAndPrint [07:44:18]line *****ТОВАРНЫЙ ЧЕК***** [07:44:18]line АЗС-91 [07:44:18]line Партнер нефть [07:44:18]line 02508201610067 [07:44:18]line Кассир : Арстанбеков Н. [07:44:18]line Счет N : (1)507114 [07:44:18]line 15.05.2024 07:26 [07:44:18]line ПРОДАЖА [07:44:18]line ТРК (МРК, ГНК): 11 [07:44:18]line Вид ГСМ : 2710194210 [07:44:18]line ДТ-К-5 [07:44:18]line 40.170 x 74.70 [07:44:18]line ИТОГ: 3000.70 [07:44:18]line Тип оплаты: Талоны: Топливная Карта [07:44:18]line 02750 [07:44:18]line ______________________ [07:44:18]line (подпись) [07:44:18]written 0, free lines is 4095 [07:44:18]Write to MH i2c: 01 00 00 15 1F 34 [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 07 00 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: 01 07 00 15 1F 00 00 00 00 00 0E 0E 57 [07:44:18]RasterBufferAndPrint [07:44:18]line [07:44:18]line [07:44:18]line [07:44:18]line [07:44:18]line [07:44:18]written 0, free lines is 3599 [07:44:18]MH_Cut [07:44:18]Write to MH i2c: D1 01 00 1C 1F 01 0D [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: D1 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: D1 01 00 [07:44:18]MH_I2C_Read... [07:44:18]Read from MH i2c: D1 01 00 1C 1F 00 0C [07:44:18]Write to MH i2c: 01 00 00 1D 1F 3C [07:44:18]Write i2c OK [07:44:18]MH_I2C_Read... [07:44:18]*** Cut start [07:44:18]*** Purtial cut [07:44:18]*** Stage 1: CUTSNS_PIN = 1 [07:44:19]Read from MH i2c: 01 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: 01 07 00 [07:44:19]MH_I2C_Read... [07:44:19]*** Stop cut motor [07:44:19]*** Cut end [07:44:19]Read from MH i2c: 01 07 00 1D 1F 00 00 00 00 00 FF 0F 51 [07:44:19]process_action print_text done [07:44:19]requested_data is exist [07:44:19]produce_requested_data [07:44:19]requested_item fm.sn is exist - process it [07:44:19]wFMCommunicate request_size=4 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 11 00 00 [07:44:19]Write to MH i2c: E2 08 00 1E 1F 80 11 00 00 00 00 00 00 B7 [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 17 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 17 00 1E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [07:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:44:19]wFMCommunicate OK [07:44:19]requested_item fd.num is exist - process it [07:44:19]SAM_PROTO_GetFieldsCounters [07:44:19]wFMCommunicate request_size=4 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 13 00 00 [07:44:19]Write to MH i2c: E2 08 00 1F 1F 80 13 00 00 00 00 00 00 BA [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 62 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 62 00 1F 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 7B 06 01 00 0E 04 04 00 64 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 EE [07:44: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 7B 06 01 00 0E 04 04 00 64 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 [07:44:19]wFMCommunicate OK [07:44:19]SAM_PROTO_GetFieldsCounters done [07:44:19]requested_item shift.num is exist - process it [07:44:19]requested_item shift.opened is exist - process it [07:44:19]req_shift_opened [07:44:19]FM_GetShiftState [07:44:19]SAM_PROTO_GetShiftState [07:44:19]wFMCommunicate request_size=4 [07:44:19]MH_SAM_APDU [07:44:19]CAPDU: 80 13 01 00 [07:44:19]Write to MH i2c: E2 08 00 20 1F 80 13 01 00 00 00 00 00 BC [07:44:19]Write i2c OK [07:44:19]MH_I2C_Read... [07:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:19]Read from MH i2c: E2 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 0E 00 [07:44:19]MH_I2C_Read... [07:44:19]Read from MH i2c: E2 0E 00 20 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 67 [07:44:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:44:19]wFMCommunicate OK [07:44:19]SAM_PROTO_GetShiftState done [07:44:19]FM_GetShiftState done [07:44:19]req_shift_opened done [07:44:19]requested_item shift.open_date is exist - process it [07:44:19]req_shift_open_date [07:44:19]req_shift_open_date done [07:44:19]produce_requested_data done [07:44:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:44:19]process_action_free print_text [07:44:19]json_value_free [07:44:19]json_value_free done [07:44:19]process_json_proto returns [07:44:19]Send response to host [07:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67195,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:44:19]free response buf [07:44:19]execute_script done [07:44:19]execute_script returns [07:44:19]free content buf [07:44:19]Sock 7.Close socket [07:44:19]Sock 7.Thread stoped [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]accept exits with 9 [07:45:57]New connection [07:45:57]New thread 3066731876 created [07:45:57]Thread 3066588516 joined [07:45:57]Waiting for new connection... [07:45:57] Sock 9.Parse request [07:45:57]Sock 9.Check first char [07:45:57]Sock 9.First char is OK [07:45:57]request: POST /json_proto HTTP/1.0 [07:45:57]Method: POST [07:45:57]URL: /json_proto [07:45:57]Method is POST - this is cgi request [07:45:57]url: /json_proto [07:45:57]query_string will be loaded in cgi processing [07:45:57]execute_cgi json_proto POST (null) [07:45:57]execute_cgi path=json_proto method=POST [07:45:57]POST find Content-Length [07:45:57]Host: 172.17.41.195:8080 [07:45:57]Content-Length: 677 [07:45:57]Content-Type: application/json [07:45:57] [07:45:57]POST finish read [07:45:57]Found Content-Length = 677 [07:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507115", "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 }]} ], "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:45:57]execute_script... [07:45: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)507115", "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 }]} ], "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:45:57]POST & json_proto [07:45:57]process_json_proto [07:45:57]json parsed OK: [07:45:57]protocol is kg_v1.0 [07:45:57]action value=close_receipt [07:45:57]process_action close_receipt [07:45:57]cmd_close_receipt [07:45:57]MH_GetDate [07:45:57]Write to MH i2c: F0 00 00 21 1F 2F [07:45:57]Write i2c OK [07:45:57]MH_I2C_Read... [07:45:57]Read from MH i2c: F0 [07:45:57]MH_I2C_Read... [07:45:57]Read from MH i2c: F0 09 00 [07:45:57]MH_I2C_Read... [07:45:57]Read from MH i2c: F0 09 00 21 1F 00 38 68 44 66 FC 21 6F 64 72 [07:45:57]GetLastDocTimeStamp 1715758887 [07:45:57]current date 1715759160 [07:45:57]FM_GetShiftState [07:45:57]SAM_PROTO_GetShiftState [07:45:57]wFMCommunicate request_size=4 [07:45:57]MH_SAM_APDU [07:45:57]CAPDU: 80 13 01 00 [07:45:57]Write to MH i2c: E2 08 00 22 1F 80 13 01 00 00 00 00 00 BE [07:45:57]Write i2c OK [07:45:57]MH_I2C_Read... [07:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:57]Read from MH i2c: E2 [07:45:57]MH_I2C_Read... [07:45:57]Read from MH i2c: E2 0E 00 [07:45:57]MH_I2C_Read... [07:45:57]Read from MH i2c: E2 0E 00 22 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 69 [07:45:57]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:45:57]wFMCommunicate OK [07:45:57]SAM_PROTO_GetShiftState done [07:45:57]FM_GetShiftState done [07:45:57]opened in 1715732471 [07:45:57]opened+sec_in_day 1715818871 [07:45:57]quantity*price = 50033 [07:45:57]sum+1 = 50034 [07:45:57]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 СНО: Общий режим Чек 14 15.05.2024 07:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67196 ФПД: 139108969630543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074600&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67196&fm=139108969630543&tin=02508201610067®Number=0000000000091845&sum=50000 [07:45:58]StoreToDocumentArchive [07:45:58]shift 356 fd 67196 [07:45:58]save to /storage/0356/doc_00067196 [07:45:58]save last doc name /storage/0356/doc_00067196 to /storage/kkm_last_doc_name [07:45:58]save OK [07:45:58]Clear old archive folders... [07:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:58]tlvbuf is B6D722D0 [07:45:58]SAM_PROTO_ClearQueue [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 09 00 00 [07:45:58]Write to MH i2c: E2 08 00 2F 1F 80 09 00 00 00 00 00 00 C0 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]SAM_PROTO_ClearQueue done [07:45:58]KKMCreateOFDPacket [07:45:58]OFDProtocolAddRootSTLVToBuf [07:45:58]FM_MakeSignedData [07:45:58]FM_MakeSignedData [07:45:58]SAM_PROTO_SignData [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 01 02 [07:45:58]Write to MH i2c: E2 08 00 30 1F 80 0D 01 02 00 00 00 00 C8 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=255 [07:45:58]MH_SAM_APDU [07:45: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 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 0E 00 00 00 F4 03 04 00 38 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 06 01 00 35 04 06 00 7E [07:45:58]Write to MH i2c: E2 02 01 31 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 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 0E 00 00 00 F4 03 04 00 38 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 06 01 00 35 04 06 00 7E 00 00 11 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=10 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 02 02 05 84 D4 B8 4B 4F [07:45:58]Write to MH i2c: E2 0D 00 32 1F 80 0D 02 02 05 00 84 D4 B8 4B 4F 00 00 7F [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 03 02 [07:45:58]Write to MH i2c: E2 08 00 33 1F 80 0D 03 02 00 00 00 00 CD [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 0B 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 0B 00 33 1F 00 B3 50 57 37 21 11 54 EE 90 00 D3 [07:45:58]RAPDU: B3 50 57 37 21 11 54 EE 90 00 [07:45:58]wFMCommunicate OK [07:45:58]SAM_PROTO_SignData done [07:45:58]FM_MakeSignedData done [07:45:58]CreateOFDProtocolMessage [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 11 00 00 [07:45:58]Write to MH i2c: E2 08 00 34 1F 80 11 00 00 00 00 00 00 CD [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 17 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 17 00 34 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [07:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:45:58]wFMCommunicate OK [07:45:58]CreateOFDProtocolMessage done [07:45:58]OFDSenderStorePacket 67196 [07:45:58]StoreOFDPacket docnum=67196 [07:45: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 31 F9 07 01 D0 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 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 0E 00 00 00 F4 03 04 00 38 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 06 01 00 35 04 06 00 7E 84 D4 B8 4B 4F B3 50 57 37 21 11 54 EE [07:45:58]CheckFolder [07:45:58]dirname=/storage/ofd_packets [07:45:58]CheckFolder done [07:45:58]ProducePacketName [07:45:58]name=ofd_packets/00067196 [07:45:58]NVStorageSaveData ofd_packets/00067196 [07:45:58]File name is /storage/ofd_packets/00067196 [07:45:58]Write 301 bytes [07:45:58]NVStorageSaveData done [07:45:58]OFDSenderStorePacket done [07:45:58]KKMCreateOFDPacket done [07:45:58]NVStorageSaveData kkm_last_timestamp [07:45:58]File name is /storage/kkm_last_timestamp [07:45:58]Write 4 bytes [07:45:58]NVStorageSaveData done [07:45:58]ExternCall_PrintAddStr [07:45:58]wPrintStart [07:45:58]Write to MH i2c: 01 00 00 35 1F 54 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 07 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 07 00 35 1F 00 00 00 00 00 FF 0F 69 [07:45:58]RasterBufferAndPrint [07:45:58]line Счет N : (1)507115 [07:45:58]line ИНН: 02508201610067 [07:45:58]line Контрольно-Кассовый Чек [07:45:58]line ПРОДАЖА [07:45:58]line ТРК (МРК, ГНК) : 23 [07:45:58]line Товар: 2710124130 [07:45:58]line Аи-92-К-5 [07:45:58]line 7.490 * 66.80 [07:45:58]line = 500.33 [07:45:58]line НДС 12% НСП 1% [07:45:58]line > о реализуемом товаре [07:45:58]line ОКРУГЛЕНИЕ: -0.33 [07:45:58]line ИТОГО: 500.00 [07:45:58]line Внесено: 500.00 [07:45:58]line СДАЧА: 0.00 [07:45:58]line НСП 1% : 4.43 [07:45:58]line НДС 12% : 53.13 [07:45:58]line Наличными: 500.00 [07:45:58]line Безнал.: 0.00 [07:45:58]line Место: АЗС № 91 "Партнер Нефть" [07:45:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:45:58]line СНО: Общий режим [07:45:58]line Чек 14 15.05.2024 07:46 [07:45:58]line Смена: 356 ФФД: 1.0 [07:45:58]line ЗНМ: 0300000119 [07:45:58]line РНМ: 0000000000091845 [07:45:58]line Версия ККМ: 001 [07:45:58]line ФМ: 0000000000871829 [07:45:58]line ФД: 67196 [07:45:58]line ФПД: 139108969630543 [07:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074600&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67196&fm=139108969630543&tin=02508201610067®Number=0000000000091845&sum=50000 [07:45:58]written 0, free lines is 4095 [07:45:58]OFD Sender: Processing packet 67196 [packets to send 35, broken 34] [07:45:58]ProducePacketName [07:45:58]name=ofd_packets/00067196 [07:45:58]OFD Sender: To server: pG, [07:45:58]CommunicateWithHost lk.salyk.kg:30040 [07:45:58]ConnectInit lk.salyk.kg [07:45:59]Connected sock=10 [07:45: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 31 F9 07 01 D0 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 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 0E 00 00 00 F4 03 04 00 38 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7C 06 01 00 35 04 06 00 7E 84 D4 B8 4B 4F B3 50 57 37 21 11 54 EE [07:45: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 E7 EA 47 00 C2 1C 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 7C 06 01 00 F4 03 04 00 16 10 44 66 B6 04 01 00 00 CF 65 CE 67 A1 54 BD BF [07:45:59]CommunicateWithHost err = 0 [07:45:59]CheckOFDResponse [07:45:59]1017 (14) - 77093643461234 [07:45:59]1041 (16) - 0000000000871829 [07:45:59]1040 (4) - 67196 [07:45:59]1012 (4) - 15.05.2024 01:29 [07:45:59]1206 (1) - 0 [07:45:59]OFD Sender: Remove packet 67196 [07:45:59]ProducePacketName [07:45:59]name=ofd_packets/00067196 [07:45:59]NVStorageDeleteData [07:45:59]Write to MH i2c: 01 00 00 5F 1F 7E [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 07 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 D1 0C 62 [07:45:59]RasterBufferAndPrint [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]written 0, free lines is 3287 [07:45:59]MH_Cut [07:45:59]Write to MH i2c: D1 01 00 66 1F 01 57 [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: D1 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: D1 01 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: D1 01 00 66 1F 00 56 [07:45:59]Write to MH i2c: 01 00 00 67 1F 86 [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]OFD Sender: No OFD packet to send [07:46:00]*** Cut start [07:46:00]*** Purtial cut [07:46:00]*** CUTSNS_PIN = 0 [07:46:00]*** Stage 1: CUTSNS_PIN = 1 [07:46:02]Read from MH i2c: 01 [07:46:02]MH_I2C_Read... [07:46:02]*** Stop cut motor [07:46:02]*** Cut end [07:46:02]Read from MH i2c: 01 07 00 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: 01 07 00 67 1F 00 00 00 00 00 FF 0F 9B [07:46:02]process_action close_receipt done [07:46:02]requested_data is exist [07:46:02]produce_requested_data [07:46:02]requested_item fm.sn is exist - process it [07:46:02]wFMCommunicate request_size=4 [07:46:02]MH_SAM_APDU [07:46:02]CAPDU: 80 11 00 00 [07:46:02]Write to MH i2c: E2 08 00 68 1F 80 11 00 00 00 00 00 00 01 [07:46:02]Write i2c OK [07:46:02]MH_I2C_Read... [07:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:02]Read from MH i2c: E2 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 17 00 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 17 00 68 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [07:46: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:46:02]wFMCommunicate OK [07:46:02]requested_item fd.num is exist - process it [07:46:02]SAM_PROTO_GetFieldsCounters [07:46:02]wFMCommunicate request_size=4 [07:46:02]MH_SAM_APDU [07:46:02]CAPDU: 80 13 00 00 [07:46:02]Write to MH i2c: E2 08 00 69 1F 80 13 00 00 00 00 00 00 04 [07:46:02]Write i2c OK [07:46:02]MH_I2C_Read... [07:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:02]Read from MH i2c: E2 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 62 00 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 62 00 69 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 7C 06 01 00 0E 04 04 00 64 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 3C [07:46: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 7C 06 01 00 0E 04 04 00 64 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 [07:46:02]wFMCommunicate OK [07:46:02]SAM_PROTO_GetFieldsCounters done [07:46:02]requested_item shift.num is exist - process it [07:46:02]requested_item shift.opened is exist - process it [07:46:02]req_shift_opened [07:46:02]FM_GetShiftState [07:46:02]SAM_PROTO_GetShiftState [07:46:02]wFMCommunicate request_size=4 [07:46:02]MH_SAM_APDU [07:46:02]CAPDU: 80 13 01 00 [07:46:02]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [07:46:02]Write i2c OK [07:46:02]MH_I2C_Read... [07:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:02]Read from MH i2c: E2 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 0E 00 [07:46:02]MH_I2C_Read... [07:46:02]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B1 [07:46:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:46:02]wFMCommunicate OK [07:46:02]SAM_PROTO_GetShiftState done [07:46:02]FM_GetShiftState done [07:46:02]req_shift_opened done [07:46:02]requested_item shift.open_date is exist - process it [07:46:02]req_shift_open_date [07:46:02]req_shift_open_date done [07:46:02]produce_requested_data done [07:46:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67196,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:46:02]process_action_free close_receipt [07:46:02]json_value_free [07:46:02]json_value_free done [07:46:02]process_json_proto returns [07:46:02]Send response to host [07:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67196,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:46:02]free response buf [07:46:02]execute_script done [07:46:02]execute_script returns [07:46:02]free content buf [07:46:02]Sock 9.Close socket [07:46:02]Sock 9.Thread stoped [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:32]accept exits with 7 [07:47:32]New connection [07:47:32]New thread 3066588516 created [07:47:32]Thread 3066731876 joined [07:47:32]Waiting for new connection... [07:47:32] Sock 7.Parse request [07:47:32]Sock 7.Check first char [07:47:32]Sock 7.First char is OK [07:47:32]request: POST /json_proto HTTP/1.0 [07:47:32]Method: POST [07:47:32]URL: /json_proto [07:47:32]Method is POST - this is cgi request [07:47:32]url: /json_proto [07:47:32]query_string will be loaded in cgi processing [07:47:32]execute_cgi json_proto POST (null) [07:47:32]execute_cgi path=json_proto method=POST [07:47:32]POST find Content-Length [07:47:32]Host: 172.17.41.195:8080 [07:47:32]Content-Length: 1209 [07:47:32]Content-Type: application/json [07:47:32] [07:47:32]POST finish read [07:47:32]Found Content-Length = 1209 [07:47: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)507116\u000A15.05.2024 07:30\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" ] } } [07:47:32]execute_script... [07:47: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)507116\u000A15.05.2024 07:30\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" ] } } [07:47:32]POST & json_proto [07:47:32]process_json_proto [07:47:32]json parsed OK: [07:47:32]protocol is kg_v1.0 [07:47:32]action value=print_text [07:47:32]process_action print_text [07:47:32]cmd_print_text [07:47:32]ExternCall_PrintAddStr [07:47:32]wPrintStart [07:47:32]Write to MH i2c: 01 00 00 6B 1F 8A [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 FF 0F 9F [07:47:32]RasterBufferAndPrint [07:47:32]line *****ТОВАРНЫЙ ЧЕК***** [07:47:32]line АЗС-91 [07:47:32]line Партнер нефть [07:47:32]line 02508201610067 [07:47:32]line Кассир : Арстанбеков Н. [07:47:32]line Счет N : (1)507116 [07:47:32]line 15.05.2024 07:30 [07:47:32]line ПРОДАЖА [07:47:32]line ТРК (МРК, ГНК): 31 [07:47:32]line Вид ГСМ : 2710194210 [07:47:32]line ДТ-К-5 [07:47:32]line 26.780 x 74.70 [07:47:32]line ИТОГ: 2000.47 [07:47:32]line Тип оплаты: Талоны: Топливная Карта [07:47:32]line 02750 [07:47:32]line ______________________ [07:47:32]line (подпись) [07:47:32]written 0, free lines is 4095 [07:47:32]Write to MH i2c: 01 00 00 7F 1F 9E [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 0E 0E C1 [07:47:32]RasterBufferAndPrint [07:47:32]line [07:47:32]line [07:47:32]line [07:47:32]line [07:47:32]line [07:47:32]written 0, free lines is 3600 [07:47:32]MH_Cut [07:47:32]Write to MH i2c: D1 01 00 86 1F 01 77 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: D1 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: D1 01 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: D1 01 00 86 1F 00 76 [07:47:32]Write to MH i2c: 01 00 00 87 1F A6 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** Cut start [07:47:32]*** Purtial cut [07:47:32]*** Stage 1: CUTSNS_PIN = 1 [07:47:33]Read from MH i2c: 01 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 07 00 [07:47:33]MH_I2C_Read... [07:47:33]*** Stop cut motor [07:47:33]*** Cut end [07:47:33]Read from MH i2c: 01 07 00 87 1F 00 00 00 00 00 FF 0F BB [07:47:33]process_action print_text done [07:47:33]requested_data is exist [07:47:33]produce_requested_data [07:47:33]requested_item fm.sn is exist - process it [07:47:33]wFMCommunicate request_size=4 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 11 00 00 [07:47:33]Write to MH i2c: E2 08 00 88 1F 80 11 00 00 00 00 00 00 21 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 17 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 17 00 88 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 77 [07:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:47:33]wFMCommunicate OK [07:47:33]requested_item fd.num is exist - process it [07:47:33]SAM_PROTO_GetFieldsCounters [07:47:33]wFMCommunicate request_size=4 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 13 00 00 [07:47:33]Write to MH i2c: E2 08 00 89 1F 80 13 00 00 00 00 00 00 24 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 62 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 62 00 89 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 7C 06 01 00 0E 04 04 00 64 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 5C [07:47: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 7C 06 01 00 0E 04 04 00 64 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 [07:47:33]wFMCommunicate OK [07:47:33]SAM_PROTO_GetFieldsCounters done [07:47:33]requested_item shift.num is exist - process it [07:47:33]requested_item shift.opened is exist - process it [07:47:33]req_shift_opened [07:47:33]FM_GetShiftState [07:47:33]SAM_PROTO_GetShiftState [07:47:33]wFMCommunicate request_size=4 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 13 01 00 [07:47:33]Write to MH i2c: E2 08 00 8A 1F 80 13 01 00 00 00 00 00 26 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 0E 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 0E 00 8A 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D1 [07:47:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:47:33]wFMCommunicate OK [07:47:33]SAM_PROTO_GetShiftState done [07:47:33]FM_GetShiftState done [07:47:33]req_shift_opened done [07:47:33]requested_item shift.open_date is exist - process it [07:47:33]req_shift_open_date [07:47:33]req_shift_open_date done [07:47:33]produce_requested_data done [07:47:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67196,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:47:33]process_action_free print_text [07:47:33]json_value_free [07:47:33]json_value_free done [07:47:33]process_json_proto returns [07:47:33]Send response to host [07:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67196,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:47:33]free response buf [07:47:33]execute_script done [07:47:33]execute_script returns [07:47:33]free content buf [07:47:33]Sock 7.Close socket [07:47:33]Sock 7.Thread stoped [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]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:16]accept exits with 9 [07:49:16]New connection [07:49:16]New thread 3066731876 created [07:49:16]Thread 3066588516 joined [07:49:16]Waiting for new connection... [07:49:16] Sock 9.Parse request [07:49:16]Sock 9.Check first char [07:49:16]Sock 9.First char is OK [07:49:16]request: POST /json_proto HTTP/1.0 [07:49:16]Method: POST [07:49:16]URL: /json_proto [07:49:16]Method is POST - this is cgi request [07:49:16]url: /json_proto [07:49:16]query_string will be loaded in cgi processing [07:49:16]execute_cgi json_proto POST (null) [07:49:16]execute_cgi path=json_proto method=POST [07:49:16]POST find Content-Length [07:49:16]Host: 172.17.41.195:8080 [07:49:16]Content-Length: 631 [07:49:16]Content-Type: application/json [07:49:16] [07:49:16]POST finish read [07:49:16]Found Content-Length = 631 [07:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12062", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:16]execute_script... [07:49: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)12062", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:16]POST & json_proto [07:49:16]process_json_proto [07:49:16]json parsed OK: [07:49:16]protocol is kg_v1.0 [07:49:16]action value=close_receipt [07:49:16]process_action close_receipt [07:49:16]cmd_close_receipt [07:49:16]MH_GetDate [07:49:16]Write to MH i2c: F0 00 00 8B 1F 99 [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: F0 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: F0 09 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: F0 09 00 8B 1F 00 FF 68 44 66 FC 21 6F 64 A3 [07:49:16]GetLastDocTimeStamp 1715759160 [07:49:16]current date 1715759359 [07:49:16]FM_GetShiftState [07:49:16]SAM_PROTO_GetShiftState [07:49:16]wFMCommunicate request_size=4 [07:49:16]MH_SAM_APDU [07:49:16]CAPDU: 80 13 01 00 [07:49:16]Write to MH i2c: E2 08 00 8C 1F 80 13 01 00 00 00 00 00 28 [07:49:16]Write i2c OK [07:49:16]MH_I2C_Read... [07:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:16]Read from MH i2c: E2 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 0E 00 [07:49:16]MH_I2C_Read... [07:49:16]Read from MH i2c: E2 0E 00 8C 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D3 [07:49:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:49:16]wFMCommunicate OK [07:49:16]SAM_PROTO_GetShiftState done [07:49:16]FM_GetShiftState done [07:49:16]opened in 1715732471 [07:49:16]opened+sec_in_day 1715818871 [07:49:16]quantity*price = 3500 [07:49:16]sum+1 = 3501 [07:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 15 15.05.2024 07:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67197 ФПД: 104729535408457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074919&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67197&fm=104729535408457&tin=02508201610067®Number=0000000000091845&sum=3500 0 [07:49:17]StoreToDocumentArchive [07:49:17]shift 356 fd 67197 [07:49:17]save to /storage/0356/doc_00067197 [07:49:17]save last doc name /storage/0356/doc_00067197 to /storage/kkm_last_doc_name [07:49:17]save OK [07:49:17]Clear old archive folders... [07:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [07:49:17]tlvbuf is 0035ADD0 [07:49:17]SAM_PROTO_ClearQueue [07:49:17]wFMCommunicate request_size=4 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 09 00 00 [07:49:17]Write to MH i2c: E2 08 00 99 1F 80 09 00 00 00 00 00 00 2A [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 99 1F 00 90 00 2C [07:49:17]RAPDU: 90 00 [07:49:17]wFMCommunicate OK [07:49:17]SAM_PROTO_ClearQueue done [07:49:17]KKMCreateOFDPacket [07:49:17]OFDProtocolAddRootSTLVToBuf [07:49:17]FM_MakeSignedData [07:49:17]FM_MakeSignedData [07:49:17]SAM_PROTO_SignData [07:49:17]wFMCommunicate request_size=4 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 0D 01 02 [07:49:17]Write to MH i2c: E2 08 00 9A 1F 80 0D 01 02 00 00 00 00 32 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [07:49:17]RAPDU: 90 00 [07:49:17]wFMCommunicate OK [07:49:17]wFMCommunicate request_size=255 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 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 FF 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [07:49:17]Write to MH i2c: E2 02 01 9B 1F 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 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 FF 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8D [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [07:49:17]RAPDU: 90 00 [07:49:17]wFMCommunicate OK [07:49:17]wFMCommunicate request_size=30 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 0D 02 02 19 30 38 37 31 38 32 39 10 04 04 00 7D 06 01 00 35 04 06 00 5F 40 3E C1 69 49 [07:49:17]Write to MH i2c: E2 21 00 9C 1F 80 0D 02 02 19 00 30 38 37 31 38 32 39 10 04 04 00 7D 06 01 00 35 04 06 00 5F 40 3E C1 69 49 00 00 05 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [07:49:17]RAPDU: 90 00 [07:49:17]wFMCommunicate OK [07:49:17]wFMCommunicate request_size=4 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 0D 03 02 [07:49:17]Write to MH i2c: E2 08 00 9D 1F 80 0D 03 02 00 00 00 00 37 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 0B 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 0B 00 9D 1F 00 AE AF BD E2 FD 6B 44 5C 90 00 3C [07:49:17]RAPDU: AE AF BD E2 FD 6B 44 5C 90 00 [07:49:17]wFMCommunicate OK [07:49:17]SAM_PROTO_SignData done [07:49:17]FM_MakeSignedData done [07:49:17]CreateOFDProtocolMessage [07:49:17]wFMCommunicate request_size=4 [07:49:17]MH_SAM_APDU [07:49:17]CAPDU: 80 11 00 00 [07:49:17]Write to MH i2c: E2 08 00 9E 1F 80 11 00 00 00 00 00 00 37 [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:17]Read from MH i2c: E2 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 17 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: E2 17 00 9E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [07:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:49:17]wFMCommunicate OK [07:49:17]CreateOFDProtocolMessage done [07:49:17]OFDSenderStorePacket 67197 [07:49:17]StoreOFDPacket docnum=67197 [07:49: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 23 01 00 00 88 22 1B 01 27 F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 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 FF 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 06 01 00 35 04 06 00 5F 40 3E C1 69 49 AE AF BD E2 FD 6B 44 5C [07:49:17]CheckFolder [07:49:17]dirname=/storage/ofd_packets [07:49:17]CheckFolder done [07:49:17]ProducePacketName [07:49:17]name=ofd_packets/00067197 [07:49:17]NVStorageSaveData ofd_packets/00067197 [07:49:17]File name is /storage/ofd_packets/00067197 [07:49:17]Write 321 bytes [07:49:17]NVStorageSaveData done [07:49:17]OFDSenderStorePacket done [07:49:17]KKMCreateOFDPacket done [07:49:17]NVStorageSaveData kkm_last_timestamp [07:49:17]File name is /storage/kkm_last_timestamp [07:49:17]Write 4 bytes [07:49:17]NVStorageSaveData done [07:49:17]OFD Sender: Processing packet 67197 [packets to send 35, broken 34] [07:49:17]ProducePacketName [07:49:17]name=ofd_packets/00067197 [07:49:17]OFD Sender: To server: pG, [07:49:17]CommunicateWithHost lk.salyk.kg:30040 [07:49:17]ConnectInit lk.salyk.kg [07:49:17]ExternCall_PrintAddStr [07:49:17]wPrintStart [07:49:17]Write to MH i2c: 01 00 00 9F 1F BE [07:49:17]Write i2c OK [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 07 00 [07:49:17]MH_I2C_Read... [07:49:17]Read from MH i2c: 01 07 00 9F 1F 00 00 00 00 00 FF 0F D3 [07:49:17]RasterBufferAndPrint [07:49:17]line Счет N : (3)12062 [07:49:17]line ИНН: 02508201610067 [07:49:17]line Контрольно-Кассовый Чек [07:49:17]line ПРОДАЖА [07:49:17]line Товар: 4700000160211 [07:49:17]line Вода Легенда 0,5л [07:49:17]line 1.000 * 35.00 [07:49:17]line = 35.00 [07:49:17]line НДС 12% НСП 1% [07:49:17]line > о реализуемом товаре [07:49:17]line ИТОГО: 35.00 [07:49:17]line НСП 1% : 0.31 [07:49:17]line НДС 12% : 3.72 [07:49:17]line Наличными: 35.00 [07:49:17]line Безнал.: 0.00 [07:49:17]line Место: АЗС № 91 "Партнер Нефть" [07:49:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:49:17]line СНО: Общий режим [07:49:17]line Чек 15 15.05.2024 07:49 [07:49:17]line Смена: 356 ФФД: 1.0 [07:49:17]line ЗНМ: 0300000119 [07:49:17]line РНМ: 0000000000091845 [07:49:17]line Версия ККМ: 001 [07:49:17]line ФМ: 0000000000871829 [07:49:17]line ФД: 67197 [07:49:17]line ФПД: 104729535408457 [07:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T074919&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67197&fm=104729535408457&tin=02508201610067®Number=0000000000091845&sum=3500 [07:49:18]line 0 [07:49:18]Connected sock=10 [07:49: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 23 01 00 00 88 22 1B 01 27 F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 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 FF 68 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7D 06 01 00 35 04 06 00 5F 40 3E C1 69 49 AE AF BD E2 FD 6B 44 5C [07:49:18]written 0, free lines is 4095 [07:49: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 FB 27 47 00 1A 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 7D 06 01 00 F4 03 04 00 DD 10 44 66 B6 04 01 00 00 A4 F0 0D 8B 17 9C 05 B6 [07:49:18]CommunicateWithHost err = 0 [07:49:18]CheckOFDResponse [07:49:18]1017 (14) - 77093643461234 [07:49:18]1041 (16) - 0000000000871829 [07:49:18]1040 (4) - 67197 [07:49:18]1012 (4) - 15.05.2024 01:33 [07:49:18]1206 (1) - 0 [07:49:18]OFD Sender: Remove packet 67197 [07:49:18]ProducePacketName [07:49:18]name=ofd_packets/00067197 [07:49:18]NVStorageDeleteData [07:49:18]Write to MH i2c: 01 00 00 C6 1F E5 [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: 01 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: 01 07 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 E2 0C DA [07:49:18]RasterBufferAndPrint [07:49:18]line [07:49:18]line [07:49:18]line [07:49:18]line [07:49:18]line [07:49:18]written 0, free lines is 3304 [07:49:18]MH_Cut [07:49:18]Write to MH i2c: D1 01 00 CD 1F 01 BE [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: D1 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: D1 01 00 [07:49:18]MH_I2C_Read... [07:49:18]Read from MH i2c: D1 01 00 CD 1F 00 BD [07:49:18]Write to MH i2c: 01 00 00 CE 1F ED [07:49:18]Write i2c OK [07:49:18]MH_I2C_Read... [07:49:18]OFD Sender: No OFD packet to send [07:49:19]*** Cut start [07:49:19]*** Purtial cut [07:49:19]*** CUTSNS_PIN = 0 [07:49:19]*** Stage 1: CUTSNS_PIN = 1 [07:49:21]Read from MH i2c: 01 [07:49:21]MH_I2C_Read... [07:49:21]*** Stop cut motor [07:49:21]*** Cut end [07:49:21]Read from MH i2c: 01 07 00 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: 01 07 00 CE 1F 00 00 00 00 00 FF 0F 02 [07:49:21]process_action close_receipt done [07:49:21]requested_data is exist [07:49:21]produce_requested_data [07:49:21]requested_item fm.sn is exist - process it [07:49:21]wFMCommunicate request_size=4 [07:49:21]MH_SAM_APDU [07:49:21]CAPDU: 80 11 00 00 [07:49:21]Write to MH i2c: E2 08 00 CF 1F 80 11 00 00 00 00 00 00 68 [07:49:21]Write i2c OK [07:49:21]MH_I2C_Read... [07:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:21]Read from MH i2c: E2 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 17 00 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 17 00 CF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [07:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:49:21]wFMCommunicate OK [07:49:21]requested_item fd.num is exist - process it [07:49:21]SAM_PROTO_GetFieldsCounters [07:49:21]wFMCommunicate request_size=4 [07:49:21]MH_SAM_APDU [07:49:21]CAPDU: 80 13 00 00 [07:49:21]Write to MH i2c: E2 08 00 D0 1F 80 13 00 00 00 00 00 00 6B [07:49:21]Write i2c OK [07:49:21]MH_I2C_Read... [07:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:21]Read from MH i2c: E2 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 62 00 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 62 00 D0 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 7D 06 01 00 0E 04 04 00 64 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 A7 [07:49: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 7D 06 01 00 0E 04 04 00 64 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 [07:49:21]wFMCommunicate OK [07:49:21]SAM_PROTO_GetFieldsCounters done [07:49:21]requested_item shift.num is exist - process it [07:49:21]requested_item shift.opened is exist - process it [07:49:21]req_shift_opened [07:49:21]FM_GetShiftState [07:49:21]SAM_PROTO_GetShiftState [07:49:21]wFMCommunicate request_size=4 [07:49:21]MH_SAM_APDU [07:49:21]CAPDU: 80 13 01 00 [07:49:21]Write to MH i2c: E2 08 00 D1 1F 80 13 01 00 00 00 00 00 6D [07:49:21]Write i2c OK [07:49:21]MH_I2C_Read... [07:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:21]Read from MH i2c: E2 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 0E 00 [07:49:21]MH_I2C_Read... [07:49:21]Read from MH i2c: E2 0E 00 D1 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 18 [07:49:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:49:21]wFMCommunicate OK [07:49:21]SAM_PROTO_GetShiftState done [07:49:21]FM_GetShiftState done [07:49:21]req_shift_opened done [07:49:21]requested_item shift.open_date is exist - process it [07:49:21]req_shift_open_date [07:49:21]req_shift_open_date done [07:49:21]produce_requested_data done [07:49:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67197,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:49:21]process_action_free close_receipt [07:49:21]json_value_free [07:49:21]json_value_free done [07:49:21]process_json_proto returns [07:49:21]Send response to host [07:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67197,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:49:21]free response buf [07:49:21]execute_script done [07:49:21]execute_script returns [07:49:21]free content buf [07:49:21]Sock 9.Close socket [07:49:21]Sock 9.Thread stoped [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]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:11]accept exits with 7 [07:54:11]New connection [07:54:11]New thread 3066588516 created [07:54:11]Thread 3066731876 joined [07:54:11]Waiting for new connection... [07:54:11] Sock 7.Parse request [07:54:11]Sock 7.Check first char [07:54:11]Sock 7.First char is OK [07:54:11]request: POST /json_proto HTTP/1.0 [07:54:11]Method: POST [07:54:11]URL: /json_proto [07:54:11]Method is POST - this is cgi request [07:54:11]url: /json_proto [07:54:11]query_string will be loaded in cgi processing [07:54:11]execute_cgi json_proto POST (null) [07:54:11]execute_cgi path=json_proto method=POST [07:54:11]POST find Content-Length [07:54:11]Host: 172.17.41.195:8080 [07:54:11]Content-Length: 980 [07:54:11]Content-Type: application/json [07:54:11] [07:54:11]POST finish read [07:54:11]Found Content-Length = 980 [07:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12063", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 181.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:11]execute_script... [07:54: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 : (3)12063", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 181.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:11]POST & json_proto [07:54:11]process_json_proto [07:54:11]json parsed OK: [07:54:11]protocol is kg_v1.0 [07:54:11]action value=close_receipt [07:54:11]process_action close_receipt [07:54:11]cmd_close_receipt [07:54:11]MH_GetDate [07:54:11]Write to MH i2c: F0 00 00 D2 1F E0 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 09 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: F0 09 00 D2 1F 00 26 6A 44 66 FC 21 6F 64 13 [07:54:11]GetLastDocTimeStamp 1715759359 [07:54:11]current date 1715759654 [07:54:11]FM_GetShiftState [07:54:11]SAM_PROTO_GetShiftState [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 01 00 [07:54:11]Write to MH i2c: E2 08 00 D3 1F 80 13 01 00 00 00 00 00 6F [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 D3 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1A [07:54:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetShiftState done [07:54:11]FM_GetShiftState done [07:54:11]opened in 1715732471 [07:54:11]opened+sec_in_day 1715818871 [07:54:11]quantity*price = 8500 [07:54:11]sum+1 = 8501 [07:54:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 96.00 = 96.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 181.00 НСП 1% : 1.60 НДС 12% : 19.22 Наличными: 181.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 16 15.05.2024 07:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67198 ФПД: 77923263511255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075414&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67198&fm=77923263511255&tin=02508201610067®Number=0000000000091845&sum=18100 0 [07:54:12]StoreToDocumentArchive [07:54:12]shift 356 fd 67198 [07:54:12]save to /storage/0356/doc_00067198 [07:54:12]save last doc name /storage/0356/doc_00067198 to /storage/kkm_last_doc_name [07:54:12]save OK [07:54:12]Clear old archive folders... [07:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=427 [07:54:12]tlvbuf is 003B1600 [07:54:12]SAM_PROTO_ClearQueue [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 09 00 00 [07:54:12]Write to MH i2c: E2 08 00 E0 1F 80 09 00 00 00 00 00 00 71 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_ClearQueue done [07:54:12]KKMCreateOFDPacket [07:54:12]OFDProtocolAddRootSTLVToBuf [07:54:12]FM_MakeSignedData [07:54:12]FM_MakeSignedData [07:54:12]SAM_PROTO_SignData [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 01 02 [07:54:12]Write to MH i2c: E2 08 00 E1 1F 80 0D 01 02 00 00 00 00 79 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]wFMCommunicate request_size=255 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 02 02 FA 03 00 AB 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 [07:54:12]Write to MH i2c: E2 02 01 E2 1F 80 0D 02 02 FA 00 03 00 AB 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 00 F8 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [07:54:12]RAPDU: 90 00 [07:54:12]wFMCommunicate OK [07:54:12]wFMCommunicate request_size=186 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 0D 02 02 B5 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 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 26 6A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 06 01 00 35 04 06 00 46 DE EC 70 FA D7 [07:54:12]Write to MH i2c: E2 BD 00 E3 1F 80 0D 02 02 B5 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 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 26 6A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 06 01 00 35 04 06 00 46 DE EC 70 FA D7 00 00 83 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 03 00 E3 1F 00 90 00 76 [07:54:13]RAPDU: 90 00 [07:54:13]wFMCommunicate OK [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 0D 03 02 [07:54:13]Write to MH i2c: E2 08 00 E4 1F 80 0D 03 02 00 00 00 00 7E [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 0B 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 0B 00 E4 1F 00 7D 67 E7 E3 C4 9A BD 59 90 00 A1 [07:54:13]RAPDU: 7D 67 E7 E3 C4 9A BD 59 90 00 [07:54:13]wFMCommunicate OK [07:54:13]SAM_PROTO_SignData done [07:54:13]FM_MakeSignedData done [07:54:13]CreateOFDProtocolMessage [07:54:13]wFMCommunicate request_size=4 [07:54:13]MH_SAM_APDU [07:54:13]CAPDU: 80 11 00 00 [07:54:13]Write to MH i2c: E2 08 00 E5 1F 80 11 00 00 00 00 00 00 7E [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:13]Read from MH i2c: E2 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 17 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: E2 17 00 E5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D4 [07:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:54:13]wFMCommunicate OK [07:54:13]CreateOFDProtocolMessage done [07:54:13]OFDSenderStorePacket 67198 [07:54:13]StoreOFDPacket docnum=67198 [07:54: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 BF 01 00 00 C5 3C B7 01 9D CD 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 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 26 6A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 06 01 00 35 04 06 00 46 DE EC 70 FA D7 7D 67 E7 E3 C4 9A BD 59 [07:54:13]CheckFolder [07:54:13]dirname=/storage/ofd_packets [07:54:13]CheckFolder done [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00067198 [07:54:13]NVStorageSaveData ofd_packets/00067198 [07:54:13]File name is /storage/ofd_packets/00067198 [07:54:13]Write 477 bytes [07:54:13]NVStorageSaveData done [07:54:13]OFDSenderStorePacket done [07:54:13]KKMCreateOFDPacket done [07:54:13]NVStorageSaveData kkm_last_timestamp [07:54:13]File name is /storage/kkm_last_timestamp [07:54:13]Write 4 bytes [07:54:13]NVStorageSaveData done [07:54:13]ExternCall_PrintAddStr [07:54:13]wPrintStart [07:54:13]Write to MH i2c: 01 00 00 E6 1F 05 [07:54:13]OFD Sender: Processing packet 67198 [packets to send 35, broken 34] [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00067198 [07:54:13]OFD Sender: To server: pG, [07:54:13]Write i2c OK [07:54:13]CommunicateWithHost lk.salyk.kg:30040 [07:54:13]MH_I2C_Read... [07:54:13]ConnectInit lk.salyk.kg [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 E6 1F 00 00 00 00 00 FF 0F 1A [07:54:13]RasterBufferAndPrint [07:54:13]line Счет N : (3)12063 [07:54:13]line ИНН: 02508201610067 [07:54:13]line Контрольно-Кассовый Чек [07:54:13]line ПРОДАЖА [07:54:13]line Товар: 4600682557456 [07:54:13]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:54:13]line 1.000 * 85.00 [07:54:13]line = 85.00 [07:54:13]line НДС 12% НСП 1% [07:54:13]line > о реализуемом товаре [07:54:13]line Товар: 4870202521216 [07:54:13]line Напиток MAXI чай 1,2 зел.лимон (новый) [07:54:13]line 1.000 * 96.00 [07:54:13]line = 96.00 [07:54:13]line НДС 12% НСП 1% [07:54:13]line > о реализуемом товаре [07:54:13]line ИТОГО: 181.00 [07:54:13]line НСП 1% : 1.60 [07:54:13]line НДС 12% : 19.22 [07:54:13]line Наличными: 181.00 [07:54:13]line Безнал.: 0.00 [07:54:13]line Место: АЗС № 91 "Партнер Нефть" [07:54:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:54:13]line СНО: Общий режим [07:54:13]line Чек 16 15.05.2024 07:54 [07:54:13]line Смена: 356 ФФД: 1.0 [07:54:13]line ЗНМ: 0300000119 [07:54:13]line РНМ: 0000000000091845 [07:54:13]line Версия ККМ: 001 [07:54:13]line ФМ: 0000000000871829 [07:54:13]line ФД: 67198 [07:54:13]line ФПД: 77923263511255 [07:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075414&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67198&fm=77923263511255&tin=02508201610067®Number=0000000000091845&sum=18100 [07:54:13]line 0 [07:54:13]written 0, free lines is 4095 [07:54:13]Connected sock=11 [07:54: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 BF 01 00 00 C5 3C B7 01 9D CD 5A 03 01 00 03 00 AB 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 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 26 6A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7E 06 01 00 35 04 06 00 46 DE EC 70 FA D7 7D 67 E7 E3 C4 9A BD 59 [07:54: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 7D BA 47 00 37 B0 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 7E 06 01 00 F4 03 04 00 04 12 44 66 B6 04 01 00 00 B5 1B D2 A0 C1 18 D3 2E [07:54:13]CommunicateWithHost err = 0 [07:54:13]CheckOFDResponse [07:54:13]1017 (14) - 77093643461234 [07:54:13]1041 (16) - 0000000000871829 [07:54:13]1040 (4) - 67198 [07:54:13]1012 (4) - 15.05.2024 01:38 [07:54:13]1206 (1) - 0 [07:54:13]OFD Sender: Remove packet 67198 [07:54:13]ProducePacketName [07:54:13]name=ofd_packets/00067198 [07:54:13]NVStorageDeleteData [07:54:13]Write to MH i2c: 01 00 00 15 20 35 [07:54:13]Write i2c OK [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 [07:54:13]MH_I2C_Read... [07:54:13]Read from MH i2c: 01 07 00 15 20 00 00 00 00 00 4C 0C 94 [07:54:13]RasterBufferAndPrint [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]line [07:54:13]written 0, free lines is 3153 [07:54:14]MH_Cut [07:54:14]Write to MH i2c: D1 01 00 1C 20 01 0E [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 01 00 [07:54:14]MH_I2C_Read... [07:54:14]Read from MH i2c: D1 01 00 1C 20 00 0D [07:54:14]Write to MH i2c: 01 00 00 1D 20 3D [07:54:14]Write i2c OK [07:54:14]MH_I2C_Read... [07:54:14]OFD Sender: No OFD packet to send [07:54:14]*** Cut start [07:54:14]*** Purtial cut [07:54:14]*** Stage 1: CUTSNS_PIN = 1 [07:54:15]Read from MH i2c: 01 [07:54:15]MH_I2C_Read... [07:54:15]*** Stop cut motor [07:54:15]*** Cut end [07:54:15]Read from MH i2c: 01 07 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: 01 07 00 1D 20 00 00 00 00 00 FF 0F 52 [07:54:15]process_action close_receipt done [07:54:15]requested_data is exist [07:54:15]produce_requested_data [07:54:15]requested_item fm.sn is exist - process it [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 11 00 00 [07:54:15]Write to MH i2c: E2 08 00 1E 20 80 11 00 00 00 00 00 00 B8 [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 17 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 17 00 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [07: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 [07:54:15]wFMCommunicate OK [07:54:15]requested_item fd.num is exist - process it [07:54:15]SAM_PROTO_GetFieldsCounters [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 13 00 00 [07:54:15]Write to MH i2c: E2 08 00 1F 20 80 13 00 00 00 00 00 00 BB [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 62 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 62 00 1F 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 7E 06 01 00 0E 04 04 00 64 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 FB [07: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 7E 06 01 00 0E 04 04 00 64 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 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_GetFieldsCounters done [07:54:15]requested_item shift.num is exist - process it [07:54:15]requested_item shift.opened is exist - process it [07:54:15]req_shift_opened [07:54:15]FM_GetShiftState [07:54:15]SAM_PROTO_GetShiftState [07:54:15]wFMCommunicate request_size=4 [07:54:15]MH_SAM_APDU [07:54:15]CAPDU: 80 13 01 00 [07:54:15]Write to MH i2c: E2 08 00 20 20 80 13 01 00 00 00 00 00 BD [07:54:15]Write i2c OK [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 [07:54:15]MH_I2C_Read... [07:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:15]Read from MH i2c: E2 0E 00 [07:54:15]MH_I2C_Read... [07:54:15]Read from MH i2c: E2 0E 00 20 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 68 [07:54:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:54:15]wFMCommunicate OK [07:54:15]SAM_PROTO_GetShiftState done [07:54:15]FM_GetShiftState done [07:54:15]req_shift_opened done [07:54:15]requested_item shift.open_date is exist - process it [07:54:15]req_shift_open_date [07:54:15]req_shift_open_date done [07:54:15]produce_requested_data done [07:54:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67198,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:54:15]process_action_free close_receipt [07:54:15]json_value_free [07:54:15]json_value_free done [07:54:15]process_json_proto returns [07:54:15]Send response to host [07:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67198,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:54:15]free response buf [07:54:15]execute_script done [07:54:15]execute_script returns [07:54:15]free content buf [07:54:15]Sock 7.Close socket [07:54:15]Sock 7.Thread stoped [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]accept exits with 9 [07:56:09]New connection [07:56:09]New thread 3066731876 created [07:56:09]Thread 3066588516 joined [07:56:09]Waiting for new connection... [07:56:09] Sock 9.Parse request [07:56:09]Sock 9.Check first char [07:56:09]Sock 9.First char is OK [07:56:09]request: POST /json_proto HTTP/1.0 [07:56:09]Method: POST [07:56:09]URL: /json_proto [07:56:09]Method is POST - this is cgi request [07:56:09]url: /json_proto [07:56:09]query_string will be loaded in cgi processing [07:56:09]execute_cgi json_proto POST (null) [07:56:09]execute_cgi path=json_proto method=POST [07:56:09]POST find Content-Length [07:56:09]Host: 172.17.41.195:8080 [07:56:09]Content-Length: 1209 [07:56:09]Content-Type: application/json [07:56:09] [07:56:09]POST finish read [07:56:09]Found Content-Length = 1209 [07:56:09]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)507117\u000A15.05.2024 07:38\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.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" ] } } [07:56:09]execute_script... [07:56:09]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)507117\u000A15.05.2024 07:38\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.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" ] } } [07:56:09]POST & json_proto [07:56:09]process_json_proto [07:56:09]json parsed OK: [07:56:09]protocol is kg_v1.0 [07:56:09]action value=print_text [07:56:09]process_action print_text [07:56:09]cmd_print_text [07:56:09]ExternCall_PrintAddStr [07:56:09]wPrintStart [07:56:09]Write to MH i2c: 01 00 00 21 20 41 [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 07 00 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [07:56:09]RasterBufferAndPrint [07:56:09]line *****ТОВАРНЫЙ ЧЕК***** [07:56:09]line АЗС-91 [07:56:09]line Партнер нефть [07:56:09]line 02508201610067 [07:56:09]line Кассир : Арстанбеков Н. [07:56:09]line Счет N : (1)507117 [07:56:09]line 15.05.2024 07:38 [07:56:09]line ПРОДАЖА [07:56:09]line ТРК (МРК, ГНК): 21 [07:56:09]line Вид ГСМ : 2710194210 [07:56:09]line ДТ-К-5 [07:56:09]line 40.170 x 74.70 [07:56:09]line ИТОГ: 3000.70 [07:56:09]line Тип оплаты: Талоны: Топливная Карта [07:56:09]line 02750 [07:56:09]line ______________________ [07:56:09]line (подпись) [07:56:09]written 0, free lines is 4095 [07:56:09]Write to MH i2c: 01 00 00 35 20 55 [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 07 00 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 0E 0E 78 [07:56:09]RasterBufferAndPrint [07:56:09]line [07:56:09]line [07:56:09]line [07:56:09]line [07:56:09]line [07:56:09]written 0, free lines is 3599 [07:56:09]MH_Cut [07:56:09]Write to MH i2c: D1 01 00 3C 20 01 2E [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: D1 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: D1 01 00 [07:56:09]MH_I2C_Read... [07:56:09]Read from MH i2c: D1 01 00 3C 20 00 2D [07:56:09]Write to MH i2c: 01 00 00 3D 20 5D [07:56:09]Write i2c OK [07:56:09]MH_I2C_Read... [07:56:09]OFD Sender: No OFD packet to send [07:56:09]*** Cut start [07:56:09]*** Purtial cut [07:56:09]*** CUTSNS_PIN = 0 [07:56:10]*** Stage 1: CUTSNS_PIN = 1 [07:56:11]Read from MH i2c: 01 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: 01 07 00 [07:56:11]MH_I2C_Read... [07:56:11]*** Stop cut motor [07:56:11]*** Cut end [07:56:11]Read from MH i2c: 01 07 00 3D 20 00 00 00 00 00 FF 0F 72 [07:56:11]process_action print_text done [07:56:11]requested_data is exist [07:56:11]produce_requested_data [07:56:11]requested_item fm.sn is exist - process it [07:56:11]wFMCommunicate request_size=4 [07:56:11]MH_SAM_APDU [07:56:11]CAPDU: 80 11 00 00 [07:56:11]Write to MH i2c: E2 08 00 3E 20 80 11 00 00 00 00 00 00 D8 [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:11]Read from MH i2c: E2 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 17 00 [07:56:11]MH_I2C_Read... [07:56:11]Read from MH i2c: E2 17 00 3E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [07:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:56:11]wFMCommunicate OK [07:56:11]requested_item fd.num is exist - process it [07:56:11]SAM_PROTO_GetFieldsCounters [07:56:11]wFMCommunicate request_size=4 [07:56:11]MH_SAM_APDU [07:56:11]CAPDU: 80 13 00 00 [07:56:11]Write to MH i2c: E2 08 00 3F 20 80 13 00 00 00 00 00 00 DB [07:56:11]Write i2c OK [07:56:11]MH_I2C_Read... [07:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:12]Read from MH i2c: E2 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 62 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 62 00 3F 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 7E 06 01 00 0E 04 04 00 64 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 1B [07:56: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 7E 06 01 00 0E 04 04 00 64 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 [07:56:12]wFMCommunicate OK [07:56:12]SAM_PROTO_GetFieldsCounters done [07:56:12]requested_item shift.num is exist - process it [07:56:12]requested_item shift.opened is exist - process it [07:56:12]req_shift_opened [07:56:12]FM_GetShiftState [07:56:12]SAM_PROTO_GetShiftState [07:56:12]wFMCommunicate request_size=4 [07:56:12]MH_SAM_APDU [07:56:12]CAPDU: 80 13 01 00 [07:56:12]Write to MH i2c: E2 08 00 40 20 80 13 01 00 00 00 00 00 DD [07:56:12]Write i2c OK [07:56:12]MH_I2C_Read... [07:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:12]Read from MH i2c: E2 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 [07:56:12]MH_I2C_Read... [07:56:12]Read from MH i2c: E2 0E 00 40 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 88 [07:56:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:56:12]wFMCommunicate OK [07:56:12]SAM_PROTO_GetShiftState done [07:56:12]FM_GetShiftState done [07:56:12]req_shift_opened done [07:56:12]requested_item shift.open_date is exist - process it [07:56:12]req_shift_open_date [07:56:12]req_shift_open_date done [07:56:12]produce_requested_data done [07:56:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67198,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:56:12]process_action_free print_text [07:56:12]json_value_free [07:56:12]json_value_free done [07:56:12]process_json_proto returns [07:56:12]Send response to host [07:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67198,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:56:12]free response buf [07:56:12]execute_script done [07:56:12]execute_script returns [07:56:12]free content buf [07:56:12]Sock 9.Close socket [07:56:12]Sock 9.Thread stoped [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:06]accept exits with 7 [07:59:06]New connection [07:59:06]New thread 3066588516 created [07:59:06]Thread 3066731876 joined [07:59:06]Waiting for new connection... [07:59:06] Sock 7.Parse request [07:59:06]Sock 7.Check first char [07:59:06]Sock 7.First char is OK [07:59:06]request: POST /json_proto HTTP/1.0 [07:59:06]Method: POST [07:59:06]URL: /json_proto [07:59:06]Method is POST - this is cgi request [07:59:06]url: /json_proto [07:59:06]query_string will be loaded in cgi processing [07:59:06]execute_cgi json_proto POST (null) [07:59:06]execute_cgi path=json_proto method=POST [07:59:06]POST find Content-Length [07:59:06]Host: 172.17.41.195:8080 [07:59:06]Content-Length: 657 [07:59:06]Content-Type: application/json [07:59:06] [07:59:06]POST finish read [07:59:06]Found Content-Length = 657 [07:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12064", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 5.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:06]execute_script... [07:59: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 : (3)12064", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 5.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 20.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:06]POST & json_proto [07:59:06]process_json_proto [07:59:06]json parsed OK: [07:59:06]protocol is kg_v1.0 [07:59:06]action value=close_receipt [07:59:06]process_action close_receipt [07:59:06]cmd_close_receipt [07:59:06]MH_GetDate [07:59:06]Write to MH i2c: F0 00 00 41 20 50 [07:59:06]Write i2c OK [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 09 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: F0 09 00 41 20 00 4D 6B 44 66 FC 21 6F 64 AB [07:59:06]GetLastDocTimeStamp 1715759654 [07:59:06]current date 1715759949 [07:59:06]FM_GetShiftState [07:59:06]SAM_PROTO_GetShiftState [07:59:06]wFMCommunicate request_size=4 [07:59:06]MH_SAM_APDU [07:59:06]CAPDU: 80 13 01 00 [07:59:06]Write to MH i2c: E2 08 00 42 20 80 13 01 00 00 00 00 00 DF [07:59:06]Write i2c OK [07:59:06]MH_I2C_Read... [07:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:06]Read from MH i2c: E2 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 42 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8A [07:59:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:59:06]wFMCommunicate OK [07:59:06]SAM_PROTO_GetShiftState done [07:59:06]FM_GetShiftState done [07:59:06]opened in 1715732471 [07:59:06]opened+sec_in_day 1715818871 [07:59:06]quantity*price = 2000 [07:59:06]sum+1 = 2001 [07:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 20.00 НСП 1% : 0.18 НДС 12% : 2.12 Наличными: 20.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 17 15.05.2024 07:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67199 ФПД: 205773363514473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67199&fm=205773363514473&tin=02508201610067®Number=0000000000091845&sum=2000 0 [07:59:07]StoreToDocumentArchive [07:59:07]shift 356 fd 67199 [07:59:07]save to /storage/0356/doc_00067199 [07:59:07]save last doc name /storage/0356/doc_00067199 to /storage/kkm_last_doc_name [07:59:07]save OK [07:59:07]Clear old archive folders... [07:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:59:07]tlvbuf is 00388430 [07:59:07]SAM_PROTO_ClearQueue [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 09 00 00 [07:59:07]Write to MH i2c: E2 08 00 4F 20 80 09 00 00 00 00 00 00 E1 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 4F 20 00 90 00 E3 [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]SAM_PROTO_ClearQueue done [07:59:07]KKMCreateOFDPacket [07:59:07]OFDProtocolAddRootSTLVToBuf [07:59:07]FM_MakeSignedData [07:59:07]FM_MakeSignedData [07:59:07]SAM_PROTO_SignData [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 01 02 [07:59:07]Write to MH i2c: E2 08 00 50 20 80 0D 01 02 00 00 00 00 E9 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 50 20 00 90 00 E4 [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]wFMCommunicate request_size=255 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 4D 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 [07:59:07]Write to MH i2c: E2 02 01 51 20 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 4D 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 00 00 3B [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 51 20 00 90 00 E5 [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]wFMCommunicate request_size=37 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 06 01 00 35 04 06 00 BB 26 58 3C 8C 69 [07:59:07]Write to MH i2c: E2 28 00 52 20 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 06 01 00 35 04 06 00 BB 26 58 3C 8C 69 00 00 36 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 03 00 52 20 00 90 00 E6 [07:59:07]RAPDU: 90 00 [07:59:07]wFMCommunicate OK [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 0D 03 02 [07:59:07]Write to MH i2c: E2 08 00 53 20 80 0D 03 02 00 00 00 00 EE [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 0B 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 0B 00 53 20 00 4C 7E 4D 96 B1 D5 89 9A 90 00 45 [07:59:07]RAPDU: 4C 7E 4D 96 B1 D5 89 9A 90 00 [07:59:07]wFMCommunicate OK [07:59:07]SAM_PROTO_SignData done [07:59:07]FM_MakeSignedData done [07:59:07]CreateOFDProtocolMessage [07:59:07]wFMCommunicate request_size=4 [07:59:07]MH_SAM_APDU [07:59:07]CAPDU: 80 11 00 00 [07:59:07]Write to MH i2c: E2 08 00 54 20 80 11 00 00 00 00 00 00 EE [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:07]Read from MH i2c: E2 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 17 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: E2 17 00 54 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [07:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:59:07]wFMCommunicate OK [07:59:07]CreateOFDProtocolMessage done [07:59:07]OFDSenderStorePacket 67199 [07:59:07]StoreOFDPacket docnum=67199 [07:59: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 2A 01 00 00 FE 0E 22 01 9F 5C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 4D 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 06 01 00 35 04 06 00 BB 26 58 3C 8C 69 4C 7E 4D 96 B1 D5 89 9A [07:59:07]CheckFolder [07:59:07]dirname=/storage/ofd_packets [07:59:07]CheckFolder done [07:59:07]ProducePacketName [07:59:07]name=ofd_packets/00067199 [07:59:07]NVStorageSaveData ofd_packets/00067199 [07:59:07]File name is /storage/ofd_packets/00067199 [07:59:07]Write 328 bytes [07:59:07]NVStorageSaveData done [07:59:07]OFDSenderStorePacket done [07:59:07]KKMCreateOFDPacket done [07:59:07]NVStorageSaveData kkm_last_timestamp [07:59:07]File name is /storage/kkm_last_timestamp [07:59:07]Write 4 bytes [07:59:07]NVStorageSaveData done [07:59:07]ExternCall_PrintAddStr [07:59:07]wPrintStart [07:59:07]Write to MH i2c: 01 00 00 55 20 75 [07:59:07]Write i2c OK [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: 01 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: 01 07 00 [07:59:07]MH_I2C_Read... [07:59:07]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 FF 0F 8A [07:59:07]RasterBufferAndPrint [07:59:07]line Счет N : (3)12064 [07:59:07]line ИНН: 02508201610067 [07:59:07]line Контрольно-Кассовый Чек [07:59:07]line ПРОДАЖА [07:59:07]line Товар: 2000031750019 [07:59:07]line Пакет Партнер Нефть [07:59:07]line 5.000 * 4.00 [07:59:07]line = 20.00 [07:59:07]line НДС 12% НСП 1% [07:59:07]line > о реализуемом товаре [07:59:07]line ИТОГО: 20.00 [07:59:07]line НСП 1% : 0.18 [07:59:07]line НДС 12% : 2.12 [07:59:07]line Наличными: 20.00 [07:59:07]line Безнал.: 0.00 [07:59:07]line Место: АЗС № 91 "Партнер Нефть" [07:59:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:59:07]line СНО: Общий режим [07:59:07]line Чек 17 15.05.2024 07:59 [07:59:07]line Смена: 356 ФФД: 1.0 [07:59:07]line ЗНМ: 0300000119 [07:59:07]line РНМ: 0000000000091845 [07:59:07]line Версия ККМ: 001 [07:59:07]line ФМ: 0000000000871829 [07:59:07]line ФД: 67199 [07:59:07]line ФПД: 205773363514473 [07:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67199&fm=205773363514473&tin=02508201610067®Number=0000000000091845&sum=2000 [07:59:08]line 0 [07:59:08]OFD Sender: Processing packet 67199 [packets to send 35, broken 34] [07:59:08]ProducePacketName [07:59:08]name=ofd_packets/00067199 [07:59:08]OFD Sender: To server: pG, [07:59:08]CommunicateWithHost lk.salyk.kg:30040 [07:59:08]ConnectInit lk.salyk.kg [07:59:08]written 0, free lines is 4095 [07:59:08]Connected sock=10 [07:59: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 2A 01 00 00 FE 0E 22 01 9F 5C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 00 00 00 00 00 07 04 06 00 D0 07 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 4D 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 7F 06 01 00 35 04 06 00 BB 26 58 3C 8C 69 4C 7E 4D 96 B1 D5 89 9A [07:59: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 C4 DD 47 00 5E 83 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 7F 06 01 00 F4 03 04 00 2B 13 44 66 B6 04 01 00 00 B6 A7 1E 4B 59 8C 7E AE [07:59:08]CommunicateWithHost err = 0 [07:59:08]CheckOFDResponse [07:59:08]1017 (14) - 77093643461234 [07:59:08]1041 (16) - 0000000000871829 [07:59:08]1040 (4) - 67199 [07:59:08]1012 (4) - 15.05.2024 01:43 [07:59:08]1206 (1) - 0 [07:59:08]OFD Sender: Remove packet 67199 [07:59:08]ProducePacketName [07:59:08]name=ofd_packets/00067199 [07:59:08]NVStorageDeleteData [07:59:08]Write to MH i2c: 01 00 00 7C 20 9C [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: 01 07 00 7C 20 00 00 00 00 00 E2 0C 91 [07:59:08]RasterBufferAndPrint [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]line [07:59:08]written 0, free lines is 3304 [07:59:08]MH_Cut [07:59:08]Write to MH i2c: D1 01 00 83 20 01 75 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 01 00 [07:59:08]MH_I2C_Read... [07:59:08]Read from MH i2c: D1 01 00 83 20 00 74 [07:59:08]Write to MH i2c: 01 00 00 84 20 A4 [07:59:08]Write i2c OK [07:59:08]MH_I2C_Read... [07:59:08]OFD Sender: No OFD packet to send [07:59:09]*** Cut start [07:59:09]*** Purtial cut [07:59:09]*** Stage 1: CUTSNS_PIN = 1 [07:59:09]Read from MH i2c: 01 [07:59:09]MH_I2C_Read... [07:59:09]*** Stop cut motor [07:59:09]*** Cut end [07:59:09]Read from MH i2c: 01 07 00 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 FF 0F B9 [07:59:09]process_action close_receipt done [07:59:09]requested_data is exist [07:59:09]produce_requested_data [07:59:09]requested_item fm.sn is exist - process it [07:59:09]wFMCommunicate request_size=4 [07:59:09]MH_SAM_APDU [07:59:09]CAPDU: 80 11 00 00 [07:59:09]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [07:59:09]Write i2c OK [07:59:09]MH_I2C_Read... [07:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:09]Read from MH i2c: E2 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 17 00 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 75 [07:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:59:09]wFMCommunicate OK [07:59:09]requested_item fd.num is exist - process it [07:59:09]SAM_PROTO_GetFieldsCounters [07:59:09]wFMCommunicate request_size=4 [07:59:09]MH_SAM_APDU [07:59:09]CAPDU: 80 13 00 00 [07:59:09]Write to MH i2c: E2 08 00 86 20 80 13 00 00 00 00 00 00 22 [07:59:09]Write i2c OK [07:59:09]MH_I2C_Read... [07:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:09]Read from MH i2c: E2 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 62 00 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 62 00 86 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 7F 06 01 00 0E 04 04 00 64 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 66 [07:59: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 7F 06 01 00 0E 04 04 00 64 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:59:09]wFMCommunicate OK [07:59:09]SAM_PROTO_GetFieldsCounters done [07:59:09]requested_item shift.num is exist - process it [07:59:09]requested_item shift.opened is exist - process it [07:59:09]req_shift_opened [07:59:09]FM_GetShiftState [07:59:09]SAM_PROTO_GetShiftState [07:59:09]wFMCommunicate request_size=4 [07:59:09]MH_SAM_APDU [07:59:09]CAPDU: 80 13 01 00 [07:59:09]Write to MH i2c: E2 08 00 87 20 80 13 01 00 00 00 00 00 24 [07:59:09]Write i2c OK [07:59:09]MH_I2C_Read... [07:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:09]Read from MH i2c: E2 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 0E 00 [07:59:09]MH_I2C_Read... [07:59:09]Read from MH i2c: E2 0E 00 87 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CF [07:59:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:59:09]wFMCommunicate OK [07:59:09]SAM_PROTO_GetShiftState done [07:59:09]FM_GetShiftState done [07:59:09]req_shift_opened done [07:59:09]requested_item shift.open_date is exist - process it [07:59:09]req_shift_open_date [07:59:09]req_shift_open_date done [07:59:09]produce_requested_data done [07:59:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67199,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:59:09]process_action_free close_receipt [07:59:09]json_value_free [07:59:09]json_value_free done [07:59:09]process_json_proto returns [07:59:09]Send response to host [07:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67199,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:59:09]free response buf [07:59:09]execute_script done [07:59:09]execute_script returns [07:59:09]free content buf [07:59:09]Sock 7.Close socket [07:59:09]Sock 7.Thread stoped [07:59:10]accept exits with 9 [07:59:10]New connection [07:59:10]New thread 3066731876 created [07:59:10]Thread 3066588516 joined [07:59:10]Waiting for new connection... [07:59:10] Sock 9.Parse request [07:59:10]Sock 9.Check first char [07:59:10]Sock 9.First char is OK [07:59:10]request: POST /json_proto HTTP/1.0 [07:59:10]Method: POST [07:59:10]URL: /json_proto [07:59:10]Method is POST - this is cgi request [07:59:10]url: /json_proto [07:59:10]query_string will be loaded in cgi processing [07:59:10]execute_cgi json_proto POST (null) [07:59:10]execute_cgi path=json_proto method=POST [07:59:10]POST find Content-Length [07:59:10]Host: 172.17.41.195:8080 [07:59:10]Content-Length: 679 [07:59:10]Content-Type: application/json [07:59:10] [07:59:10]POST finish read [07:59:10]Found Content-Length = 679 [07:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507118", "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 }]} ], "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" ] } } [07:59:10]execute_script... [07:59: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)507118", "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 }]} ], "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" ] } } [07:59:10]POST & json_proto [07:59:10]process_json_proto [07:59:10]json parsed OK: [07:59:10]protocol is kg_v1.0 [07:59:10]action value=close_receipt [07:59:10]process_action close_receipt [07:59:10]cmd_close_receipt [07:59:10]MH_GetDate [07:59:10]Write to MH i2c: F0 00 00 88 20 97 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: F0 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: F0 09 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: F0 09 00 88 20 00 51 6B 44 66 FC 21 6F 64 F6 [07:59:10]GetLastDocTimeStamp 1715759949 [07:59:10]current date 1715759953 [07:59:10]FM_GetShiftState [07:59:10]SAM_PROTO_GetShiftState [07:59:10]wFMCommunicate request_size=4 [07:59:10]MH_SAM_APDU [07:59:10]CAPDU: 80 13 01 00 [07:59:10]Write to MH i2c: E2 08 00 89 20 80 13 01 00 00 00 00 00 26 [07:59:10]Write i2c OK [07:59:10]MH_I2C_Read... [07:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:10]Read from MH i2c: E2 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0E 00 [07:59:10]MH_I2C_Read... [07:59:10]Read from MH i2c: E2 0E 00 89 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D1 [07:59:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:59:10]wFMCommunicate OK [07:59:10]SAM_PROTO_GetShiftState done [07:59:10]FM_GetShiftState done [07:59:10]opened in 1715732471 [07:59:10]opened+sec_in_day 1715818871 [07:59:10]quantity*price = 100023 [07:59:10]sum+1 = 100024 [07:59:10]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 СНО: Общий режим Чек 18 15.05.2024 07:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67200 ФПД: 89956691951551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075913&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67200&fm=89956691951551&tin=02508201610067®Number=0000000000091845&sum=100000 [07:59:11]StoreToDocumentArchive [07:59:11]shift 356 fd 67200 [07:59:11]save to /storage/0356/doc_00067200 [07:59:11]save last doc name /storage/0356/doc_00067200 to /storage/kkm_last_doc_name [07:59:11]save OK [07:59:11]Clear old archive folders... [07:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:59:11]tlvbuf is 003CB380 [07:59:11]SAM_PROTO_ClearQueue [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 09 00 00 [07:59:11]Write to MH i2c: E2 08 00 96 20 80 09 00 00 00 00 00 00 28 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 03 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 03 00 96 20 00 90 00 2A [07:59:11]RAPDU: 90 00 [07:59:11]wFMCommunicate OK [07:59:11]SAM_PROTO_ClearQueue done [07:59:11]KKMCreateOFDPacket [07:59:11]OFDProtocolAddRootSTLVToBuf [07:59:11]FM_MakeSignedData [07:59:11]FM_MakeSignedData [07:59:11]SAM_PROTO_SignData [07:59:11]wFMCommunicate request_size=4 [07:59:11]MH_SAM_APDU [07:59:11]CAPDU: 80 0D 01 02 [07:59:11]Write to MH i2c: E2 08 00 97 20 80 0D 01 02 00 00 00 00 30 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:11]Read from MH i2c: E2 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 03 00 [07:59:11]MH_I2C_Read... [07:59:11]Read from MH i2c: E2 03 00 97 20 00 90 00 2B [07:59:11]RAPDU: 90 00 [07:59:11]wFMCommunicate OK [07:59:11]wFMCommunicate request_size=255 [07:59:11]MH_SAM_APDU [07:59:11]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 12 00 00 00 F4 03 04 00 51 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 06 01 00 35 04 06 00 51 D0 AC AB [07:59:11]Write to MH i2c: E2 02 01 98 20 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 12 00 00 00 F4 03 04 00 51 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 06 01 00 35 04 06 00 51 D0 AC AB 00 00 E6 [07:59:11]Write i2c OK [07:59:11]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 98 20 00 90 00 2C [07:59:12]RAPDU: 90 00 [07:59:12]wFMCommunicate OK [07:59:12]wFMCommunicate request_size=7 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 0D 02 02 02 3F BF [07:59:12]Write to MH i2c: E2 0A 00 99 20 80 0D 02 02 02 00 3F BF 00 00 35 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 03 00 99 20 00 90 00 2D [07:59:12]RAPDU: 90 00 [07:59:12]wFMCommunicate OK [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 0D 03 02 [07:59:12]Write to MH i2c: E2 08 00 9A 20 80 0D 03 02 00 00 00 00 35 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0B 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0B 00 9A 20 00 E0 19 BD 88 93 A3 B9 2C 90 00 8F [07:59:12]RAPDU: E0 19 BD 88 93 A3 B9 2C 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_SignData done [07:59:12]FM_MakeSignedData done [07:59:12]CreateOFDProtocolMessage [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 11 00 00 [07:59:12]Write to MH i2c: E2 08 00 9B 20 80 11 00 00 00 00 00 00 35 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 17 00 9B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [07:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:59:12]wFMCommunicate OK [07:59:12]CreateOFDProtocolMessage done [07:59:12]OFDSenderStorePacket 67200 [07:59:12]StoreOFDPacket docnum=67200 [07:59: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 A5 DA 04 01 24 1A 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 12 00 00 00 F4 03 04 00 51 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 06 01 00 35 04 06 00 51 D0 AC AB 3F BF E0 19 BD 88 93 A3 B9 2C [07:59:12]CheckFolder [07:59:12]dirname=/storage/ofd_packets [07:59:12]CheckFolder done [07:59:12]ProducePacketName [07:59:12]name=ofd_packets/00067200 [07:59:12]NVStorageSaveData ofd_packets/00067200 [07:59:12]File name is /storage/ofd_packets/00067200 [07:59:12]Write 298 bytes [07:59:12]NVStorageSaveData done [07:59:12]OFDSenderStorePacket done [07:59:12]KKMCreateOFDPacket done [07:59:12]NVStorageSaveData kkm_last_timestamp [07:59:12]File name is /storage/kkm_last_timestamp [07:59:12]Write 4 bytes [07:59:12]NVStorageSaveData done [07:59:12]ExternCall_PrintAddStr [07:59:12]wPrintStart [07:59:12]Write to MH i2c: 01 00 00 9C 20 BC [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 9C 20 00 00 00 00 00 FF 0F D1 [07:59:12]RasterBufferAndPrint [07:59:12]line Счет N : (1)507118 [07:59:12]line ИНН: 02508201610067 [07:59:12]line Контрольно-Кассовый Чек [07:59:12]line ПРОДАЖА [07:59:12]line ТРК (МРК, ГНК) : 21 [07:59:12]line Товар: 2710194210 [07:59:12]line ДТ-К-5 [07:59:12]line 13.390 * 74.70 [07:59:12]line = 1000.23 [07:59:12]line НДС 12% НСП 1% [07:59:12]line > о реализуемом товаре [07:59:12]line ОКРУГЛЕНИЕ: -0.23 [07:59:12]line ИТОГО: 1000.00 [07:59:12]line Внесено: 1000.00 [07:59:12]line СДАЧА: 0.00 [07:59:12]line НСП 1% : 8.85 [07:59:12]line НДС 12% : 106.22 [07:59:12]line Наличными: 1000.00 [07:59:12]line Безнал.: 0.00 [07:59:12]line Место: АЗС № 91 "Партнер Нефть" [07:59:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:59:12]line СНО: Общий режим [07:59:12]line Чек 18 15.05.2024 07:59 [07:59:12]line Смена: 356 ФФД: 1.0 [07:59:12]line ЗНМ: 0300000119 [07:59:12]line РНМ: 0000000000091845 [07:59:12]line Версия ККМ: 001 [07:59:12]line ФМ: 0000000000871829 [07:59:12]line ФД: 67200 [07:59:12]line ФПД: 89956691951551 [07:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T075913&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67200&fm=89956691951551&tin=02508201610067®Number=0000000000091845&sum=100000 [07:59:12]written 0, free lines is 4095 [07:59:12]OFD Sender: Processing packet 67200 [packets to send 35, broken 34] [07:59:12]ProducePacketName [07:59:12]name=ofd_packets/00067200 [07:59:12]OFD Sender: To server: pG, [07:59:12]CommunicateWithHost lk.salyk.kg:30040 [07:59:12]ConnectInit lk.salyk.kg [07:59:12]Connected sock=7 [07:59: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 A5 DA 04 01 24 1A 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 12 00 00 00 F4 03 04 00 51 6B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 80 06 01 00 35 04 06 00 51 D0 AC AB 3F BF E0 19 BD 88 93 A3 B9 2C [07:59: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 CE 33 47 00 C3 5D 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 80 06 01 00 F4 03 04 00 2F 13 44 66 B6 04 01 00 00 BB 26 F9 6F 83 BC 7A F3 [07:59:12]CommunicateWithHost err = 0 [07:59:12]CheckOFDResponse [07:59:12]1017 (14) - 77093643461234 [07:59:12]1041 (16) - 0000000000871829 [07:59:12]1040 (4) - 67200 [07:59:12]1012 (4) - 15.05.2024 01:43 [07:59:12]1206 (1) - 0 [07:59:12]OFD Sender: Remove packet 67200 [07:59:12]ProducePacketName [07:59:12]name=ofd_packets/00067200 [07:59:12]NVStorageDeleteData [07:59:12]Write to MH i2c: 01 00 00 C6 20 E6 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: 01 07 00 C6 20 00 00 00 00 00 D4 0C CD [07:59:12]RasterBufferAndPrint [07:59:12]line [07:59:12]line [07:59:12]line [07:59:12]line [07:59:12]line [07:59:12]written 0, free lines is 3298 [07:59:12]MH_Cut [07:59:12]Write to MH i2c: D1 01 00 CD 20 01 BF [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: D1 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: D1 01 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: D1 01 00 CD 20 00 BE [07:59:12]Write to MH i2c: 01 00 00 CE 20 EE [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:13]OFD Sender: No OFD packet to send [07:59:13]*** Cut start [07:59:13]*** Purtial cut [07:59:13]*** CUTSNS_PIN = 0 [07:59:13]*** Stage 1: CUTSNS_PIN = 1 [07:59:15]Read from MH i2c: 01 [07:59:15]MH_I2C_Read... [07:59:15]*** Stop cut motor [07:59:15]*** Cut end [07:59:15]Read from MH i2c: 01 07 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 FF 0F 03 [07:59:15]process_action close_receipt done [07:59:15]requested_data is exist [07:59:15]produce_requested_data [07:59:15]requested_item fm.sn is exist - process it [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 11 00 00 [07:59:15]Write to MH i2c: E2 08 00 CF 20 80 11 00 00 00 00 00 00 69 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 17 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 17 00 CF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [07:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:59:15]wFMCommunicate OK [07:59:15]requested_item fd.num is exist - process it [07:59:15]SAM_PROTO_GetFieldsCounters [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 00 00 [07:59:15]Write to MH i2c: E2 08 00 D0 20 80 13 00 00 00 00 00 00 6C [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 62 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 62 00 D0 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 80 06 01 00 0E 04 04 00 64 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 B4 [07:59: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 80 06 01 00 0E 04 04 00 64 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:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetFieldsCounters done [07:59:15]requested_item shift.num is exist - process it [07:59:15]requested_item shift.opened is exist - process it [07:59:15]req_shift_opened [07:59:15]FM_GetShiftState [07:59:15]SAM_PROTO_GetShiftState [07:59:15]wFMCommunicate request_size=4 [07:59:15]MH_SAM_APDU [07:59:15]CAPDU: 80 13 01 00 [07:59:15]Write to MH i2c: E2 08 00 D1 20 80 13 01 00 00 00 00 00 6E [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:15]Read from MH i2c: E2 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: E2 0E 00 D1 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 19 [07:59:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [07:59:15]wFMCommunicate OK [07:59:15]SAM_PROTO_GetShiftState done [07:59:15]FM_GetShiftState done [07:59:15]req_shift_opened done [07:59:15]requested_item shift.open_date is exist - process it [07:59:15]req_shift_open_date [07:59:15]req_shift_open_date done [07:59:15]produce_requested_data done [07:59:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67200,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [07:59:15]process_action_free close_receipt [07:59:15]json_value_free [07:59:15]json_value_free done [07:59:15]process_json_proto returns [07:59:15]Send response to host [07:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67200,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [07:59:16]free response buf [07:59:16]execute_script done [07:59:16]execute_script returns [07:59:16]free content buf [07:59:16]Sock 9.Close socket [07:59:16]Sock 9.Thread stoped [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:28]accept exits with 10 [08:02:28]New connection [08:02:28]New thread 3066588516 created [08:02:28]Thread 3066731876 joined [08:02:28]Waiting for new connection... [08:02:28] Sock 10.Parse request [08:02:28]Sock 10.Check first char [08:02:28]Sock 10.First char is OK [08:02:28]request: POST /json_proto HTTP/1.0 [08:02:28]Method: POST [08:02:28]URL: /json_proto [08:02:28]Method is POST - this is cgi request [08:02:28]url: /json_proto [08:02:28]query_string will be loaded in cgi processing [08:02:28]execute_cgi json_proto POST (null) [08:02:28]execute_cgi path=json_proto method=POST [08:02:28]POST find Content-Length [08:02:28]Host: 172.17.41.195:8080 [08:02:28]Content-Length: 677 [08:02:28]Content-Type: application/json [08:02:28] [08:02:28]POST finish read [08:02:28]Found Content-Length = 677 [08:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507119", "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" ] } } [08:02:28]execute_script... [08:02: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)507119", "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" ] } } [08:02:28]POST & json_proto [08:02:28]process_json_proto [08:02:28]json parsed OK: [08:02:28]protocol is kg_v1.0 [08:02:28]action value=close_receipt [08:02:28]process_action close_receipt [08:02:28]cmd_close_receipt [08:02:28]MH_GetDate [08:02:28]Write to MH i2c: F0 00 00 D2 20 E1 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 09 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: F0 09 00 D2 20 00 17 6C 44 66 FC 21 6F 64 07 [08:02:28]GetLastDocTimeStamp 1715759953 [08:02:28]current date 1715760151 [08:02:28]FM_GetShiftState [08:02:28]SAM_PROTO_GetShiftState [08:02:28]wFMCommunicate request_size=4 [08:02:28]MH_SAM_APDU [08:02:28]CAPDU: 80 13 01 00 [08:02:28]Write to MH i2c: E2 08 00 D3 20 80 13 01 00 00 00 00 00 70 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:28]Read from MH i2c: E2 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: E2 0E 00 D3 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1B [08:02:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:02:28]wFMCommunicate OK [08:02:28]SAM_PROTO_GetShiftState done [08:02:28]FM_GetShiftState done [08:02:28]opened in 1715732471 [08:02:28]opened+sec_in_day 1715818871 [08:02:28]quantity*price = 50033 [08:02:28]sum+1 = 50034 [08:02:28]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 СНО: Общий режим Чек 19 15.05.2024 08:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67201 ФПД: 212386415282621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080231&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67201&fm=212386415282621&tin=02508201610067®Number=0000000000091845&sum=50000 [08:02:29]StoreToDocumentArchive [08:02:29]shift 356 fd 67201 [08:02:29]save to /storage/0356/doc_00067201 [08:02:29]save last doc name /storage/0356/doc_00067201 to /storage/kkm_last_doc_name [08:02:29]save OK [08:02:29]Clear old archive folders... [08:02:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:29]tlvbuf is 0035A470 [08:02:29]SAM_PROTO_ClearQueue [08:02:29]wFMCommunicate request_size=4 [08:02:29]MH_SAM_APDU [08:02:29]CAPDU: 80 09 00 00 [08:02:29]Write to MH i2c: E2 08 00 E0 20 80 09 00 00 00 00 00 00 72 [08:02:29]Write i2c OK [08:02:29]MH_I2C_Read... [08:02:29]Read from MH i2c: E2 [08:02:29]MH_I2C_Read... [08:02:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:29]Read from MH i2c: E2 03 00 [08:02:29]MH_I2C_Read... [08:02:29]Read from MH i2c: E2 03 00 E0 20 00 90 00 74 [08:02:29]RAPDU: 90 00 [08:02:29]wFMCommunicate OK [08:02:29]SAM_PROTO_ClearQueue done [08:02:29]KKMCreateOFDPacket [08:02:29]OFDProtocolAddRootSTLVToBuf [08:02:29]FM_MakeSignedData [08:02:29]FM_MakeSignedData [08:02:29]SAM_PROTO_SignData [08:02:29]wFMCommunicate request_size=4 [08:02:29]MH_SAM_APDU [08:02:29]CAPDU: 80 0D 01 02 [08:02:29]Write to MH i2c: E2 08 00 E1 20 80 0D 01 02 00 00 00 00 7A [08:02:29]Write i2c OK [08:02:29]MH_I2C_Read... [08:02:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:29]Read from MH i2c: E2 [08:02:29]MH_I2C_Read... [08:02:29]Read from MH i2c: E2 03 00 [08:02:29]MH_I2C_Read... [08:02:29]Read from MH i2c: E2 03 00 E1 20 00 90 00 75 [08:02:29]RAPDU: 90 00 [08:02:29]wFMCommunicate OK [08:02:29]wFMCommunicate request_size=255 [08:02:29]MH_SAM_APDU [08:02: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 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 13 00 00 00 F4 03 04 00 17 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 06 01 00 35 04 06 00 C1 [08:02:29]Write to MH i2c: E2 02 01 E2 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 13 00 00 00 F4 03 04 00 17 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 06 01 00 35 04 06 00 C1 00 00 F3 [08:02:29]Write i2c OK [08:02:29]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 E2 20 00 90 00 76 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]wFMCommunicate request_size=10 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 0D 02 02 05 2A 10 D6 89 BD [08:02:30]Write to MH i2c: E2 0D 00 E3 20 80 0D 02 02 05 00 2A 10 D6 89 BD 00 00 DD [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 03 00 E3 20 00 90 00 77 [08:02:30]RAPDU: 90 00 [08:02:30]wFMCommunicate OK [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 0D 03 02 [08:02:30]Write to MH i2c: E2 08 00 E4 20 80 0D 03 02 00 00 00 00 7F [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0B 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0B 00 E4 20 00 DD C8 4A FC B8 A9 0C EE 90 00 C6 [08:02:30]RAPDU: DD C8 4A FC B8 A9 0C EE 90 00 [08:02:30]wFMCommunicate OK [08:02:30]SAM_PROTO_SignData done [08:02:30]FM_MakeSignedData done [08:02:30]CreateOFDProtocolMessage [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 11 00 00 [08:02:30]Write to MH i2c: E2 08 00 E5 20 80 11 00 00 00 00 00 00 7F [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 E5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [08:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:02:30]wFMCommunicate OK [08:02:30]CreateOFDProtocolMessage done [08:02:30]OFDSenderStorePacket 67201 [08:02:30]StoreOFDPacket docnum=67201 [08:02: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 EF 2D 07 01 C6 22 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 13 00 00 00 F4 03 04 00 17 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 06 01 00 35 04 06 00 C1 2A 10 D6 89 BD DD C8 4A FC B8 A9 0C EE [08:02:30]CheckFolder [08:02:30]dirname=/storage/ofd_packets [08:02:30]CheckFolder done [08:02:30]ProducePacketName [08:02:30]name=ofd_packets/00067201 [08:02:30]NVStorageSaveData ofd_packets/00067201 [08:02:30]File name is /storage/ofd_packets/00067201 [08:02:30]Write 301 bytes [08:02:30]NVStorageSaveData done [08:02:30]OFDSenderStorePacket done [08:02:30]KKMCreateOFDPacket done [08:02:30]NVStorageSaveData kkm_last_timestamp [08:02:30]File name is /storage/kkm_last_timestamp [08:02:30]Write 4 bytes [08:02:30]NVStorageSaveData done [08:02:30]ExternCall_PrintAddStr [08:02:30]wPrintStart [08:02:30]Write to MH i2c: 01 00 00 E6 20 06 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 07 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 07 00 E6 20 00 00 00 00 00 FF 0F 1B [08:02:30]RasterBufferAndPrint [08:02:30]line Счет N : (1)507119 [08:02:30]line ИНН: 02508201610067 [08:02:30]line Контрольно-Кассовый Чек [08:02:30]line ПРОДАЖА [08:02:30]line ТРК (МРК, ГНК) : 13 [08:02:30]line Товар: 2710124130 [08:02:30]line Аи-92-К-5 [08:02:30]line 7.490 * 66.80 [08:02:30]line = 500.33 [08:02:30]line НДС 12% НСП 1% [08:02:30]line > о реализуемом товаре [08:02:30]line ОКРУГЛЕНИЕ: -0.33 [08:02:30]line ИТОГО: 500.00 [08:02:30]line Внесено: 500.00 [08:02:30]line СДАЧА: 0.00 [08:02:30]line НСП 1% : 4.43 [08:02:30]line НДС 12% : 53.13 [08:02:30]line Наличными: 500.00 [08:02:30]line Безнал.: 0.00 [08:02:30]line Место: АЗС № 91 "Партнер Нефть" [08:02:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:02:30]line СНО: Общий режим [08:02:30]line Чек 19 15.05.2024 08:02 [08:02:30]line Смена: 356 ФФД: 1.0 [08:02:30]line ЗНМ: 0300000119 [08:02:30]line РНМ: 0000000000091845 [08:02:30]line Версия ККМ: 001 [08:02:30]line ФМ: 0000000000871829 [08:02:30]line ФД: 67201 [08:02:30]line ФПД: 212386415282621 [08:02:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080231&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67201&fm=212386415282621&tin=02508201610067®Number=0000000000091845&sum=50000 [08:02:30]OFD Sender: Processing packet 67201 [packets to send 35, broken 34] [08:02:30]ProducePacketName [08:02:30]name=ofd_packets/00067201 [08:02:30]OFD Sender: To server: pG, [08:02:30]CommunicateWithHost lk.salyk.kg:30040 [08:02:30]ConnectInit lk.salyk.kg [08:02:30]written 0, free lines is 4095 [08:02:30]Connected sock=11 [08:02: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 EF 2D 07 01 C6 22 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 13 00 00 00 F4 03 04 00 17 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 81 06 01 00 35 04 06 00 C1 2A 10 D6 89 BD DD C8 4A FC B8 A9 0C EE [08:02: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 99 D6 47 00 CC 6F 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 81 06 01 00 F4 03 04 00 F5 13 44 66 B6 04 01 00 00 F1 4C BD D5 DC 67 33 47 [08:02:30]CommunicateWithHost err = 0 [08:02:30]CheckOFDResponse [08:02:30]1017 (14) - 77093643461234 [08:02:30]1041 (16) - 0000000000871829 [08:02:30]1040 (4) - 67201 [08:02:30]1012 (4) - 15.05.2024 01:46 [08:02:30]1206 (1) - 0 [08:02:30]OFD Sender: Remove packet 67201 [08:02:30]ProducePacketName [08:02:30]name=ofd_packets/00067201 [08:02:30]NVStorageDeleteData [08:02:31]Write to MH i2c: 01 00 00 10 21 31 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 07 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: 01 07 00 10 21 00 00 00 00 00 D2 0C 16 [08:02:31]RasterBufferAndPrint [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]line [08:02:31]written 0, free lines is 3288 [08:02:31]MH_Cut [08:02:31]Write to MH i2c: D1 01 00 17 21 01 0A [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 01 00 [08:02:31]MH_I2C_Read... [08:02:31]Read from MH i2c: D1 01 00 17 21 00 09 [08:02:31]Write to MH i2c: 01 00 00 18 21 39 [08:02:31]Write i2c OK [08:02:31]MH_I2C_Read... [08:02:31]OFD Sender: No OFD packet to send [08:02:31]*** Cut start [08:02:31]*** Purtial cut [08:02:31]*** Stage 1: CUTSNS_PIN = 1 [08:02:32]Read from MH i2c: 01 [08:02:32]MH_I2C_Read... [08:02:32]*** Stop cut motor [08:02:32]*** Cut end [08:02:32]Read from MH i2c: 01 07 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: 01 07 00 18 21 00 00 00 00 00 FF 0F 4E [08:02:32]process_action close_receipt done [08:02:32]requested_data is exist [08:02:32]produce_requested_data [08:02:32]requested_item fm.sn is exist - process it [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 11 00 00 [08:02:32]Write to MH i2c: E2 08 00 19 21 80 11 00 00 00 00 00 00 B4 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 17 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 17 00 19 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [08:02: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:02:32]wFMCommunicate OK [08:02:32]requested_item fd.num is exist - process it [08:02:32]SAM_PROTO_GetFieldsCounters [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 00 00 [08:02:32]Write to MH i2c: E2 08 00 1A 21 80 13 00 00 00 00 00 00 B7 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 62 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 62 00 1A 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 81 06 01 00 0E 04 04 00 64 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 03 [08:02: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 81 06 01 00 0E 04 04 00 64 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:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetFieldsCounters done [08:02:32]requested_item shift.num is exist - process it [08:02:32]requested_item shift.opened is exist - process it [08:02:32]req_shift_opened [08:02:32]FM_GetShiftState [08:02:32]SAM_PROTO_GetShiftState [08:02:32]wFMCommunicate request_size=4 [08:02:32]MH_SAM_APDU [08:02:32]CAPDU: 80 13 01 00 [08:02:32]Write to MH i2c: E2 08 00 1B 21 80 13 01 00 00 00 00 00 B9 [08:02:32]Write i2c OK [08:02:32]MH_I2C_Read... [08:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:32]Read from MH i2c: E2 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 [08:02:32]MH_I2C_Read... [08:02:32]Read from MH i2c: E2 0E 00 1B 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 64 [08:02:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:02:32]wFMCommunicate OK [08:02:32]SAM_PROTO_GetShiftState done [08:02:32]FM_GetShiftState done [08:02:32]req_shift_opened done [08:02:32]requested_item shift.open_date is exist - process it [08:02:32]req_shift_open_date [08:02:32]req_shift_open_date done [08:02:32]produce_requested_data done [08:02:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67201,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:02:32]process_action_free close_receipt [08:02:32]json_value_free [08:02:32]json_value_free done [08:02:32]process_json_proto returns [08:02:32]Send response to host [08:02:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67201,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:02:32]free response buf [08:02:32]execute_script done [08:02:32]execute_script returns [08:02:32]free content buf [08:02:32]Sock 10.Close socket [08:02:32]Sock 10.Thread stoped [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]accept exits with 7 [08:03:01]New connection [08:03:01]New thread 3066731876 created [08:03:01]Thread 3066588516 joined [08:03:01]Waiting for new connection... [08:03:01] Sock 7.Parse request [08:03:01]Sock 7.Check first char [08:03:01]Sock 7.First char is OK [08:03:01]request: POST /json_proto HTTP/1.0 [08:03:01]Method: POST [08:03:01]URL: /json_proto [08:03:01]Method is POST - this is cgi request [08:03:01]url: /json_proto [08:03:01]query_string will be loaded in cgi processing [08:03:01]execute_cgi json_proto POST (null) [08:03:01]execute_cgi path=json_proto method=POST [08:03:01]POST find Content-Length [08:03:01]Host: 172.17.41.195:8080 [08:03:01]Content-Length: 670 [08:03:01]Content-Type: application/json [08:03:01] [08:03:01]POST finish read [08:03:01]Found Content-Length = 670 [08:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507120", "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" : 8.850, "sum" : 600.03, "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" ] } } [08:03:01]execute_script... [08:03: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)507120", "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" : 8.850, "sum" : 600.03, "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" ] } } [08:03:01]POST & json_proto [08:03:01]process_json_proto [08:03:01]json parsed OK: [08:03:01]protocol is kg_v1.0 [08:03:01]action value=close_receipt [08:03:01]process_action close_receipt [08:03:01]cmd_close_receipt [08:03:01]MH_GetDate [08:03:01]Write to MH i2c: F0 00 00 1C 21 2C [08:03:01]Write i2c OK [08:03:01]MH_I2C_Read... [08:03:01]Read from MH i2c: F0 [08:03:01]MH_I2C_Read... [08:03:01]Read from MH i2c: F0 09 00 [08:03:01]MH_I2C_Read... [08:03:01]Read from MH i2c: F0 09 00 1C 21 00 38 6C 44 66 FC 21 6F 64 73 [08:03:01]GetLastDocTimeStamp 1715760151 [08:03:01]current date 1715760184 [08:03:01]FM_GetShiftState [08:03:01]SAM_PROTO_GetShiftState [08:03:01]wFMCommunicate request_size=4 [08:03:01]MH_SAM_APDU [08:03:01]CAPDU: 80 13 01 00 [08:03:01]Write to MH i2c: E2 08 00 1D 21 80 13 01 00 00 00 00 00 BB [08:03:01]Write i2c OK [08:03:01]MH_I2C_Read... [08:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:01]Read from MH i2c: E2 [08:03:01]MH_I2C_Read... [08:03:01]Read from MH i2c: E2 0E 00 [08:03:01]MH_I2C_Read... [08:03:01]Read from MH i2c: E2 0E 00 1D 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 66 [08:03:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:03:01]wFMCommunicate OK [08:03:01]SAM_PROTO_GetShiftState done [08:03:01]FM_GetShiftState done [08:03:01]opened in 1715732471 [08:03:01]opened+sec_in_day 1715818871 [08:03:01]quantity*price = 60003 [08:03:01]sum+1 = 60004 [08:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 20 15.05.2024 08:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67202 ФПД: 119992206584014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080304&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67202&fm=119992206584014&tin=02508201610067®Number=0000000000091845&sum=60000 [08:03:02]StoreToDocumentArchive [08:03:02]shift 356 fd 67202 [08:03:02]save to /storage/0356/doc_00067202 [08:03:02]save last doc name /storage/0356/doc_00067202 to /storage/kkm_last_doc_name [08:03:02]save OK [08:03:02]Clear old archive folders... [08:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:03:02]tlvbuf is 0032D010 [08:03:02]SAM_PROTO_ClearQueue [08:03:02]wFMCommunicate request_size=4 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 09 00 00 [08:03:02]Write to MH i2c: E2 08 00 2A 21 80 09 00 00 00 00 00 00 BD [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 2A 21 00 90 00 BF [08:03:02]RAPDU: 90 00 [08:03:02]wFMCommunicate OK [08:03:02]SAM_PROTO_ClearQueue done [08:03:02]KKMCreateOFDPacket [08:03:02]OFDProtocolAddRootSTLVToBuf [08:03:02]FM_MakeSignedData [08:03:02]FM_MakeSignedData [08:03:02]SAM_PROTO_SignData [08:03:02]wFMCommunicate request_size=4 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 0D 01 02 [08:03:02]Write to MH i2c: E2 08 00 2B 21 80 0D 01 02 00 00 00 00 C5 [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [08:03:02]RAPDU: 90 00 [08:03:02]wFMCommunicate OK [08:03:02]wFMCommunicate request_size=255 [08:03:02]MH_SAM_APDU [08:03:02]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 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 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 E4 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 14 00 00 00 F4 03 04 00 38 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 06 01 00 35 04 06 00 [08:03:02]Write to MH i2c: E2 02 01 2C 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 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 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 E4 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 14 00 00 00 F4 03 04 00 38 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 06 01 00 35 04 06 00 00 00 8A [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [08:03:02]RAPDU: 90 00 [08:03:02]wFMCommunicate OK [08:03:02]wFMCommunicate request_size=11 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 0D 02 02 06 6D 21 DC D9 68 CE [08:03:02]Write to MH i2c: E2 0E 00 2D 21 80 0D 02 02 06 00 6D 21 DC D9 68 CE 00 00 4D [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [08:03:02]RAPDU: 90 00 [08:03:02]wFMCommunicate OK [08:03:02]wFMCommunicate request_size=4 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 0D 03 02 [08:03:02]Write to MH i2c: E2 08 00 2E 21 80 0D 03 02 00 00 00 00 CA [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 0B 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 0B 00 2E 21 00 F8 26 2D 01 74 9A 16 2B 90 00 66 [08:03:02]RAPDU: F8 26 2D 01 74 9A 16 2B 90 00 [08:03:02]wFMCommunicate OK [08:03:02]SAM_PROTO_SignData done [08:03:02]FM_MakeSignedData done [08:03:02]CreateOFDProtocolMessage [08:03:02]wFMCommunicate request_size=4 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 11 00 00 [08:03:02]Write to MH i2c: E2 08 00 2F 21 80 11 00 00 00 00 00 00 CA [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 17 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 17 00 2F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [08:03: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:03:02]wFMCommunicate OK [08:03:02]CreateOFDProtocolMessage done [08:03:02]OFDSenderStorePacket 67202 [08:03:02]StoreOFDPacket docnum=67202 [08:03: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 AF E7 08 01 71 5E 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 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 E4 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 14 00 00 00 F4 03 04 00 38 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 06 01 00 35 04 06 00 6D 21 DC D9 68 CE F8 26 2D 01 74 9A 16 2B [08:03:02]CheckFolder [08:03:02]dirname=/storage/ofd_packets [08:03:02]CheckFolder done [08:03:02]ProducePacketName [08:03:02]name=ofd_packets/00067202 [08:03:02]NVStorageSaveData ofd_packets/00067202 [08:03:02]File name is /storage/ofd_packets/00067202 [08:03:02]Write 302 bytes [08:03:02]NVStorageSaveData done [08:03:02]OFDSenderStorePacket done [08:03:02]KKMCreateOFDPacket done [08:03:02]NVStorageSaveData kkm_last_timestamp [08:03:02]File name is /storage/kkm_last_timestamp [08:03:02]Write 4 bytes [08:03:02]NVStorageSaveData done [08:03:02]ExternCall_PrintAddStr [08:03:02]wPrintStart [08:03:02]Write to MH i2c: 01 00 00 30 21 51 [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: 01 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: 01 07 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: 01 07 00 30 21 00 00 00 00 00 FF 0F 66 [08:03:02]RasterBufferAndPrint [08:03:02]line Счет N : (1)507120 [08:03:02]line ИНН: 02508201610067 [08:03:02]line Контрольно-Кассовый Чек [08:03:02]line ПРОДАЖА [08:03:02]line ТРК (МРК, ГНК) : 32 [08:03:02]line Товар: 2710124130 [08:03:02]line Super-92-К-5 [08:03:02]line 8.850 * 67.80 [08:03:02]line = 600.03 [08:03:02]line НДС 12% НСП 1% [08:03:02]line > о реализуемом товаре [08:03:02]line ОКРУГЛЕНИЕ: -0.03 [08:03:02]line ИТОГО: 600.00 [08:03:02]line Внесено: 600.00 [08:03:02]line СДАЧА: 0.00 [08:03:02]line НСП 1% : 5.31 [08:03:02]line НДС 12% : 63.72 [08:03:02]line Наличными: 600.00 [08:03:02]line Безнал.: 0.00 [08:03:02]line Место: АЗС № 91 "Партнер Нефть" [08:03:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:03:02]line СНО: Общий режим [08:03:02]line Чек 20 15.05.2024 08:03 [08:03:02]line Смена: 356 ФФД: 1.0 [08:03:02]line ЗНМ: 0300000119 [08:03:02]line РНМ: 0000000000091845 [08:03:02]line Версия ККМ: 001 [08:03:02]line ФМ: 0000000000871829 [08:03:02]line ФД: 67202 [08:03:02]line ФПД: 119992206584014 [08:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080304&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67202&fm=119992206584014&tin=02508201610067®Number=0000000000091845&sum=60000 [08:03:03]OFD Sender: Processing packet 67202 [packets to send 35, broken 34] [08:03:03]ProducePacketName [08:03:03]name=ofd_packets/00067202 [08:03:03]OFD Sender: To server: pG, [08:03:03]CommunicateWithHost lk.salyk.kg:30040 [08:03:03]ConnectInit lk.salyk.kg [08:03:03]written 0, free lines is 4095 [08:03:03]Connected sock=10 [08:03: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 10 01 00 00 AF E7 08 01 71 5E 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 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 E4 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 14 00 00 00 F4 03 04 00 38 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 82 06 01 00 35 04 06 00 6D 21 DC D9 68 CE F8 26 2D 01 74 9A 16 2B [08:03: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 A3 D0 47 00 E5 CD 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 82 06 01 00 F4 03 04 00 16 14 44 66 B6 04 01 00 00 D0 12 6D F4 B4 B0 30 9B [08:03:03]CommunicateWithHost err = 0 [08:03:03]CheckOFDResponse [08:03:03]1017 (14) - 77093643461234 [08:03:03]1041 (16) - 0000000000871829 [08:03:03]1040 (4) - 67202 [08:03:03]1012 (4) - 15.05.2024 01:47 [08:03:03]1206 (1) - 0 [08:03:03]OFD Sender: Remove packet 67202 [08:03:03]ProducePacketName [08:03:03]name=ofd_packets/00067202 [08:03:03]NVStorageDeleteData [08:03:03]Write to MH i2c: 01 00 00 5A 21 7B [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: 01 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: 01 07 00 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 CC 0C 5A [08:03:03]RasterBufferAndPrint [08:03:03]line [08:03:03]line [08:03:03]line [08:03:03]line [08:03:03]line [08:03:03]written 0, free lines is 3282 [08:03:03]MH_Cut [08:03:03]Write to MH i2c: D1 01 00 61 21 01 54 [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: D1 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: D1 01 00 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: D1 01 00 61 21 00 53 [08:03:03]Write to MH i2c: 01 00 00 62 21 83 [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:04]OFD Sender: No OFD packet to send [08:03:04]*** Cut start [08:03:04]*** Purtial cut [08:03:04]*** CUTSNS_PIN = 0 [08:03:04]*** Stage 1: CUTSNS_PIN = 1 [08:03:06]Read from MH i2c: 01 [08:03:06]MH_I2C_Read... [08:03:06]*** Stop cut motor [08:03:06]*** Cut end [08:03:06]Read from MH i2c: 01 07 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [08:03:06]process_action close_receipt done [08:03:06]requested_data is exist [08:03:06]produce_requested_data [08:03:06]requested_item fm.sn is exist - process it [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 11 00 00 [08:03:06]Write to MH i2c: E2 08 00 63 21 80 11 00 00 00 00 00 00 FE [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 17 00 [08:03:06]MH_I2C_Read... [08:03:06]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:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:03:06]wFMCommunicate OK [08:03:06]requested_item fd.num is exist - process it [08:03:06]SAM_PROTO_GetFieldsCounters [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 13 00 00 [08:03:06]Write to MH i2c: E2 08 00 64 21 80 13 00 00 00 00 00 00 01 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 62 00 [08:03:06]MH_I2C_Read... [08:03:06]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 82 06 01 00 0E 04 04 00 64 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 51 [08:03: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 82 06 01 00 0E 04 04 00 64 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:03:06]wFMCommunicate OK [08:03:06]SAM_PROTO_GetFieldsCounters done [08:03:06]requested_item shift.num is exist - process it [08:03:06]requested_item shift.opened is exist - process it [08:03:06]req_shift_opened [08:03:06]FM_GetShiftState [08:03:06]SAM_PROTO_GetShiftState [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 13 01 00 [08:03:06]Write to MH i2c: E2 08 00 65 21 80 13 01 00 00 00 00 00 03 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 65 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AE [08:03:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:03:06]wFMCommunicate OK [08:03:06]SAM_PROTO_GetShiftState done [08:03:06]FM_GetShiftState done [08:03:06]req_shift_opened done [08:03:06]requested_item shift.open_date is exist - process it [08:03:06]req_shift_open_date [08:03:06]req_shift_open_date done [08:03:06]produce_requested_data done [08:03:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67202,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:03:06]process_action_free close_receipt [08:03:06]json_value_free [08:03:06]json_value_free done [08:03:06]process_json_proto returns [08:03:06]Send response to host [08:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67202,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:03:06]free response buf [08:03:06]execute_script done [08:03:06]execute_script returns [08:03:06]free content buf [08:03:06]Sock 7.Close socket [08:03:06]Sock 7.Thread stoped [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:09]accept exits with 9 [08:05:09]New connection [08:05:09]New thread 3066588516 created [08:05:09]Thread 3066731876 joined [08:05:09]Waiting for new connection... [08:05:09] Sock 9.Parse request [08:05:09]Sock 9.Check first char [08:05:09]Sock 9.First char is OK [08:05:09]request: POST /json_proto HTTP/1.0 [08:05:09]Method: POST [08:05:09]URL: /json_proto [08:05:09]Method is POST - this is cgi request [08:05:09]url: /json_proto [08:05:09]query_string will be loaded in cgi processing [08:05:09]execute_cgi json_proto POST (null) [08:05:09]execute_cgi path=json_proto method=POST [08:05:09]POST find Content-Length [08:05:09]Host: 172.17.41.195:8080 [08:05:09]Content-Length: 1221 [08:05:09]Content-Type: application/json [08:05:09] [08:05:09]POST finish read [08:05:09]Found Content-Length = 1221 [08:05:09]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)507121\u000A15.05.2024 07:47\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3743558-305\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:09]execute_script... [08:05:09]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)507121\u000A15.05.2024 07:47\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3743558-305\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:09]POST & json_proto [08:05:09]process_json_proto [08:05:09]json parsed OK: [08:05:09]protocol is kg_v1.0 [08:05:09]action value=print_text [08:05:09]process_action print_text [08:05:09]cmd_print_text [08:05:09]ExternCall_PrintAddStr [08:05:09]wPrintStart [08:05:09]Write to MH i2c: 01 00 00 66 21 87 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 07 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [08:05:09]RasterBufferAndPrint [08:05:09]line *****ТОВАРНЫЙ ЧЕК***** [08:05:09]line АЗС-91 [08:05:09]line Партнер нефть [08:05:09]line 02508201610067 [08:05:09]line Кассир : Арстанбеков Н. [08:05:09]line Счет N : (1)507121 [08:05:09]line 15.05.2024 07:47 [08:05:09]line ПРОДАЖА [08:05:09]line ТРК (МРК, ГНК): 31 [08:05:09]line Вид ГСМ : 2710194210 [08:05:09]line ДТ-К-5 [08:05:09]line 20.000 x 74.70 [08:05:09]line ИТОГ: 1494.00 [08:05:09]line Тип оплаты: Талоны: Топливные Талоны [08:05:09]line 3743558-305 [08:05:09]line ______________________ [08:05:09]line (подпись) [08:05:09]written 0, free lines is 4095 [08:05:09]Write to MH i2c: 01 00 00 7A 21 9B [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 07 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: 01 07 00 7A 21 00 00 00 00 00 11 0E C1 [08:05:09]RasterBufferAndPrint [08:05:09]line [08:05:09]line [08:05:09]line [08:05:09]line [08:05:09]line [08:05:09]written 0, free lines is 3602 [08:05:09]MH_Cut [08:05:09]Write to MH i2c: D1 01 00 81 21 01 74 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: D1 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: D1 01 00 [08:05:09]MH_I2C_Read... [08:05:09]Read from MH i2c: D1 01 00 81 21 00 73 [08:05:09]Write to MH i2c: 01 00 00 82 21 A3 [08:05:09]Write i2c OK [08:05:09]MH_I2C_Read... [08:05:10]*** Cut start [08:05:10]*** Purtial cut [08:05:10]*** Stage 1: CUTSNS_PIN = 1 [08:05:10]Read from MH i2c: 01 [08:05:10]MH_I2C_Read... [08:05:10]*** Stop cut motor [08:05:10]*** Cut end [08:05:10]Read from MH i2c: 01 07 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 FF 0F B8 [08:05:10]process_action print_text done [08:05:10]requested_data is exist [08:05:10]produce_requested_data [08:05:10]requested_item fm.sn is exist - process it [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 11 00 00 [08:05:10]Write to MH i2c: E2 08 00 83 21 80 11 00 00 00 00 00 00 1E [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 17 00 [08:05:10]MH_I2C_Read... [08:05:10]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:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:05:10]wFMCommunicate OK [08:05:10]requested_item fd.num is exist - process it [08:05:10]SAM_PROTO_GetFieldsCounters [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 13 00 00 [08:05:10]Write to MH i2c: E2 08 00 84 21 80 13 00 00 00 00 00 00 21 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 62 00 [08:05:10]MH_I2C_Read... [08:05:10]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 82 06 01 00 0E 04 04 00 64 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 71 [08:05: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 82 06 01 00 0E 04 04 00 64 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:05:10]wFMCommunicate OK [08:05:10]SAM_PROTO_GetFieldsCounters done [08:05:10]requested_item shift.num is exist - process it [08:05:10]requested_item shift.opened is exist - process it [08:05:10]req_shift_opened [08:05:10]FM_GetShiftState [08:05:10]SAM_PROTO_GetShiftState [08:05:10]wFMCommunicate request_size=4 [08:05:10]MH_SAM_APDU [08:05:10]CAPDU: 80 13 01 00 [08:05:10]Write to MH i2c: E2 08 00 85 21 80 13 01 00 00 00 00 00 23 [08:05:10]Write i2c OK [08:05:10]MH_I2C_Read... [08:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:10]Read from MH i2c: E2 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 0E 00 [08:05:10]MH_I2C_Read... [08:05:10]Read from MH i2c: E2 0E 00 85 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CE [08:05:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:05:10]wFMCommunicate OK [08:05:10]SAM_PROTO_GetShiftState done [08:05:10]FM_GetShiftState done [08:05:10]req_shift_opened done [08:05:10]requested_item shift.open_date is exist - process it [08:05:10]req_shift_open_date [08:05:10]req_shift_open_date done [08:05:10]produce_requested_data done [08:05:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67202,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:05:10]process_action_free print_text [08:05:10]json_value_free [08:05:10]json_value_free done [08:05:10]process_json_proto returns [08:05:10]Send response to host [08:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67202,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:05:10]free response buf [08:05:10]execute_script done [08:05:10]execute_script returns [08:05:10]free content buf [08:05:10]Sock 9.Close socket [08:05:10]Sock 9.Thread stoped [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:28]accept exits with 7 [08:05:28]New connection [08:05:28]New thread 3066731876 created [08:05:28]Thread 3066588516 joined [08:05:28]Waiting for new connection... [08:05:28] Sock 7.Parse request [08:05:28]Sock 7.Check first char [08:05:28]Sock 7.First char is OK [08:05:28]request: POST /json_proto HTTP/1.0 [08:05:28]Method: POST [08:05:28]URL: /json_proto [08:05:28]Method is POST - this is cgi request [08:05:28]url: /json_proto [08:05:28]query_string will be loaded in cgi processing [08:05:28]execute_cgi json_proto POST (null) [08:05:28]execute_cgi path=json_proto method=POST [08:05:28]POST find Content-Length [08:05:28]Host: 172.17.41.195:8080 [08:05:28]Content-Length: 675 [08:05:28]Content-Type: application/json [08:05:28] [08:05:28]POST finish read [08:05:28]Found Content-Length = 675 [08:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:05:28]execute_script... [08:05: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)507122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [08:05:28]POST & json_proto [08:05:28]process_json_proto [08:05:28]json parsed OK: [08:05:28]protocol is kg_v1.0 [08:05:28]action value=close_receipt [08:05:28]process_action close_receipt [08:05:28]cmd_close_receipt [08:05:28]MH_GetDate [08:05:28]Write to MH i2c: F0 00 00 86 21 96 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: F0 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: F0 09 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: F0 09 00 86 21 00 CB 6C 44 66 FC 21 6F 64 70 [08:05:28]GetLastDocTimeStamp 1715760184 [08:05:28]current date 1715760331 [08:05:28]FM_GetShiftState [08:05:28]SAM_PROTO_GetShiftState [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 13 01 00 [08:05:28]Write to MH i2c: E2 08 00 87 21 80 13 01 00 00 00 00 00 25 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 87 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D0 [08:05:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:05:28]wFMCommunicate OK [08:05:28]SAM_PROTO_GetShiftState done [08:05:28]FM_GetShiftState done [08:05:28]opened in 1715732471 [08:05:28]opened+sec_in_day 1715818871 [08:05:28]quantity*price = 100005 [08:05:28]sum+1 = 100006 [08:05:28]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 СНО: Общий режим Чек 21 15.05.2024 08:05 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67203 ФПД: 185994455233104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67203&fm=185994455233104&tin=02508201610067®Number=0000000000091845&sum=100000 [08:05:29]StoreToDocumentArchive [08:05:29]shift 356 fd 67203 [08:05:29]save to /storage/0356/doc_00067203 [08:05:29]save last doc name /storage/0356/doc_00067203 to /storage/kkm_last_doc_name [08:05:29]save OK [08:05:29]Clear old archive folders... [08:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:05:29]tlvbuf is 003E30B0 [08:05:29]SAM_PROTO_ClearQueue [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 09 00 00 [08:05:29]Write to MH i2c: E2 08 00 94 21 80 09 00 00 00 00 00 00 27 [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]SAM_PROTO_ClearQueue done [08:05:29]KKMCreateOFDPacket [08:05:29]OFDProtocolAddRootSTLVToBuf [08:05:29]FM_MakeSignedData [08:05:29]FM_MakeSignedData [08:05:29]SAM_PROTO_SignData [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 0D 01 02 [08:05:29]Write to MH i2c: E2 08 00 95 21 80 0D 01 02 00 00 00 00 2F [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 95 21 00 90 00 2A [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]wFMCommunicate request_size=255 [08:05:29]MH_SAM_APDU [08:05:29]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 15 00 00 00 F4 03 04 00 CB 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 06 01 00 35 04 06 00 [08:05:29]Write to MH i2c: E2 02 01 96 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 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 15 00 00 00 F4 03 04 00 CB 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 06 01 00 35 04 06 00 00 00 51 [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:30]Read from MH i2c: E2 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 03 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 03 00 96 21 00 90 00 2B [08:05:30]RAPDU: 90 00 [08:05:30]wFMCommunicate OK [08:05:30]wFMCommunicate request_size=11 [08:05:30]MH_SAM_APDU [08:05:30]CAPDU: 80 0D 02 02 06 A9 29 35 6F 32 50 [08:05:30]Write to MH i2c: E2 0E 00 97 21 80 0D 02 02 06 00 A9 29 35 6F 32 50 00 00 36 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:30]Read from MH i2c: E2 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 03 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 03 00 97 21 00 90 00 2C [08:05:30]RAPDU: 90 00 [08:05:30]wFMCommunicate OK [08:05:30]wFMCommunicate request_size=4 [08:05:30]MH_SAM_APDU [08:05:30]CAPDU: 80 0D 03 02 [08:05:30]Write to MH i2c: E2 08 00 98 21 80 0D 03 02 00 00 00 00 34 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:30]Read from MH i2c: E2 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 0B 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 0B 00 98 21 00 95 85 95 ED 7C 49 4F 83 90 00 68 [08:05:30]RAPDU: 95 85 95 ED 7C 49 4F 83 90 00 [08:05:30]wFMCommunicate OK [08:05:30]SAM_PROTO_SignData done [08:05:30]FM_MakeSignedData done [08:05:30]CreateOFDProtocolMessage [08:05:30]wFMCommunicate request_size=4 [08:05:30]MH_SAM_APDU [08:05:30]CAPDU: 80 11 00 00 [08:05:30]Write to MH i2c: E2 08 00 99 21 80 11 00 00 00 00 00 00 34 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:30]Read from MH i2c: E2 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 17 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: E2 17 00 99 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [08:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:05:30]wFMCommunicate OK [08:05:30]CreateOFDProtocolMessage done [08:05:30]OFDSenderStorePacket 67203 [08:05:30]StoreOFDPacket docnum=67203 [08:05: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 10 01 00 00 A0 78 08 01 00 67 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 15 00 00 00 F4 03 04 00 CB 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 06 01 00 35 04 06 00 A9 29 35 6F 32 50 95 85 95 ED 7C 49 4F 83 [08:05:30]CheckFolder [08:05:30]dirname=/storage/ofd_packets [08:05:30]CheckFolder done [08:05:30]ProducePacketName [08:05:30]name=ofd_packets/00067203 [08:05:30]NVStorageSaveData ofd_packets/00067203 [08:05:30]File name is /storage/ofd_packets/00067203 [08:05:30]Write 302 bytes [08:05:30]NVStorageSaveData done [08:05:30]OFDSenderStorePacket done [08:05:30]KKMCreateOFDPacket done [08:05:30]NVStorageSaveData kkm_last_timestamp [08:05:30]File name is /storage/kkm_last_timestamp [08:05:30]Write 4 bytes [08:05:30]NVStorageSaveData done [08:05:30]ExternCall_PrintAddStr [08:05:30]wPrintStart [08:05:30]Write to MH i2c: 01 00 00 9A 21 BB [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 FF 0F D0 [08:05:30]RasterBufferAndPrint [08:05:30]line Счет N : (1)507122 [08:05:30]line ИНН: 02508201610067 [08:05:30]line Контрольно-Кассовый Чек [08:05:30]line ПРОДАЖА [08:05:30]line ТРК (МРК, ГНК) : 12 [08:05:30]line Товар: 2710124130 [08:05:30]line Super-92-К-5 [08:05:30]line 14.750 * 67.80 [08:05:30]line = 1000.05 [08:05:30]line НДС 12% НСП 1% [08:05:30]line > о реализуемом товаре [08:05:30]line ОКРУГЛЕНИЕ: -0.05 [08:05:30]line ИТОГО: 1000.00 [08:05:30]line Внесено: 1000.00 [08:05:30]line СДАЧА: 0.00 [08:05:30]line НСП 1% : 8.85 [08:05:30]line НДС 12% : 106.20 [08:05:30]line Наличными: 1000.00 [08:05:30]line Безнал.: 0.00 [08:05:30]line Место: АЗС № 91 "Партнер Нефть" [08:05:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:05:30]line СНО: Общий режим [08:05:30]line Чек 21 15.05.2024 08:05 [08:05:30]line Смена: 356 ФФД: 1.0 [08:05:30]line ЗНМ: 0300000119 [08:05:30]line РНМ: 0000000000091845 [08:05:30]line Версия ККМ: 001 [08:05:30]line ФМ: 0000000000871829 [08:05:30]line ФД: 67203 [08:05:30]line ФПД: 185994455233104 [08:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67203&fm=185994455233104&tin=02508201610067®Number=0000000000091845&sum=100000 [08:05:30]written 0, free lines is 4095 [08:05:30]OFD Sender: Processing packet 67203 [packets to send 35, broken 34] [08:05:30]ProducePacketName [08:05:30]name=ofd_packets/00067203 [08:05:30]OFD Sender: To server: pG, [08:05:30]CommunicateWithHost lk.salyk.kg:30040 [08:05:30]ConnectInit lk.salyk.kg [08:05:30]Connected sock=10 [08:05: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 10 01 00 00 A0 78 08 01 00 67 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 15 00 00 00 F4 03 04 00 CB 6C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 83 06 01 00 35 04 06 00 A9 29 35 6F 32 50 95 85 95 ED 7C 49 4F 83 [08:05: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 18 F1 47 00 33 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 83 06 01 00 F4 03 04 00 A9 14 44 66 B6 04 01 00 00 E1 23 32 B4 CC 5D 3F DC [08:05:30]CommunicateWithHost err = 0 [08:05:30]CheckOFDResponse [08:05:30]1017 (14) - 77093643461234 [08:05:30]1041 (16) - 0000000000871829 [08:05:30]1040 (4) - 67203 [08:05:30]1012 (4) - 15.05.2024 01:49 [08:05:30]1206 (1) - 0 [08:05:30]OFD Sender: Remove packet 67203 [08:05:30]ProducePacketName [08:05:30]name=ofd_packets/00067203 [08:05:30]NVStorageDeleteData [08:05:30]Write to MH i2c: 01 00 00 C4 21 E5 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 C4 21 00 00 00 00 00 C7 0C BF [08:05:30]RasterBufferAndPrint [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]written 0, free lines is 3275 [08:05:30]MH_Cut [08:05:30]Write to MH i2c: D1 01 00 CB 21 01 BE [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 01 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 01 00 CB 21 00 BD [08:05:30]Write to MH i2c: 01 00 00 CC 21 ED [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:31]OFD Sender: No OFD packet to send [08:05:31]*** Cut start [08:05:31]*** Purtial cut [08:05:31]*** CUTSNS_PIN = 0 [08:05:32]*** Stage 1: CUTSNS_PIN = 1 [08:05:33]Read from MH i2c: 01 [08:05:33]MH_I2C_Read... [08:05:33]*** Stop cut motor [08:05:33]*** Cut end [08:05:33]Read from MH i2c: 01 07 00 [08:05:33]MH_I2C_Read... [08:05:33]Read from MH i2c: 01 07 00 CC 21 00 00 00 00 00 FF 0F 02 [08:05:33]process_action close_receipt done [08:05:33]requested_data is exist [08:05:33]produce_requested_data [08:05:33]requested_item fm.sn is exist - process it [08:05:33]wFMCommunicate request_size=4 [08:05:33]MH_SAM_APDU [08:05:33]CAPDU: 80 11 00 00 [08:05:33]Write to MH i2c: E2 08 00 CD 21 80 11 00 00 00 00 00 00 68 [08:05:33]Write i2c OK [08:05:33]MH_I2C_Read... [08:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:33]Read from MH i2c: E2 [08:05:33]MH_I2C_Read... [08:05:33]Read from MH i2c: E2 17 00 [08:05:33]MH_I2C_Read... [08:05:33]Read from MH i2c: E2 17 00 CD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [08: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 [08:05:33]wFMCommunicate OK [08:05:33]requested_item fd.num is exist - process it [08:05:33]SAM_PROTO_GetFieldsCounters [08:05:33]wFMCommunicate request_size=4 [08:05:33]MH_SAM_APDU [08:05:33]CAPDU: 80 13 00 00 [08:05:33]Write to MH i2c: E2 08 00 CE 21 80 13 00 00 00 00 00 00 6B [08:05:33]Write i2c OK [08:05:33]MH_I2C_Read... [08:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:34]Read from MH i2c: E2 [08:05:34]MH_I2C_Read... [08:05:34]Read from MH i2c: E2 62 00 [08:05:34]MH_I2C_Read... [08:05:34]Read from MH i2c: E2 62 00 CE 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 83 06 01 00 0E 04 04 00 64 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 BF [08:05: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 83 06 01 00 0E 04 04 00 64 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:05:34]wFMCommunicate OK [08:05:34]SAM_PROTO_GetFieldsCounters done [08:05:34]requested_item shift.num is exist - process it [08:05:34]requested_item shift.opened is exist - process it [08:05:34]req_shift_opened [08:05:34]FM_GetShiftState [08:05:34]SAM_PROTO_GetShiftState [08:05:34]wFMCommunicate request_size=4 [08:05:34]MH_SAM_APDU [08:05:34]CAPDU: 80 13 01 00 [08:05:34]Write to MH i2c: E2 08 00 CF 21 80 13 01 00 00 00 00 00 6D [08:05:34]Write i2c OK [08:05:34]MH_I2C_Read... [08:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:34]Read from MH i2c: E2 [08:05:34]MH_I2C_Read... [08:05:34]Read from MH i2c: E2 0E 00 [08:05:34]MH_I2C_Read... [08:05:34]Read from MH i2c: E2 0E 00 CF 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 18 [08:05:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:05:34]wFMCommunicate OK [08:05:34]SAM_PROTO_GetShiftState done [08:05:34]FM_GetShiftState done [08:05:34]req_shift_opened done [08:05:34]requested_item shift.open_date is exist - process it [08:05:34]req_shift_open_date [08:05:34]req_shift_open_date done [08:05:34]produce_requested_data done [08:05:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67203,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:05:34]process_action_free close_receipt [08:05:34]json_value_free [08:05:34]json_value_free done [08:05:34]process_json_proto returns [08:05:34]Send response to host [08:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67203,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:05:34]free response buf [08:05:34]execute_script done [08:05:34]execute_script returns [08:05:34]free content buf [08:05:34]Sock 7.Close socket [08:05:34]Sock 7.Thread stoped [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:15]accept exits with 9 [08:07:15]New connection [08:07:15]New thread 3066588516 created [08:07:15]Thread 3066731876 joined [08:07:15]Waiting for new connection... [08:07:15] Sock 9.Parse request [08:07:15]Sock 9.Check first char [08:07:15]Sock 9.First char is OK [08:07:15]request: POST /json_proto HTTP/1.0 [08:07:15]Method: POST [08:07:15]URL: /json_proto [08:07:15]Method is POST - this is cgi request [08:07:15]url: /json_proto [08:07:15]query_string will be loaded in cgi processing [08:07:15]execute_cgi json_proto POST (null) [08:07:15]execute_cgi path=json_proto method=POST [08:07:15]POST find Content-Length [08:07:15]Host: 172.17.41.195:8080 [08:07:15]Content-Length: 678 [08:07:15]Content-Type: application/json [08:07:15] [08:07:15]POST finish read [08:07:15]Found Content-Length = 678 [08:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507123", "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" : 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" ] } } [08:07:15]execute_script... [08:07: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)507123", "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" : 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" ] } } [08:07:15]POST & json_proto [08:07:15]process_json_proto [08:07:15]json parsed OK: [08:07:15]protocol is kg_v1.0 [08:07:15]action value=close_receipt [08:07:15]process_action close_receipt [08:07:15]cmd_close_receipt [08:07:15]MH_GetDate [08:07:15]Write to MH i2c: F0 00 00 D0 21 E0 [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 09 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: F0 09 00 D0 21 00 37 6D 44 66 FC 21 6F 64 27 [08:07:15]GetLastDocTimeStamp 1715760331 [08:07:15]current date 1715760439 [08:07:15]FM_GetShiftState [08:07:15]SAM_PROTO_GetShiftState [08:07:15]wFMCommunicate request_size=4 [08:07:15]MH_SAM_APDU [08:07:15]CAPDU: 80 13 01 00 [08:07:15]Write to MH i2c: E2 08 00 D1 21 80 13 01 00 00 00 00 00 6F [08:07:15]Write i2c OK [08:07:15]MH_I2C_Read... [08:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:15]Read from MH i2c: E2 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 [08:07:15]MH_I2C_Read... [08:07:15]Read from MH i2c: E2 0E 00 D1 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1A [08:07:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:07:15]wFMCommunicate OK [08:07:15]SAM_PROTO_GetShiftState done [08:07:15]FM_GetShiftState done [08:07:15]opened in 1715732471 [08:07:15]opened+sec_in_day 1715818871 [08:07:15]quantity*price = 80026 [08:07:15]sum+1 = 80027 [08:07:15]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 СНО: Общий режим Чек 22 15.05.2024 08:07 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67204 ФПД: 150674438889775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080719&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67204&fm=150674438889775&tin=02508201610067®Number=0000000000091845&sum=80000 [08:07:16]StoreToDocumentArchive [08:07:16]shift 356 fd 67204 [08:07:16]save to /storage/0356/doc_00067204 [08:07:16]save last doc name /storage/0356/doc_00067204 to /storage/kkm_last_doc_name [08:07:16]save OK [08:07:16]Clear old archive folders... [08:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:16]tlvbuf is B6D726E0 [08:07:16]SAM_PROTO_ClearQueue [08:07:16]wFMCommunicate request_size=4 [08:07:16]MH_SAM_APDU [08:07:16]CAPDU: 80 09 00 00 [08:07:16]Write to MH i2c: E2 08 00 DE 21 80 09 00 00 00 00 00 00 71 [08:07:16]Write i2c OK [08:07:16]MH_I2C_Read... [08:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_ClearQueue done [08:07:17]KKMCreateOFDPacket [08:07:17]OFDProtocolAddRootSTLVToBuf [08:07:17]FM_MakeSignedData [08:07:17]FM_MakeSignedData [08:07:17]SAM_PROTO_SignData [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 01 02 [08:07:17]Write to MH i2c: E2 08 00 DF 21 80 0D 01 02 00 00 00 00 79 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 DF 21 00 90 00 74 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=255 [08:07:17]MH_SAM_APDU [08:07: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 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 16 00 00 00 F4 03 04 00 37 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 06 01 00 35 04 06 00 89 [08:07:17]Write to MH i2c: E2 02 01 E0 21 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 16 00 00 00 F4 03 04 00 37 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 06 01 00 35 04 06 00 89 00 00 EF [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 E0 21 00 90 00 75 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=10 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 02 02 05 09 A0 68 21 2F [08:07:17]Write to MH i2c: E2 0D 00 E1 21 80 0D 02 02 05 00 09 A0 68 21 2F 00 00 E7 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 03 00 E1 21 00 90 00 76 [08:07:17]RAPDU: 90 00 [08:07:17]wFMCommunicate OK [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 0D 03 02 [08:07:17]Write to MH i2c: E2 08 00 E2 21 80 0D 03 02 00 00 00 00 7E [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 0B 00 E2 21 00 B9 BD 7D C6 81 57 CB 77 90 00 52 [08:07:17]RAPDU: B9 BD 7D C6 81 57 CB 77 90 00 [08:07:17]wFMCommunicate OK [08:07:17]SAM_PROTO_SignData done [08:07:17]FM_MakeSignedData done [08:07:17]CreateOFDProtocolMessage [08:07:17]wFMCommunicate request_size=4 [08:07:17]MH_SAM_APDU [08:07:17]CAPDU: 80 11 00 00 [08:07:17]Write to MH i2c: E2 08 00 E3 21 80 11 00 00 00 00 00 00 7E [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:17]Read from MH i2c: E2 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: E2 17 00 E3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D4 [08: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 [08:07:17]wFMCommunicate OK [08:07:17]CreateOFDProtocolMessage done [08:07:17]OFDSenderStorePacket 67204 [08:07:17]StoreOFDPacket docnum=67204 [08:07: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 0F 01 00 00 B6 D4 07 01 E5 0E 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 16 00 00 00 F4 03 04 00 37 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 06 01 00 35 04 06 00 89 09 A0 68 21 2F B9 BD 7D C6 81 57 CB 77 [08:07:17]CheckFolder [08:07:17]dirname=/storage/ofd_packets [08:07:17]CheckFolder done [08:07:17]ProducePacketName [08:07:17]name=ofd_packets/00067204 [08:07:17]NVStorageSaveData ofd_packets/00067204 [08:07:17]File name is /storage/ofd_packets/00067204 [08:07:17]Write 301 bytes [08:07:17]NVStorageSaveData done [08:07:17]OFDSenderStorePacket done [08:07:17]KKMCreateOFDPacket done [08:07:17]NVStorageSaveData kkm_last_timestamp [08:07:17]File name is /storage/kkm_last_timestamp [08:07:17]Write 4 bytes [08:07:17]NVStorageSaveData done [08:07:17]ExternCall_PrintAddStr [08:07:17]wPrintStart [08:07:17]Write to MH i2c: 01 00 00 E4 21 05 [08:07:17]Write i2c OK [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 [08:07:17]MH_I2C_Read... [08:07:17]Read from MH i2c: 01 07 00 E4 21 00 00 00 00 00 FF 0F 1A [08:07:17]RasterBufferAndPrint [08:07:17]line Счет N : (1)507123 [08:07:17]line ИНН: 02508201610067 [08:07:17]line Контрольно-Кассовый Чек [08:07:17]line ПРОДАЖА [08:07:17]line ТРК (МРК, ГНК) : 13 [08:07:17]line Товар: 2710124130 [08:07:17]line Аи-92-К-5 [08:07:17]line 11.980 * 66.80 [08:07:17]line = 800.26 [08:07:17]line НДС 12% НСП 1% [08:07:17]line > о реализуемом товаре [08:07:17]line ОКРУГЛЕНИЕ: -0.26 [08:07:17]line ИТОГО: 800.00 [08:07:17]line Внесено: 800.00 [08:07:17]line СДАЧА: 0.00 [08:07:17]line НСП 1% : 7.08 [08:07:17]line НДС 12% : 84.98 [08:07:17]line Наличными: 800.00 [08:07:17]line Безнал.: 0.00 [08:07:17]line Место: АЗС № 91 "Партнер Нефть" [08:07:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:07:17]line СНО: Общий режим [08:07:17]line Чек 22 15.05.2024 08:07 [08:07:17]line Смена: 356 ФФД: 1.0 [08:07:17]line ЗНМ: 0300000119 [08:07:17]line РНМ: 0000000000091845 [08:07:17]line Версия ККМ: 001 [08:07:17]line ФМ: 0000000000871829 [08:07:17]line ФД: 67204 [08:07:17]line ФПД: 150674438889775 [08:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T080719&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67204&fm=150674438889775&tin=02508201610067®Number=0000000000091845&sum=80000 [08:07:17]written 0, free lines is 4095 [08:07:17]OFD Sender: Processing packet 67204 [packets to send 35, broken 34] [08:07:17]ProducePacketName [08:07:17]name=ofd_packets/00067204 [08:07:17]OFD Sender: To server: pG, [08:07:17]CommunicateWithHost lk.salyk.kg:30040 [08:07:17]ConnectInit lk.salyk.kg [08:07:17]Connected sock=10 [08:07: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 0F 01 00 00 B6 D4 07 01 E5 0E 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 16 00 00 00 F4 03 04 00 37 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 84 06 01 00 35 04 06 00 89 09 A0 68 21 2F B9 BD 7D C6 81 57 CB 77 [08: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 14 7A 47 00 01 53 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 84 06 01 00 F4 03 04 00 15 15 44 66 B6 04 01 00 00 66 D8 4A 5A B0 F5 6A 94 [08:07:18]CommunicateWithHost err = 0 [08:07:18]CheckOFDResponse [08:07:18]1017 (14) - 77093643461234 [08:07:18]1041 (16) - 0000000000871829 [08:07:18]1040 (4) - 67204 [08:07:18]1012 (4) - 15.05.2024 01:51 [08:07:18]1206 (1) - 0 [08:07:18]OFD Sender: Remove packet 67204 [08:07:18]ProducePacketName [08:07:18]name=ofd_packets/00067204 [08:07:18]NVStorageDeleteData [08:07:18]Write to MH i2c: 01 00 00 0E 22 30 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: 01 07 00 0E 22 00 00 00 00 00 C8 0C 0B [08:07:18]RasterBufferAndPrint [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]line [08:07:18]written 0, free lines is 3281 [08:07:18]MH_Cut [08:07:18]Write to MH i2c: D1 01 00 15 22 01 09 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 [08:07:18]MH_I2C_Read... [08:07:18]Read from MH i2c: D1 01 00 15 22 00 08 [08:07:18]Write to MH i2c: 01 00 00 16 22 38 [08:07:18]Write i2c OK [08:07:18]MH_I2C_Read... [08:07:18]OFD Sender: No OFD packet to send [08:07:19]*** Cut start [08:07:19]*** Purtial cut [08:07:19]*** Stage 1: CUTSNS_PIN = 1 [08:07:19]Read from MH i2c: 01 [08:07:19]MH_I2C_Read... [08:07:19]*** Stop cut motor [08:07:19]*** Cut end [08:07:19]Read from MH i2c: 01 07 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 FF 0F 4D [08:07:19]process_action close_receipt done [08:07:19]requested_data is exist [08:07:19]produce_requested_data [08:07:19]requested_item fm.sn is exist - process it [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 11 00 00 [08:07:19]Write to MH i2c: E2 08 00 17 22 80 11 00 00 00 00 00 00 B3 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 17 00 17 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [08:07:19]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:19]wFMCommunicate OK [08:07:19]requested_item fd.num is exist - process it [08:07:19]SAM_PROTO_GetFieldsCounters [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 13 00 00 [08:07:19]Write to MH i2c: E2 08 00 18 22 80 13 00 00 00 00 00 00 B6 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 62 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 62 00 18 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 84 06 01 00 0E 04 04 00 64 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 0E [08:07: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 84 06 01 00 0E 04 04 00 64 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:07:19]wFMCommunicate OK [08:07:19]SAM_PROTO_GetFieldsCounters done [08:07:19]requested_item shift.num is exist - process it [08:07:19]requested_item shift.opened is exist - process it [08:07:19]req_shift_opened [08:07:19]FM_GetShiftState [08:07:19]SAM_PROTO_GetShiftState [08:07:19]wFMCommunicate request_size=4 [08:07:19]MH_SAM_APDU [08:07:19]CAPDU: 80 13 01 00 [08:07:19]Write to MH i2c: E2 08 00 19 22 80 13 01 00 00 00 00 00 B8 [08:07:19]Write i2c OK [08:07:19]MH_I2C_Read... [08:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:19]Read from MH i2c: E2 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0E 00 [08:07:19]MH_I2C_Read... [08:07:19]Read from MH i2c: E2 0E 00 19 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 63 [08:07:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:07:19]wFMCommunicate OK [08:07:19]SAM_PROTO_GetShiftState done [08:07:19]FM_GetShiftState done [08:07:19]req_shift_opened done [08:07:19]requested_item shift.open_date is exist - process it [08:07:19]req_shift_open_date [08:07:19]req_shift_open_date done [08:07:19]produce_requested_data done [08:07:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67204,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:07:19]process_action_free close_receipt [08:07:19]json_value_free [08:07:19]json_value_free done [08:07:19]process_json_proto returns [08:07:19]Send response to host [08:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67204,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:07:19]free response buf [08:07:19]execute_script done [08:07:19]execute_script returns [08:07:19]free content buf [08:07:19]Sock 9.Close socket [08:07:19]Sock 9.Thread stoped [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:40]accept exits with 7 [08:09:40]New connection [08:09:40]New thread 3066731876 created [08:09:40]Thread 3066588516 joined [08:09:40]Waiting for new connection... [08:09:40] Sock 7.Parse request [08:09:40]Sock 7.Check first char [08:09:40]Sock 7.First char is OK [08:09:40]request: POST /json_proto HTTP/1.0 [08:09:40]Method: POST [08:09:40]URL: /json_proto [08:09:40]Method is POST - this is cgi request [08:09:40]url: /json_proto [08:09:40]query_string will be loaded in cgi processing [08:09:40]execute_cgi json_proto POST (null) [08:09:40]execute_cgi path=json_proto method=POST [08:09:40]POST find Content-Length [08:09:40]Host: 172.17.41.195:8080 [08:09:40]Content-Length: 1209 [08:09:40]Content-Type: application/json [08:09:40] [08:09:40]POST finish read [08:09:40]Found Content-Length = 1209 [08:09:40]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)507124\u000A15.05.2024 07:52\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" ] } } [08:09:40]execute_script... [08:09:40]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)507124\u000A15.05.2024 07:52\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" ] } } [08:09:40]POST & json_proto [08:09:40]process_json_proto [08:09:40]json parsed OK: [08:09:40]protocol is kg_v1.0 [08:09:40]action value=print_text [08:09:40]process_action print_text [08:09:40]cmd_print_text [08:09:40]ExternCall_PrintAddStr [08:09:40]wPrintStart [08:09:40]Write to MH i2c: 01 00 00 1A 22 3C [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 1A 22 00 00 00 00 00 FF 0F 51 [08:09:40]RasterBufferAndPrint [08:09:40]line *****ТОВАРНЫЙ ЧЕК***** [08:09:40]line АЗС-91 [08:09:40]line Партнер нефть [08:09:40]line 02508201610067 [08:09:40]line Кассир : Арстанбеков Н. [08:09:40]line Счет N : (1)507124 [08:09:40]line 15.05.2024 07:52 [08:09:40]line ПРОДАЖА [08:09:40]line ТРК (МРК, ГНК): 31 [08:09:40]line Вид ГСМ : 2710194210 [08:09:40]line ДТ-К-5 [08:09:40]line 40.170 x 74.70 [08:09:40]line ИТОГ: 3000.70 [08:09:40]line Тип оплаты: Талоны: Топливная Карта [08:09:40]line 02750 [08:09:40]line ______________________ [08:09:40]line (подпись) [08:09:40]written 0, free lines is 4095 [08:09:40]Write to MH i2c: 01 00 00 2E 22 50 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 0F 0E 74 [08:09:40]RasterBufferAndPrint [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]written 0, free lines is 3601 [08:09:40]MH_Cut [08:09:40]Write to MH i2c: D1 01 00 35 22 01 29 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 01 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 01 00 35 22 00 28 [08:09:40]Write to MH i2c: 01 00 00 36 22 58 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:41]*** Cut start [08:09:41]*** Purtial cut [08:09:41]*** CUTSNS_PIN = 0 [08:09:41]*** Stage 1: CUTSNS_PIN = 1 [08:09:43]Read from MH i2c: 01 [08:09:43]MH_I2C_Read... [08:09:43]*** Stop cut motor [08:09:43]*** Cut end [08:09:43]Read from MH i2c: 01 07 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: 01 07 00 36 22 00 00 00 00 00 FF 0F 6D [08:09:43]process_action print_text done [08:09:43]requested_data is exist [08:09:43]produce_requested_data [08:09:43]requested_item fm.sn is exist - process it [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 11 00 00 [08:09:43]Write to MH i2c: E2 08 00 37 22 80 11 00 00 00 00 00 00 D3 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 17 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 17 00 37 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [08:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:09:43]wFMCommunicate OK [08:09:43]requested_item fd.num is exist - process it [08:09:43]SAM_PROTO_GetFieldsCounters [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 00 00 [08:09:43]Write to MH i2c: E2 08 00 38 22 80 13 00 00 00 00 00 00 D6 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 62 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 62 00 38 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 84 06 01 00 0E 04 04 00 64 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 2E [08:09: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 84 06 01 00 0E 04 04 00 64 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:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetFieldsCounters done [08:09:43]requested_item shift.num is exist - process it [08:09:43]requested_item shift.opened is exist - process it [08:09:43]req_shift_opened [08:09:43]FM_GetShiftState [08:09:43]SAM_PROTO_GetShiftState [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 01 00 [08:09:43]Write to MH i2c: E2 08 00 39 22 80 13 01 00 00 00 00 00 D8 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 39 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 83 [08:09:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetShiftState done [08:09:43]FM_GetShiftState done [08:09:43]req_shift_opened done [08:09:43]requested_item shift.open_date is exist - process it [08:09:43]req_shift_open_date [08:09:43]req_shift_open_date done [08:09:43]produce_requested_data done [08:09:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67204,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:09:43]process_action_free print_text [08:09:43]json_value_free [08:09:43]json_value_free done [08:09:43]process_json_proto returns [08:09:43]Send response to host [08:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67204,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:09:43]free response buf [08:09:43]execute_script done [08:09:43]execute_script returns [08:09:43]free content buf [08:09:43]Sock 7.Close socket [08:09:43]Sock 7.Thread stoped [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:10]accept exits with 9 [08:10:10]New connection [08:10:10]New thread 3066588516 created [08:10:10]Thread 3066731876 joined [08:10:10]Waiting for new connection... [08:10:10] Sock 9.Parse request [08:10:10]Sock 9.Check first char [08:10:10]Sock 9.First char is OK [08:10:10]request: POST /json_proto HTTP/1.0 [08:10:10]Method: POST [08:10:10]URL: /json_proto [08:10:10]Method is POST - this is cgi request [08:10:10]url: /json_proto [08:10:10]query_string will be loaded in cgi processing [08:10:10]execute_cgi json_proto POST (null) [08:10:10]execute_cgi path=json_proto method=POST [08:10:10]POST find Content-Length [08:10:10]Host: 172.17.41.195:8080 [08:10:10]Content-Length: 679 [08:10:10]Content-Type: application/json [08:10:10] [08:10:10]POST finish read [08:10:10]Found Content-Length = 679 [08:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507125", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:10]execute_script... [08:10: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)507125", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:10]POST & json_proto [08:10:10]process_json_proto [08:10:10]json parsed OK: [08:10:10]protocol is kg_v1.0 [08:10:10]action value=close_receipt [08:10:10]process_action close_receipt [08:10:10]cmd_close_receipt [08:10:10]MH_GetDate [08:10:10]Write to MH i2c: F0 00 00 3A 22 4B [08:10:10]Write i2c OK [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 09 00 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 09 00 3A 22 00 E6 6D 44 66 FC 21 6F 64 41 [08:10:10]GetLastDocTimeStamp 1715760439 [08:10:10]current date 1715760614 [08:10:10]FM_GetShiftState [08:10:10]SAM_PROTO_GetShiftState [08:10:10]wFMCommunicate request_size=4 [08:10:10]MH_SAM_APDU [08:10:10]CAPDU: 80 13 01 00 [08:10:10]Write to MH i2c: E2 08 00 3B 22 80 13 01 00 00 00 00 00 DA [08:10:10]Write i2c OK [08:10:10]MH_I2C_Read... [08:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:10]Read from MH i2c: E2 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: E2 0E 00 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: E2 0E 00 3B 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 85 [08:10:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:10:10]wFMCommunicate OK [08:10:10]SAM_PROTO_GetShiftState done [08:10:10]FM_GetShiftState done [08:10:10]opened in 1715732471 [08:10:10]opened+sec_in_day 1715818871 [08:10:10]quantity*price = 300069 [08:10:10]sum+1 = 300071 [08:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 23 15.05.2024 08:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67205 ФПД: 152267510605056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081014&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67205&fm=152267510605056&tin=02508201610067®Number=0000000000091845&sum=300000 [08:10:11]StoreToDocumentArchive [08:10:11]shift 356 fd 67205 [08:10:11]save to /storage/0356/doc_00067205 [08:10:11]save last doc name /storage/0356/doc_00067205 to /storage/kkm_last_doc_name [08:10:11]save OK [08:10:11]Clear old archive folders... [08:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:10:11]tlvbuf is 003E3210 [08:10:11]SAM_PROTO_ClearQueue [08:10:11]wFMCommunicate request_size=4 [08:10:11]MH_SAM_APDU [08:10:11]CAPDU: 80 09 00 00 [08:10:11]Write to MH i2c: E2 08 00 48 22 80 09 00 00 00 00 00 00 DC [08:10:11]Write i2c OK [08:10:11]MH_I2C_Read... [08:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:11]Read from MH i2c: E2 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [08:10:11]RAPDU: 90 00 [08:10:11]wFMCommunicate OK [08:10:11]SAM_PROTO_ClearQueue done [08:10:11]KKMCreateOFDPacket [08:10:11]OFDProtocolAddRootSTLVToBuf [08:10:11]FM_MakeSignedData [08:10:11]FM_MakeSignedData [08:10:11]SAM_PROTO_SignData [08:10:11]wFMCommunicate request_size=4 [08:10:11]MH_SAM_APDU [08:10:11]CAPDU: 80 0D 01 02 [08:10:11]Write to MH i2c: E2 08 00 49 22 80 0D 01 02 00 00 00 00 E4 [08:10:11]Write i2c OK [08:10:11]MH_I2C_Read... [08:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:11]Read from MH i2c: E2 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [08:10:11]RAPDU: 90 00 [08:10:11]wFMCommunicate OK [08:10:11]wFMCommunicate request_size=255 [08:10:11]MH_SAM_APDU [08:10:11]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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E6 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 06 01 00 35 04 06 00 8A 7C 8A E1 [08:10:12]Write to MH i2c: E2 02 01 4A 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 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E6 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 06 01 00 35 04 06 00 8A 7C 8A E1 00 00 98 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 4A 22 00 90 00 E0 [08:10:12]RAPDU: 90 00 [08:10:12]wFMCommunicate OK [08:10:12]wFMCommunicate request_size=7 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 0D 02 02 02 65 00 [08:10:12]Write to MH i2c: E2 0A 00 4B 22 80 0D 02 02 02 00 65 00 00 00 50 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 4B 22 00 90 00 E1 [08:10:12]RAPDU: 90 00 [08:10:12]wFMCommunicate OK [08:10:12]wFMCommunicate request_size=4 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 0D 03 02 [08:10:12]Write to MH i2c: E2 08 00 4C 22 80 0D 03 02 00 00 00 00 E9 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 0B 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 0B 00 4C 22 00 C5 38 CF 5D E8 68 F5 37 90 00 8F [08:10:12]RAPDU: C5 38 CF 5D E8 68 F5 37 90 00 [08:10:12]wFMCommunicate OK [08:10:12]SAM_PROTO_SignData done [08:10:12]FM_MakeSignedData done [08:10:12]CreateOFDProtocolMessage [08:10:12]wFMCommunicate request_size=4 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 11 00 00 [08:10:12]Write to MH i2c: E2 08 00 4D 22 80 11 00 00 00 00 00 00 E9 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 17 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 17 00 4D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [08:10: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:10:12]wFMCommunicate OK [08:10:12]CreateOFDProtocolMessage done [08:10:12]OFDSenderStorePacket 67205 [08:10:12]StoreOFDPacket docnum=67205 [08:10: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 D9 BB 04 01 0D 14 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E6 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 06 01 00 35 04 06 00 8A 7C 8A E1 65 00 C5 38 CF 5D E8 68 F5 37 [08:10:12]CheckFolder [08:10:12]dirname=/storage/ofd_packets [08:10:12]CheckFolder done [08:10:12]ProducePacketName [08:10:12]name=ofd_packets/00067205 [08:10:12]NVStorageSaveData ofd_packets/00067205 [08:10:12]File name is /storage/ofd_packets/00067205 [08:10:12]Write 298 bytes [08:10:12]NVStorageSaveData done [08:10:12]OFDSenderStorePacket done [08:10:12]KKMCreateOFDPacket done [08:10:12]NVStorageSaveData kkm_last_timestamp [08:10:12]File name is /storage/kkm_last_timestamp [08:10:12]Write 4 bytes [08:10:12]NVStorageSaveData done [08:10:12]ExternCall_PrintAddStr [08:10:12]wPrintStart [08:10:12]Write to MH i2c: 01 00 00 4E 22 70 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 4E 22 00 00 00 00 00 FF 0F 85 [08:10:12]RasterBufferAndPrint [08:10:12]line Счет N : (1)507125 [08:10:12]line ИНН: 02508201610067 [08:10:12]line Контрольно-Кассовый Чек [08:10:12]line ПРОДАЖА [08:10:12]line ТРК (МРК, ГНК) : 31 [08:10:12]line Товар: 2710194210 [08:10:12]line ДТ-К-5 [08:10:12]line 40.170 * 74.70 [08:10:12]line = 3000.70 [08:10:12]line НДС 12% НСП 1% [08:10:12]line > о реализуемом товаре [08:10:12]line ОКРУГЛЕНИЕ: -0.70 [08:10:12]line ИТОГО: 3000.00 [08:10:12]line Внесено: 3000.00 [08:10:12]line СДАЧА: 0.00 [08:10:12]line НСП 1% : 26.55 [08:10:12]line НДС 12% : 318.66 [08:10:12]line Наличными: 3000.00 [08:10:12]line Безнал.: 0.00 [08:10:12]line Место: АЗС № 91 "Партнер Нефть" [08:10:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:10:12]line СНО: Общий режим [08:10:12]line Чек 23 15.05.2024 08:10 [08:10:12]line Смена: 356 ФФД: 1.0 [08:10:12]line ЗНМ: 0300000119 [08:10:12]line РНМ: 0000000000091845 [08:10:12]line Версия ККМ: 001 [08:10:12]line ФМ: 0000000000871829 [08:10:12]line ФД: 67205 [08:10:12]line ФПД: 152267510605056 [08:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081014&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67205&fm=152267510605056&tin=02508201610067®Number=0000000000091845&sum=300000 [08:10:12]OFD Sender: Processing packet 67205 [packets to send 35, broken 34] [08:10:12]ProducePacketName [08:10:12]name=ofd_packets/00067205 [08:10:12]OFD Sender: To server: pG, [08:10:12]CommunicateWithHost lk.salyk.kg:30040 [08:10:12]ConnectInit lk.salyk.kg [08:10:12]written 0, free lines is 4095 [08:10:12]Connected sock=10 [08:10: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 D9 BB 04 01 0D 14 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 E6 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 85 06 01 00 35 04 06 00 8A 7C 8A E1 65 00 C5 38 CF 5D E8 68 F5 37 [08:10: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 49 6A 47 00 17 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 85 06 01 00 F4 03 04 00 C3 15 44 66 B6 04 01 00 00 FB 52 5D 73 C2 02 C4 F4 [08:10:13]CommunicateWithHost err = 0 [08:10:13]CheckOFDResponse [08:10:13]1017 (14) - 77093643461234 [08:10:13]1041 (16) - 0000000000871829 [08:10:13]1040 (4) - 67205 [08:10:13]1012 (4) - 15.05.2024 01:54 [08:10:13]1206 (1) - 0 [08:10:13]OFD Sender: Remove packet 67205 [08:10:13]ProducePacketName [08:10:13]name=ofd_packets/00067205 [08:10:13]NVStorageDeleteData [08:10:13]Write to MH i2c: 01 00 00 78 22 9A [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 78 22 00 00 00 00 00 C1 0C 6E [08:10:13]RasterBufferAndPrint [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]written 0, free lines is 3272 [08:10:13]MH_Cut [08:10:13]Write to MH i2c: D1 01 00 7F 22 01 73 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 01 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 01 00 7F 22 00 72 [08:10:13]Write to MH i2c: 01 00 00 80 22 A2 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]OFD Sender: No OFD packet to send [08:10:14]*** Cut start [08:10:14]*** Purtial cut [08:10:14]*** Stage 1: CUTSNS_PIN = 1 [08:10:14]Read from MH i2c: 01 [08:10:14]MH_I2C_Read... [08:10:14]*** Stop cut motor [08:10:14]*** Cut end [08:10:14]Read from MH i2c: 01 07 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: 01 07 00 80 22 00 00 00 00 00 FF 0F B7 [08:10:14]process_action close_receipt done [08:10:14]requested_data is exist [08:10:14]produce_requested_data [08:10:14]requested_item fm.sn is exist - process it [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 11 00 00 [08:10:14]Write to MH i2c: E2 08 00 81 22 80 11 00 00 00 00 00 00 1D [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 81 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [08:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:10:14]wFMCommunicate OK [08:10:14]requested_item fd.num is exist - process it [08:10:14]SAM_PROTO_GetFieldsCounters [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 13 00 00 [08:10:14]Write to MH i2c: E2 08 00 82 22 80 13 00 00 00 00 00 00 20 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 62 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 62 00 82 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 85 06 01 00 0E 04 04 00 64 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 7C [08:10: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 85 06 01 00 0E 04 04 00 64 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:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_GetFieldsCounters done [08:10:14]requested_item shift.num is exist - process it [08:10:14]requested_item shift.opened is exist - process it [08:10:14]req_shift_opened [08:10:14]FM_GetShiftState [08:10:14]SAM_PROTO_GetShiftState [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 13 01 00 [08:10:14]Write to MH i2c: E2 08 00 83 22 80 13 01 00 00 00 00 00 22 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 83 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CD [08:10:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_GetShiftState done [08:10:14]FM_GetShiftState done [08:10:14]req_shift_opened done [08:10:14]requested_item shift.open_date is exist - process it [08:10:14]req_shift_open_date [08:10:14]req_shift_open_date done [08:10:14]produce_requested_data done [08:10:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67205,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:10:14]process_action_free close_receipt [08:10:14]json_value_free [08:10:14]json_value_free done [08:10:14]process_json_proto returns [08:10:14]Send response to host [08:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67205,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:10:14]free response buf [08:10:14]execute_script done [08:10:14]execute_script returns [08:10:14]free content buf [08:10:14]Sock 9.Close socket [08:10:14]Sock 9.Thread stoped [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:24]accept exits with 7 [08:10:24]New connection [08:10:24]New thread 3066731876 created [08:10:24]Thread 3066588516 joined [08:10:24]Waiting for new connection... [08:10:24] Sock 7.Parse request [08:10:24]Sock 7.Check first char [08:10:24]Sock 7.First char is OK [08:10:24]request: POST /json_proto HTTP/1.0 [08:10:24]Method: POST [08:10:24]URL: /json_proto [08:10:24]Method is POST - this is cgi request [08:10:24]url: /json_proto [08:10:24]query_string will be loaded in cgi processing [08:10:24]execute_cgi json_proto POST (null) [08:10:24]execute_cgi path=json_proto method=POST [08:10:24]POST find Content-Length [08:10:24]Host: 172.17.41.195:8080 [08:10:24]Content-Length: 735 [08:10:24]Content-Type: application/json [08:10:24] [08:10:24]POST finish read [08:10:24]Found Content-Length = 735 [08:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67205, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507125", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:24]execute_script... [08:10:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67205, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507125", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:24]POST & json_proto [08:10:24]process_json_proto [08:10:24]json parsed OK: [08:10:24]protocol is kg_v1.0 [08:10:24]action value=close_receipt [08:10:24]process_action close_receipt [08:10:24]cmd_close_receipt [08:10:24]MH_GetDate [08:10:24]Write to MH i2c: F0 00 00 84 22 95 [08:10:24]Write i2c OK [08:10:24]MH_I2C_Read... [08:10:24]Read from MH i2c: F0 [08:10:24]MH_I2C_Read... [08:10:24]Read from MH i2c: F0 09 00 [08:10:24]MH_I2C_Read... [08:10:24]Read from MH i2c: F0 09 00 84 22 00 F4 6D 44 66 FC 21 6F 64 99 [08:10:24]GetLastDocTimeStamp 1715760614 [08:10:24]current date 1715760628 [08:10:24]FM_GetShiftState [08:10:24]SAM_PROTO_GetShiftState [08:10:24]wFMCommunicate request_size=4 [08:10:24]MH_SAM_APDU [08:10:24]CAPDU: 80 13 01 00 [08:10:24]Write to MH i2c: E2 08 00 85 22 80 13 01 00 00 00 00 00 24 [08:10:24]Write i2c OK [08:10:24]MH_I2C_Read... [08:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:24]Read from MH i2c: E2 [08:10:24]MH_I2C_Read... [08:10:24]Read from MH i2c: E2 0E 00 [08:10:24]MH_I2C_Read... [08:10:24]Read from MH i2c: E2 0E 00 85 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CF [08:10:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:10:24]wFMCommunicate OK [08:10:24]SAM_PROTO_GetShiftState done [08:10:24]FM_GetShiftState done [08:10:24]opened in 1715732471 [08:10:24]opened+sec_in_day 1715818871 [08:10:24]quantity*price = 300069 [08:10:24]sum+1 = 300071 [08:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 24 15.05.2024 08:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФД осн.: 67205 ФМ осн.: 0000000000871829 ФМ: 0000000000871829 ФД: 67206 ФПД: 19709103520694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081028&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67206&fm=19709103520694&tin=02508201610067®Number=0000000000091845&sum=300000 [08:10:26]StoreToDocumentArchive [08:10:26]shift 356 fd 67206 [08:10:26]save to /storage/0356/doc_00067206 [08:10:26]save last doc name /storage/0356/doc_00067206 to /storage/kkm_last_doc_name [08:10:26]save OK [08:10:26]Clear old archive folders... [08:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:10:26]tlvbuf is B6EA49F0 [08:10:26]SAM_PROTO_ClearQueue [08:10:26]wFMCommunicate request_size=4 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 09 00 00 [08:10:26]Write to MH i2c: E2 08 00 94 22 80 09 00 00 00 00 00 00 28 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 94 22 00 90 00 2A [08:10:26]RAPDU: 90 00 [08:10:26]wFMCommunicate OK [08:10:26]SAM_PROTO_ClearQueue done [08:10:26]KKMCreateOFDPacket [08:10:26]OFDProtocolAddRootSTLVToBuf [08:10:26]FM_MakeSignedData [08:10:26]FM_MakeSignedData [08:10:26]SAM_PROTO_SignData [08:10:26]wFMCommunicate request_size=4 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 0D 01 02 [08:10:26]Write to MH i2c: E2 08 00 95 22 80 0D 01 02 00 00 00 00 30 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 95 22 00 90 00 2B [08:10:26]RAPDU: 90 00 [08:10:26]wFMCommunicate OK [08:10:26]wFMCommunicate request_size=255 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F4 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 85 06 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 [08:10:26]Write to MH i2c: E2 02 01 96 22 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F4 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 85 06 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 00 00 74 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 96 22 00 90 00 2C [08:10:26]RAPDU: 90 00 [08:10:26]wFMCommunicate OK [08:10:26]wFMCommunicate request_size=35 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 06 01 00 35 04 06 00 11 EC E2 1D 3B B6 [08:10:26]Write to MH i2c: E2 26 00 97 22 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 06 01 00 35 04 06 00 11 EC E2 1D 3B B6 00 00 A3 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 03 00 97 22 00 90 00 2D [08:10:26]RAPDU: 90 00 [08:10:26]wFMCommunicate OK [08:10:26]wFMCommunicate request_size=4 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 0D 03 02 [08:10:26]Write to MH i2c: E2 08 00 98 22 80 0D 03 02 00 00 00 00 35 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 0B 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 0B 00 98 22 00 21 10 15 D7 AF 28 A8 65 90 00 37 [08:10:26]RAPDU: 21 10 15 D7 AF 28 A8 65 90 00 [08:10:26]wFMCommunicate OK [08:10:26]SAM_PROTO_SignData done [08:10:26]FM_MakeSignedData done [08:10:26]CreateOFDProtocolMessage [08:10:26]wFMCommunicate request_size=4 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 11 00 00 [08:10:26]Write to MH i2c: E2 08 00 99 22 80 11 00 00 00 00 00 00 35 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 17 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 17 00 99 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [08:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:10:26]wFMCommunicate OK [08:10:26]CreateOFDProtocolMessage done [08:10:26]OFDSenderStorePacket 67206 [08:10:26]StoreOFDPacket docnum=67206 [08:10: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 28 01 00 00 AE 81 20 01 67 D2 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F4 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 85 06 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 06 01 00 35 04 06 00 11 EC E2 1D 3B B6 21 10 15 D7 AF 28 A8 65 [08:10:26]CheckFolder [08:10:26]dirname=/storage/ofd_packets [08:10:26]CheckFolder done [08:10:26]ProducePacketName [08:10:26]name=ofd_packets/00067206 [08:10:26]NVStorageSaveData ofd_packets/00067206 [08:10:26]File name is /storage/ofd_packets/00067206 [08:10:26]Write 326 bytes [08:10:26]NVStorageSaveData done [08:10:26]OFDSenderStorePacket done [08:10:26]KKMCreateOFDPacket done [08:10:26]NVStorageSaveData kkm_last_timestamp [08:10:26]File name is /storage/kkm_last_timestamp [08:10:26]Write 4 bytes [08:10:26]NVStorageSaveData done [08:10:26]ExternCall_PrintAddStr [08:10:26]wPrintStart [08:10:26]Write to MH i2c: 01 00 00 9A 22 BC [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: 01 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: 01 07 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: 01 07 00 9A 22 00 00 00 00 00 FF 0F D1 [08:10:26]RasterBufferAndPrint [08:10:26]line Счет N : (1)507125 [08:10:26]line ИНН: 02508201610067 [08:10:26]line Контрольно-Кассовый Чек [08:10:26]line ВОЗВРАТ ПРОДАЖИ [08:10:26]line ТРК (МРК, ГНК) : 31 [08:10:26]line Товар: 2710194210 [08:10:26]line ДТ-К-5 [08:10:26]line 40.170 * 74.70 [08:10:26]line = 3000.70 [08:10:26]line НДС 12% НСП 1% [08:10:26]line > о реализуемом товаре [08:10:26]line ОКРУГЛЕНИЕ: -0.70 [08:10:26]line ИТОГО: 3000.00 [08:10:26]line НСП 1% : 26.55 [08:10:26]line НДС 12% : 318.66 [08:10:26]line Наличными: 3000.00 [08:10:26]line Безнал.: 0.00 [08:10:26]line Место: АЗС № 91 "Партнер Нефть" [08:10:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:10:26]line СНО: Общий режим [08:10:26]line Чек 24 15.05.2024 08:10 [08:10:26]line Смена: 356 ФФД: 1.0 [08:10:26]line ЗНМ: 0300000119 [08:10:26]line РНМ: 0000000000091845 [08:10:26]line Версия ККМ: 001 [08:10:26]line ФД осн.: 67205 [08:10:26]line ФМ осн.: 0000000000871829 [08:10:26]line ФМ: 0000000000871829 [08:10:26]line ФД: 67206 [08:10:26]line ФПД: 19709103520694 [08:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081028&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67206&fm=19709103520694&tin=02508201610067®Number=0000000000091845&sum=300000 [08:10:27]OFD Sender: Processing packet 67206 [packets to send 35, broken 34] [08:10:27]ProducePacketName [08:10:27]name=ofd_packets/00067206 [08:10:27]OFD Sender: To server: pG, [08:10:27]CommunicateWithHost lk.salyk.kg:30040 [08:10:27]ConnectInit lk.salyk.kg [08:10:27]written 0, free lines is 4095 [08:10:27]Connected sock=10 [08: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 28 01 00 00 AE 81 20 01 67 D2 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F4 6D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 85 06 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 86 06 01 00 35 04 06 00 11 EC E2 1D 3B B6 21 10 15 D7 AF 28 A8 65 [08: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 F5 4C 47 00 34 56 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 86 06 01 00 F4 03 04 00 D2 15 44 66 B6 04 01 00 00 8F 24 66 1F 77 60 AE AF [08:10:27]CommunicateWithHost err = 0 [08:10:27]CheckOFDResponse [08:10:27]1017 (14) - 77093643461234 [08:10:27]1041 (16) - 0000000000871829 [08:10:27]1040 (4) - 67206 [08:10:27]1012 (4) - 15.05.2024 01:54 [08:10:27]1206 (1) - 0 [08:10:27]OFD Sender: Remove packet 67206 [08:10:27]ProducePacketName [08:10:27]name=ofd_packets/00067206 [08:10:27]NVStorageDeleteData [08:10:27]Write to MH i2c: 01 00 00 C4 22 E6 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: 01 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: 01 07 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: 01 07 00 C4 22 00 00 00 00 00 D4 0C CD [08:10:27]RasterBufferAndPrint [08:10:27]line [08:10:27]line [08:10:27]line [08:10:27]line [08:10:27]line [08:10:27]written 0, free lines is 3290 [08:10:27]MH_Cut [08:10:27]Write to MH i2c: D1 01 00 CB 22 01 BF [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: D1 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: D1 01 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: D1 01 00 CB 22 00 BE [08:10:27]Write to MH i2c: 01 00 00 CC 22 EE [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]OFD Sender: No OFD packet to send [08:10:28]*** Cut start [08:10:28]*** Purtial cut [08:10:28]*** CUTSNS_PIN = 0 [08:10:28]*** Stage 1: CUTSNS_PIN = 1 [08:10:30]Read from MH i2c: 01 [08:10:30]MH_I2C_Read... [08:10:30]*** Stop cut motor [08:10:30]*** Cut end [08:10:30]Read from MH i2c: 01 07 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: 01 07 00 CC 22 00 00 00 00 00 FF 0F 03 [08:10:30]process_action close_receipt done [08:10:30]requested_data is exist [08:10:30]produce_requested_data [08:10:30]requested_item fm.sn is exist - process it [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 11 00 00 [08:10:30]Write to MH i2c: E2 08 00 CD 22 80 11 00 00 00 00 00 00 69 [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 17 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 17 00 CD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [08:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:10:30]wFMCommunicate OK [08:10:30]requested_item fd.num is exist - process it [08:10:30]SAM_PROTO_GetFieldsCounters [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 13 00 00 [08:10:30]Write to MH i2c: E2 08 00 CE 22 80 13 00 00 00 00 00 00 6C [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 62 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 62 00 CE 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 86 06 01 00 0E 04 04 00 64 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 CC [08:10: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 86 06 01 00 0E 04 04 00 64 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:10:30]wFMCommunicate OK [08:10:30]SAM_PROTO_GetFieldsCounters done [08:10:30]requested_item shift.num is exist - process it [08:10:30]requested_item shift.opened is exist - process it [08:10:30]req_shift_opened [08:10:30]FM_GetShiftState [08:10:30]SAM_PROTO_GetShiftState [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 13 01 00 [08:10:30]Write to MH i2c: E2 08 00 CF 22 80 13 01 00 00 00 00 00 6E [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:30]Read from MH i2c: E2 0E 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 0E 00 CF 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 19 [08:10:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:10:30]wFMCommunicate OK [08:10:30]SAM_PROTO_GetShiftState done [08:10:30]FM_GetShiftState done [08:10:30]req_shift_opened done [08:10:30]requested_item shift.open_date is exist - process it [08:10:30]req_shift_open_date [08:10:30]req_shift_open_date done [08:10:30]produce_requested_data done [08:10:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67206,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:10:30]process_action_free close_receipt [08:10:30]json_value_free [08:10:30]json_value_free done [08:10:30]process_json_proto returns [08:10:30]Send response to host [08:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67206,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:10:30]free response buf [08:10:30]execute_script done [08:10:30]execute_script returns [08:10:30]free content buf [08:10:30]Sock 7.Close socket [08:10:30]Sock 7.Thread stoped [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:48]accept exits with 9 [08:14:48]New connection [08:14:48]New thread 3066588516 created [08:14:48]Thread 3066731876 joined [08:14:48]Waiting for new connection... [08:14:48] Sock 9.Parse request [08:14:48]Sock 9.Check first char [08:14:48]Sock 9.First char is OK [08:14:48]request: POST /json_proto HTTP/1.0 [08:14:48]Method: POST [08:14:48]URL: /json_proto [08:14:48]Method is POST - this is cgi request [08:14:48]url: /json_proto [08:14:48]query_string will be loaded in cgi processing [08:14:48]execute_cgi json_proto POST (null) [08:14:48]execute_cgi path=json_proto method=POST [08:14:48]POST find Content-Length [08:14:48]Host: 172.17.41.195:8080 [08:14:48]Content-Length: 674 [08:14:48]Content-Type: application/json [08:14:48] [08:14:48]POST finish read [08:14:48]Found Content-Length = 674 [08:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507126", "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" : 8.040, "sum" : 600.59, "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" ] } } [08:14:48]execute_script... [08:14: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)507126", "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" : 8.040, "sum" : 600.59, "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" ] } } [08:14:48]POST & json_proto [08:14:48]process_json_proto [08:14:48]json parsed OK: [08:14:48]protocol is kg_v1.0 [08:14:48]action value=close_receipt [08:14:48]process_action close_receipt [08:14:48]cmd_close_receipt [08:14:48]MH_GetDate [08:14:48]Write to MH i2c: F0 00 00 D0 22 E1 [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: F0 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: F0 09 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: F0 09 00 D0 22 00 FC 6E 44 66 FC 21 6F 64 EE [08:14:48]GetLastDocTimeStamp 1715760628 [08:14:48]current date 1715760892 [08:14:48]FM_GetShiftState [08:14:48]SAM_PROTO_GetShiftState [08:14:48]wFMCommunicate request_size=4 [08:14:48]MH_SAM_APDU [08:14:48]CAPDU: 80 13 01 00 [08:14:48]Write to MH i2c: E2 08 00 D1 22 80 13 01 00 00 00 00 00 70 [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:48]Read from MH i2c: E2 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: E2 0E 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: E2 0E 00 D1 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1B [08:14:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:14:48]wFMCommunicate OK [08:14:48]SAM_PROTO_GetShiftState done [08:14:48]FM_GetShiftState done [08:14:48]opened in 1715732471 [08:14:48]opened+sec_in_day 1715818871 [08:14:48]quantity*price = 60058 [08:14:48]sum+1 = 60060 [08:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 25 15.05.2024 08:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67207 ФПД: 156041666934538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67207&fm=156041666934538&tin=02508201610067®Number=0000000000091845&sum=60000 [08:14:49]StoreToDocumentArchive [08:14:49]shift 356 fd 67207 [08:14:49]save to /storage/0356/doc_00067207 [08:14:49]save last doc name /storage/0356/doc_00067207 to /storage/kkm_last_doc_name [08:14:49]save OK [08:14:49]Clear old archive folders... [08:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:14:49]tlvbuf is 00341F80 [08:14:49]SAM_PROTO_ClearQueue [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 09 00 00 [08:14:49]Write to MH i2c: E2 08 00 DE 22 80 09 00 00 00 00 00 00 72 [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 DE 22 00 90 00 74 [08:14:50]RAPDU: 90 00 [08:14:50]wFMCommunicate OK [08:14:50]SAM_PROTO_ClearQueue done [08:14:50]KKMCreateOFDPacket [08:14:50]OFDProtocolAddRootSTLVToBuf [08:14:50]FM_MakeSignedData [08:14:50]FM_MakeSignedData [08:14:50]SAM_PROTO_SignData [08:14:50]wFMCommunicate request_size=4 [08:14:50]MH_SAM_APDU [08:14:50]CAPDU: 80 0D 01 02 [08:14:50]Write to MH i2c: E2 08 00 DF 22 80 0D 01 02 00 00 00 00 7A [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [08:14:50]RAPDU: 90 00 [08:14:50]wFMCommunicate OK [08:14:50]wFMCommunicate request_size=255 [08:14:50]MH_SAM_APDU [08:14: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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 19 00 00 00 F4 03 04 00 FC 6E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 06 01 00 35 04 06 00 8D EB 48 20 [08:14:50]Write to MH i2c: E2 02 01 E0 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 19 00 00 00 F4 03 04 00 FC 6E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 06 01 00 35 04 06 00 8D EB 48 20 00 00 DE [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 E0 22 00 90 00 76 [08:14:50]RAPDU: 90 00 [08:14:50]wFMCommunicate OK [08:14:50]wFMCommunicate request_size=7 [08:14:50]MH_SAM_APDU [08:14:50]CAPDU: 80 0D 02 02 02 B7 0A [08:14:50]Write to MH i2c: E2 0A 00 E1 22 80 0D 02 02 02 00 B7 0A 00 00 42 [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 03 00 E1 22 00 90 00 77 [08:14:50]RAPDU: 90 00 [08:14:50]wFMCommunicate OK [08:14:50]wFMCommunicate request_size=4 [08:14:50]MH_SAM_APDU [08:14:50]CAPDU: 80 0D 03 02 [08:14:50]Write to MH i2c: E2 08 00 E2 22 80 0D 03 02 00 00 00 00 7F [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 0B 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 0B 00 E2 22 00 4A 5E B6 39 35 98 81 6B 90 00 D0 [08:14:50]RAPDU: 4A 5E B6 39 35 98 81 6B 90 00 [08:14:50]wFMCommunicate OK [08:14:50]SAM_PROTO_SignData done [08:14:50]FM_MakeSignedData done [08:14:50]CreateOFDProtocolMessage [08:14:50]wFMCommunicate request_size=4 [08:14:50]MH_SAM_APDU [08:14:50]CAPDU: 80 11 00 00 [08:14:50]Write to MH i2c: E2 08 00 E3 22 80 11 00 00 00 00 00 00 7F [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:50]Read from MH i2c: E2 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 17 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: E2 17 00 E3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [08:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:14:50]wFMCommunicate OK [08:14:50]CreateOFDProtocolMessage done [08:14:50]OFDSenderStorePacket 67207 [08:14:50]StoreOFDPacket docnum=67207 [08:14: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 5E C5 04 01 8B 0A 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 19 00 00 00 F4 03 04 00 FC 6E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 06 01 00 35 04 06 00 8D EB 48 20 B7 0A 4A 5E B6 39 35 98 81 6B [08:14:50]CheckFolder [08:14:50]dirname=/storage/ofd_packets [08:14:50]CheckFolder done [08:14:50]ProducePacketName [08:14:50]name=ofd_packets/00067207 [08:14:50]NVStorageSaveData ofd_packets/00067207 [08:14:50]File name is /storage/ofd_packets/00067207 [08:14:50]Write 298 bytes [08:14:50]NVStorageSaveData done [08:14:50]OFDSenderStorePacket done [08:14:50]KKMCreateOFDPacket done [08:14:50]NVStorageSaveData kkm_last_timestamp [08:14:50]File name is /storage/kkm_last_timestamp [08:14:50]Write 4 bytes [08:14:50]NVStorageSaveData done [08:14:50]ExternCall_PrintAddStr [08:14:50]wPrintStart [08:14:50]Write to MH i2c: 01 00 00 E4 22 06 [08:14:50]Write i2c OK [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: 01 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: 01 07 00 [08:14:50]MH_I2C_Read... [08:14:50]Read from MH i2c: 01 07 00 E4 22 00 00 00 00 00 FF 0F 1B [08:14:50]RasterBufferAndPrint [08:14:50]line Счет N : (1)507126 [08:14:50]line ИНН: 02508201610067 [08:14:50]line Контрольно-Кассовый Чек [08:14:50]line ПРОДАЖА [08:14:50]line ТРК (МРК, ГНК) : 21 [08:14:50]line Товар: 2710194210 [08:14:50]line ДТ-К-5 [08:14:50]line 8.040 * 74.70 [08:14:50]line = 600.59 [08:14:50]line НДС 12% НСП 1% [08:14:50]line > о реализуемом товаре [08:14:50]line ОКРУГЛЕНИЕ: -0.59 [08:14:50]line ИТОГО: 600.00 [08:14:50]line Внесено: 600.00 [08:14:50]line СДАЧА: 0.00 [08:14:50]line НСП 1% : 5.31 [08:14:50]line НДС 12% : 63.78 [08:14:50]line Наличными: 600.00 [08:14:50]line Безнал.: 0.00 [08:14:50]line Место: АЗС № 91 "Партнер Нефть" [08:14:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:14:50]line СНО: Общий режим [08:14:50]line Чек 25 15.05.2024 08:14 [08:14:50]line Смена: 356 ФФД: 1.0 [08:14:50]line ЗНМ: 0300000119 [08:14:50]line РНМ: 0000000000091845 [08:14:50]line Версия ККМ: 001 [08:14:50]line ФМ: 0000000000871829 [08:14:50]line ФД: 67207 [08:14:50]line ФПД: 156041666934538 [08:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67207&fm=156041666934538&tin=02508201610067®Number=0000000000091845&sum=60000 [08:14:50]OFD Sender: Processing packet 67207 [packets to send 35, broken 34] [08:14:50]ProducePacketName [08:14:50]name=ofd_packets/00067207 [08:14:50]OFD Sender: To server: pG, [08:14:50]CommunicateWithHost lk.salyk.kg:30040 [08:14:50]ConnectInit lk.salyk.kg [08:14:50]written 0, free lines is 4095 [08:14:50]Connected sock=10 [08:14: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 5E C5 04 01 8B 0A 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 19 00 00 00 F4 03 04 00 FC 6E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 06 01 00 35 04 06 00 8D EB 48 20 B7 0A 4A 5E B6 39 35 98 81 6B [08:14: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 B7 A2 47 00 80 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 87 06 01 00 F4 03 04 00 DA 16 44 66 B6 04 01 00 00 3A 5E 18 B3 97 9E FB F8 [08:14:51]CommunicateWithHost err = 0 [08:14:51]CheckOFDResponse [08:14:51]1017 (14) - 77093643461234 [08:14:51]1041 (16) - 0000000000871829 [08:14:51]1040 (4) - 67207 [08:14:51]1012 (4) - 15.05.2024 01:58 [08:14:51]1206 (1) - 0 [08:14:51]OFD Sender: Remove packet 67207 [08:14:51]ProducePacketName [08:14:51]name=ofd_packets/00067207 [08:14:51]NVStorageDeleteData [08:14:51]Write to MH i2c: 01 00 00 0E 23 31 [08:14:51]Write i2c OK [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: 01 [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: 01 07 00 [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: 01 07 00 0E 23 00 00 00 00 00 BA 0C FE [08:14:51]RasterBufferAndPrint [08:14:51]line [08:14:51]line [08:14:51]line [08:14:51]line [08:14:51]line [08:14:51]written 0, free lines is 3264 [08:14:51]MH_Cut [08:14:51]Write to MH i2c: D1 01 00 15 23 01 0A [08:14:51]Write i2c OK [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: D1 [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: D1 01 00 [08:14:51]MH_I2C_Read... [08:14:51]Read from MH i2c: D1 01 00 15 23 00 09 [08:14:51]Write to MH i2c: 01 00 00 16 23 39 [08:14:51]Write i2c OK [08:14:51]MH_I2C_Read... [08:14:51]OFD Sender: No OFD packet to send [08:14:52]*** Cut start [08:14:52]*** Purtial cut [08:14:52]*** Stage 1: CUTSNS_PIN = 1 [08:14:52]Read from MH i2c: 01 [08:14:52]MH_I2C_Read... [08:14:52]*** Stop cut motor [08:14:52]*** Cut end [08:14:52]Read from MH i2c: 01 07 00 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [08:14:52]process_action close_receipt done [08:14:52]requested_data is exist [08:14:52]produce_requested_data [08:14:52]requested_item fm.sn is exist - process it [08:14:52]wFMCommunicate request_size=4 [08:14:52]MH_SAM_APDU [08:14:52]CAPDU: 80 11 00 00 [08:14:52]Write to MH i2c: E2 08 00 17 23 80 11 00 00 00 00 00 00 B4 [08:14:52]Write i2c OK [08:14:52]MH_I2C_Read... [08:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:52]Read from MH i2c: E2 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 17 00 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 17 00 17 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [08:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:14:52]wFMCommunicate OK [08:14:52]requested_item fd.num is exist - process it [08:14:52]SAM_PROTO_GetFieldsCounters [08:14:52]wFMCommunicate request_size=4 [08:14:52]MH_SAM_APDU [08:14:52]CAPDU: 80 13 00 00 [08:14:52]Write to MH i2c: E2 08 00 18 23 80 13 00 00 00 00 00 00 B7 [08:14:52]Write i2c OK [08:14:52]MH_I2C_Read... [08:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:52]Read from MH i2c: E2 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 62 00 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 62 00 18 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 87 06 01 00 0E 04 04 00 64 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 1B [08:14: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 87 06 01 00 0E 04 04 00 64 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:14:52]wFMCommunicate OK [08:14:52]SAM_PROTO_GetFieldsCounters done [08:14:52]requested_item shift.num is exist - process it [08:14:52]requested_item shift.opened is exist - process it [08:14:52]req_shift_opened [08:14:52]FM_GetShiftState [08:14:52]SAM_PROTO_GetShiftState [08:14:52]wFMCommunicate request_size=4 [08:14:52]MH_SAM_APDU [08:14:52]CAPDU: 80 13 01 00 [08:14:52]Write to MH i2c: E2 08 00 19 23 80 13 01 00 00 00 00 00 B9 [08:14:52]Write i2c OK [08:14:52]MH_I2C_Read... [08:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:52]Read from MH i2c: E2 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 0E 00 [08:14:52]MH_I2C_Read... [08:14:52]Read from MH i2c: E2 0E 00 19 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 64 [08:14:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:14:52]wFMCommunicate OK [08:14:52]SAM_PROTO_GetShiftState done [08:14:52]FM_GetShiftState done [08:14:52]req_shift_opened done [08:14:52]requested_item shift.open_date is exist - process it [08:14:52]req_shift_open_date [08:14:52]req_shift_open_date done [08:14:52]produce_requested_data done [08:14:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67207,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:14:52]process_action_free close_receipt [08:14:52]json_value_free [08:14:52]json_value_free done [08:14:52]process_json_proto returns [08:14:52]Send response to host [08:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67207,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:14:52]free response buf [08:14:52]execute_script done [08:14:52]execute_script returns [08:14:52]free content buf [08:14:52]Sock 9.Close socket [08:14:52]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]accept exits with 7 [08:18:51]New connection [08:18:51]New thread 3066731876 created [08:18:51]Thread 3066588516 joined [08:18:51]Waiting for new connection... [08:18:51] Sock 7.Parse request [08:18:51]Sock 7.Check first char [08:18:51]Sock 7.First char is OK [08:18:51]request: POST /json_proto HTTP/1.0 [08:18:51]Method: POST [08:18:51]URL: /json_proto [08:18:51]Method is POST - this is cgi request [08:18:51]url: /json_proto [08:18:51]query_string will be loaded in cgi processing [08:18:51]execute_cgi json_proto POST (null) [08:18:51]execute_cgi path=json_proto method=POST [08:18:51]POST find Content-Length [08:18:51]Host: 172.17.41.195:8080 [08:18:51]Content-Length: 816 [08:18:51]Content-Type: application/json [08:18:51] [08:18:51]POST finish read [08:18:51]Found Content-Length = 816 [08:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507127", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:51]execute_script... [08:18: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)507127", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:51]POST & json_proto [08:18:51]process_json_proto [08:18:51]json parsed OK: [08:18:51]protocol is kg_v1.0 [08:18:51]action value=close_receipt [08:18:51]process_action close_receipt [08:18:51]cmd_close_receipt [08:18:51]MH_GetDate [08:18:51]Write to MH i2c: F0 00 00 1A 23 2C [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: F0 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: F0 09 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: F0 09 00 1A 23 00 EE 6F 44 66 FC 21 6F 64 2C [08:18:51]GetLastDocTimeStamp 1715760892 [08:18:51]current date 1715761134 [08:18:51]FM_GetShiftState [08:18:51]SAM_PROTO_GetShiftState [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 13 01 00 [08:18:51]Write to MH i2c: E2 08 00 1B 23 80 13 01 00 00 00 00 00 BB [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 0E 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 0E 00 1B 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 66 [08:18:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:18:51]wFMCommunicate OK [08:18:51]SAM_PROTO_GetShiftState done [08:18:51]FM_GetShiftState done [08:18:51]opened in 1715732471 [08:18:51]opened+sec_in_day 1715818871 [08:18:51]quantity*price = 200046 [08:18:51]sum+1 = 200048 [08:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 26 15.05.2024 08:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67208 ФПД: 53662732289638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67208&fm=53662732289638&tin=02508201610067®Number=0000000000091845&sum=200047 [08:18:52]StoreToDocumentArchive [08:18:52]shift 356 fd 67208 [08:18:52]save to /storage/0356/doc_00067208 [08:18:52]save last doc name /storage/0356/doc_00067208 to /storage/kkm_last_doc_name [08:18:52]save OK [08:18:52]Clear old archive folders... [08:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:18:52]tlvbuf is 003E34A0 [08:18:52]SAM_PROTO_ClearQueue [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 09 00 00 [08:18:52]Write to MH i2c: E2 08 00 28 23 80 09 00 00 00 00 00 00 BD [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 28 23 00 90 00 BF [08:18:52]RAPDU: 90 00 [08:18:52]wFMCommunicate OK [08:18:52]SAM_PROTO_ClearQueue done [08:18:52]KKMCreateOFDPacket [08:18:52]OFDProtocolAddRootSTLVToBuf [08:18:52]FM_MakeSignedData [08:18:52]FM_MakeSignedData [08:18:52]SAM_PROTO_SignData [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 0D 01 02 [08:18:52]Write to MH i2c: E2 08 00 29 23 80 0D 01 02 00 00 00 00 C5 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 29 23 00 90 00 C0 [08:18:52]RAPDU: 90 00 [08:18:52]wFMCommunicate OK [08:18:52]wFMCommunicate request_size=255 [08:18:52]MH_SAM_APDU [08:18: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 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 1A 00 00 00 F4 03 04 00 EE 6F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 06 01 00 35 04 06 00 30 CE 54 18 [08:18:52]Write to MH i2c: E2 02 01 2A 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 1A 00 00 00 F4 03 04 00 EE 6F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 06 01 00 35 04 06 00 30 CE 54 18 00 00 B0 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 2A 23 00 90 00 C1 [08:18:52]RAPDU: 90 00 [08:18:52]wFMCommunicate OK [08:18:52]wFMCommunicate request_size=7 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 0D 02 02 02 86 66 [08:18:52]Write to MH i2c: E2 0A 00 2B 23 80 0D 02 02 02 00 86 66 00 00 B8 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 03 00 2B 23 00 90 00 C2 [08:18:52]RAPDU: 90 00 [08:18:52]wFMCommunicate OK [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 0D 03 02 [08:18:52]Write to MH i2c: E2 08 00 2C 23 80 0D 03 02 00 00 00 00 CA [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 2C 23 00 17 97 31 6E E4 C3 8E 67 90 00 B4 [08:18:52]RAPDU: 17 97 31 6E E4 C3 8E 67 90 00 [08:18:52]wFMCommunicate OK [08:18:52]SAM_PROTO_SignData done [08:18:52]FM_MakeSignedData done [08:18:52]CreateOFDProtocolMessage [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 11 00 00 [08:18:52]Write to MH i2c: E2 08 00 2D 23 80 11 00 00 00 00 00 00 CA [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 2D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [08:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:18:52]wFMCommunicate OK [08:18:52]CreateOFDProtocolMessage done [08:18:52]OFDSenderStorePacket 67208 [08:18:52]StoreOFDPacket docnum=67208 [08:18: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 2B 07 04 01 EE 34 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 1A 00 00 00 F4 03 04 00 EE 6F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 06 01 00 35 04 06 00 30 CE 54 18 86 66 17 97 31 6E E4 C3 8E 67 [08:18:52]CheckFolder [08:18:52]dirname=/storage/ofd_packets [08:18:52]CheckFolder done [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00067208 [08:18:52]NVStorageSaveData ofd_packets/00067208 [08:18:52]File name is /storage/ofd_packets/00067208 [08:18:52]Write 298 bytes [08:18:52]NVStorageSaveData done [08:18:52]OFDSenderStorePacket done [08:18:52]KKMCreateOFDPacket done [08:18:52]NVStorageSaveData kkm_last_timestamp [08:18:52]File name is /storage/kkm_last_timestamp [08:18:52]Write 4 bytes [08:18:52]NVStorageSaveData done [08:18:52]ExternCall_PrintAddStr [08:18:52]wPrintStart [08:18:52]Write to MH i2c: 01 00 00 2E 23 51 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 2E 23 00 00 00 00 00 FF 0F 66 [08:18:52]RasterBufferAndPrint [08:18:52]line Счет N : (1)507127 [08:18:52]line ИНН: 02508201610067 [08:18:52]line Контрольно-Кассовый Чек [08:18:52]line ПРОДАЖА [08:18:52]line ТРК (МРК, ГНК) : 21 [08:18:52]line Товар: 2710194210 [08:18:52]line ДТ-К-5 [08:18:52]line 26.780 * 74.70 [08:18:52]line = 2000.47 [08:18:52]line НДС 12% НСП 1% [08:18:52]line > о реализуемом товаре [08:18:52]line ИТОГО: 2000.47 [08:18:52]line НСП 1% : 17.70 [08:18:53]line НДС 12% : 212.44 [08:18:53]line Наличными: 0.00 [08:18:53]line Безнал.: 2000.47 [08:18:53]line Место: АЗС № 91 "Партнер Нефть" [08:18:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:18:53]line СНО: Общий режим [08:18:53]line Чек 26 15.05.2024 08:18 [08:18:53]line Смена: 356 ФФД: 1.0 [08:18:53]line ЗНМ: 0300000119 [08:18:53]line РНМ: 0000000000091845 [08:18:53]line Версия ККМ: 001 [08:18:53]line Платежная система: Бакай Банк [08:18:53]line ФМ: 0000000000871829 [08:18:53]line ФД: 67208 [08:18:53]line ФПД: 53662732289638 [08:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T081854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67208&fm=53662732289638&tin=02508201610067®Number=0000000000091845&sum=200047 [08:18:53]OFD Sender: Processing packet 67208 [packets to send 35, broken 34] [08:18:53]ProducePacketName [08:18:53]name=ofd_packets/00067208 [08:18:53]OFD Sender: To server: pG, [08:18:53]CommunicateWithHost lk.salyk.kg:30040 [08:18:53]ConnectInit lk.salyk.kg [08:18:53]written 0, free lines is 4095 [08:18:53]Connected sock=10 [08:18: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 2B 07 04 01 EE 34 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 1A 00 00 00 F4 03 04 00 EE 6F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 88 06 01 00 35 04 06 00 30 CE 54 18 86 66 17 97 31 6E E4 C3 8E 67 [08:18: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 1B DA 47 00 1A 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 88 06 01 00 F4 03 04 00 CC 17 44 66 B6 04 01 00 00 14 93 2F 88 D5 3A 3C B1 [08:18:53]CommunicateWithHost err = 0 [08:18:53]CheckOFDResponse [08:18:53]1017 (14) - 77093643461234 [08:18:53]1041 (16) - 0000000000871829 [08:18:53]1040 (4) - 67208 [08:18:53]1012 (4) - 15.05.2024 02:02 [08:18:53]1206 (1) - 0 [08:18:53]OFD Sender: Remove packet 67208 [08:18:53]ProducePacketName [08:18:53]name=ofd_packets/00067208 [08:18:53]NVStorageDeleteData [08:18:53]Write to MH i2c: 01 00 00 57 23 7A [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: 01 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: 01 07 00 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: 01 07 00 57 23 00 00 00 00 00 D7 0C 64 [08:18:53]RasterBufferAndPrint [08:18:53]line [08:18:53]line [08:18:53]line [08:18:53]line [08:18:53]line [08:18:53]written 0, free lines is 3295 [08:18:53]MH_Cut [08:18:53]Write to MH i2c: D1 01 00 5E 23 01 53 [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: D1 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: D1 01 00 [08:18:53]MH_I2C_Read... [08:18:53]Read from MH i2c: D1 01 00 5E 23 00 52 [08:18:53]Write to MH i2c: 01 00 00 5F 23 82 [08:18:53]Write i2c OK [08:18:53]MH_I2C_Read... [08:18:54]OFD Sender: No OFD packet to send [08:18:54]*** Cut start [08:18:54]*** Purtial cut [08:18:54]*** CUTSNS_PIN = 0 [08:18:54]*** Stage 1: CUTSNS_PIN = 1 [08:18:56]Read from MH i2c: 01 [08:18:56]MH_I2C_Read... [08:18:56]*** Stop cut motor [08:18:56]*** Cut end [08:18:56]Read from MH i2c: 01 07 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: 01 07 00 5F 23 00 00 00 00 00 FF 0F 97 [08:18:56]process_action close_receipt done [08:18:56]requested_data is exist [08:18:56]produce_requested_data [08:18:56]requested_item fm.sn is exist - process it [08:18:56]wFMCommunicate request_size=4 [08:18:56]MH_SAM_APDU [08:18:56]CAPDU: 80 11 00 00 [08:18:56]Write to MH i2c: E2 08 00 60 23 80 11 00 00 00 00 00 00 FD [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:56]Read from MH i2c: E2 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 17 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 17 00 60 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [08:18: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:18:56]wFMCommunicate OK [08:18:56]requested_item fd.num is exist - process it [08:18:56]SAM_PROTO_GetFieldsCounters [08:18:56]wFMCommunicate request_size=4 [08:18:56]MH_SAM_APDU [08:18:56]CAPDU: 80 13 00 00 [08:18:56]Write to MH i2c: E2 08 00 61 23 80 13 00 00 00 00 00 00 00 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:56]Read from MH i2c: E2 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 62 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 62 00 61 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 88 06 01 00 0E 04 04 00 64 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 68 [08:18: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 88 06 01 00 0E 04 04 00 64 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 [08:18:56]wFMCommunicate OK [08:18:56]SAM_PROTO_GetFieldsCounters done [08:18:56]requested_item shift.num is exist - process it [08:18:56]requested_item shift.opened is exist - process it [08:18:56]req_shift_opened [08:18:56]FM_GetShiftState [08:18:56]SAM_PROTO_GetShiftState [08:18:56]wFMCommunicate request_size=4 [08:18:56]MH_SAM_APDU [08:18:56]CAPDU: 80 13 01 00 [08:18:56]Write to MH i2c: E2 08 00 62 23 80 13 01 00 00 00 00 00 02 [08:18:56]Write i2c OK [08:18:56]MH_I2C_Read... [08:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:56]Read from MH i2c: E2 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 [08:18:56]MH_I2C_Read... [08:18:56]Read from MH i2c: E2 0E 00 62 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AD [08:18:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:18:56]wFMCommunicate OK [08:18:56]SAM_PROTO_GetShiftState done [08:18:56]FM_GetShiftState done [08:18:56]req_shift_opened done [08:18:56]requested_item shift.open_date is exist - process it [08:18:56]req_shift_open_date [08:18:56]req_shift_open_date done [08:18:56]produce_requested_data done [08:18:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:18:56]process_action_free close_receipt [08:18:56]json_value_free [08:18:56]json_value_free done [08:18:56]process_json_proto returns [08:18:56]Send response to host [08:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:18:56]free response buf [08:18:56]execute_script done [08:18:56]execute_script returns [08:18:56]free content buf [08:18:56]Sock 7.Close socket [08:18:56]Sock 7.Thread stoped [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:52]accept exits with 9 [08:32:52]New connection [08:32:52]New thread 3066588516 created [08:32:52]Thread 3066731876 joined [08:32:52]Waiting for new connection... [08:32:52] Sock 9.Parse request [08:32:52]Sock 9.Check first char [08:32:52]Sock 9.First char is OK [08:32:52]request: POST /json_proto HTTP/1.0 [08:32:52]Method: POST [08:32:52]URL: /json_proto [08:32:52]Method is POST - this is cgi request [08:32:52]url: /json_proto [08:32:52]query_string will be loaded in cgi processing [08:32:52]execute_cgi json_proto POST (null) [08:32:52]execute_cgi path=json_proto method=POST [08:32:52]POST find Content-Length [08:32:52]Host: 172.17.41.195:8080 [08:32:52]Content-Length: 1209 [08:32:52]Content-Type: application/json [08:32:52] [08:32:52]POST finish read [08:32:52]Found Content-Length = 1209 [08:32:52]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)507128\u000A15.05.2024 08: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 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:32:52]execute_script... [08:32:52]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)507128\u000A15.05.2024 08: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 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:32:52]POST & json_proto [08:32:52]process_json_proto [08:32:52]json parsed OK: [08:32:52]protocol is kg_v1.0 [08:32:52]action value=print_text [08:32:52]process_action print_text [08:32:52]cmd_print_text [08:32:52]ExternCall_PrintAddStr [08:32:52]wPrintStart [08:32:52]Write to MH i2c: 01 00 00 63 23 86 [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 63 23 00 00 00 00 00 FF 0F 9B [08:32:52]RasterBufferAndPrint [08:32:52]line *****ТОВАРНЫЙ ЧЕК***** [08:32:52]line АЗС-91 [08:32:52]line Партнер нефть [08:32:52]line 02508201610067 [08:32:52]line Кассир : Арстанбеков Н. [08:32:52]line Счет N : (1)507128 [08:32:52]line 15.05.2024 08:15 [08:32:52]line ПРОДАЖА [08:32:52]line ТРК (МРК, ГНК): 21 [08:32:52]line Вид ГСМ : 2710194210 [08:32:52]line ДТ-К-5 [08:32:52]line 26.780 x 74.70 [08:32:52]line ИТОГ: 2000.47 [08:32:52]line Тип оплаты: Талоны: Топливная Карта [08:32:52]line 02750 [08:32:52]line ______________________ [08:32:52]line (подпись) [08:32:52]written 0, free lines is 4095 [08:32:53]Write to MH i2c: 01 00 00 77 23 9A [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 07 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 07 00 77 23 00 00 00 00 00 0F 0E BE [08:32:53]RasterBufferAndPrint [08:32:53]line [08:32:53]line [08:32:53]line [08:32:53]line [08:32:53]line [08:32:53]written 0, free lines is 3600 [08:32:53]MH_Cut [08:32:53]Write to MH i2c: D1 01 00 7E 23 01 73 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: D1 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: D1 01 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: D1 01 00 7E 23 00 72 [08:32:53]Write to MH i2c: 01 00 00 7F 23 A2 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** Cut start [08:32:53]*** Purtial cut [08:32:53]*** Stage 1: CUTSNS_PIN = 1 [08:32:54]Read from MH i2c: 01 [08:32:54]MH_I2C_Read... [08:32:54]*** Stop cut motor [08:32:54]*** Cut end [08:32:54]Read from MH i2c: 01 07 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 07 00 7F 23 00 00 00 00 00 FF 0F B7 [08:32:54]process_action print_text done [08:32:54]requested_data is exist [08:32:54]produce_requested_data [08:32:54]requested_item fm.sn is exist - process it [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 11 00 00 [08:32:54]Write to MH i2c: E2 08 00 80 23 80 11 00 00 00 00 00 00 1D [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 17 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 17 00 80 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [08:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:32:54]wFMCommunicate OK [08:32:54]requested_item fd.num is exist - process it [08:32:54]SAM_PROTO_GetFieldsCounters [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 13 00 00 [08:32:54]Write to MH i2c: E2 08 00 81 23 80 13 00 00 00 00 00 00 20 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 62 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 62 00 81 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 88 06 01 00 0E 04 04 00 64 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 88 [08:32: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 88 06 01 00 0E 04 04 00 64 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 [08:32:54]wFMCommunicate OK [08:32:54]SAM_PROTO_GetFieldsCounters done [08:32:54]requested_item shift.num is exist - process it [08:32:54]requested_item shift.opened is exist - process it [08:32:54]req_shift_opened [08:32:54]FM_GetShiftState [08:32:54]SAM_PROTO_GetShiftState [08:32:54]wFMCommunicate request_size=4 [08:32:54]MH_SAM_APDU [08:32:54]CAPDU: 80 13 01 00 [08:32:54]Write to MH i2c: E2 08 00 82 23 80 13 01 00 00 00 00 00 22 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:54]Read from MH i2c: E2 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 0E 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: E2 0E 00 82 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CD [08:32:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:32:54]wFMCommunicate OK [08:32:54]SAM_PROTO_GetShiftState done [08:32:54]FM_GetShiftState done [08:32:54]req_shift_opened done [08:32:54]requested_item shift.open_date is exist - process it [08:32:54]req_shift_open_date [08:32:54]req_shift_open_date done [08:32:54]produce_requested_data done [08:32:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:32:54]process_action_free print_text [08:32:54]json_value_free [08:32:54]json_value_free done [08:32:54]process_json_proto returns [08:32:54]Send response to host [08:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:32:54]free response buf [08:32:54]execute_script done [08:32:54]execute_script returns [08:32:54]free content buf [08:32:54]Sock 9.Close socket [08:32:54]Sock 9.Thread stoped [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:23]accept exits with 7 [08:35:23]New connection [08:35:23]New thread 3066731876 created [08:35:23]Thread 3066588516 joined [08:35:23]Waiting for new connection... [08:35:23] Sock 7.Parse request [08:35:23]Sock 7.Check first char [08:35:23]Sock 7.First char is OK [08:35:23]request: POST /json_proto HTTP/1.0 [08:35:23]Method: POST [08:35:23]URL: /json_proto [08:35:23]Method is POST - this is cgi request [08:35:23]url: /json_proto [08:35:23]query_string will be loaded in cgi processing [08:35:23]execute_cgi json_proto POST (null) [08:35:23]execute_cgi path=json_proto method=POST [08:35:23]POST find Content-Length [08:35:23]Host: 172.17.41.195:8080 [08:35:23]Content-Length: 1212 [08:35:23]Content-Type: application/json [08:35:23] [08:35:23]POST finish read [08:35:23]Found Content-Length = 1212 [08:35:23]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)507129\u000A15.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 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:35:23]execute_script... [08:35:23]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)507129\u000A15.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 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:35:23]POST & json_proto [08:35:23]process_json_proto [08:35:23]json parsed OK: [08:35:23]protocol is kg_v1.0 [08:35:23]action value=print_text [08:35:23]process_action print_text [08:35:23]cmd_print_text [08:35:23]ExternCall_PrintAddStr [08:35:23]wPrintStart [08:35:23]Write to MH i2c: 01 00 00 83 23 A6 [08:35:23]Write i2c OK [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 07 00 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 07 00 83 23 00 00 00 00 00 FF 0F BB [08:35:23]RasterBufferAndPrint [08:35:23]line *****ТОВАРНЫЙ ЧЕК***** [08:35:23]line АЗС-91 [08:35:23]line Партнер нефть [08:35:23]line 02508201610067 [08:35:23]line Кассир : Арстанбеков Н. [08:35:23]line Счет N : (1)507129 [08:35:23]line 15.05.2024 08:18 [08:35:23]line ПРОДАЖА [08:35:23]line ТРК (МРК, ГНК): 13 [08:35:23]line Вид ГСМ : 2710124130 [08:35:23]line Аи-92-К-5 [08:35:23]line 14.980 x 66.80 [08:35:23]line ИТОГ: 1000.66 [08:35:23]line Тип оплаты: Талоны: Топливная Карта [08:35:23]line 02750 [08:35:23]line ______________________ [08:35:23]line (подпись) [08:35:23]written 0, free lines is 4095 [08:35:24]Write to MH i2c: 01 00 00 97 23 BA [08:35:24]Write i2c OK [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: 01 [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: 01 07 00 [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: 01 07 00 97 23 00 00 00 00 00 11 0E E0 [08:35:24]RasterBufferAndPrint [08:35:24]line [08:35:24]line [08:35:24]line [08:35:24]line [08:35:24]line [08:35:24]written 0, free lines is 3602 [08:35:24]MH_Cut [08:35:24]Write to MH i2c: D1 01 00 9E 23 01 93 [08:35:24]Write i2c OK [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: D1 [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: D1 01 00 [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: D1 01 00 9E 23 00 92 [08:35:24]Write to MH i2c: 01 00 00 9F 23 C2 [08:35:24]Write i2c OK [08:35:24]MH_I2C_Read... [08:35:24]*** Cut start [08:35:24]*** Purtial cut [08:35:24]*** CUTSNS_PIN = 0 [08:35:24]*** Stage 1: CUTSNS_PIN = 1 [08:35:25]OFD Sender: No OFD packet to send [08:35:26]Read from MH i2c: 01 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: 01 07 00 [08:35:26]MH_I2C_Read... [08:35:26]*** Stop cut motor [08:35:26]*** Cut end [08:35:26]Read from MH i2c: 01 07 00 9F 23 00 00 00 00 00 FF 0F D7 [08:35:26]process_action print_text done [08:35:26]requested_data is exist [08:35:26]produce_requested_data [08:35:26]requested_item fm.sn is exist - process it [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 11 00 00 [08:35:26]Write to MH i2c: E2 08 00 A0 23 80 11 00 00 00 00 00 00 3D [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 17 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 17 00 A0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [08:35:26]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:26]wFMCommunicate OK [08:35:26]requested_item fd.num is exist - process it [08:35:26]SAM_PROTO_GetFieldsCounters [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 13 00 00 [08:35:26]Write to MH i2c: E2 08 00 A1 23 80 13 00 00 00 00 00 00 40 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 62 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 62 00 A1 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 88 06 01 00 0E 04 04 00 64 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 A8 [08:35: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 88 06 01 00 0E 04 04 00 64 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 [08:35:26]wFMCommunicate OK [08:35:26]SAM_PROTO_GetFieldsCounters done [08:35:26]requested_item shift.num is exist - process it [08:35:26]requested_item shift.opened is exist - process it [08:35:26]req_shift_opened [08:35:26]FM_GetShiftState [08:35:26]SAM_PROTO_GetShiftState [08:35:26]wFMCommunicate request_size=4 [08:35:26]MH_SAM_APDU [08:35:26]CAPDU: 80 13 01 00 [08:35:26]Write to MH i2c: E2 08 00 A2 23 80 13 01 00 00 00 00 00 42 [08:35:26]Write i2c OK [08:35:26]MH_I2C_Read... [08:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:26]Read from MH i2c: E2 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 0E 00 [08:35:26]MH_I2C_Read... [08:35:26]Read from MH i2c: E2 0E 00 A2 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 ED [08:35:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:35:26]wFMCommunicate OK [08:35:26]SAM_PROTO_GetShiftState done [08:35:26]FM_GetShiftState done [08:35:26]req_shift_opened done [08:35:26]requested_item shift.open_date is exist - process it [08:35:26]req_shift_open_date [08:35:26]req_shift_open_date done [08:35:26]produce_requested_data done [08:35:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:35:26]process_action_free print_text [08:35:26]json_value_free [08:35:26]json_value_free done [08:35:26]process_json_proto returns [08:35:26]Send response to host [08:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:35:26]free response buf [08:35:26]execute_script done [08:35:26]execute_script returns [08:35:26]free content buf [08:35:26]Sock 7.Close socket [08:35:26]Sock 7.Thread stoped [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:28]accept exits with 10 [08:59:28]New connection [08:59:28]New thread 3066588516 created [08:59:28]Thread 3066731876 joined [08:59:28]Waiting for new connection... [08:59:28] Sock 10.Parse request [08:59:28]Sock 10.Check first char [08:59:28]Sock 10.First char is OK [08:59:28]request: POST /json_proto HTTP/1.0 [08:59:28]Method: POST [08:59:28]URL: /json_proto [08:59:28]Method is POST - this is cgi request [08:59:28]url: /json_proto [08:59:28]query_string will be loaded in cgi processing [08:59:28]execute_cgi json_proto POST (null) [08:59:28]execute_cgi path=json_proto method=POST [08:59:28]POST find Content-Length [08:59:28]Host: 172.17.41.195:8080 [08:59:28]Content-Length: 1209 [08:59:28]Content-Type: application/json [08:59:28] [08:59:28]POST finish read [08:59:28]Found Content-Length = 1209 [08:59:28]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)507130\u000A15.05.2024 08:42\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.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" ] } } [08:59:28]execute_script... [08:59:28]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)507130\u000A15.05.2024 08:42\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.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" ] } } [08:59:28]POST & json_proto [08:59:28]process_json_proto [08:59:28]json parsed OK: [08:59:28]protocol is kg_v1.0 [08:59:28]action value=print_text [08:59:28]process_action print_text [08:59:28]cmd_print_text [08:59:28]ExternCall_PrintAddStr [08:59:28]wPrintStart [08:59:28]Write to MH i2c: 01 00 00 A3 23 C6 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 FF 0F DB [08:59:28]RasterBufferAndPrint [08:59:28]line *****ТОВАРНЫЙ ЧЕК***** [08:59:28]line АЗС-91 [08:59:28]line Партнер нефть [08:59:28]line 02508201610067 [08:59:28]line Кассир : Арстанбеков Н. [08:59:28]line Счет N : (1)507130 [08:59:28]line 15.05.2024 08:42 [08:59:28]line ПРОДАЖА [08:59:28]line ТРК (МРК, ГНК): 21 [08:59:28]line Вид ГСМ : 2710194210 [08:59:28]line ДТ-К-5 [08:59:28]line 35.000 x 74.70 [08:59:28]line ИТОГ: 2614.50 [08:59:28]line Тип оплаты: Талоны: Топливная Карта [08:59:28]line 02750 [08:59:28]line ______________________ [08:59:28]line (подпись) [08:59:28]written 0, free lines is 4095 [08:59:28]Write to MH i2c: 01 00 00 B7 23 DA [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 0F 0E FE [08:59:28]RasterBufferAndPrint [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]line [08:59:28]written 0, free lines is 3600 [08:59:28]MH_Cut [08:59:28]Write to MH i2c: D1 01 00 BE 23 01 B3 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 01 00 [08:59:28]MH_I2C_Read... [08:59:28]Read from MH i2c: D1 01 00 BE 23 00 B2 [08:59:28]Write to MH i2c: 01 00 00 BF 23 E2 [08:59:28]Write i2c OK [08:59:28]MH_I2C_Read... [08:59:29]*** Cut start [08:59:29]*** Purtial cut [08:59:29]*** Stage 1: CUTSNS_PIN = 1 [08:59:29]Read from MH i2c: 01 [08:59:29]MH_I2C_Read... [08:59:29]*** Stop cut motor [08:59:29]*** Cut end [08:59:29]Read from MH i2c: 01 07 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: 01 07 00 BF 23 00 00 00 00 00 FF 0F F7 [08:59:29]process_action print_text done [08:59:29]requested_data is exist [08:59:29]produce_requested_data [08:59:29]requested_item fm.sn is exist - process it [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 11 00 00 [08:59:29]Write to MH i2c: E2 08 00 C0 23 80 11 00 00 00 00 00 00 5D [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 17 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 17 00 C0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [08:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:59:29]wFMCommunicate OK [08:59:29]requested_item fd.num is exist - process it [08:59:29]SAM_PROTO_GetFieldsCounters [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 13 00 00 [08:59:29]Write to MH i2c: E2 08 00 C1 23 80 13 00 00 00 00 00 00 60 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 62 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 62 00 C1 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 88 06 01 00 0E 04 04 00 64 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 C8 [08:59: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 88 06 01 00 0E 04 04 00 64 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 [08:59:29]wFMCommunicate OK [08:59:29]SAM_PROTO_GetFieldsCounters done [08:59:29]requested_item shift.num is exist - process it [08:59:29]requested_item shift.opened is exist - process it [08:59:29]req_shift_opened [08:59:29]FM_GetShiftState [08:59:29]SAM_PROTO_GetShiftState [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 13 01 00 [08:59:29]Write to MH i2c: E2 08 00 C2 23 80 13 01 00 00 00 00 00 62 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:29]Read from MH i2c: E2 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0E 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: E2 0E 00 C2 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0D [08:59:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:59:29]wFMCommunicate OK [08:59:29]SAM_PROTO_GetShiftState done [08:59:29]FM_GetShiftState done [08:59:29]req_shift_opened done [08:59:29]requested_item shift.open_date is exist - process it [08:59:29]req_shift_open_date [08:59:29]req_shift_open_date done [08:59:29]produce_requested_data done [08:59:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:59:29]process_action_free print_text [08:59:29]json_value_free [08:59:29]json_value_free done [08:59:29]process_json_proto returns [08:59:29]Send response to host [08:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:59:29]free response buf [08:59:29]execute_script done [08:59:29]execute_script returns [08:59:29]free content buf [08:59:29]Sock 10.Close socket [08:59:29]Sock 10.Thread stoped [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:54]accept exits with 7 [08:59:54]New connection [08:59:54]New thread 3066731876 created [08:59:54]Thread 3066588516 joined [08:59:54]Waiting for new connection... [08:59:54] Sock 7.Parse request [08:59:54]Sock 7.Check first char [08:59:54]Sock 7.First char is OK [08:59:54]request: POST /json_proto HTTP/1.0 [08:59:54]Method: POST [08:59:54]URL: /json_proto [08:59:54]Method is POST - this is cgi request [08:59:54]url: /json_proto [08:59:54]query_string will be loaded in cgi processing [08:59:54]execute_cgi json_proto POST (null) [08:59:54]execute_cgi path=json_proto method=POST [08:59:54]POST find Content-Length [08:59:54]Host: 172.17.41.195:8080 [08:59:54]Content-Length: 1212 [08:59:54]Content-Type: application/json [08:59:54] [08:59:54]POST finish read [08:59:54]Found Content-Length = 1212 [08:59: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)507131\u000A15.05.2024 08:42\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 32.570 x 66.80\u000A\u0418\u0422\u041E\u0413: 2175.68\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:59:54]execute_script... [08:59: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)507131\u000A15.05.2024 08:42\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 32.570 x 66.80\u000A\u0418\u0422\u041E\u0413: 2175.68\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:59:54]POST & json_proto [08:59:54]process_json_proto [08:59:54]json parsed OK: [08:59:54]protocol is kg_v1.0 [08:59:54]action value=print_text [08:59:54]process_action print_text [08:59:54]cmd_print_text [08:59:54]ExternCall_PrintAddStr [08:59:54]wPrintStart [08:59:54]Write to MH i2c: 01 00 00 C3 23 E6 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: 01 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: 01 07 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: 01 07 00 C3 23 00 00 00 00 00 FF 0F FB [08:59:54]RasterBufferAndPrint [08:59:54]line *****ТОВАРНЫЙ ЧЕК***** [08:59:54]line АЗС-91 [08:59:54]line Партнер нефть [08:59:54]line 02508201610067 [08:59:54]line Кассир : Арстанбеков Н. [08:59:54]line Счет N : (1)507131 [08:59:54]line 15.05.2024 08:42 [08:59:54]line ПРОДАЖА [08:59:54]line ТРК (МРК, ГНК): 43 [08:59:54]line Вид ГСМ : 2710124130 [08:59:54]line Аи-92-К-5 [08:59:54]line 32.570 x 66.80 [08:59:54]line ИТОГ: 2175.68 [08:59:54]line Тип оплаты: Талоны: Топливная Карта [08:59:54]line 02750 [08:59:54]line ______________________ [08:59:54]line (подпись) [08:59:54]written 0, free lines is 4095 [08:59:55]Write to MH i2c: 01 00 00 D7 23 FA [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 11 0E 20 [08:59:55]RasterBufferAndPrint [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]written 0, free lines is 3602 [08:59:55]MH_Cut [08:59:55]Write to MH i2c: D1 01 00 DE 23 01 D3 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 01 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 01 00 DE 23 00 D2 [08:59:55]Write to MH i2c: 01 00 00 DF 23 02 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** Cut start [08:59:55]*** Purtial cut [08:59:55]*** CUTSNS_PIN = 0 [08:59:55]*** Stage 1: CUTSNS_PIN = 1 [08:59:56]OFD Sender: No OFD packet to send [08:59:57]Read from MH i2c: 01 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: 01 07 00 [08:59:57]MH_I2C_Read... [08:59:57]*** Stop cut motor [08:59:57]*** Cut end [08:59:57]Read from MH i2c: 01 07 00 DF 23 00 00 00 00 00 FF 0F 17 [08:59:57]process_action print_text done [08:59:57]requested_data is exist [08:59:57]produce_requested_data [08:59:57]requested_item fm.sn is exist - process it [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 11 00 00 [08:59:57]Write to MH i2c: E2 08 00 E0 23 80 11 00 00 00 00 00 00 7D [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 E0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [08:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:59:57]wFMCommunicate OK [08:59:57]requested_item fd.num is exist - process it [08:59:57]SAM_PROTO_GetFieldsCounters [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 00 00 [08:59:57]Write to MH i2c: E2 08 00 E1 23 80 13 00 00 00 00 00 00 80 [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 E1 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 88 06 01 00 0E 04 04 00 64 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 E8 [08:59: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 88 06 01 00 0E 04 04 00 64 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 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetFieldsCounters done [08:59:57]requested_item shift.num is exist - process it [08:59:57]requested_item shift.opened is exist - process it [08:59:57]req_shift_opened [08:59:57]FM_GetShiftState [08:59:57]SAM_PROTO_GetShiftState [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 01 00 [08:59:57]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2D [08:59:57]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetShiftState done [08:59:57]FM_GetShiftState done [08:59:57]req_shift_opened done [08:59:57]requested_item shift.open_date is exist - process it [08:59:57]req_shift_open_date [08:59:57]req_shift_open_date done [08:59:57]produce_requested_data done [08:59:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [08:59:57]process_action_free print_text [08:59:57]json_value_free [08:59:57]json_value_free done [08:59:57]process_json_proto returns [08:59:57]Send response to host [08:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [08:59:57]free response buf [08:59:57]execute_script done [08:59:57]execute_script returns [08:59:57]free content buf [08:59:57]Sock 7.Close socket [08:59:57]Sock 7.Thread stoped [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:08]accept exits with 9 [09:02:08]New connection [09:02:08]New thread 3066588516 created [09:02:08]Thread 3066731876 joined [09:02:08]Waiting for new connection... [09:02:08] Sock 9.Parse request [09:02:08]Sock 9.Check first char [09:02:08]Sock 9.First char is OK [09:02:08]request: POST /json_proto HTTP/1.0 [09:02:08]Method: POST [09:02:08]URL: /json_proto [09:02:08]Method is POST - this is cgi request [09:02:08]url: /json_proto [09:02:08]query_string will be loaded in cgi processing [09:02:08]execute_cgi json_proto POST (null) [09:02:08]execute_cgi path=json_proto method=POST [09:02:08]POST find Content-Length [09:02:08]Host: 172.17.41.195:8080 [09:02:08]Content-Length: 1209 [09:02:08]Content-Type: application/json [09:02:08] [09:02:08]POST finish read [09:02:08]Found Content-Length = 1209 [09:02: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)507132\u000A15.05.2024 08:44\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:02:08]execute_script... [09:02: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)507132\u000A15.05.2024 08:44\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:02:08]POST & json_proto [09:02:08]process_json_proto [09:02:08]json parsed OK: [09:02:08]protocol is kg_v1.0 [09:02:08]action value=print_text [09:02:08]process_action print_text [09:02:08]cmd_print_text [09:02:08]ExternCall_PrintAddStr [09:02:08]wPrintStart [09:02:08]Write to MH i2c: 01 00 00 E3 23 06 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 E3 23 00 00 00 00 00 FF 0F 1B [09:02:08]RasterBufferAndPrint [09:02:08]line *****ТОВАРНЫЙ ЧЕК***** [09:02:08]line АЗС-91 [09:02:08]line Партнер нефть [09:02:08]line 02508201610067 [09:02:08]line Кассир : Арстанбеков Н. [09:02:08]line Счет N : (1)507132 [09:02:08]line 15.05.2024 08:44 [09:02:08]line ПРОДАЖА [09:02:08]line ТРК (МРК, ГНК): 11 [09:02:08]line Вид ГСМ : 2710194210 [09:02:08]line ДТ-К-5 [09:02:08]line 15.000 x 74.70 [09:02:08]line ИТОГ: 1120.50 [09:02:08]line Тип оплаты: Талоны: Топливная Карта [09:02:08]line 02750 [09:02:08]line ______________________ [09:02:08]line (подпись) [09:02:08]written 0, free lines is 4095 [09:02:08]Write to MH i2c: 01 00 00 F7 23 1A [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 F7 23 00 00 00 00 00 0E 0E 3D [09:02:08]RasterBufferAndPrint [09:02:08]line [09:02:08]line [09:02:08]line [09:02:08]line [09:02:08]line [09:02:08]written 0, free lines is 3599 [09:02:08]MH_Cut [09:02:08]Write to MH i2c: D1 01 00 FE 23 01 F3 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: D1 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: D1 01 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: D1 01 00 FE 23 00 F2 [09:02:08]Write to MH i2c: 01 00 00 FF 23 22 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:09]*** Cut start [09:02:09]*** Purtial cut [09:02:09]*** Stage 1: CUTSNS_PIN = 1 [09:02:09]Read from MH i2c: 01 [09:02:09]MH_I2C_Read... [09:02:09]*** Stop cut motor [09:02:09]*** Cut end [09:02:09]Read from MH i2c: 01 07 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 07 00 FF 23 00 00 00 00 00 FF 0F 37 [09:02:09]process_action print_text done [09:02:09]requested_data is exist [09:02:09]produce_requested_data [09:02:09]requested_item fm.sn is exist - process it [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 11 00 00 [09:02:09]Write to MH i2c: E2 08 00 00 24 80 11 00 00 00 00 00 00 9E [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 17 00 00 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [09:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:02:09]wFMCommunicate OK [09:02:09]requested_item fd.num is exist - process it [09:02:09]SAM_PROTO_GetFieldsCounters [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 00 00 [09:02:09]Write to MH i2c: E2 08 00 01 24 80 13 00 00 00 00 00 00 A1 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 62 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 62 00 01 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 88 06 01 00 0E 04 04 00 64 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 [09:02: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 88 06 01 00 0E 04 04 00 64 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:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetFieldsCounters done [09:02:09]requested_item shift.num is exist - process it [09:02:09]requested_item shift.opened is exist - process it [09:02:09]req_shift_opened [09:02:09]FM_GetShiftState [09:02:09]SAM_PROTO_GetShiftState [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 13 01 00 [09:02:09]Write to MH i2c: E2 08 00 02 24 80 13 01 00 00 00 00 00 A3 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 0E 00 02 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4E [09:02:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_GetShiftState done [09:02:09]FM_GetShiftState done [09:02:09]req_shift_opened done [09:02:09]requested_item shift.open_date is exist - process it [09:02:09]req_shift_open_date [09:02:09]req_shift_open_date done [09:02:09]produce_requested_data done [09:02:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:02:09]process_action_free print_text [09:02:09]json_value_free [09:02:09]json_value_free done [09:02:09]process_json_proto returns [09:02:09]Send response to host [09:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:02:09]free response buf [09:02:09]execute_script done [09:02:09]execute_script returns [09:02:09]free content buf [09:02:09]Sock 9.Close socket [09:02:09]Sock 9.Thread stoped [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:38]accept exits with 7 [09:03:38]New connection [09:03:38]New thread 3066731876 created [09:03:38]Thread 3066588516 joined [09:03:38]Waiting for new connection... [09:03:38] Sock 7.Parse request [09:03:38]Sock 7.Check first char [09:03:38]Sock 7.First char is OK [09:03:38]request: POST /json_proto HTTP/1.0 [09:03:38]Method: POST [09:03:38]URL: /json_proto [09:03:38]Method is POST - this is cgi request [09:03:38]url: /json_proto [09:03:38]query_string will be loaded in cgi processing [09:03:38]execute_cgi json_proto POST (null) [09:03:38]execute_cgi path=json_proto method=POST [09:03:38]POST find Content-Length [09:03:38]Host: 172.17.41.195:8080 [09:03:38]Content-Length: 1209 [09:03:38]Content-Type: application/json [09:03:38] [09:03:38]POST finish read [09:03:38]Found Content-Length = 1209 [09:03:38]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)507133\u000A15.05.2024 08:46\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.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.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:03:38]execute_script... [09:03:38]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)507133\u000A15.05.2024 08:46\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.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.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:03:38]POST & json_proto [09:03:38]process_json_proto [09:03:38]json parsed OK: [09:03:38]protocol is kg_v1.0 [09:03:38]action value=print_text [09:03:38]process_action print_text [09:03:38]cmd_print_text [09:03:38]ExternCall_PrintAddStr [09:03:38]wPrintStart [09:03:38]Write to MH i2c: 01 00 00 03 24 27 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 03 24 00 00 00 00 00 FF 0F 3C [09:03:38]RasterBufferAndPrint [09:03:38]line *****ТОВАРНЫЙ ЧЕК***** [09:03:38]line АЗС-91 [09:03:38]line Партнер нефть [09:03:38]line 02508201610067 [09:03:38]line Кассир : Арстанбеков Н. [09:03:38]line Счет N : (1)507133 [09:03:38]line 15.05.2024 08:46 [09:03:38]line ПРОДАЖА [09:03:38]line ТРК (МРК, ГНК): 21 [09:03:38]line Вид ГСМ : 2710194210 [09:03:38]line ДТ-К-5 [09:03:38]line 30.000 x 74.70 [09:03:38]line ИТОГ: 2241.00 [09:03:38]line Тип оплаты: Талоны: Топливная Карта [09:03:38]line 02750 [09:03:38]line ______________________ [09:03:38]line (подпись) [09:03:38]written 0, free lines is 4095 [09:03:38]Write to MH i2c: 01 00 00 17 24 3B [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: 01 07 00 17 24 00 00 00 00 00 0F 0E 5F [09:03:38]RasterBufferAndPrint [09:03:38]line [09:03:38]line [09:03:38]line [09:03:38]line [09:03:38]line [09:03:38]written 0, free lines is 3600 [09:03:38]MH_Cut [09:03:38]Write to MH i2c: D1 01 00 1E 24 01 14 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: D1 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: D1 01 00 [09:03:38]MH_I2C_Read... [09:03:38]Read from MH i2c: D1 01 00 1E 24 00 13 [09:03:38]Write to MH i2c: 01 00 00 1F 24 43 [09:03:38]Write i2c OK [09:03:38]MH_I2C_Read... [09:03:39]*** Cut start [09:03:39]*** Purtial cut [09:03:39]*** CUTSNS_PIN = 0 [09:03:39]*** Stage 1: CUTSNS_PIN = 1 [09:03:41]Read from MH i2c: 01 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: 01 07 00 [09:03:41]MH_I2C_Read... [09:03:41]*** Stop cut motor [09:03:41]*** Cut end [09:03:41]Read from MH i2c: 01 07 00 1F 24 00 00 00 00 00 FF 0F 58 [09:03:41]process_action print_text done [09:03:41]requested_data is exist [09:03:41]produce_requested_data [09:03:41]requested_item fm.sn is exist - process it [09:03:41]wFMCommunicate request_size=4 [09:03:41]MH_SAM_APDU [09:03:41]CAPDU: 80 11 00 00 [09:03:41]Write to MH i2c: E2 08 00 20 24 80 11 00 00 00 00 00 00 BE [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]OFD Sender: No OFD packet to send [09:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:41]Read from MH i2c: E2 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 17 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 17 00 20 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [09:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:03:41]wFMCommunicate OK [09:03:41]requested_item fd.num is exist - process it [09:03:41]SAM_PROTO_GetFieldsCounters [09:03:41]wFMCommunicate request_size=4 [09:03:41]MH_SAM_APDU [09:03:41]CAPDU: 80 13 00 00 [09:03:41]Write to MH i2c: E2 08 00 21 24 80 13 00 00 00 00 00 00 C1 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:41]Read from MH i2c: E2 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 62 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 62 00 21 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 88 06 01 00 0E 04 04 00 64 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 29 [09:03: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 88 06 01 00 0E 04 04 00 64 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:03:41]wFMCommunicate OK [09:03:41]SAM_PROTO_GetFieldsCounters done [09:03:41]requested_item shift.num is exist - process it [09:03:41]requested_item shift.opened is exist - process it [09:03:41]req_shift_opened [09:03:41]FM_GetShiftState [09:03:41]SAM_PROTO_GetShiftState [09:03:41]wFMCommunicate request_size=4 [09:03:41]MH_SAM_APDU [09:03:41]CAPDU: 80 13 01 00 [09:03:41]Write to MH i2c: E2 08 00 22 24 80 13 01 00 00 00 00 00 C3 [09:03:41]Write i2c OK [09:03:41]MH_I2C_Read... [09:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:41]Read from MH i2c: E2 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 0E 00 [09:03:41]MH_I2C_Read... [09:03:41]Read from MH i2c: E2 0E 00 22 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6E [09:03:41]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:03:41]wFMCommunicate OK [09:03:41]SAM_PROTO_GetShiftState done [09:03:41]FM_GetShiftState done [09:03:41]req_shift_opened done [09:03:41]requested_item shift.open_date is exist - process it [09:03:41]req_shift_open_date [09:03:41]req_shift_open_date done [09:03:41]produce_requested_data done [09:03:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:03:41]process_action_free print_text [09:03:41]json_value_free [09:03:41]json_value_free done [09:03:41]process_json_proto returns [09:03:41]Send response to host [09:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:03:41]free response buf [09:03:41]execute_script done [09:03:41]execute_script returns [09:03:41]free content buf [09:03:41]Sock 7.Close socket [09:03:41]Sock 7.Thread stoped [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:47]accept exits with 9 [09:09:47]New connection [09:09:47]New thread 3066588516 created [09:09:47]Thread 3066731876 joined [09:09:47]Waiting for new connection... [09:09:47] Sock 9.Parse request [09:09:47]Sock 9.Check first char [09:09:47]Sock 9.First char is OK [09:09:47]request: POST /json_proto HTTP/1.0 [09:09:47]Method: POST [09:09:47]URL: /json_proto [09:09:47]Method is POST - this is cgi request [09:09:47]url: /json_proto [09:09:47]query_string will be loaded in cgi processing [09:09:47]execute_cgi json_proto POST (null) [09:09:47]execute_cgi path=json_proto method=POST [09:09:47]POST find Content-Length [09:09:47]Host: 172.17.41.195:8080 [09:09:47]Content-Length: 1209 [09:09:47]Content-Type: application/json [09:09:47] [09:09:47]POST finish read [09:09:47]Found Content-Length = 1209 [09:09: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)507135\u000A15.05.2024 08: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 80.330 x 74.70\u000A\u0418\u0422\u041E\u0413: 6000.65\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:09:47]execute_script... [09:09: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)507135\u000A15.05.2024 08: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 80.330 x 74.70\u000A\u0418\u0422\u041E\u0413: 6000.65\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:09:47]POST & json_proto [09:09:47]process_json_proto [09:09:47]json parsed OK: [09:09:47]protocol is kg_v1.0 [09:09:47]action value=print_text [09:09:47]process_action print_text [09:09:47]cmd_print_text [09:09:47]ExternCall_PrintAddStr [09:09:47]wPrintStart [09:09:47]Write to MH i2c: 01 00 00 23 24 47 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 23 24 00 00 00 00 00 FF 0F 5C [09:09:47]RasterBufferAndPrint [09:09:47]line *****ТОВАРНЫЙ ЧЕК***** [09:09:47]line АЗС-91 [09:09:47]line Партнер нефть [09:09:47]line 02508201610067 [09:09:47]line Кассир : Арстанбеков Н. [09:09:47]line Счет N : (1)507135 [09:09:47]line 15.05.2024 08:52 [09:09:47]line ПРОДАЖА [09:09:47]line ТРК (МРК, ГНК): 21 [09:09:47]line Вид ГСМ : 2710194210 [09:09:47]line ДТ-К-5 [09:09:47]line 80.330 x 74.70 [09:09:47]line ИТОГ: 6000.65 [09:09:47]line Тип оплаты: Талоны: Топливная Карта [09:09:47]line 02750 [09:09:47]line ______________________ [09:09:47]line (подпись) [09:09:47]written 0, free lines is 4095 [09:09:47]Write to MH i2c: 01 00 00 37 24 5B [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 37 24 00 00 00 00 00 0F 0E 7F [09:09:47]RasterBufferAndPrint [09:09:47]line [09:09:47]line [09:09:47]line [09:09:47]line [09:09:47]line [09:09:47]written 0, free lines is 3601 [09:09:47]MH_Cut [09:09:47]Write to MH i2c: D1 01 00 3E 24 01 34 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: D1 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: D1 01 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: D1 01 00 3E 24 00 33 [09:09:47]Write to MH i2c: 01 00 00 3F 24 63 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:48]*** Cut start [09:09:48]*** Purtial cut [09:09:48]*** Stage 1: CUTSNS_PIN = 1 [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]*** Stop cut motor [09:09:48]*** Cut end [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 3F 24 00 00 00 00 00 FF 0F 78 [09:09:48]process_action print_text done [09:09:48]requested_data is exist [09:09:48]produce_requested_data [09:09:48]requested_item fm.sn is exist - process it [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 11 00 00 [09:09:48]Write to MH i2c: E2 08 00 40 24 80 11 00 00 00 00 00 00 DE [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 40 24 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:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:09:48]wFMCommunicate OK [09:09:48]requested_item fd.num is exist - process it [09:09:48]SAM_PROTO_GetFieldsCounters [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 13 00 00 [09:09:48]Write to MH i2c: E2 08 00 41 24 80 13 00 00 00 00 00 00 E1 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 62 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 62 00 41 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 88 06 01 00 0E 04 04 00 64 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 49 [09:09: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 88 06 01 00 0E 04 04 00 64 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:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_GetFieldsCounters done [09:09:48]requested_item shift.num is exist - process it [09:09:48]requested_item shift.opened is exist - process it [09:09:48]req_shift_opened [09:09:48]FM_GetShiftState [09:09:48]SAM_PROTO_GetShiftState [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 13 01 00 [09:09:48]Write to MH i2c: E2 08 00 42 24 80 13 01 00 00 00 00 00 E3 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0E 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0E 00 42 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8E [09:09:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_GetShiftState done [09:09:48]FM_GetShiftState done [09:09:48]req_shift_opened done [09:09:48]requested_item shift.open_date is exist - process it [09:09:48]req_shift_open_date [09:09:48]req_shift_open_date done [09:09:48]produce_requested_data done [09:09:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:09:48]process_action_free print_text [09:09:48]json_value_free [09:09:48]json_value_free done [09:09:48]process_json_proto returns [09:09:48]Send response to host [09:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67208,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:09:48]free response buf [09:09:48]execute_script done [09:09:48]execute_script returns [09:09:48]free content buf [09:09:48]Sock 9.Close socket [09:09:48]Sock 9.Thread stoped [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]accept exits with 10 [09:10:21]New connection [09:10:21]New thread 3066731876 created [09:10:21]Thread 3066588516 joined [09:10:21]Waiting for new connection... [09:10:21] Sock 10.Parse request [09:10:21]Sock 10.Check first char [09:10:21]Sock 10.First char is OK [09:10:21]request: POST /json_proto HTTP/1.0 [09:10:21]Method: POST [09:10:21]URL: /json_proto [09:10:21]Method is POST - this is cgi request [09:10:21]url: /json_proto [09:10:21]query_string will be loaded in cgi processing [09:10:21]execute_cgi json_proto POST (null) [09:10:21]execute_cgi path=json_proto method=POST [09:10:21]POST find Content-Length [09:10:21]Host: 172.17.41.195:8080 [09:10:21]Content-Length: 677 [09:10:21]Content-Type: application/json [09:10:21] [09:10:21]POST finish read [09:10:21]Found Content-Length = 677 [09:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507136", "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" ] } } [09:10:21]execute_script... [09:10: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)507136", "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" ] } } [09:10:21]POST & json_proto [09:10:21]process_json_proto [09:10:21]json parsed OK: [09:10:21]protocol is kg_v1.0 [09:10:21]action value=close_receipt [09:10:21]process_action close_receipt [09:10:21]cmd_close_receipt [09:10:21]MH_GetDate [09:10:21]Write to MH i2c: F0 00 00 43 24 56 [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 09 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: F0 09 00 43 24 00 01 7C 44 66 FC 21 6F 64 76 [09:10:21]GetLastDocTimeStamp 1715761134 [09:10:21]current date 1715764225 [09:10:21]FM_GetShiftState [09:10:21]SAM_PROTO_GetShiftState [09:10:21]wFMCommunicate request_size=4 [09:10:21]MH_SAM_APDU [09:10:21]CAPDU: 80 13 01 00 [09:10:21]Write to MH i2c: E2 08 00 44 24 80 13 01 00 00 00 00 00 E5 [09:10:21]Write i2c OK [09:10:21]MH_I2C_Read... [09:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:21]Read from MH i2c: E2 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: E2 0E 00 [09:10:21]MH_I2C_Read... [09:10:21]Read from MH i2c: E2 0E 00 44 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 90 [09:10:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:10:21]wFMCommunicate OK [09:10:21]SAM_PROTO_GetShiftState done [09:10:21]FM_GetShiftState done [09:10:21]opened in 1715732471 [09:10:21]opened+sec_in_day 1715818871 [09:10:21]quantity*price = 50033 [09:10:21]sum+1 = 50034 [09:10:21]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 СНО: Общий режим Чек 27 15.05.2024 09:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67209 ФПД: 88332537260873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T091025&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67209&fm=88332537260873&tin=02508201610067®Number=0000000000091845&sum=50000 [09:10:22]StoreToDocumentArchive [09:10:22]shift 356 fd 67209 [09:10:22]save to /storage/0356/doc_00067209 [09:10:22]save last doc name /storage/0356/doc_00067209 to /storage/kkm_last_doc_name [09:10:22]save OK [09:10:22]Clear old archive folders... [09:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:22]tlvbuf is 0035EB80 [09:10:22]SAM_PROTO_ClearQueue [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 09 00 00 [09:10:22]Write to MH i2c: E2 08 00 51 24 80 09 00 00 00 00 00 00 E7 [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:22]Read from MH i2c: E2 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 [09:10:22]MH_I2C_Read... [09:10:22]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [09:10:22]RAPDU: 90 00 [09:10:22]wFMCommunicate OK [09:10:22]SAM_PROTO_ClearQueue done [09:10:22]KKMCreateOFDPacket [09:10:22]OFDProtocolAddRootSTLVToBuf [09:10:22]FM_MakeSignedData [09:10:22]FM_MakeSignedData [09:10:22]SAM_PROTO_SignData [09:10:22]wFMCommunicate request_size=4 [09:10:22]MH_SAM_APDU [09:10:22]CAPDU: 80 0D 01 02 [09:10:22]Write to MH i2c: E2 08 00 52 24 80 0D 01 02 00 00 00 00 EF [09:10:22]Write i2c OK [09:10:22]MH_I2C_Read... [09:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 52 24 00 90 00 EA [09:10:23]RAPDU: 90 00 [09:10:23]wFMCommunicate OK [09:10:23]wFMCommunicate request_size=255 [09:10:23]MH_SAM_APDU [09:10: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 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 1B 00 00 00 F4 03 04 00 01 7C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 06 01 00 35 04 06 00 50 [09:10:23]Write to MH i2c: E2 02 01 53 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 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 1B 00 00 00 F4 03 04 00 01 7C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 06 01 00 35 04 06 00 50 00 00 01 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [09:10:23]RAPDU: 90 00 [09:10:23]wFMCommunicate OK [09:10:23]wFMCommunicate request_size=10 [09:10:23]MH_SAM_APDU [09:10:23]CAPDU: 80 0D 02 02 05 56 85 81 6B 49 [09:10:23]Write to MH i2c: E2 0D 00 54 24 80 0D 02 02 05 00 56 85 81 6B 49 00 00 0C [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [09:10:23]RAPDU: 90 00 [09:10:23]wFMCommunicate OK [09:10:23]wFMCommunicate request_size=4 [09:10:23]MH_SAM_APDU [09:10:23]CAPDU: 80 0D 03 02 [09:10:23]Write to MH i2c: E2 08 00 55 24 80 0D 03 02 00 00 00 00 F4 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 0B 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 0B 00 55 24 00 9C 40 21 55 1E C4 3D 96 90 00 FC [09:10:23]RAPDU: 9C 40 21 55 1E C4 3D 96 90 00 [09:10:23]wFMCommunicate OK [09:10:23]SAM_PROTO_SignData done [09:10:23]FM_MakeSignedData done [09:10:23]CreateOFDProtocolMessage [09:10:23]wFMCommunicate request_size=4 [09:10:23]MH_SAM_APDU [09:10:23]CAPDU: 80 11 00 00 [09:10:23]Write to MH i2c: E2 08 00 56 24 80 11 00 00 00 00 00 00 F4 [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:23]Read from MH i2c: E2 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 17 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: E2 17 00 56 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [09:10:23]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:23]wFMCommunicate OK [09:10:23]CreateOFDProtocolMessage done [09:10:23]OFDSenderStorePacket 67209 [09:10:23]StoreOFDPacket docnum=67209 [09:10: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 8A 6F 07 01 11 37 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 1B 00 00 00 F4 03 04 00 01 7C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 06 01 00 35 04 06 00 50 56 85 81 6B 49 9C 40 21 55 1E C4 3D 96 [09:10:23]CheckFolder [09:10:23]dirname=/storage/ofd_packets [09:10:23]CheckFolder done [09:10:23]ProducePacketName [09:10:23]name=ofd_packets/00067209 [09:10:23]NVStorageSaveData ofd_packets/00067209 [09:10:23]File name is /storage/ofd_packets/00067209 [09:10:23]Write 301 bytes [09:10:23]NVStorageSaveData done [09:10:23]OFDSenderStorePacket done [09:10:23]KKMCreateOFDPacket done [09:10:23]NVStorageSaveData kkm_last_timestamp [09:10:23]File name is /storage/kkm_last_timestamp [09:10:23]Write 4 bytes [09:10:23]NVStorageSaveData done [09:10:23]ExternCall_PrintAddStr [09:10:23]wPrintStart [09:10:23]Write to MH i2c: 01 00 00 57 24 7B [09:10:23]Write i2c OK [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 [09:10:23]MH_I2C_Read... [09:10:23]Read from MH i2c: 01 07 00 57 24 00 00 00 00 00 FF 0F 90 [09:10:23]RasterBufferAndPrint [09:10:23]line Счет N : (1)507136 [09:10:23]line ИНН: 02508201610067 [09:10:23]line Контрольно-Кассовый Чек [09:10:23]line ПРОДАЖА [09:10:23]line ТРК (МРК, ГНК) : 43 [09:10:23]line Товар: 2710124130 [09:10:23]line Аи-92-К-5 [09:10:23]line 7.490 * 66.80 [09:10:23]line = 500.33 [09:10:23]line НДС 12% НСП 1% [09:10:23]line > о реализуемом товаре [09:10:23]line ОКРУГЛЕНИЕ: -0.33 [09:10:23]line ИТОГО: 500.00 [09:10:23]line Внесено: 500.00 [09:10:23]line СДАЧА: 0.00 [09:10:23]line НСП 1% : 4.43 [09:10:23]line НДС 12% : 53.13 [09:10:23]line Наличными: 500.00 [09:10:23]line Безнал.: 0.00 [09:10:23]line Место: АЗС № 91 "Партнер Нефть" [09:10:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:10:23]line СНО: Общий режим [09:10:23]line Чек 27 15.05.2024 09:10 [09:10:23]line Смена: 356 ФФД: 1.0 [09:10:23]line ЗНМ: 0300000119 [09:10:23]line РНМ: 0000000000091845 [09:10:23]line Версия ККМ: 001 [09:10:23]line ФМ: 0000000000871829 [09:10:23]line ФД: 67209 [09:10:23]line ФПД: 88332537260873 [09:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T091025&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67209&fm=88332537260873&tin=02508201610067®Number=0000000000091845&sum=50000 [09:10:23]written 0, free lines is 4095 [09:10:23]OFD Sender: Processing packet 67209 [packets to send 35, broken 34] [09:10:23]ProducePacketName [09:10:23]name=ofd_packets/00067209 [09:10:23]OFD Sender: To server: pG, [09:10:23]CommunicateWithHost lk.salyk.kg:30040 [09:10:23]ConnectInit lk.salyk.kg [09:10:23]Connected sock=9 [09:10: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 8A 6F 07 01 11 37 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 1B 00 00 00 F4 03 04 00 01 7C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 89 06 01 00 35 04 06 00 50 56 85 81 6B 49 9C 40 21 55 1E C4 3D 96 [09:10: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 DB 13 47 00 F5 BF 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 89 06 01 00 F4 03 04 00 DF 23 44 66 B6 04 01 00 00 46 6C D0 55 59 3A A9 82 [09:10:24]CommunicateWithHost err = 0 [09:10:24]CheckOFDResponse [09:10:24]1017 (14) - 77093643461234 [09:10:24]1041 (16) - 0000000000871829 [09:10:24]1040 (4) - 67209 [09:10:24]1012 (4) - 15.05.2024 02:54 [09:10:24]1206 (1) - 0 [09:10:24]OFD Sender: Remove packet 67209 [09:10:24]ProducePacketName [09:10:24]name=ofd_packets/00067209 [09:10:24]NVStorageDeleteData [09:10:24]Write to MH i2c: 01 00 00 81 24 A5 [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: 01 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: 01 07 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 BE 0C 76 [09:10:24]RasterBufferAndPrint [09:10:24]line [09:10:24]line [09:10:24]line [09:10:24]line [09:10:24]line [09:10:24]written 0, free lines is 3269 [09:10:24]MH_Cut [09:10:24]Write to MH i2c: D1 01 00 88 24 01 7E [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: D1 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: D1 01 00 [09:10:24]MH_I2C_Read... [09:10:24]Read from MH i2c: D1 01 00 88 24 00 7D [09:10:24]Write to MH i2c: 01 00 00 89 24 AD [09:10:24]Write i2c OK [09:10:24]MH_I2C_Read... [09:10:24]OFD Sender: No OFD packet to send [09:10:25]*** Cut start [09:10:25]*** Purtial cut [09:10:25]*** CUTSNS_PIN = 0 [09:10:25]*** Stage 1: CUTSNS_PIN = 1 [09:10:27]Read from MH i2c: 01 [09:10:27]MH_I2C_Read... [09:10:27]*** Stop cut motor [09:10:27]*** Cut end [09:10:27]Read from MH i2c: 01 07 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 89 24 00 00 00 00 00 FF 0F C2 [09:10:27]process_action close_receipt done [09:10:27]requested_data is exist [09:10:27]produce_requested_data [09:10:27]requested_item fm.sn is exist - process it [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 11 00 00 [09:10:27]Write to MH i2c: E2 08 00 8A 24 80 11 00 00 00 00 00 00 28 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:27]Read from MH i2c: E2 17 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 17 00 8A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [09: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 [09:10:27]wFMCommunicate OK [09:10:27]requested_item fd.num is exist - process it [09:10:27]SAM_PROTO_GetFieldsCounters [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 13 00 00 [09:10:27]Write to MH i2c: E2 08 00 8B 24 80 13 00 00 00 00 00 00 2B [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 62 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 62 00 8B 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 89 06 01 00 0E 04 04 00 64 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 97 [09:10: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 89 06 01 00 0E 04 04 00 64 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:10:27]wFMCommunicate OK [09:10:27]SAM_PROTO_GetFieldsCounters done [09:10:27]requested_item shift.num is exist - process it [09:10:27]requested_item shift.opened is exist - process it [09:10:27]req_shift_opened [09:10:27]FM_GetShiftState [09:10:27]SAM_PROTO_GetShiftState [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 13 01 00 [09:10:27]Write to MH i2c: E2 08 00 8C 24 80 13 01 00 00 00 00 00 2D [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0E 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0E 00 8C 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [09:10:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:10:27]wFMCommunicate OK [09:10:27]SAM_PROTO_GetShiftState done [09:10:27]FM_GetShiftState done [09:10:27]req_shift_opened done [09:10:27]requested_item shift.open_date is exist - process it [09:10:27]req_shift_open_date [09:10:27]req_shift_open_date done [09:10:27]produce_requested_data done [09:10:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:10:27]process_action_free close_receipt [09:10:27]json_value_free [09:10:27]json_value_free done [09:10:27]process_json_proto returns [09:10:27]Send response to host [09:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:10:27]free response buf [09:10:27]execute_script done [09:10:27]execute_script returns [09:10:27]free content buf [09:10:27]Sock 10.Close socket [09:10:27]Sock 10.Thread stoped [09:10:27]accept exits with 7 [09:10:27]New connection [09:10:27]New thread 3066588516 created [09:10:27]Thread 3066731876 joined [09:10:27]Waiting for new connection... [09:10:27] Sock 7.Parse request [09:10:27]Sock 7.Check first char [09:10:27]Sock 7.First char is OK [09:10:27]request: POST /json_proto HTTP/1.0 [09:10:27]Method: POST [09:10:27]URL: /json_proto [09:10:27]Method is POST - this is cgi request [09:10:27]url: /json_proto [09:10:27]query_string will be loaded in cgi processing [09:10:27]execute_cgi json_proto POST (null) [09:10:27]execute_cgi path=json_proto method=POST [09:10:27]POST find Content-Length [09:10:27]Host: 172.17.41.195:8080 [09:10:27]Content-Length: 1209 [09:10:27]Content-Type: application/json [09:10:27] [09:10:27]POST finish read [09:10:27]Found Content-Length = 1209 [09:10: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)507134\u000A15.05.2024 08:53\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 80.330 x 74.70\u000A\u0418\u0422\u041E\u0413: 6000.65\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:27]execute_script... [09:10: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)507134\u000A15.05.2024 08:53\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 80.330 x 74.70\u000A\u0418\u0422\u041E\u0413: 6000.65\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:27]POST & json_proto [09:10:27]process_json_proto [09:10:27]json parsed OK: [09:10:27]protocol is kg_v1.0 [09:10:27]action value=print_text [09:10:27]process_action print_text [09:10:27]cmd_print_text [09:10:27]ExternCall_PrintAddStr [09:10:27]wPrintStart [09:10:27]Write to MH i2c: 01 00 00 8D 24 B1 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 8D 24 00 00 00 00 00 FF 0F C6 [09:10:27]RasterBufferAndPrint [09:10:27]line *****ТОВАРНЫЙ ЧЕК***** [09:10:27]line АЗС-91 [09:10:27]line Партнер нефть [09:10:27]line 02508201610067 [09:10:27]line Кассир : Арстанбеков Н. [09:10:27]line Счет N : (1)507134 [09:10:27]line 15.05.2024 08:53 [09:10:27]line ПРОДАЖА [09:10:27]line ТРК (МРК, ГНК): 11 [09:10:27]line Вид ГСМ : 2710194210 [09:10:27]line ДТ-К-5 [09:10:27]line 80.330 x 74.70 [09:10:27]line ИТОГ: 6000.65 [09:10:27]line Тип оплаты: Талоны: Топливная Карта [09:10:27]line 02750 [09:10:27]line ______________________ [09:10:27]line (подпись) [09:10:27]written 0, free lines is 4095 [09:10:27]Write to MH i2c: 01 00 00 A1 24 C5 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 0F 0E E9 [09:10:27]RasterBufferAndPrint [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]line [09:10:27]written 0, free lines is 3602 [09:10:27]MH_Cut [09:10:27]Write to MH i2c: D1 01 00 A8 24 01 9E [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 01 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: D1 01 00 A8 24 00 9D [09:10:27]Write to MH i2c: 01 00 00 A9 24 CD [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:28]*** Cut start [09:10:28]*** Purtial cut [09:10:28]*** Stage 1: CUTSNS_PIN = 1 [09:10:28]Read from MH i2c: 01 [09:10:28]MH_I2C_Read... [09:10:28]*** Stop cut motor [09:10:28]*** Cut end [09:10:28]Read from MH i2c: 01 07 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 A9 24 00 00 00 00 00 FF 0F E2 [09:10:28]process_action print_text done [09:10:28]requested_data is exist [09:10:28]produce_requested_data [09:10:28]requested_item fm.sn is exist - process it [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 11 00 00 [09:10:28]Write to MH i2c: E2 08 00 AA 24 80 11 00 00 00 00 00 00 48 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 AA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [09: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 [09:10:28]wFMCommunicate OK [09:10:28]requested_item fd.num is exist - process it [09:10:28]SAM_PROTO_GetFieldsCounters [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 13 00 00 [09:10:28]Write to MH i2c: E2 08 00 AB 24 80 13 00 00 00 00 00 00 4B [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 62 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 62 00 AB 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 89 06 01 00 0E 04 04 00 64 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 B7 [09:10:28]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 89 06 01 00 0E 04 04 00 64 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:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_GetFieldsCounters done [09:10:28]requested_item shift.num is exist - process it [09:10:28]requested_item shift.opened is exist - process it [09:10:28]req_shift_opened [09:10:28]FM_GetShiftState [09:10:28]SAM_PROTO_GetShiftState [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 13 01 00 [09:10:28]Write to MH i2c: E2 08 00 AC 24 80 13 01 00 00 00 00 00 4D [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 AC 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F8 [09:10:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_GetShiftState done [09:10:28]FM_GetShiftState done [09:10:28]req_shift_opened done [09:10:28]requested_item shift.open_date is exist - process it [09:10:28]req_shift_open_date [09:10:28]req_shift_open_date done [09:10:28]produce_requested_data done [09:10:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:10:28]process_action_free print_text [09:10:28]json_value_free [09:10:28]json_value_free done [09:10:28]process_json_proto returns [09:10:28]Send response to host [09:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:10:28]free response buf [09:10:28]execute_script done [09:10:28]execute_script returns [09:10:28]free content buf [09:10:28]Sock 7.Close socket [09:10:28]Sock 7.Thread stoped [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:12]accept exits with 9 [09:13:12]New connection [09:13:12]New thread 3066731876 created [09:13:12]Thread 3066588516 joined [09:13:12]Waiting for new connection... [09:13:12] Sock 9.Parse request [09:13:12]Sock 9.Check first char [09:13:12]Sock 9.First char is OK [09:13:12]request: POST /json_proto HTTP/1.0 [09:13:12]Method: POST [09:13:12]URL: /json_proto [09:13:12]Method is POST - this is cgi request [09:13:12]url: /json_proto [09:13:12]query_string will be loaded in cgi processing [09:13:12]execute_cgi json_proto POST (null) [09:13:12]execute_cgi path=json_proto method=POST [09:13:12]POST find Content-Length [09:13:12]Host: 172.17.41.195:8080 [09:13:12]Content-Length: 1209 [09:13:12]Content-Type: application/json [09:13:12] [09:13:12]POST finish read [09:13:12]Found Content-Length = 1209 [09:13: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)507137\u000A15.05.2024 08:55\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:13:12]execute_script... [09:13: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)507137\u000A15.05.2024 08:55\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:13:12]POST & json_proto [09:13:12]process_json_proto [09:13:12]json parsed OK: [09:13:12]protocol is kg_v1.0 [09:13:12]action value=print_text [09:13:12]process_action print_text [09:13:12]cmd_print_text [09:13:12]ExternCall_PrintAddStr [09:13:12]wPrintStart [09:13:12]Write to MH i2c: 01 00 00 AD 24 D1 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 FF 0F E6 [09:13:12]RasterBufferAndPrint [09:13:12]line *****ТОВАРНЫЙ ЧЕК***** [09:13:12]line АЗС-91 [09:13:12]line Партнер нефть [09:13:12]line 02508201610067 [09:13:12]line Кассир : Арстанбеков Н. [09:13:12]line Счет N : (1)507137 [09:13:12]line 15.05.2024 08:55 [09:13:12]line ПРОДАЖА [09:13:12]line ТРК (МРК, ГНК): 31 [09:13:12]line Вид ГСМ : 2710194210 [09:13:12]line ДТ-К-5 [09:13:12]line 20.000 x 74.70 [09:13:12]line ИТОГ: 1494.00 [09:13:12]line Тип оплаты: Талоны: Топливная Карта [09:13:12]line 02750 [09:13:12]line ______________________ [09:13:12]line (подпись) [09:13:12]written 0, free lines is 4095 [09:13:12]Write to MH i2c: 01 00 00 C1 24 E5 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 0E 0E 08 [09:13:12]RasterBufferAndPrint [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]written 0, free lines is 3600 [09:13:12]MH_Cut [09:13:12]Write to MH i2c: D1 01 00 C8 24 01 BE [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 01 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 01 00 C8 24 00 BD [09:13:12]Write to MH i2c: 01 00 00 C9 24 ED [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:13]*** Cut start [09:13:13]*** Purtial cut [09:13:13]*** CUTSNS_PIN = 0 [09:13:13]*** Stage 1: CUTSNS_PIN = 1 [09:13:14]OFD Sender: No OFD packet to send [09:13:15]Read from MH i2c: 01 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: 01 07 00 [09:13:15]MH_I2C_Read... [09:13:15]*** Stop cut motor [09:13:15]*** Cut end [09:13:15]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [09:13:15]process_action print_text done [09:13:15]requested_data is exist [09:13:15]produce_requested_data [09:13:15]requested_item fm.sn is exist - process it [09:13:15]wFMCommunicate request_size=4 [09:13:15]MH_SAM_APDU [09:13:15]CAPDU: 80 11 00 00 [09:13:15]Write to MH i2c: E2 08 00 CA 24 80 11 00 00 00 00 00 00 68 [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:15]Read from MH i2c: E2 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 17 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 17 00 CA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [09:13: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:13:15]wFMCommunicate OK [09:13:15]requested_item fd.num is exist - process it [09:13:15]SAM_PROTO_GetFieldsCounters [09:13:15]wFMCommunicate request_size=4 [09:13:15]MH_SAM_APDU [09:13:15]CAPDU: 80 13 00 00 [09:13:15]Write to MH i2c: E2 08 00 CB 24 80 13 00 00 00 00 00 00 6B [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:15]Read from MH i2c: E2 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 62 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 62 00 CB 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 89 06 01 00 0E 04 04 00 64 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 D7 [09:13: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 89 06 01 00 0E 04 04 00 64 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:13:15]wFMCommunicate OK [09:13:15]SAM_PROTO_GetFieldsCounters done [09:13:15]requested_item shift.num is exist - process it [09:13:15]requested_item shift.opened is exist - process it [09:13:15]req_shift_opened [09:13:15]FM_GetShiftState [09:13:15]SAM_PROTO_GetShiftState [09:13:15]wFMCommunicate request_size=4 [09:13:15]MH_SAM_APDU [09:13:15]CAPDU: 80 13 01 00 [09:13:15]Write to MH i2c: E2 08 00 CC 24 80 13 01 00 00 00 00 00 6D [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:15]Read from MH i2c: E2 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 0E 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 0E 00 CC 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 18 [09:13:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:13:15]wFMCommunicate OK [09:13:15]SAM_PROTO_GetShiftState done [09:13:15]FM_GetShiftState done [09:13:15]req_shift_opened done [09:13:15]requested_item shift.open_date is exist - process it [09:13:15]req_shift_open_date [09:13:15]req_shift_open_date done [09:13:15]produce_requested_data done [09:13:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:13:15]process_action_free print_text [09:13:15]json_value_free [09:13:15]json_value_free done [09:13:15]process_json_proto returns [09:13:15]Send response to host [09:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:13:15]free response buf [09:13:15]execute_script done [09:13:15]execute_script returns [09:13:15]free content buf [09:13:15]Sock 9.Close socket [09:13:15]Sock 9.Thread stoped [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:30]accept exits with 7 [09:14:30]New connection [09:14:30]New thread 3066588516 created [09:14:30]Thread 3066731876 joined [09:14:30]Waiting for new connection... [09:14:30] Sock 7.Parse request [09:14:30]Sock 7.Check first char [09:14:30]Sock 7.First char is OK [09:14:30]request: POST /json_proto HTTP/1.0 [09:14:30]Method: POST [09:14:30]URL: /json_proto [09:14:30]Method is POST - this is cgi request [09:14:30]url: /json_proto [09:14:30]query_string will be loaded in cgi processing [09:14:30]execute_cgi json_proto POST (null) [09:14:30]execute_cgi path=json_proto method=POST [09:14:30]POST find Content-Length [09:14:30]Host: 172.17.41.195:8080 [09:14:30]Content-Length: 1209 [09:14:30]Content-Type: application/json [09:14:30] [09:14:30]POST finish read [09:14:30]Found Content-Length = 1209 [09:14: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)507138\u000A15.05.2024 08:57\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 29.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2166.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:14:30]execute_script... [09:14: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)507138\u000A15.05.2024 08:57\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 29.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2166.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:14:30]POST & json_proto [09:14:30]process_json_proto [09:14:30]json parsed OK: [09:14:30]protocol is kg_v1.0 [09:14:30]action value=print_text [09:14:30]process_action print_text [09:14:30]cmd_print_text [09:14:30]ExternCall_PrintAddStr [09:14:30]wPrintStart [09:14:30]Write to MH i2c: 01 00 00 CD 24 F1 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 07 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: 01 07 00 CD 24 00 00 00 00 00 FF 0F 06 [09:14:30]RasterBufferAndPrint [09:14:30]line *****ТОВАРНЫЙ ЧЕК***** [09:14:30]line АЗС-91 [09:14:30]line Партнер нефть [09:14:30]line 02508201610067 [09:14:30]line Кассир : Арстанбеков Н. [09:14:30]line Счет N : (1)507138 [09:14:30]line 15.05.2024 08:57 [09:14:30]line ПРОДАЖА [09:14:30]line ТРК (МРК, ГНК): 41 [09:14:30]line Вид ГСМ : 2710194210 [09:14:30]line ДТ-К-5 [09:14:30]line 29.000 x 74.70 [09:14:30]line ИТОГ: 2166.30 [09:14:30]line Тип оплаты: Талоны: Топливная Карта [09:14:30]line 02750 [09:14:30]line ______________________ [09:14:30]line (подпись) [09:14:30]written 0, free lines is 4095 [09:14:31]Write to MH i2c: 01 00 00 E1 24 05 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 E1 24 00 00 00 00 00 0F 0E 29 [09:14:31]RasterBufferAndPrint [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]line [09:14:31]written 0, free lines is 3601 [09:14:31]MH_Cut [09:14:31]Write to MH i2c: D1 01 00 E8 24 01 DE [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 01 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: D1 01 00 E8 24 00 DD [09:14:31]Write to MH i2c: 01 00 00 E9 24 0D [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** Cut start [09:14:31]*** Purtial cut [09:14:31]*** Stage 1: CUTSNS_PIN = 1 [09:14:32]Read from MH i2c: 01 [09:14:32]MH_I2C_Read... [09:14:32]*** Stop cut motor [09:14:32]*** Cut end [09:14:32]Read from MH i2c: 01 07 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 07 00 E9 24 00 00 00 00 00 FF 0F 22 [09:14:32]process_action print_text done [09:14:32]requested_data is exist [09:14:32]produce_requested_data [09:14:32]requested_item fm.sn is exist - process it [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 11 00 00 [09:14:32]Write to MH i2c: E2 08 00 EA 24 80 11 00 00 00 00 00 00 88 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 17 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 17 00 EA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [09:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:14:32]wFMCommunicate OK [09:14:32]requested_item fd.num is exist - process it [09:14:32]SAM_PROTO_GetFieldsCounters [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 13 00 00 [09:14:32]Write to MH i2c: E2 08 00 EB 24 80 13 00 00 00 00 00 00 8B [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 62 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 62 00 EB 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 89 06 01 00 0E 04 04 00 64 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 F7 [09:14: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 89 06 01 00 0E 04 04 00 64 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:14:32]wFMCommunicate OK [09:14:32]SAM_PROTO_GetFieldsCounters done [09:14:32]requested_item shift.num is exist - process it [09:14:32]requested_item shift.opened is exist - process it [09:14:32]req_shift_opened [09:14:32]FM_GetShiftState [09:14:32]SAM_PROTO_GetShiftState [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 13 01 00 [09:14:32]Write to MH i2c: E2 08 00 EC 24 80 13 01 00 00 00 00 00 8D [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 0E 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 0E 00 EC 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 38 [09:14:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:14:32]wFMCommunicate OK [09:14:32]SAM_PROTO_GetShiftState done [09:14:32]FM_GetShiftState done [09:14:32]req_shift_opened done [09:14:32]requested_item shift.open_date is exist - process it [09:14:32]req_shift_open_date [09:14:32]req_shift_open_date done [09:14:32]produce_requested_data done [09:14:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:14:32]process_action_free print_text [09:14:32]json_value_free [09:14:32]json_value_free done [09:14:32]process_json_proto returns [09:14:32]Send response to host [09:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:14:32]free response buf [09:14:32]execute_script done [09:14:32]execute_script returns [09:14:32]free content buf [09:14:32]Sock 7.Close socket [09:14:32]Sock 7.Thread stoped [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:09]accept exits with 9 [09:19:09]New connection [09:19:09]New thread 3066731876 created [09:19:09]Thread 3066588516 joined [09:19:09]Waiting for new connection... [09:19:09] Sock 9.Parse request [09:19:09]Sock 9.Check first char [09:19:09]Sock 9.First char is OK [09:19:09]request: POST /json_proto HTTP/1.0 [09:19:09]Method: POST [09:19:09]URL: /json_proto [09:19:09]Method is POST - this is cgi request [09:19:09]url: /json_proto [09:19:09]query_string will be loaded in cgi processing [09:19:09]execute_cgi json_proto POST (null) [09:19:09]execute_cgi path=json_proto method=POST [09:19:09]POST find Content-Length [09:19:09]Host: 172.17.41.195:8080 [09:19:09]Content-Length: 1209 [09:19:09]Content-Type: application/json [09:19:09] [09:19:09]POST finish read [09:19:09]Found Content-Length = 1209 [09:19:09]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)507139\u000A15.05.2024 09:01\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:19:09]execute_script... [09:19:09]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)507139\u000A15.05.2024 09:01\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:19:09]POST & json_proto [09:19:09]process_json_proto [09:19:09]json parsed OK: [09:19:09]protocol is kg_v1.0 [09:19:09]action value=print_text [09:19:09]process_action print_text [09:19:09]cmd_print_text [09:19:09]ExternCall_PrintAddStr [09:19:09]wPrintStart [09:19:09]Write to MH i2c: 01 00 00 ED 24 11 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 ED 24 00 00 00 00 00 FF 0F 26 [09:19:09]RasterBufferAndPrint [09:19:09]line *****ТОВАРНЫЙ ЧЕК***** [09:19:09]line АЗС-91 [09:19:09]line Партнер нефть [09:19:09]line 02508201610067 [09:19:09]line Кассир : Арстанбеков Н. [09:19:09]line Счет N : (1)507139 [09:19:09]line 15.05.2024 09:01 [09:19:09]line ПРОДАЖА [09:19:09]line ТРК (МРК, ГНК): 41 [09:19:09]line Вид ГСМ : 2710194210 [09:19:09]line ДТ-К-5 [09:19:09]line 20.000 x 74.70 [09:19:09]line ИТОГ: 1494.00 [09:19:09]line Тип оплаты: Талоны: Топливная Карта [09:19:09]line 02750 [09:19:09]line ______________________ [09:19:09]line (подпись) [09:19:09]written 0, free lines is 4095 [09:19:09]Write to MH i2c: 01 00 00 01 25 26 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 01 25 00 00 00 00 00 0E 0E 49 [09:19:09]RasterBufferAndPrint [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]line [09:19:09]written 0, free lines is 3600 [09:19:09]MH_Cut [09:19:09]Write to MH i2c: D1 01 00 08 25 01 FF [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 01 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: D1 01 00 08 25 00 FE [09:19:09]Write to MH i2c: 01 00 00 09 25 2E [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:10]OFD Sender: No OFD packet to send [09:19:10]*** Cut start [09:19:10]*** Purtial cut [09:19:10]*** CUTSNS_PIN = 0 [09:19:10]*** Stage 1: CUTSNS_PIN = 1 [09:19:12]Read from MH i2c: 01 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: 01 07 00 [09:19:12]MH_I2C_Read... [09:19:12]*** Stop cut motor [09:19:12]*** Cut end [09:19:12]Read from MH i2c: 01 07 00 09 25 00 00 00 00 00 FF 0F 43 [09:19:12]process_action print_text done [09:19:12]requested_data is exist [09:19:12]produce_requested_data [09:19:12]requested_item fm.sn is exist - process it [09:19:12]wFMCommunicate request_size=4 [09:19:12]MH_SAM_APDU [09:19:12]CAPDU: 80 11 00 00 [09:19:12]Write to MH i2c: E2 08 00 0A 25 80 11 00 00 00 00 00 00 A9 [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:12]Read from MH i2c: E2 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 17 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 17 00 0A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [09:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:19:12]wFMCommunicate OK [09:19:12]requested_item fd.num is exist - process it [09:19:12]SAM_PROTO_GetFieldsCounters [09:19:12]wFMCommunicate request_size=4 [09:19:12]MH_SAM_APDU [09:19:12]CAPDU: 80 13 00 00 [09:19:12]Write to MH i2c: E2 08 00 0B 25 80 13 00 00 00 00 00 00 AC [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:12]Read from MH i2c: E2 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 62 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 62 00 0B 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 89 06 01 00 0E 04 04 00 64 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 18 [09:19: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 89 06 01 00 0E 04 04 00 64 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:19:12]wFMCommunicate OK [09:19:12]SAM_PROTO_GetFieldsCounters done [09:19:12]requested_item shift.num is exist - process it [09:19:12]requested_item shift.opened is exist - process it [09:19:12]req_shift_opened [09:19:12]FM_GetShiftState [09:19:12]SAM_PROTO_GetShiftState [09:19:12]wFMCommunicate request_size=4 [09:19:12]MH_SAM_APDU [09:19:12]CAPDU: 80 13 01 00 [09:19:12]Write to MH i2c: E2 08 00 0C 25 80 13 01 00 00 00 00 00 AE [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:12]Read from MH i2c: E2 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: E2 0E 00 0C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 59 [09:19:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:19:12]wFMCommunicate OK [09:19:12]SAM_PROTO_GetShiftState done [09:19:12]FM_GetShiftState done [09:19:12]req_shift_opened done [09:19:12]requested_item shift.open_date is exist - process it [09:19:12]req_shift_open_date [09:19:12]req_shift_open_date done [09:19:12]produce_requested_data done [09:19:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:19:12]process_action_free print_text [09:19:12]json_value_free [09:19:12]json_value_free done [09:19:12]process_json_proto returns [09:19:12]Send response to host [09:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:19:12]free response buf [09:19:12]execute_script done [09:19:12]execute_script returns [09:19:12]free content buf [09:19:12]Sock 9.Close socket [09:19:12]Sock 9.Thread stoped [09:19:14]accept exits with 7 [09:19:14]New connection [09:19:14]New thread 3066588516 created [09:19:14]Thread 3066731876 joined [09:19:14]Waiting for new connection... [09:19:14] Sock 7.Parse request [09:19:14]Sock 7.Check first char [09:19:14]Sock 7.First char is OK [09:19:14]request: POST /json_proto HTTP/1.0 [09:19:14]Method: POST [09:19:14]URL: /json_proto [09:19:14]Method is POST - this is cgi request [09:19:14]url: /json_proto [09:19:14]query_string will be loaded in cgi processing [09:19:14]execute_cgi json_proto POST (null) [09:19:14]execute_cgi path=json_proto method=POST [09:19:14]POST find Content-Length [09:19:14]Host: 172.17.41.195:8080 [09:19:14]Content-Length: 1209 [09:19:14]Content-Type: application/json [09:19:14] [09:19:14]POST finish read [09:19:14]Found Content-Length = 1209 [09:19: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)507140\u000A15.05.2024 09:01\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 33.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2465.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:19:14]execute_script... [09:19: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)507140\u000A15.05.2024 09:01\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 33.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2465.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:19:14]POST & json_proto [09:19:14]process_json_proto [09:19:14]json parsed OK: [09:19:14]protocol is kg_v1.0 [09:19:14]action value=print_text [09:19:14]process_action print_text [09:19:14]cmd_print_text [09:19:14]ExternCall_PrintAddStr [09:19:14]wPrintStart [09:19:14]Write to MH i2c: 01 00 00 0D 25 32 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 FF 0F 47 [09:19:14]RasterBufferAndPrint [09:19:14]line *****ТОВАРНЫЙ ЧЕК***** [09:19:14]line АЗС-91 [09:19:14]line Партнер нефть [09:19:14]line 02508201610067 [09:19:14]line Кассир : Арстанбеков Н. [09:19:14]line Счет N : (1)507140 [09:19:14]line 15.05.2024 09:01 [09:19:14]line ПРОДАЖА [09:19:14]line ТРК (МРК, ГНК): 21 [09:19:14]line Вид ГСМ : 2710194210 [09:19:14]line ДТ-К-5 [09:19:14]line 33.000 x 74.70 [09:19:14]line ИТОГ: 2465.10 [09:19:14]line Тип оплаты: Талоны: Топливная Карта [09:19:14]line 02750 [09:19:14]line ______________________ [09:19:14]line (подпись) [09:19:14]written 0, free lines is 4095 [09:19:14]Write to MH i2c: 01 00 00 21 25 46 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 21 25 00 00 00 00 00 0E 0E 69 [09:19:14]RasterBufferAndPrint [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]line [09:19:14]written 0, free lines is 3600 [09:19:14]MH_Cut [09:19:14]Write to MH i2c: D1 01 00 28 25 01 1F [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: D1 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: D1 01 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: D1 01 00 28 25 00 1E [09:19:14]Write to MH i2c: 01 00 00 29 25 4E [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** Cut start [09:19:14]*** Purtial cut [09:19:14]*** Stage 1: CUTSNS_PIN = 1 [09:19:15]OFD Sender: No OFD packet to send [09:19:15]Read from MH i2c: 01 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: 01 07 00 [09:19:15]MH_I2C_Read... [09:19:15]*** Stop cut motor [09:19:15]*** Cut end [09:19:15]Read from MH i2c: 01 07 00 29 25 00 00 00 00 00 FF 0F 63 [09:19:15]process_action print_text done [09:19:15]requested_data is exist [09:19:15]produce_requested_data [09:19:15]requested_item fm.sn is exist - process it [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 11 00 00 [09:19:15]Write to MH i2c: E2 08 00 2A 25 80 11 00 00 00 00 00 00 C9 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 17 00 2A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [09:19: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:19:15]wFMCommunicate OK [09:19:15]requested_item fd.num is exist - process it [09:19:15]SAM_PROTO_GetFieldsCounters [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 13 00 00 [09:19:15]Write to MH i2c: E2 08 00 2B 25 80 13 00 00 00 00 00 00 CC [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 62 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 62 00 2B 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 89 06 01 00 0E 04 04 00 64 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 38 [09:19: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 89 06 01 00 0E 04 04 00 64 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:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_GetFieldsCounters done [09:19:15]requested_item shift.num is exist - process it [09:19:15]requested_item shift.opened is exist - process it [09:19:15]req_shift_opened [09:19:15]FM_GetShiftState [09:19:15]SAM_PROTO_GetShiftState [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 13 01 00 [09:19:15]Write to MH i2c: E2 08 00 2C 25 80 13 01 00 00 00 00 00 CE [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0E 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0E 00 2C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 79 [09:19:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_GetShiftState done [09:19:15]FM_GetShiftState done [09:19:15]req_shift_opened done [09:19:15]requested_item shift.open_date is exist - process it [09:19:15]req_shift_open_date [09:19:15]req_shift_open_date done [09:19:15]produce_requested_data done [09:19:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:19:15]process_action_free print_text [09:19:15]json_value_free [09:19:15]json_value_free done [09:19:15]process_json_proto returns [09:19:15]Send response to host [09:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:19:15]free response buf [09:19:15]execute_script done [09:19:15]execute_script returns [09:19:15]free content buf [09:19:15]Sock 7.Close socket [09:19:15]Sock 7.Thread stoped [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:40]accept exits with 9 [09:21:40]New connection [09:21:40]New thread 3066731876 created [09:21:40]Thread 3066588516 joined [09:21:40]Waiting for new connection... [09:21:40] Sock 9.Parse request [09:21:40]Sock 9.Check first char [09:21:40]Sock 9.First char is OK [09:21:40]request: POST /json_proto HTTP/1.0 [09:21:40]Method: POST [09:21:40]URL: /json_proto [09:21:40]Method is POST - this is cgi request [09:21:40]url: /json_proto [09:21:40]query_string will be loaded in cgi processing [09:21:40]execute_cgi json_proto POST (null) [09:21:40]execute_cgi path=json_proto method=POST [09:21:40]POST find Content-Length [09:21:40]Host: 172.17.41.195:8080 [09:21:40]Content-Length: 1209 [09:21:40]Content-Type: application/json [09:21:40] [09:21:40]POST finish read [09:21:40]Found Content-Length = 1209 [09:21:40]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)507141\u000A15.05.2024 09: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 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" ] } } [09:21:40]execute_script... [09:21:40]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)507141\u000A15.05.2024 09: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 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" ] } } [09:21:40]POST & json_proto [09:21:40]process_json_proto [09:21:40]json parsed OK: [09:21:40]protocol is kg_v1.0 [09:21:40]action value=print_text [09:21:40]process_action print_text [09:21:40]cmd_print_text [09:21:40]ExternCall_PrintAddStr [09:21:40]wPrintStart [09:21:40]Write to MH i2c: 01 00 00 2D 25 52 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 2D 25 00 00 00 00 00 FF 0F 67 [09:21:40]RasterBufferAndPrint [09:21:40]line *****ТОВАРНЫЙ ЧЕК***** [09:21:40]line АЗС-91 [09:21:40]line Партнер нефть [09:21:40]line 02508201610067 [09:21:40]line Кассир : Арстанбеков Н. [09:21:40]line Счет N : (1)507141 [09:21:40]line 15.05.2024 09:04 [09:21:40]line ПРОДАЖА [09:21:40]line ТРК (МРК, ГНК): 11 [09:21:40]line Вид ГСМ : 2710194210 [09:21:40]line ДТ-К-5 [09:21:40]line 13.390 x 74.70 [09:21:40]line ИТОГ: 1000.23 [09:21:40]line Тип оплаты: Талоны: Топливная Карта [09:21:40]line 02750 [09:21:40]line ______________________ [09:21:40]line (подпись) [09:21:40]written 0, free lines is 4095 [09:21:40]Write to MH i2c: 01 00 00 41 25 66 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 0E 0E 89 [09:21:40]RasterBufferAndPrint [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]written 0, free lines is 3599 [09:21:40]MH_Cut [09:21:40]Write to MH i2c: D1 01 00 48 25 01 3F [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 48 25 00 3E [09:21:40]Write to MH i2c: 01 00 00 49 25 6E [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:41]*** Cut start [09:21:41]*** Purtial cut [09:21:41]*** CUTSNS_PIN = 0 [09:21:41]*** Stage 1: CUTSNS_PIN = 1 [09:21:43]Read from MH i2c: 01 [09:21:43]MH_I2C_Read... [09:21:43]*** Stop cut motor [09:21:43]*** Cut end [09:21:43]Read from MH i2c: 01 07 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [09:21:43]process_action print_text done [09:21:43]requested_data is exist [09:21:43]produce_requested_data [09:21:43]requested_item fm.sn is exist - process it [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 11 00 00 [09:21:43]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [09:21: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:21:43]wFMCommunicate OK [09:21:43]requested_item fd.num is exist - process it [09:21:43]SAM_PROTO_GetFieldsCounters [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 13 00 00 [09:21:43]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 62 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 62 00 4B 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 89 06 01 00 0E 04 04 00 64 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 58 [09:21: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 89 06 01 00 0E 04 04 00 64 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:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_GetFieldsCounters done [09:21:43]requested_item shift.num is exist - process it [09:21:43]requested_item shift.opened is exist - process it [09:21:43]req_shift_opened [09:21:43]FM_GetShiftState [09:21:43]SAM_PROTO_GetShiftState [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 13 01 00 [09:21:43]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 99 [09:21:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_GetShiftState done [09:21:43]FM_GetShiftState done [09:21:43]req_shift_opened done [09:21:43]requested_item shift.open_date is exist - process it [09:21:43]req_shift_open_date [09:21:43]req_shift_open_date done [09:21:43]produce_requested_data done [09:21:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:21:43]process_action_free print_text [09:21:43]json_value_free [09:21:43]json_value_free done [09:21:43]process_json_proto returns [09:21:43]Send response to host [09:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:21:43]free response buf [09:21:43]execute_script done [09:21:43]execute_script returns [09:21:43]free content buf [09:21:43]Sock 9.Close socket [09:21:43]Sock 9.Thread stoped [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:17]accept exits with 7 [09:22:17]New connection [09:22:17]New thread 3066588516 created [09:22:17]Thread 3066731876 joined [09:22:17]Waiting for new connection... [09:22:17] Sock 7.Parse request [09:22:17]Sock 7.Check first char [09:22:17]Sock 7.First char is OK [09:22:17]request: POST /json_proto HTTP/1.0 [09:22:17]Method: POST [09:22:17]URL: /json_proto [09:22:17]Method is POST - this is cgi request [09:22:17]url: /json_proto [09:22:17]query_string will be loaded in cgi processing [09:22:17]execute_cgi json_proto POST (null) [09:22:17]execute_cgi path=json_proto method=POST [09:22:17]POST find Content-Length [09:22:17]Host: 172.17.41.195:8080 [09:22:17]Content-Length: 1207 [09:22:17]Content-Type: application/json [09:22:17] [09:22:17]POST finish read [09:22:17]Found Content-Length = 1207 [09:22:17]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)507142\u000A15.05.2024 09:04\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 7.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 522.90\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:17]execute_script... [09:22:17]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)507142\u000A15.05.2024 09:04\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 7.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 522.90\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:17]POST & json_proto [09:22:17]process_json_proto [09:22:17]json parsed OK: [09:22:17]protocol is kg_v1.0 [09:22:17]action value=print_text [09:22:17]process_action print_text [09:22:17]cmd_print_text [09:22:17]ExternCall_PrintAddStr [09:22:17]wPrintStart [09:22:17]Write to MH i2c: 01 00 00 4D 25 72 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 FF 0F 87 [09:22:17]RasterBufferAndPrint [09:22:17]line *****ТОВАРНЫЙ ЧЕК***** [09:22:17]line АЗС-91 [09:22:17]line Партнер нефть [09:22:17]line 02508201610067 [09:22:17]line Кассир : Арстанбеков Н. [09:22:17]line Счет N : (1)507142 [09:22:17]line 15.05.2024 09:04 [09:22:17]line ПРОДАЖА [09:22:17]line ТРК (МРК, ГНК): 31 [09:22:17]line Вид ГСМ : 2710194210 [09:22:17]line ДТ-К-5 [09:22:17]line 7.000 x 74.70 [09:22:17]line ИТОГ: 522.90 [09:22:17]line Тип оплаты: Талоны: Топливная Карта [09:22:17]line 02750 [09:22:17]line ______________________ [09:22:17]line (подпись) [09:22:17]written 0, free lines is 4095 [09:22:18]Write to MH i2c: 01 00 00 61 25 86 [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 07 00 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 0D 0E A8 [09:22:18]RasterBufferAndPrint [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]line [09:22:18]written 0, free lines is 3599 [09:22:18]MH_Cut [09:22:18]Write to MH i2c: D1 01 00 68 25 01 5F [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 01 00 [09:22:18]MH_I2C_Read... [09:22:18]Read from MH i2c: D1 01 00 68 25 00 5E [09:22:18]Write to MH i2c: 01 00 00 69 25 8E [09:22:18]Write i2c OK [09:22:18]MH_I2C_Read... [09:22:18]*** Cut start [09:22:18]*** Purtial cut [09:22:18]*** Stage 1: CUTSNS_PIN = 1 [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]*** Stop cut motor [09:22:19]*** Cut end [09:22:19]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [09:22:19]process_action print_text done [09:22:19]requested_data is exist [09:22:19]produce_requested_data [09:22:19]requested_item fm.sn is exist - process it [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 11 00 00 [09:22:19]Write to MH i2c: E2 08 00 6A 25 80 11 00 00 00 00 00 00 09 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 6A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [09:22:19]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:19]wFMCommunicate OK [09:22:19]requested_item fd.num is exist - process it [09:22:19]SAM_PROTO_GetFieldsCounters [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 00 00 [09:22:19]Write to MH i2c: E2 08 00 6B 25 80 13 00 00 00 00 00 00 0C [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 6B 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 89 06 01 00 0E 04 04 00 64 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 78 [09:22: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 89 06 01 00 0E 04 04 00 64 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:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetFieldsCounters done [09:22:19]requested_item shift.num is exist - process it [09:22:19]requested_item shift.opened is exist - process it [09:22:19]req_shift_opened [09:22:19]FM_GetShiftState [09:22:19]SAM_PROTO_GetShiftState [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 01 00 [09:22:19]Write to MH i2c: E2 08 00 6C 25 80 13 01 00 00 00 00 00 0E [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 6C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B9 [09:22:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetShiftState done [09:22:19]FM_GetShiftState done [09:22:19]req_shift_opened done [09:22:19]requested_item shift.open_date is exist - process it [09:22:19]req_shift_open_date [09:22:19]req_shift_open_date done [09:22:19]produce_requested_data done [09:22:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:22:19]process_action_free print_text [09:22:19]json_value_free [09:22:19]json_value_free done [09:22:19]process_json_proto returns [09:22:19]Send response to host [09:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:22:19]free response buf [09:22:19]execute_script done [09:22:19]execute_script returns [09:22:19]free content buf [09:22:19]Sock 7.Close socket [09:22:19]Sock 7.Thread stoped [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:12]accept exits with 9 [09:27:12]New connection [09:27:12]New thread 3066731876 created [09:27:12]Thread 3066588516 joined [09:27:12]Waiting for new connection... [09:27:12] Sock 9.Parse request [09:27:12]Sock 9.Check first char [09:27:12]Sock 9.First char is OK [09:27:12]request: POST /json_proto HTTP/1.0 [09:27:12]Method: POST [09:27:12]URL: /json_proto [09:27:12]Method is POST - this is cgi request [09:27:12]url: /json_proto [09:27:12]query_string will be loaded in cgi processing [09:27:12]execute_cgi json_proto POST (null) [09:27:12]execute_cgi path=json_proto method=POST [09:27:12]POST find Content-Length [09:27:12]Host: 172.17.41.195:8080 [09:27:12]Content-Length: 1210 [09:27:12]Content-Type: application/json [09:27:12] [09:27:12]POST finish read [09:27:12]Found Content-Length = 1210 [09:27: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)507144\u000A15.05.2024 09:09\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 4.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 267.20\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:27:12]execute_script... [09:27: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)507144\u000A15.05.2024 09:09\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 4.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 267.20\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:27:12]POST & json_proto [09:27:12]process_json_proto [09:27:12]json parsed OK: [09:27:12]protocol is kg_v1.0 [09:27:12]action value=print_text [09:27:12]process_action print_text [09:27:12]cmd_print_text [09:27:12]ExternCall_PrintAddStr [09:27:12]wPrintStart [09:27:12]Write to MH i2c: 01 00 00 6D 25 92 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: 01 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: 01 07 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: 01 07 00 6D 25 00 00 00 00 00 FF 0F A7 [09:27:12]RasterBufferAndPrint [09:27:12]line *****ТОВАРНЫЙ ЧЕК***** [09:27:12]line АЗС-91 [09:27:12]line Партнер нефть [09:27:12]line 02508201610067 [09:27:12]line Кассир : Арстанбеков Н. [09:27:12]line Счет N : (1)507144 [09:27:12]line 15.05.2024 09:09 [09:27:12]line ПРОДАЖА [09:27:12]line ТРК (МРК, ГНК): 13 [09:27:12]line Вид ГСМ : 2710124130 [09:27:12]line Аи-92-К-5 [09:27:12]line 4.000 x 66.80 [09:27:12]line ИТОГ: 267.20 [09:27:12]line Тип оплаты: Талоны: Топливная Карта [09:27:12]line 02750 [09:27:12]line ______________________ [09:27:12]line (подпись) [09:27:12]written 0, free lines is 4095 [09:27:13]Write to MH i2c: 01 00 00 81 25 A6 [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: 01 07 00 81 25 00 00 00 00 00 10 0E CB [09:27:13]RasterBufferAndPrint [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]line [09:27:13]written 0, free lines is 3601 [09:27:13]MH_Cut [09:27:13]Write to MH i2c: D1 01 00 88 25 01 7F [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 01 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: D1 01 00 88 25 00 7E [09:27:13]Write to MH i2c: 01 00 00 89 25 AE [09:27:13]Write i2c OK [09:27:13]MH_I2C_Read... [09:27:13]*** Cut start [09:27:13]*** Purtial cut [09:27:13]*** CUTSNS_PIN = 0 [09:27:13]*** Stage 1: CUTSNS_PIN = 1 [09:27:15]OFD Sender: No OFD packet to send [09:27:15]Read from MH i2c: 01 [09:27:15]MH_I2C_Read... [09:27:15]*** Stop cut motor [09:27:15]*** Cut end [09:27:15]Read from MH i2c: 01 07 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [09:27:15]process_action print_text done [09:27:15]requested_data is exist [09:27:15]produce_requested_data [09:27:15]requested_item fm.sn is exist - process it [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 11 00 00 [09:27:15]Write to MH i2c: E2 08 00 8A 25 80 11 00 00 00 00 00 00 29 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 17 00 8A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [09:27: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:27:15]wFMCommunicate OK [09:27:15]requested_item fd.num is exist - process it [09:27:15]SAM_PROTO_GetFieldsCounters [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 00 00 [09:27:15]Write to MH i2c: E2 08 00 8B 25 80 13 00 00 00 00 00 00 2C [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 62 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 62 00 8B 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 89 06 01 00 0E 04 04 00 64 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 98 [09:27: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 89 06 01 00 0E 04 04 00 64 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:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_GetFieldsCounters done [09:27:15]requested_item shift.num is exist - process it [09:27:15]requested_item shift.opened is exist - process it [09:27:15]req_shift_opened [09:27:15]FM_GetShiftState [09:27:15]SAM_PROTO_GetShiftState [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 01 00 [09:27:15]Write to MH i2c: E2 08 00 8C 25 80 13 01 00 00 00 00 00 2E [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 8C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D9 [09:27:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_GetShiftState done [09:27:15]FM_GetShiftState done [09:27:15]req_shift_opened done [09:27:15]requested_item shift.open_date is exist - process it [09:27:15]req_shift_open_date [09:27:15]req_shift_open_date done [09:27:15]produce_requested_data done [09:27:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:27:15]process_action_free print_text [09:27:15]json_value_free [09:27:15]json_value_free done [09:27:15]process_json_proto returns [09:27:15]Send response to host [09:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67209,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:27:15]free response buf [09:27:15]execute_script done [09:27:15]execute_script returns [09:27:15]free content buf [09:27:15]Sock 9.Close socket [09:27:15]Sock 9.Thread stoped [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:27:57]accept exits with 10 [09:27:57]New connection [09:27:57]New thread 3066588516 created [09:27:57]Thread 3066731876 joined [09:27:57]Waiting for new connection... [09:27:57] Sock 10.Parse request [09:27:57]Sock 10.Check first char [09:27:57]Sock 10.First char is OK [09:27:57]request: POST /json_proto HTTP/1.0 [09:27:57]Method: POST [09:27:57]URL: /json_proto [09:27:57]Method is POST - this is cgi request [09:27:57]url: /json_proto [09:27:57]query_string will be loaded in cgi processing [09:27:57]execute_cgi json_proto POST (null) [09:27:57]execute_cgi path=json_proto method=POST [09:27:57]POST find Content-Length [09:27:57]Host: 172.17.41.195:8080 [09:27:57]Content-Length: 819 [09:27:57]Content-Type: application/json [09:27:57] [09:27:57]POST finish read [09:27:57]Found Content-Length = 819 [09:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507143", "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" : 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" ] } } [09:27:57]execute_script... [09:27: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)507143", "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" : 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" ] } } [09:27:57]POST & json_proto [09:27:57]process_json_proto [09:27:57]json parsed OK: [09:27:57]protocol is kg_v1.0 [09:27:57]action value=close_receipt [09:27:57]process_action close_receipt [09:27:57]cmd_close_receipt [09:27:57]MH_GetDate [09:27:57]Write to MH i2c: F0 00 00 8D 25 A1 [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: F0 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: F0 09 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: F0 09 00 8D 25 00 21 80 44 66 FC 21 6F 64 E5 [09:27:57]GetLastDocTimeStamp 1715764225 [09:27:57]current date 1715765281 [09:27:57]FM_GetShiftState [09:27:57]SAM_PROTO_GetShiftState [09:27:57]wFMCommunicate request_size=4 [09:27:57]MH_SAM_APDU [09:27:57]CAPDU: 80 13 01 00 [09:27:57]Write to MH i2c: E2 08 00 8E 25 80 13 01 00 00 00 00 00 30 [09:27:57]Write i2c OK [09:27:57]MH_I2C_Read... [09:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:57]Read from MH i2c: E2 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 0E 00 [09:27:57]MH_I2C_Read... [09:27:57]Read from MH i2c: E2 0E 00 8E 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DB [09:27:57]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:27:57]wFMCommunicate OK [09:27:57]SAM_PROTO_GetShiftState done [09:27:57]FM_GetShiftState done [09:27:57]opened in 1715732471 [09:27:57]opened+sec_in_day 1715818871 [09:27:57]quantity*price = 200066 [09:27:57]sum+1 = 200067 [09:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 28 15.05.2024 09:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67210 ФПД: 170227068602124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T092801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67210&fm=170227068602124&tin=02508201610067®Number=0000000000091845&sum=200066 [09:27:58]StoreToDocumentArchive [09:27:58]shift 356 fd 67210 [09:27:58]save to /storage/0356/doc_00067210 [09:27:58]save last doc name /storage/0356/doc_00067210 to /storage/kkm_last_doc_name [09:27:58]save OK [09:27:58]Clear old archive folders... [09:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:58]tlvbuf is 003E3130 [09:27:58]SAM_PROTO_ClearQueue [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 09 00 00 [09:27:58]Write to MH i2c: E2 08 00 9B 25 80 09 00 00 00 00 00 00 32 [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 9B 25 00 90 00 34 [09:27:58]RAPDU: 90 00 [09:27:58]wFMCommunicate OK [09:27:58]SAM_PROTO_ClearQueue done [09:27:58]KKMCreateOFDPacket [09:27:58]OFDProtocolAddRootSTLVToBuf [09:27:58]FM_MakeSignedData [09:27:58]FM_MakeSignedData [09:27:58]SAM_PROTO_SignData [09:27:58]wFMCommunicate request_size=4 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 0D 01 02 [09:27:58]Write to MH i2c: E2 08 00 9C 25 80 0D 01 02 00 00 00 00 3A [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [09:27:58]RAPDU: 90 00 [09:27:58]wFMCommunicate OK [09:27:58]wFMCommunicate request_size=255 [09:27:58]MH_SAM_APDU [09:27: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 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 1C 00 00 00 F4 03 04 00 21 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 06 01 00 35 04 06 00 9A [09:27:58]Write to MH i2c: E2 02 01 9D 25 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 1C 00 00 00 F4 03 04 00 21 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 06 01 00 35 04 06 00 9A 00 00 DA [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:58]Read from MH i2c: E2 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 [09:27:58]MH_I2C_Read... [09:27:58]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [09:27:58]RAPDU: 90 00 [09:27:58]wFMCommunicate OK [09:27:58]wFMCommunicate request_size=10 [09:27:58]MH_SAM_APDU [09:27:58]CAPDU: 80 0D 02 02 05 D2 13 F4 87 0C [09:27:58]Write to MH i2c: E2 0D 00 9E 25 80 0D 02 02 05 00 D2 13 F4 87 0C 00 00 B3 [09:27:58]Write i2c OK [09:27:58]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 03 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 03 00 9E 25 00 90 00 37 [09:27:59]RAPDU: 90 00 [09:27:59]wFMCommunicate OK [09:27:59]wFMCommunicate request_size=4 [09:27:59]MH_SAM_APDU [09:27:59]CAPDU: 80 0D 03 02 [09:27:59]Write to MH i2c: E2 08 00 9F 25 80 0D 03 02 00 00 00 00 3F [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0B 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0B 00 9F 25 00 98 05 2B 21 A2 28 C1 E5 90 00 99 [09:27:59]RAPDU: 98 05 2B 21 A2 28 C1 E5 90 00 [09:27:59]wFMCommunicate OK [09:27:59]SAM_PROTO_SignData done [09:27:59]FM_MakeSignedData done [09:27:59]CreateOFDProtocolMessage [09:27:59]wFMCommunicate request_size=4 [09:27:59]MH_SAM_APDU [09:27:59]CAPDU: 80 11 00 00 [09:27:59]Write to MH i2c: E2 08 00 A0 25 80 11 00 00 00 00 00 00 3F [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 17 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 17 00 A0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [09: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 [09:27:59]wFMCommunicate OK [09:27:59]CreateOFDProtocolMessage done [09:27:59]OFDSenderStorePacket 67210 [09:27:59]StoreOFDPacket docnum=67210 [09:27: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 0F 01 00 00 02 63 07 01 8D 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 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 1C 00 00 00 F4 03 04 00 21 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 06 01 00 35 04 06 00 9A D2 13 F4 87 0C 98 05 2B 21 A2 28 C1 E5 [09:27:59]CheckFolder [09:27:59]dirname=/storage/ofd_packets [09:27:59]CheckFolder done [09:27:59]ProducePacketName [09:27:59]name=ofd_packets/00067210 [09:27:59]NVStorageSaveData ofd_packets/00067210 [09:27:59]File name is /storage/ofd_packets/00067210 [09:27:59]Write 301 bytes [09:27:59]NVStorageSaveData done [09:27:59]OFDSenderStorePacket done [09:27:59]KKMCreateOFDPacket done [09:27:59]NVStorageSaveData kkm_last_timestamp [09:27:59]File name is /storage/kkm_last_timestamp [09:27:59]Write 4 bytes [09:27:59]NVStorageSaveData done [09:27:59]ExternCall_PrintAddStr [09:27:59]wPrintStart [09:27:59]Write to MH i2c: 01 00 00 A1 25 C6 [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 07 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 07 00 A1 25 00 00 00 00 00 FF 0F DB [09:27:59]RasterBufferAndPrint [09:27:59]line Счет N : (1)507143 [09:27:59]line ИНН: 02508201610067 [09:27:59]line Контрольно-Кассовый Чек [09:27:59]line ПРОДАЖА [09:27:59]line ТРК (МРК, ГНК) : 43 [09:27:59]line Товар: 2710124130 [09:27:59]line Аи-92-К-5 [09:27:59]line 29.950 * 66.80 [09:27:59]line = 2000.66 [09:27:59]line НДС 12% НСП 1% [09:27:59]line > о реализуемом товаре [09:27:59]line ИТОГО: 2000.66 [09:27:59]line НСП 1% : 17.70 [09:27:59]line НДС 12% : 212.46 [09:27:59]line Наличными: 0.00 [09:27:59]line Безнал.: 2000.66 [09:27:59]line Место: АЗС № 91 "Партнер Нефть" [09:27:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:27:59]line СНО: Общий режим [09:27:59]line Чек 28 15.05.2024 09:28 [09:27:59]line Смена: 356 ФФД: 1.0 [09:27:59]line ЗНМ: 0300000119 [09:27:59]line РНМ: 0000000000091845 [09:27:59]line Версия ККМ: 001 [09:27:59]line Платежная система: Бакай Банк [09:27:59]line ФМ: 0000000000871829 [09:27:59]line ФД: 67210 [09:27:59]line ФПД: 170227068602124 [09:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T092801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67210&fm=170227068602124&tin=02508201610067®Number=0000000000091845&sum=200066 [09:27:59]written 0, free lines is 4095 [09:27:59]OFD Sender: Processing packet 67210 [packets to send 35, broken 34] [09:27:59]ProducePacketName [09:27:59]name=ofd_packets/00067210 [09:27:59]OFD Sender: To server: pG, [09:27:59]CommunicateWithHost lk.salyk.kg:30040 [09:27:59]ConnectInit lk.salyk.kg [09:27:59]Connected sock=9 [09:27: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 02 63 07 01 8D 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 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 1C 00 00 00 F4 03 04 00 21 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8A 06 01 00 35 04 06 00 9A D2 13 F4 87 0C 98 05 2B 21 A2 28 C1 E5 [09:27: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 67 6A 47 00 CB 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 8A 06 01 00 F4 03 04 00 FE 27 44 66 B6 04 01 00 00 F6 32 12 1D 54 8B E6 17 [09:27:59]CommunicateWithHost err = 0 [09:27:59]CheckOFDResponse [09:27:59]1017 (14) - 77093643461234 [09:27:59]1041 (16) - 0000000000871829 [09:27:59]1040 (4) - 67210 [09:27:59]1012 (4) - 15.05.2024 03:11 [09:27:59]1206 (1) - 0 [09:27:59]OFD Sender: Remove packet 67210 [09:27:59]ProducePacketName [09:27:59]name=ofd_packets/00067210 [09:27:59]NVStorageDeleteData [09:27:59]Write to MH i2c: 01 00 00 CA 25 EF [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 07 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: 01 07 00 CA 25 00 00 00 00 00 E3 0C E5 [09:27:59]RasterBufferAndPrint [09:27:59]line [09:27:59]line [09:27:59]line [09:27:59]line [09:27:59]line [09:27:59]written 0, free lines is 3308 [09:27:59]MH_Cut [09:27:59]Write to MH i2c: D1 01 00 D1 25 01 C8 [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: D1 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: D1 01 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: D1 01 00 D1 25 00 C7 [09:27:59]Write to MH i2c: 01 00 00 D2 25 F7 [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:28:00]OFD Sender: No OFD packet to send [09:28:00]*** Cut start [09:28:00]*** Purtial cut [09:28:00]*** Stage 1: CUTSNS_PIN = 1 [09:28:00]Read from MH i2c: 01 [09:28:00]MH_I2C_Read... [09:28:00]*** Stop cut motor [09:28:00]*** Cut end [09:28:00]Read from MH i2c: 01 07 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: 01 07 00 D2 25 00 00 00 00 00 FF 0F 0C [09:28:00]process_action close_receipt done [09:28:00]requested_data is exist [09:28:00]produce_requested_data [09:28:00]requested_item fm.sn is exist - process it [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 11 00 00 [09:28:00]Write to MH i2c: E2 08 00 D3 25 80 11 00 00 00 00 00 00 72 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 17 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 17 00 D3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [09:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:28:00]wFMCommunicate OK [09:28:00]requested_item fd.num is exist - process it [09:28:00]SAM_PROTO_GetFieldsCounters [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 13 00 00 [09:28:00]Write to MH i2c: E2 08 00 D4 25 80 13 00 00 00 00 00 00 75 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 62 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 62 00 D4 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 8A 06 01 00 0E 04 04 00 64 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 E5 [09:28: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 8A 06 01 00 0E 04 04 00 64 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:28:00]wFMCommunicate OK [09:28:00]SAM_PROTO_GetFieldsCounters done [09:28:00]requested_item shift.num is exist - process it [09:28:00]requested_item shift.opened is exist - process it [09:28:00]req_shift_opened [09:28:00]FM_GetShiftState [09:28:00]SAM_PROTO_GetShiftState [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 13 01 00 [09:28:00]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0E 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 22 [09:28:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:28:00]wFMCommunicate OK [09:28:00]SAM_PROTO_GetShiftState done [09:28:00]FM_GetShiftState done [09:28:00]req_shift_opened done [09:28:00]requested_item shift.open_date is exist - process it [09:28:00]req_shift_open_date [09:28:00]req_shift_open_date done [09:28:00]produce_requested_data done [09:28:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67210,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:28:00]process_action_free close_receipt [09:28:00]json_value_free [09:28:00]json_value_free done [09:28:00]process_json_proto returns [09:28:00]Send response to host [09:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67210,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:28:00]free response buf [09:28:00]execute_script done [09:28:00]execute_script returns [09:28:00]free content buf [09:28:00]Sock 10.Close socket [09:28:00]Sock 10.Thread stoped [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:21]accept exits with 7 [09:28:21]New connection [09:28:21]New thread 3066731876 created [09:28:21]Thread 3066588516 joined [09:28:21]Waiting for new connection... [09:28:21] Sock 7.Parse request [09:28:21]Sock 7.Check first char [09:28:21]Sock 7.First char is OK [09:28:21]request: POST /json_proto HTTP/1.0 [09:28:21]Method: POST [09:28:21]URL: /json_proto [09:28:21]Method is POST - this is cgi request [09:28:21]url: /json_proto [09:28:21]query_string will be loaded in cgi processing [09:28:21]execute_cgi json_proto POST (null) [09:28:21]execute_cgi path=json_proto method=POST [09:28:21]POST find Content-Length [09:28:21]Host: 172.17.41.195:8080 [09:28:21]Content-Length: 1209 [09:28:21]Content-Type: application/json [09:28:21] [09:28:21]POST finish read [09:28:21]Found Content-Length = 1209 [09:28: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)507145\u000A15.05.2024 09: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 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" ] } } [09:28:21]execute_script... [09:28: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)507145\u000A15.05.2024 09: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 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" ] } } [09:28:21]POST & json_proto [09:28:21]process_json_proto [09:28:21]json parsed OK: [09:28:21]protocol is kg_v1.0 [09:28:21]action value=print_text [09:28:21]process_action print_text [09:28:21]cmd_print_text [09:28:21]ExternCall_PrintAddStr [09:28:21]wPrintStart [09:28:21]Write to MH i2c: 01 00 00 D6 25 FB [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 07 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 07 00 D6 25 00 00 00 00 00 FF 0F 10 [09:28:21]RasterBufferAndPrint [09:28:21]line *****ТОВАРНЫЙ ЧЕК***** [09:28:21]line АЗС-91 [09:28:21]line Партнер нефть [09:28:21]line 02508201610067 [09:28:21]line Кассир : Арстанбеков Н. [09:28:21]line Счет N : (1)507145 [09:28:21]line 15.05.2024 09:11 [09:28:21]line ПРОДАЖА [09:28:21]line ТРК (МРК, ГНК): 31 [09:28:21]line Вид ГСМ : 2710194210 [09:28:21]line ДТ-К-5 [09:28:21]line 25.000 x 74.70 [09:28:21]line ИТОГ: 1867.50 [09:28:21]line Тип оплаты: Талоны: Топливная Карта [09:28:21]line 02750 [09:28:21]line ______________________ [09:28:21]line (подпись) [09:28:21]written 0, free lines is 4095 [09:28:21]Write to MH i2c: 01 00 00 EA 25 0F [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 07 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: 01 07 00 EA 25 00 00 00 00 00 0E 0E 32 [09:28:21]RasterBufferAndPrint [09:28:21]line [09:28:21]line [09:28:21]line [09:28:21]line [09:28:21]line [09:28:21]written 0, free lines is 3599 [09:28:21]MH_Cut [09:28:21]Write to MH i2c: D1 01 00 F1 25 01 E8 [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: D1 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: D1 01 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: D1 01 00 F1 25 00 E7 [09:28:21]Write to MH i2c: 01 00 00 F2 25 17 [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:22]*** Cut start [09:28:22]*** Purtial cut [09:28:22]*** CUTSNS_PIN = 0 [09:28:22]*** Stage 1: CUTSNS_PIN = 1 [09:28:24]Read from MH i2c: 01 [09:28:24]MH_I2C_Read... [09:28:24]*** Stop cut motor [09:28:24]*** Cut end [09:28:24]Read from MH i2c: 01 07 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: 01 07 00 F2 25 00 00 00 00 00 FF 0F 2C [09:28:24]process_action print_text done [09:28:24]requested_data is exist [09:28:24]produce_requested_data [09:28:24]requested_item fm.sn is exist - process it [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 11 00 00 [09:28:24]Write to MH i2c: E2 08 00 F3 25 80 11 00 00 00 00 00 00 92 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 17 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 17 00 F3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [09:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:28:24]wFMCommunicate OK [09:28:24]requested_item fd.num is exist - process it [09:28:24]SAM_PROTO_GetFieldsCounters [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 13 00 00 [09:28:24]Write to MH i2c: E2 08 00 F4 25 80 13 00 00 00 00 00 00 95 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 62 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 62 00 F4 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 8A 06 01 00 0E 04 04 00 64 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 05 [09:28: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 8A 06 01 00 0E 04 04 00 64 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:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_GetFieldsCounters done [09:28:24]requested_item shift.num is exist - process it [09:28:24]requested_item shift.opened is exist - process it [09:28:24]req_shift_opened [09:28:24]FM_GetShiftState [09:28:24]SAM_PROTO_GetShiftState [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 13 01 00 [09:28:24]Write to MH i2c: E2 08 00 F5 25 80 13 01 00 00 00 00 00 97 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 F5 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 42 [09:28:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_GetShiftState done [09:28:24]FM_GetShiftState done [09:28:24]req_shift_opened done [09:28:24]requested_item shift.open_date is exist - process it [09:28:24]req_shift_open_date [09:28:24]req_shift_open_date done [09:28:24]produce_requested_data done [09:28:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67210,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:28:24]process_action_free print_text [09:28:24]json_value_free [09:28:24]json_value_free done [09:28:24]process_json_proto returns [09:28:24]Send response to host [09:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67210,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:28:24]free response buf [09:28:24]execute_script done [09:28:24]execute_script returns [09:28:24]free content buf [09:28:24]Sock 7.Close socket [09:28:24]Sock 7.Thread stoped [09:28:24]accept exits with 9 [09:28:24]New connection [09:28:24]New thread 3066588516 created [09:28:24]Thread 3066731876 joined [09:28:24]Waiting for new connection... [09:28:24] Sock 9.Parse request [09:28:24]Sock 9.Check first char [09:28:24]Sock 9.First char is OK [09:28:24]request: POST /json_proto HTTP/1.0 [09:28:24]Method: POST [09:28:24]URL: /json_proto [09:28:24]Method is POST - this is cgi request [09:28:24]url: /json_proto [09:28:24]query_string will be loaded in cgi processing [09:28:24]execute_cgi json_proto POST (null) [09:28:24]execute_cgi path=json_proto method=POST [09:28:24]POST find Content-Length [09:28:24]Host: 172.17.41.195:8080 [09:28:24]Content-Length: 674 [09:28:24]Content-Type: application/json [09:28:24] [09:28:24]POST finish read [09:28:24]Found Content-Length = 674 [09:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507146", "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" : 9.800, "sum" : 732.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 732.00, "total" : 732.00, "payments": [ { "type": 0, "sum" : 732.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:24]execute_script... [09:28: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)507146", "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" : 9.800, "sum" : 732.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 732.00, "total" : 732.00, "payments": [ { "type": 0, "sum" : 732.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:24]POST & json_proto [09:28:24]process_json_proto [09:28:24]json parsed OK: [09:28:24]protocol is kg_v1.0 [09:28:24]action value=close_receipt [09:28:24]process_action close_receipt [09:28:24]cmd_close_receipt [09:28:24]MH_GetDate [09:28:24]Write to MH i2c: F0 00 00 F6 25 0A [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: F0 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: F0 09 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: F0 09 00 F6 25 00 3C 80 44 66 FC 21 6F 64 69 [09:28:24]GetLastDocTimeStamp 1715765281 [09:28:24]current date 1715765308 [09:28:24]FM_GetShiftState [09:28:24]SAM_PROTO_GetShiftState [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 13 01 00 [09:28:24]Write to MH i2c: E2 08 00 F7 25 80 13 01 00 00 00 00 00 99 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 0E 00 F7 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 44 [09:28:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_GetShiftState done [09:28:24]FM_GetShiftState done [09:28:24]opened in 1715732471 [09:28:24]opened+sec_in_day 1715818871 [09:28:24]quantity*price = 73206 [09:28:24]sum+1 = 73207 [09:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 732.00 Внесено: 732.00 СДАЧА: 0.00 НСП 1% : 6.48 НДС 12% : 77.74 Наличными: 732.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 29 15.05.2024 09:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67211 ФПД: 6286376178682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T092828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67211&fm=6286376178682&tin=02508201610067®Number=0000000000091845&sum=73200 [09:28:26]StoreToDocumentArchive [09:28:26]shift 356 fd 67211 [09:28:26]save to /storage/0356/doc_00067211 [09:28:26]save last doc name /storage/0356/doc_00067211 to /storage/kkm_last_doc_name [09:28:26]save OK [09:28:26]Clear old archive folders... [09:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:28:26]tlvbuf is 003806A0 [09:28:26]SAM_PROTO_ClearQueue [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 09 00 00 [09:28:26]Write to MH i2c: E2 08 00 04 26 80 09 00 00 00 00 00 00 9C [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_ClearQueue done [09:28:26]KKMCreateOFDPacket [09:28:26]OFDProtocolAddRootSTLVToBuf [09:28:26]FM_MakeSignedData [09:28:26]FM_MakeSignedData [09:28:26]SAM_PROTO_SignData [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 01 02 [09:28:26]Write to MH i2c: E2 08 00 05 26 80 0D 01 02 00 00 00 00 A4 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=255 [09:28:26]MH_SAM_APDU [09:28: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 48 26 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F6 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 1E 00 00 00 00 07 04 06 00 F0 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3C 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 06 01 00 35 04 06 00 05 B7 A9 38 [09:28:26]Write to MH i2c: E2 02 01 06 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 48 26 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F6 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 1E 00 00 00 00 07 04 06 00 F0 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3C 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 06 01 00 35 04 06 00 05 B7 A9 38 00 00 0C [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=7 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 02 02 02 13 FA [09:28:26]Write to MH i2c: E2 0A 00 07 26 80 0D 02 02 02 00 13 FA 00 00 B8 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 03 02 [09:28:26]Write to MH i2c: E2 08 00 08 26 80 0D 03 02 00 00 00 00 A9 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0B 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0B 00 08 26 00 11 10 66 70 B8 C3 70 6B 90 00 F7 [09:28:26]RAPDU: 11 10 66 70 B8 C3 70 6B 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_SignData done [09:28:26]FM_MakeSignedData done [09:28:26]CreateOFDProtocolMessage [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 11 00 00 [09:28:26]Write to MH i2c: E2 08 00 09 26 80 11 00 00 00 00 00 00 A9 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 09 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [09:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:28:27]wFMCommunicate OK [09:28:27]CreateOFDProtocolMessage done [09:28:27]OFDSenderStorePacket 67211 [09:28:27]StoreOFDPacket docnum=67211 [09:28: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 77 29 04 01 05 77 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 26 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F6 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 1E 00 00 00 00 07 04 06 00 F0 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3C 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 06 01 00 35 04 06 00 05 B7 A9 38 13 FA 11 10 66 70 B8 C3 70 6B [09:28:27]CheckFolder [09:28:27]dirname=/storage/ofd_packets [09:28:27]CheckFolder done [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00067211 [09:28:27]NVStorageSaveData ofd_packets/00067211 [09:28:27]File name is /storage/ofd_packets/00067211 [09:28:27]Write 298 bytes [09:28:27]NVStorageSaveData done [09:28:27]OFDSenderStorePacket done [09:28:27]KKMCreateOFDPacket done [09:28:27]NVStorageSaveData kkm_last_timestamp [09:28:27]File name is /storage/kkm_last_timestamp [09:28:27]Write 4 bytes [09:28:27]NVStorageSaveData done [09:28:27]ExternCall_PrintAddStr [09:28:27]wPrintStart [09:28:27]Write to MH i2c: 01 00 00 0A 26 30 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 0A 26 00 00 00 00 00 FF 0F 45 [09:28:27]RasterBufferAndPrint [09:28:27]line Счет N : (1)507146 [09:28:27]line ИНН: 02508201610067 [09:28:27]line Контрольно-Кассовый Чек [09:28:27]line ПРОДАЖА [09:28:27]line ТРК (МРК, ГНК) : 11 [09:28:27]line Товар: 2710194210 [09:28:27]line ДТ-К-5 [09:28:27]line 9.800 * 74.70 [09:28:27]line = 732.06 [09:28:27]line НДС 12% НСП 1% [09:28:27]line > о реализуемом товаре [09:28:27]line ОКРУГЛЕНИЕ: -0.06 [09:28:27]line ИТОГО: 732.00 [09:28:27]line Внесено: 732.00 [09:28:27]line СДАЧА: 0.00 [09:28:27]line НСП 1% : 6.48 [09:28:27]line НДС 12% : 77.74 [09:28:27]line Наличными: 732.00 [09:28:27]line Безнал.: 0.00 [09:28:27]line Место: АЗС № 91 "Партнер Нефть" [09:28:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:28:27]line СНО: Общий режим [09:28:27]line Чек 29 15.05.2024 09:28 [09:28:27]line Смена: 356 ФФД: 1.0 [09:28:27]line ЗНМ: 0300000119 [09:28:27]line РНМ: 0000000000091845 [09:28:27]line Версия ККМ: 001 [09:28:27]line ФМ: 0000000000871829 [09:28:27]line ФД: 67211 [09:28:27]line ФПД: 6286376178682 [09:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T092828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67211&fm=6286376178682&tin=02508201610067®Number=0000000000091845&sum=73200 [09:28:27]written 0, free lines is 4095 [09:28:27]OFD Sender: Processing packet 67211 [packets to send 35, broken 34] [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00067211 [09:28:27]OFD Sender: To server: pG, [09:28:27]CommunicateWithHost lk.salyk.kg:30040 [09:28:27]ConnectInit lk.salyk.kg [09:28:27]Connected sock=11 [09:28: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 77 29 04 01 05 77 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 26 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 F6 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 1E 00 00 00 00 07 04 06 00 F0 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 3C 80 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8B 06 01 00 35 04 06 00 05 B7 A9 38 13 FA 11 10 66 70 B8 C3 70 6B [09:28:27]Write to MH i2c: 01 00 00 34 26 5A [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 34 26 00 00 00 00 00 C6 0C 33 [09:28:27]RasterBufferAndPrint [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]written 0, free lines is 3278 [09:28:27]MH_Cut [09:28:27]Write to MH i2c: D1 01 00 3B 26 01 33 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 01 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 01 00 3B 26 00 32 [09:28:27]Write to MH i2c: 01 00 00 3C 26 62 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28: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 E9 F6 47 00 AB 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 8B 06 01 00 F4 03 04 00 1A 28 44 66 B6 04 01 00 00 82 BD 66 FC 22 AA 2D 5E [09:28:27]CommunicateWithHost err = 0 [09:28:27]CheckOFDResponse [09:28:27]1017 (14) - 77093643461234 [09:28:27]1041 (16) - 0000000000871829 [09:28:27]1040 (4) - 67211 [09:28:27]1012 (4) - 15.05.2024 03:12 [09:28:27]1206 (1) - 0 [09:28:27]OFD Sender: Remove packet 67211 [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00067211 [09:28:27]NVStorageDeleteData [09:28:28]OFD Sender: No OFD packet to send [09:28:28]*** Cut start [09:28:28]*** Purtial cut [09:28:28]*** Stage 1: CUTSNS_PIN = 1 [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]*** Stop cut motor [09:28:28]*** Cut end [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 3C 26 00 00 00 00 00 FF 0F 77 [09:28:28]process_action close_receipt done [09:28:28]requested_data is exist [09:28:28]produce_requested_data [09:28:28]requested_item fm.sn is exist - process it [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 11 00 00 [09:28:28]Write to MH i2c: E2 08 00 3D 26 80 11 00 00 00 00 00 00 DD [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 3D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [09: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 [09:28:28]wFMCommunicate OK [09:28:28]requested_item fd.num is exist - process it [09:28:28]SAM_PROTO_GetFieldsCounters [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 13 00 00 [09:28:28]Write to MH i2c: E2 08 00 3E 26 80 13 00 00 00 00 00 00 E0 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 62 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 62 00 3E 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 8B 06 01 00 0E 04 04 00 64 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 54 [09:28:28]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 8B 06 01 00 0E 04 04 00 64 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:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_GetFieldsCounters done [09:28:28]requested_item shift.num is exist - process it [09:28:28]requested_item shift.opened is exist - process it [09:28:28]req_shift_opened [09:28:28]FM_GetShiftState [09:28:28]SAM_PROTO_GetShiftState [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 13 01 00 [09:28:28]Write to MH i2c: E2 08 00 3F 26 80 13 01 00 00 00 00 00 E2 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0E 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0E 00 3F 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8D [09:28:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_GetShiftState done [09:28:28]FM_GetShiftState done [09:28:28]req_shift_opened done [09:28:28]requested_item shift.open_date is exist - process it [09:28:28]req_shift_open_date [09:28:28]req_shift_open_date done [09:28:28]produce_requested_data done [09:28:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:28:28]process_action_free close_receipt [09:28:28]json_value_free [09:28:28]json_value_free done [09:28:28]process_json_proto returns [09:28:28]Send response to host [09:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:28:28]free response buf [09:28:28]execute_script done [09:28:28]execute_script returns [09:28:28]free content buf [09:28:28]Sock 9.Close socket [09:28:28]Sock 9.Thread stoped [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:30:59]accept exits with 7 [09:30:59]New connection [09:30:59]New thread 3066731876 created [09:30:59]Thread 3066588516 joined [09:30:59]Waiting for new connection... [09:30:59] Sock 7.Parse request [09:30:59]Sock 7.Check first char [09:30:59]Sock 7.First char is OK [09:30:59]request: POST /json_proto HTTP/1.0 [09:30:59]Method: POST [09:30:59]URL: /json_proto [09:30:59]Method is POST - this is cgi request [09:30:59]url: /json_proto [09:30:59]query_string will be loaded in cgi processing [09:30:59]execute_cgi json_proto POST (null) [09:30:59]execute_cgi path=json_proto method=POST [09:30:59]POST find Content-Length [09:30:59]Host: 172.17.41.195:8080 [09:30:59]Content-Length: 1209 [09:30:59]Content-Type: application/json [09:30:59] [09:30:59]POST finish read [09:30:59]Found Content-Length = 1209 [09:30:59]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)507147\u000A15.05.2024 09:13\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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.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:30:59]execute_script... [09:30:59]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)507147\u000A15.05.2024 09:13\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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.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:30:59]POST & json_proto [09:30:59]process_json_proto [09:30:59]json parsed OK: [09:30:59]protocol is kg_v1.0 [09:30:59]action value=print_text [09:30:59]process_action print_text [09:30:59]cmd_print_text [09:30:59]ExternCall_PrintAddStr [09:30:59]wPrintStart [09:30:59]Write to MH i2c: 01 00 00 40 26 66 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [09:30:59]RasterBufferAndPrint [09:30:59]line *****ТОВАРНЫЙ ЧЕК***** [09:30:59]line АЗС-91 [09:30:59]line Партнер нефть [09:30:59]line 02508201610067 [09:30:59]line Кассир : Арстанбеков Н. [09:30:59]line Счет N : (1)507147 [09:30:59]line 15.05.2024 09:13 [09:30:59]line ПРОДАЖА [09:30:59]line ТРК (МРК, ГНК): 41 [09:30:59]line Вид ГСМ : 2710194210 [09:30:59]line ДТ-К-5 [09:30:59]line 34.000 x 74.70 [09:30:59]line ИТОГ: 2539.80 [09:30:59]line Тип оплаты: Талоны: Топливная Карта [09:30:59]line 02750 [09:30:59]line ______________________ [09:30:59]line (подпись) [09:30:59]written 0, free lines is 4095 [09:30:59]Write to MH i2c: 01 00 00 54 26 7A [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 54 26 00 00 00 00 00 10 0E 9F [09:30:59]RasterBufferAndPrint [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]written 0, free lines is 3601 [09:30:59]MH_Cut [09:30:59]Write to MH i2c: D1 01 00 5B 26 01 53 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 5B 26 00 52 [09:30:59]Write to MH i2c: 01 00 00 5C 26 82 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:31:00]*** Cut start [09:31:00]*** Purtial cut [09:31:00]*** CUTSNS_PIN = 0 [09:31:00]*** Stage 1: CUTSNS_PIN = 1 [09:31:02]Read from MH i2c: 01 [09:31:02]MH_I2C_Read... [09:31:02]*** Stop cut motor [09:31:02]*** Cut end [09:31:02]Read from MH i2c: 01 07 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 5C 26 00 00 00 00 00 FF 0F 97 [09:31:02]process_action print_text done [09:31:02]requested_data is exist [09:31:02]produce_requested_data [09:31:02]requested_item fm.sn is exist - process it [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 11 00 00 [09:31:02]Write to MH i2c: E2 08 00 5D 26 80 11 00 00 00 00 00 00 FD [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 17 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 17 00 5D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [09:31: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:31:02]wFMCommunicate OK [09:31:02]requested_item fd.num is exist - process it [09:31:02]SAM_PROTO_GetFieldsCounters [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 00 00 [09:31:02]Write to MH i2c: E2 08 00 5E 26 80 13 00 00 00 00 00 00 00 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 5E 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 8B 06 01 00 0E 04 04 00 64 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 74 [09:31: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 8B 06 01 00 0E 04 04 00 64 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:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetFieldsCounters done [09:31:02]requested_item shift.num is exist - process it [09:31:02]requested_item shift.opened is exist - process it [09:31:02]req_shift_opened [09:31:02]FM_GetShiftState [09:31:02]SAM_PROTO_GetShiftState [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 01 00 [09:31:02]Write to MH i2c: E2 08 00 5F 26 80 13 01 00 00 00 00 00 02 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 5F 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AD [09:31:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetShiftState done [09:31:02]FM_GetShiftState done [09:31:02]req_shift_opened done [09:31:02]requested_item shift.open_date is exist - process it [09:31:02]req_shift_open_date [09:31:02]req_shift_open_date done [09:31:02]produce_requested_data done [09:31:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:31:02]process_action_free print_text [09:31:02]json_value_free [09:31:02]json_value_free done [09:31:02]process_json_proto returns [09:31:02]Send response to host [09:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:31:02]free response buf [09:31:02]execute_script done [09:31:02]execute_script returns [09:31:02]free content buf [09:31:02]Sock 7.Close socket [09:31:02]Sock 7.Thread stoped [09:31:02]accept exits with 9 [09:31:02]New connection [09:31:02]New thread 3066588516 created [09:31:02]Thread 3066731876 joined [09:31:02]Waiting for new connection... [09:31:02] Sock 9.Parse request [09:31:02]Sock 9.Check first char [09:31:02]Sock 9.First char is OK [09:31:02]request: POST /json_proto HTTP/1.0 [09:31:02]Method: POST [09:31:02]URL: /json_proto [09:31:02]Method is POST - this is cgi request [09:31:02]url: /json_proto [09:31:02]query_string will be loaded in cgi processing [09:31:02]execute_cgi json_proto POST (null) [09:31:02]execute_cgi path=json_proto method=POST [09:31:02]POST find Content-Length [09:31:02]Host: 172.17.41.195:8080 [09:31:02]Content-Length: 1208 [09:31:02]Content-Type: application/json [09:31:02] [09:31:02]POST finish read [09:31:02]Found Content-Length = 1208 [09:31: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)507148\u000A15.05.2024 09:13\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:31:02]execute_script... [09:31: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)507148\u000A15.05.2024 09:13\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:31:02]POST & json_proto [09:31:02]process_json_proto [09:31:02]json parsed OK: [09:31:02]protocol is kg_v1.0 [09:31:02]action value=print_text [09:31:02]process_action print_text [09:31:02]cmd_print_text [09:31:02]ExternCall_PrintAddStr [09:31:02]wPrintStart [09:31:02]Write to MH i2c: 01 00 00 60 26 86 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 60 26 00 00 00 00 00 FF 0F 9B [09:31:02]RasterBufferAndPrint [09:31:02]line *****ТОВАРНЫЙ ЧЕК***** [09:31:02]line АЗС-91 [09:31:02]line Партнер нефть [09:31:02]line 02508201610067 [09:31:02]line Кассир : Арстанбеков Н. [09:31:02]line Счет N : (1)507148 [09:31:02]line 15.05.2024 09:13 [09:31:02]line ПРОДАЖА [09:31:02]line ТРК (МРК, ГНК): 11 [09:31:02]line Вид ГСМ : 2710194210 [09:31:02]line ДТ-К-5 [09:31:02]line 10.000 x 74.70 [09:31:02]line ИТОГ: 747.00 [09:31:02]line Тип оплаты: Талоны: Топливная Карта [09:31:02]line 02750 [09:31:02]line ______________________ [09:31:02]line (подпись) [09:31:02]written 0, free lines is 4095 [09:31:02]Write to MH i2c: 01 00 00 74 26 9A [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 0E 0E BD [09:31:02]RasterBufferAndPrint [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]line [09:31:02]written 0, free lines is 3600 [09:31:02]MH_Cut [09:31:02]Write to MH i2c: D1 01 00 7B 26 01 73 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 01 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: D1 01 00 7B 26 00 72 [09:31:02]Write to MH i2c: 01 00 00 7C 26 A2 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:03]OFD Sender: No OFD packet to send [09:31:03]*** Cut start [09:31:03]*** Purtial cut [09:31:03]*** Stage 1: CUTSNS_PIN = 1 [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]*** Stop cut motor [09:31:03]*** Cut end [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [09:31:03]process_action print_text done [09:31:03]requested_data is exist [09:31:03]produce_requested_data [09:31:03]requested_item fm.sn is exist - process it [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 11 00 00 [09:31:03]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [09:31: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:31:03]wFMCommunicate OK [09:31:03]requested_item fd.num is exist - process it [09:31:03]SAM_PROTO_GetFieldsCounters [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 13 00 00 [09:31:03]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 62 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 62 00 7E 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 8B 06 01 00 0E 04 04 00 64 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 94 [09:31: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 8B 06 01 00 0E 04 04 00 64 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:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_GetFieldsCounters done [09:31:03]requested_item shift.num is exist - process it [09:31:03]requested_item shift.opened is exist - process it [09:31:03]req_shift_opened [09:31:03]FM_GetShiftState [09:31:03]SAM_PROTO_GetShiftState [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 13 01 00 [09:31:03]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0E 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CD [09:31:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_GetShiftState done [09:31:03]FM_GetShiftState done [09:31:03]req_shift_opened done [09:31:03]requested_item shift.open_date is exist - process it [09:31:03]req_shift_open_date [09:31:03]req_shift_open_date done [09:31:03]produce_requested_data done [09:31:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:31:03]process_action_free print_text [09:31:03]json_value_free [09:31:03]json_value_free done [09:31:03]process_json_proto returns [09:31:03]Send response to host [09:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:31:03]free response buf [09:31:03]execute_script done [09:31:03]execute_script returns [09:31:03]free content buf [09:31:03]Sock 9.Close socket [09:31:03]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:27]accept exits with 7 [09:32:27]New connection [09:32:27]New thread 3066731876 created [09:32:27]Thread 3066588516 joined [09:32:27]Waiting for new connection... [09:32:27] Sock 7.Parse request [09:32:27]Sock 7.Check first char [09:32:27]Sock 7.First char is OK [09:32:27]request: POST /json_proto HTTP/1.0 [09:32:27]Method: POST [09:32:27]URL: /json_proto [09:32:27]Method is POST - this is cgi request [09:32:27]url: /json_proto [09:32:27]query_string will be loaded in cgi processing [09:32:27]execute_cgi json_proto POST (null) [09:32:27]execute_cgi path=json_proto method=POST [09:32:27]POST find Content-Length [09:32:27]Host: 172.17.41.195:8080 [09:32:27]Content-Length: 1209 [09:32:27]Content-Type: application/json [09:32:27] [09:32:27]POST finish read [09:32:27]Found Content-Length = 1209 [09:32: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)507149\u000A15.05.2024 09: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 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:27]execute_script... [09:32: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)507149\u000A15.05.2024 09: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 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:27]POST & json_proto [09:32:27]process_json_proto [09:32:27]json parsed OK: [09:32:27]protocol is kg_v1.0 [09:32:27]action value=print_text [09:32:27]process_action print_text [09:32:27]cmd_print_text [09:32:27]ExternCall_PrintAddStr [09:32:27]wPrintStart [09:32:27]Write to MH i2c: 01 00 00 80 26 A6 [09:32:27]Write i2c OK [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: 01 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: 01 07 00 [09:32:27]MH_I2C_Read... [09:32:27]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 FF 0F BB [09:32:27]RasterBufferAndPrint [09:32:27]line *****ТОВАРНЫЙ ЧЕК***** [09:32:27]line АЗС-91 [09:32:27]line Партнер нефть [09:32:27]line 02508201610067 [09:32:27]line Кассир : Арстанбеков Н. [09:32:27]line Счет N : (1)507149 [09:32:27]line 15.05.2024 09:15 [09:32:27]line ПРОДАЖА [09:32:27]line ТРК (МРК, ГНК): 21 [09:32:27]line Вид ГСМ : 2710194210 [09:32:27]line ДТ-К-5 [09:32:27]line 19.000 x 74.70 [09:32:27]line ИТОГ: 1419.30 [09:32:27]line Тип оплаты: Талоны: Топливная Карта [09:32:27]line 02750 [09:32:27]line ______________________ [09:32:27]line (подпись) [09:32:27]written 0, free lines is 4095 [09:32:28]Write to MH i2c: 01 00 00 94 26 BA [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: 01 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: 01 07 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 0F 0E DE [09:32:28]RasterBufferAndPrint [09:32:28]line [09:32:28]line [09:32:28]line [09:32:28]line [09:32:28]line [09:32:28]written 0, free lines is 3601 [09:32:28]MH_Cut [09:32:28]Write to MH i2c: D1 01 00 9B 26 01 93 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: D1 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: D1 01 00 [09:32:28]MH_I2C_Read... [09:32:28]Read from MH i2c: D1 01 00 9B 26 00 92 [09:32:28]Write to MH i2c: 01 00 00 9C 26 C2 [09:32:28]Write i2c OK [09:32:28]MH_I2C_Read... [09:32:28]OFD Sender: No OFD packet to send [09:32:28]*** Cut start [09:32:28]*** Purtial cut [09:32:28]*** CUTSNS_PIN = 0 [09:32:28]*** Stage 1: CUTSNS_PIN = 1 [09:32:30]Read from MH i2c: 01 [09:32:30]MH_I2C_Read... [09:32:30]*** Stop cut motor [09:32:30]*** Cut end [09:32:30]Read from MH i2c: 01 07 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 FF 0F D7 [09:32:30]process_action print_text done [09:32:30]requested_data is exist [09:32:30]produce_requested_data [09:32:30]requested_item fm.sn is exist - process it [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 11 00 00 [09:32:30]Write to MH i2c: E2 08 00 9D 26 80 11 00 00 00 00 00 00 3D [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 17 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 17 00 9D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [09:32:30]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:30]wFMCommunicate OK [09:32:30]requested_item fd.num is exist - process it [09:32:30]SAM_PROTO_GetFieldsCounters [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 13 00 00 [09:32:30]Write to MH i2c: E2 08 00 9E 26 80 13 00 00 00 00 00 00 40 [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 62 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 62 00 9E 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 8B 06 01 00 0E 04 04 00 64 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 B4 [09:32: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 8B 06 01 00 0E 04 04 00 64 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:32:30]wFMCommunicate OK [09:32:30]SAM_PROTO_GetFieldsCounters done [09:32:30]requested_item shift.num is exist - process it [09:32:30]requested_item shift.opened is exist - process it [09:32:30]req_shift_opened [09:32:30]FM_GetShiftState [09:32:30]SAM_PROTO_GetShiftState [09:32:30]wFMCommunicate request_size=4 [09:32:30]MH_SAM_APDU [09:32:30]CAPDU: 80 13 01 00 [09:32:30]Write to MH i2c: E2 08 00 9F 26 80 13 01 00 00 00 00 00 42 [09:32:30]Write i2c OK [09:32:30]MH_I2C_Read... [09:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:30]Read from MH i2c: E2 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 0E 00 [09:32:30]MH_I2C_Read... [09:32:30]Read from MH i2c: E2 0E 00 9F 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 ED [09:32:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:32:30]wFMCommunicate OK [09:32:30]SAM_PROTO_GetShiftState done [09:32:30]FM_GetShiftState done [09:32:30]req_shift_opened done [09:32:30]requested_item shift.open_date is exist - process it [09:32:30]req_shift_open_date [09:32:30]req_shift_open_date done [09:32:30]produce_requested_data done [09:32:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:32:30]process_action_free print_text [09:32:30]json_value_free [09:32:30]json_value_free done [09:32:30]process_json_proto returns [09:32:30]Send response to host [09:32:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67211,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:32:30]free response buf [09:32:30]execute_script done [09:32:30]execute_script returns [09:32:30]free content buf [09:32:30]Sock 7.Close socket [09:32:30]Sock 7.Thread stoped [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:09]accept exits with 9 [09:33:09]New connection [09:33:09]New thread 3066588516 created [09:33:09]Thread 3066731876 joined [09:33:09]Waiting for new connection... [09:33:09] Sock 9.Parse request [09:33:09]Sock 9.Check first char [09:33:09]Sock 9.First char is OK [09:33:09]request: POST /json_proto HTTP/1.0 [09:33:09]Method: POST [09:33:09]URL: /json_proto [09:33:09]Method is POST - this is cgi request [09:33:09]url: /json_proto [09:33:09]query_string will be loaded in cgi processing [09:33:09]execute_cgi json_proto POST (null) [09:33:09]execute_cgi path=json_proto method=POST [09:33:09]POST find Content-Length [09:33:09]Host: 172.17.41.195:8080 [09:33:09]Content-Length: 803 [09:33:09]Content-Type: application/json [09:33:09] [09:33:09]POST finish read [09:33:09]Found Content-Length = 803 [09:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507150", "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" ] } } [09:33:09]execute_script... [09: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)507150", "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" ] } } [09:33:09]POST & json_proto [09:33:09]process_json_proto [09:33:09]json parsed OK: [09:33:09]protocol is kg_v1.0 [09:33:09]action value=close_receipt [09:33:09]process_action close_receipt [09:33:09]cmd_close_receipt [09:33:09]MH_GetDate [09:33:09]Write to MH i2c: F0 00 00 A0 26 B5 [09:33:09]Write i2c OK [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 09 00 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: F0 09 00 A0 26 00 58 81 44 66 FC 21 6F 64 31 [09:33:09]GetLastDocTimeStamp 1715765308 [09:33:09]current date 1715765592 [09:33:09]FM_GetShiftState [09:33:09]SAM_PROTO_GetShiftState [09:33:09]wFMCommunicate request_size=4 [09:33:09]MH_SAM_APDU [09:33:09]CAPDU: 80 13 01 00 [09:33:09]Write to MH i2c: E2 08 00 A1 26 80 13 01 00 00 00 00 00 44 [09:33:09]Write i2c OK [09:33:09]MH_I2C_Read... [09:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:09]Read from MH i2c: E2 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: E2 0E 00 [09:33:09]MH_I2C_Read... [09:33:09]Read from MH i2c: E2 0E 00 A1 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EF [09:33:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:33:09]wFMCommunicate OK [09:33:09]SAM_PROTO_GetShiftState done [09:33:09]FM_GetShiftState done [09:33:09]opened in 1715732471 [09:33:09]opened+sec_in_day 1715818871 [09:33:09]quantity*price = 100066 [09:33:09]sum+1 = 100067 [09:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 30 15.05.2024 09:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67212 ФПД: 160098240082080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T093312&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67212&fm=160098240082080&tin=02508201610067®Number=0000000000091845&sum=100066 [09:33:10]StoreToDocumentArchive [09:33:10]shift 356 fd 67212 [09:33:10]save to /storage/0356/doc_00067212 [09:33:10]save last doc name /storage/0356/doc_00067212 to /storage/kkm_last_doc_name [09:33:10]save OK [09:33:10]Clear old archive folders... [09:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:10]tlvbuf is 00341DA0 [09:33:10]SAM_PROTO_ClearQueue [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 09 00 00 [09:33:10]Write to MH i2c: E2 08 00 AE 26 80 09 00 00 00 00 00 00 46 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]SAM_PROTO_ClearQueue done [09:33:10]KKMCreateOFDPacket [09:33:10]OFDProtocolAddRootSTLVToBuf [09:33:10]FM_MakeSignedData [09:33:10]FM_MakeSignedData [09:33:10]SAM_PROTO_SignData [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 0D 01 02 [09:33:10]Write to MH i2c: E2 08 00 AF 26 80 0D 01 02 00 00 00 00 4E [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]wFMCommunicate request_size=255 [09:33:10]MH_SAM_APDU [09:33:10]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 1E 00 00 00 F4 03 04 00 58 81 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 06 01 00 35 04 06 00 91 [09:33:10]Write to MH i2c: E2 02 01 B0 26 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 1E 00 00 00 F4 03 04 00 58 81 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 06 01 00 35 04 06 00 91 00 00 D5 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 B0 26 00 90 00 4A [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]wFMCommunicate request_size=10 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 0D 02 02 05 9B C6 BA B0 A0 [09:33:10]Write to MH i2c: E2 0D 00 B1 26 80 0D 02 02 05 00 9B C6 BA B0 A0 00 00 C6 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 03 00 B1 26 00 90 00 4B [09:33:10]RAPDU: 90 00 [09:33:10]wFMCommunicate OK [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 0D 03 02 [09:33:10]Write to MH i2c: E2 08 00 B2 26 80 0D 03 02 00 00 00 00 53 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 0B 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 0B 00 B2 26 00 75 2D B7 B6 6E 07 B4 3F 90 00 CB [09:33:10]RAPDU: 75 2D B7 B6 6E 07 B4 3F 90 00 [09:33:10]wFMCommunicate OK [09:33:10]SAM_PROTO_SignData done [09:33:10]FM_MakeSignedData done [09:33:10]CreateOFDProtocolMessage [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 11 00 00 [09:33:10]Write to MH i2c: E2 08 00 B3 26 80 11 00 00 00 00 00 00 53 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 17 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 17 00 B3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [09:33:10]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:10]wFMCommunicate OK [09:33:10]CreateOFDProtocolMessage done [09:33:10]OFDSenderStorePacket 67212 [09:33:10]StoreOFDPacket docnum=67212 [09:33: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 0F 01 00 00 F3 73 07 01 FD 26 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 1E 00 00 00 F4 03 04 00 58 81 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 06 01 00 35 04 06 00 91 9B C6 BA B0 A0 75 2D B7 B6 6E 07 B4 3F [09:33:10]CheckFolder [09:33:10]dirname=/storage/ofd_packets [09:33:10]CheckFolder done [09:33:10]ProducePacketName [09:33:10]name=ofd_packets/00067212 [09:33:10]NVStorageSaveData ofd_packets/00067212 [09:33:10]File name is /storage/ofd_packets/00067212 [09:33:10]Write 301 bytes [09:33:10]NVStorageSaveData done [09:33:10]OFDSenderStorePacket done [09:33:10]KKMCreateOFDPacket done [09:33:10]NVStorageSaveData kkm_last_timestamp [09:33:10]File name is /storage/kkm_last_timestamp [09:33:10]Write 4 bytes [09:33:10]NVStorageSaveData done [09:33:10]ExternCall_PrintAddStr [09:33:10]wPrintStart [09:33:10]Write to MH i2c: 01 00 00 B4 26 DA [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 B4 26 00 00 00 00 00 FF 0F EF [09:33:10]RasterBufferAndPrint [09:33:10]line Счет N : (1)507150 [09:33:10]line ИНН: 02508201610067 [09:33:10]line Контрольно-Кассовый Чек [09:33:10]line ПРОДАЖА [09:33:10]line ТРК (МРК, ГНК) : 43 [09:33:10]line Товар: 2710124130 [09:33:10]line Аи-92-К-5 [09:33:10]line 14.980 * 66.80 [09:33:10]line = 1000.66 [09:33:10]line НДС 12% НСП 1% [09:33:10]line > о реализуемом товаре [09:33:10]line ИТОГО: 1000.66 [09:33:10]line НСП 1% : 8.85 [09:33:10]line НДС 12% : 106.26 [09:33:10]line Наличными: 0.00 [09:33:10]line Безнал.: 1000.66 [09:33:10]line Место: АЗС № 91 "Партнер Нефть" [09:33:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:33:10]line СНО: Общий режим [09:33:10]line Чек 30 15.05.2024 09:33 [09:33:10]line Смена: 356 ФФД: 1.0 [09:33:10]line ЗНМ: 0300000119 [09:33:10]line РНМ: 0000000000091845 [09:33:10]line Версия ККМ: 001 [09:33:10]line Платежная система: O! деньги [09:33:10]line ФМ: 0000000000871829 [09:33:10]line ФД: 67212 [09:33:10]line ФПД: 160098240082080 [09:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T093312&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67212&fm=160098240082080&tin=02508201610067®Number=0000000000091845&sum=100066 [09:33:10]written 0, free lines is 4095 [09:33:10]OFD Sender: Processing packet 67212 [packets to send 35, broken 34] [09:33:10]ProducePacketName [09:33:10]name=ofd_packets/00067212 [09:33:10]OFD Sender: To server: pG, [09:33:10]CommunicateWithHost lk.salyk.kg:30040 [09:33:10]ConnectInit lk.salyk.kg [09:33:10]Connected sock=10 [09:33: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 F3 73 07 01 FD 26 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 1E 00 00 00 F4 03 04 00 58 81 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8C 06 01 00 35 04 06 00 91 9B C6 BA B0 A0 75 2D B7 B6 6E 07 B4 3F [09: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 CD 14 47 00 B7 B1 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 8C 06 01 00 F4 03 04 00 36 29 44 66 B6 04 01 00 00 9F A2 09 61 04 E6 FF 21 [09:33:11]CommunicateWithHost err = 0 [09:33:11]CheckOFDResponse [09:33:11]1017 (14) - 77093643461234 [09:33:11]1041 (16) - 0000000000871829 [09:33:11]1040 (4) - 67212 [09:33:11]1012 (4) - 15.05.2024 03:17 [09:33:11]1206 (1) - 0 [09:33:11]OFD Sender: Remove packet 67212 [09:33:11]ProducePacketName [09:33:11]name=ofd_packets/00067212 [09:33:11]NVStorageDeleteData [09:33:11]Write to MH i2c: 01 00 00 DD 26 03 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 DD 26 00 00 00 00 00 E7 0C FD [09:33:11]RasterBufferAndPrint [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]line [09:33:11]written 0, free lines is 3311 [09:33:11]MH_Cut [09:33:11]Write to MH i2c: D1 01 00 E4 26 01 DC [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: D1 01 00 E4 26 00 DB [09:33:11]Write to MH i2c: 01 00 00 E5 26 0B [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]OFD Sender: No OFD packet to send [09:33:11]*** Cut start [09:33:11]*** Purtial cut [09:33:11]*** Stage 1: CUTSNS_PIN = 1 [09:33:12]Read from MH i2c: 01 [09:33:12]MH_I2C_Read... [09:33:12]*** Stop cut motor [09:33:12]*** Cut end [09:33:12]Read from MH i2c: 01 07 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 E5 26 00 00 00 00 00 FF 0F 20 [09:33:12]process_action close_receipt done [09:33:12]requested_data is exist [09:33:12]produce_requested_data [09:33:12]requested_item fm.sn is exist - process it [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 11 00 00 [09:33:12]Write to MH i2c: E2 08 00 E6 26 80 11 00 00 00 00 00 00 86 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 E6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [09: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 [09:33:12]wFMCommunicate OK [09:33:12]requested_item fd.num is exist - process it [09:33:12]SAM_PROTO_GetFieldsCounters [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 00 00 [09:33:12]Write to MH i2c: E2 08 00 E7 26 80 13 00 00 00 00 00 00 89 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 E7 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 8C 06 01 00 0E 04 04 00 64 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 01 [09: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 8C 06 01 00 0E 04 04 00 64 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:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_GetFieldsCounters done [09:33:12]requested_item shift.num is exist - process it [09:33:12]requested_item shift.opened is exist - process it [09:33:12]req_shift_opened [09:33:12]FM_GetShiftState [09:33:12]SAM_PROTO_GetShiftState [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 01 00 [09:33:12]Write to MH i2c: E2 08 00 E8 26 80 13 01 00 00 00 00 00 8B [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0E 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 0E 00 E8 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 36 [09:33:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_GetShiftState done [09:33:12]FM_GetShiftState done [09:33:12]req_shift_opened done [09:33:12]requested_item shift.open_date is exist - process it [09:33:12]req_shift_open_date [09:33:12]req_shift_open_date done [09:33:12]produce_requested_data done [09:33:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:33:12]process_action_free close_receipt [09:33:12]json_value_free [09:33:12]json_value_free done [09:33:12]process_json_proto returns [09:33:12]Send response to host [09:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:33:12]free response buf [09:33:12]execute_script done [09:33:12]execute_script returns [09:33:12]free content buf [09:33:12]Sock 9.Close socket [09:33:12]Sock 9.Thread stoped [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:26]accept exits with 7 [09:36:26]New connection [09:36:26]New thread 3066731876 created [09:36:26]Thread 3066588516 joined [09:36:26]Waiting for new connection... [09:36:26] Sock 7.Parse request [09:36:26]Sock 7.Check first char [09:36:26]Sock 7.First char is OK [09:36:26]request: POST /json_proto HTTP/1.0 [09:36:26]Method: POST [09:36:26]URL: /json_proto [09:36:26]Method is POST - this is cgi request [09:36:26]url: /json_proto [09:36:26]query_string will be loaded in cgi processing [09:36:26]execute_cgi json_proto POST (null) [09:36:26]execute_cgi path=json_proto method=POST [09:36:26]POST find Content-Length [09:36:26]Host: 172.17.41.195:8080 [09:36:26]Content-Length: 1209 [09:36:26]Content-Type: application/json [09:36:26] [09:36:26]POST finish read [09:36:26]Found Content-Length = 1209 [09:36: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)507151\u000A15.05.2024 09:19\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 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:36:26]execute_script... [09:36: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)507151\u000A15.05.2024 09:19\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 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:36:26]POST & json_proto [09:36:26]process_json_proto [09:36:26]json parsed OK: [09:36:26]protocol is kg_v1.0 [09:36:26]action value=print_text [09:36:26]process_action print_text [09:36:26]cmd_print_text [09:36:26]ExternCall_PrintAddStr [09:36:26]wPrintStart [09:36:26]Write to MH i2c: 01 00 00 E9 26 0F [09:36:26]Write i2c OK [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 [09:36:26]MH_I2C_Read... [09:36:26]Read from MH i2c: 01 07 00 E9 26 00 00 00 00 00 FF 0F 24 [09:36:26]RasterBufferAndPrint [09:36:26]line *****ТОВАРНЫЙ ЧЕК***** [09:36:26]line АЗС-91 [09:36:26]line Партнер нефть [09:36:26]line 02508201610067 [09:36:26]line Кассир : Арстанбеков Н. [09:36:26]line Счет N : (1)507151 [09:36:26]line 15.05.2024 09:19 [09:36:26]line ПРОДАЖА [09:36:26]line ТРК (МРК, ГНК): 21 [09:36:26]line Вид ГСМ : 2710194210 [09:36:26]line ДТ-К-5 [09:36:26]line 26.780 x 74.70 [09:36:26]line ИТОГ: 2000.47 [09:36:26]line Тип оплаты: Талоны: Топливная Карта [09:36:26]line 02750 [09:36:26]line ______________________ [09:36:26]line (подпись) [09:36:26]written 0, free lines is 4095 [09:36:27]Write to MH i2c: 01 00 00 FD 26 23 [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: 01 07 00 FD 26 00 00 00 00 00 10 0E 48 [09:36:27]RasterBufferAndPrint [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]line [09:36:27]written 0, free lines is 3601 [09:36:27]MH_Cut [09:36:27]Write to MH i2c: D1 01 00 04 27 01 FD [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 01 00 [09:36:27]MH_I2C_Read... [09:36:27]Read from MH i2c: D1 01 00 04 27 00 FC [09:36:27]Write to MH i2c: 01 00 00 05 27 2C [09:36:27]Write i2c OK [09:36:27]MH_I2C_Read... [09:36:27]*** Cut start [09:36:27]*** Purtial cut [09:36:27]*** CUTSNS_PIN = 0 [09:36:27]*** Stage 1: CUTSNS_PIN = 1 [09:36:29]Read from MH i2c: 01 [09:36:29]MH_I2C_Read... [09:36:29]*** Stop cut motor [09:36:29]*** Cut end [09:36:29]Read from MH i2c: 01 07 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 FF 0F 41 [09:36:29]process_action print_text done [09:36:29]requested_data is exist [09:36:29]produce_requested_data [09:36:29]requested_item fm.sn is exist - process it [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 11 00 00 [09:36:29]Write to MH i2c: E2 08 00 06 27 80 11 00 00 00 00 00 00 A7 [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 17 00 06 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [09:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:36:29]wFMCommunicate OK [09:36:29]requested_item fd.num is exist - process it [09:36:29]SAM_PROTO_GetFieldsCounters [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 00 00 [09:36:29]Write to MH i2c: E2 08 00 07 27 80 13 00 00 00 00 00 00 AA [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 62 00 07 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 8C 06 01 00 0E 04 04 00 64 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 22 [09:36: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 8C 06 01 00 0E 04 04 00 64 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:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetFieldsCounters done [09:36:29]requested_item shift.num is exist - process it [09:36:29]requested_item shift.opened is exist - process it [09:36:29]req_shift_opened [09:36:29]FM_GetShiftState [09:36:29]SAM_PROTO_GetShiftState [09:36:29]wFMCommunicate request_size=4 [09:36:29]MH_SAM_APDU [09:36:29]CAPDU: 80 13 01 00 [09:36:29]Write to MH i2c: E2 08 00 08 27 80 13 01 00 00 00 00 00 AC [09:36:29]Write i2c OK [09:36:29]MH_I2C_Read... [09:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:29]Read from MH i2c: E2 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 [09:36:29]MH_I2C_Read... [09:36:29]Read from MH i2c: E2 0E 00 08 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 57 [09:36:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:36:29]wFMCommunicate OK [09:36:29]SAM_PROTO_GetShiftState done [09:36:29]FM_GetShiftState done [09:36:29]req_shift_opened done [09:36:29]requested_item shift.open_date is exist - process it [09:36:29]req_shift_open_date [09:36:29]req_shift_open_date done [09:36:29]produce_requested_data done [09:36:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:36:29]process_action_free print_text [09:36:29]json_value_free [09:36:29]json_value_free done [09:36:29]process_json_proto returns [09:36:29]Send response to host [09:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:36:29]free response buf [09:36:29]execute_script done [09:36:29]execute_script returns [09:36:29]free content buf [09:36:29]Sock 7.Close socket [09:36:29]Sock 7.Thread stoped [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:52]accept exits with 9 [09:39:52]New connection [09:39:52]New thread 3066588516 created [09:39:52]Thread 3066731876 joined [09:39:52]Waiting for new connection... [09:39:52] Sock 9.Parse request [09:39:52]Sock 9.Check first char [09:39:52]Sock 9.First char is OK [09:39:52]request: POST /json_proto HTTP/1.0 [09:39:52]Method: POST [09:39:52]URL: /json_proto [09:39:52]Method is POST - this is cgi request [09:39:52]url: /json_proto [09:39:52]query_string will be loaded in cgi processing [09:39:52]execute_cgi json_proto POST (null) [09:39:52]execute_cgi path=json_proto method=POST [09:39:52]POST find Content-Length [09:39:52]Host: 172.17.41.195:8080 [09:39:52]Content-Length: 1209 [09:39:52]Content-Type: application/json [09:39:52] [09:39:52]POST finish read [09:39:52]Found Content-Length = 1209 [09:39:52]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)507152\u000A15.05.2024 09:22\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" ] } } [09:39:52]execute_script... [09:39:52]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)507152\u000A15.05.2024 09:22\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" ] } } [09:39:52]POST & json_proto [09:39:52]process_json_proto [09:39:52]json parsed OK: [09:39:52]protocol is kg_v1.0 [09:39:52]action value=print_text [09:39:52]process_action print_text [09:39:52]cmd_print_text [09:39:52]ExternCall_PrintAddStr [09:39:52]wPrintStart [09:39:52]Write to MH i2c: 01 00 00 09 27 30 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 09 27 00 00 00 00 00 FF 0F 45 [09:39:52]RasterBufferAndPrint [09:39:52]line *****ТОВАРНЫЙ ЧЕК***** [09:39:52]line АЗС-91 [09:39:52]line Партнер нефть [09:39:52]line 02508201610067 [09:39:52]line Кассир : Арстанбеков Н. [09:39:52]line Счет N : (1)507152 [09:39:52]line 15.05.2024 09:22 [09:39:52]line ПРОДАЖА [09:39:52]line ТРК (МРК, ГНК): 11 [09:39:52]line Вид ГСМ : 2710194210 [09:39:52]line ДТ-К-5 [09:39:52]line 25.000 x 74.70 [09:39:52]line ИТОГ: 1867.50 [09:39:52]line Тип оплаты: Талоны: Топливная Карта [09:39:52]line 02750 [09:39:52]line ______________________ [09:39:52]line (подпись) [09:39:52]written 0, free lines is 4095 [09:39:52]Write to MH i2c: 01 00 00 1D 27 44 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: 01 07 00 1D 27 00 00 00 00 00 0F 0E 68 [09:39:52]RasterBufferAndPrint [09:39:52]line [09:39:52]line [09:39:52]line [09:39:52]line [09:39:52]line [09:39:52]written 0, free lines is 3601 [09:39:52]MH_Cut [09:39:52]Write to MH i2c: D1 01 00 24 27 01 1D [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: D1 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: D1 01 00 [09:39:52]MH_I2C_Read... [09:39:52]Read from MH i2c: D1 01 00 24 27 00 1C [09:39:52]Write to MH i2c: 01 00 00 25 27 4C [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]*** Cut start [09:39:52]*** Purtial cut [09:39:52]*** Stage 1: CUTSNS_PIN = 1 [09:39:53]Read from MH i2c: 01 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 [09:39:53]MH_I2C_Read... [09:39:53]*** Stop cut motor [09:39:53]*** Cut end [09:39:53]Read from MH i2c: 01 07 00 25 27 00 00 00 00 00 FF 0F 61 [09:39:53]process_action print_text done [09:39:53]requested_data is exist [09:39:53]produce_requested_data [09:39:53]requested_item fm.sn is exist - process it [09:39:53]wFMCommunicate request_size=4 [09:39:53]MH_SAM_APDU [09:39:53]CAPDU: 80 11 00 00 [09:39:53]Write to MH i2c: E2 08 00 26 27 80 11 00 00 00 00 00 00 C7 [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:53]Read from MH i2c: E2 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 17 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 17 00 26 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [09:39: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:39:53]wFMCommunicate OK [09:39:53]requested_item fd.num is exist - process it [09:39:53]SAM_PROTO_GetFieldsCounters [09:39:53]wFMCommunicate request_size=4 [09:39:53]MH_SAM_APDU [09:39:53]CAPDU: 80 13 00 00 [09:39:53]Write to MH i2c: E2 08 00 27 27 80 13 00 00 00 00 00 00 CA [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:53]Read from MH i2c: E2 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 62 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 62 00 27 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 8C 06 01 00 0E 04 04 00 64 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 42 [09:39: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 8C 06 01 00 0E 04 04 00 64 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:39:53]wFMCommunicate OK [09:39:53]SAM_PROTO_GetFieldsCounters done [09:39:53]requested_item shift.num is exist - process it [09:39:53]requested_item shift.opened is exist - process it [09:39:53]req_shift_opened [09:39:53]FM_GetShiftState [09:39:53]SAM_PROTO_GetShiftState [09:39:53]wFMCommunicate request_size=4 [09:39:53]MH_SAM_APDU [09:39:53]CAPDU: 80 13 01 00 [09:39:53]Write to MH i2c: E2 08 00 28 27 80 13 01 00 00 00 00 00 CC [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:53]Read from MH i2c: E2 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 0E 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: E2 0E 00 28 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 77 [09:39:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:39:53]wFMCommunicate OK [09:39:53]SAM_PROTO_GetShiftState done [09:39:53]FM_GetShiftState done [09:39:53]req_shift_opened done [09:39:53]requested_item shift.open_date is exist - process it [09:39:53]req_shift_open_date [09:39:53]req_shift_open_date done [09:39:53]produce_requested_data done [09:39:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:39:53]process_action_free print_text [09:39:53]json_value_free [09:39:53]json_value_free done [09:39:53]process_json_proto returns [09:39:53]Send response to host [09:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:39:53]free response buf [09:39:53]execute_script done [09:39:53]execute_script returns [09:39:53]free content buf [09:39:53]Sock 9.Close socket [09:39:53]Sock 9.Thread stoped [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:25]accept exits with 7 [09:44:25]New connection [09:44:25]New thread 3066731876 created [09:44:25]Thread 3066588516 joined [09:44:25]Waiting for new connection... [09:44:25] Sock 7.Parse request [09:44:25]Sock 7.Check first char [09:44:25]Sock 7.First char is OK [09:44:25]request: POST /json_proto HTTP/1.0 [09:44:25]Method: POST [09:44:25]URL: /json_proto [09:44:25]Method is POST - this is cgi request [09:44:25]url: /json_proto [09:44:25]query_string will be loaded in cgi processing [09:44:25]execute_cgi json_proto POST (null) [09:44:25]execute_cgi path=json_proto method=POST [09:44:25]POST find Content-Length [09:44:25]Host: 172.17.41.195:8080 [09:44:25]Content-Length: 1209 [09:44:25]Content-Type: application/json [09:44:25] [09:44:25]POST finish read [09:44:25]Found Content-Length = 1209 [09:44:25]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)507153\u000A15.05.2024 09:27\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:44:25]execute_script... [09:44:25]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)507153\u000A15.05.2024 09:27\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:44:25]POST & json_proto [09:44:25]process_json_proto [09:44:25]json parsed OK: [09:44:25]protocol is kg_v1.0 [09:44:25]action value=print_text [09:44:25]process_action print_text [09:44:25]cmd_print_text [09:44:25]ExternCall_PrintAddStr [09:44:25]wPrintStart [09:44:25]Write to MH i2c: 01 00 00 29 27 50 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 29 27 00 00 00 00 00 FF 0F 65 [09:44:25]RasterBufferAndPrint [09:44:25]line *****ТОВАРНЫЙ ЧЕК***** [09:44:25]line АЗС-91 [09:44:25]line Партнер нефть [09:44:25]line 02508201610067 [09:44:25]line Кассир : Арстанбеков Н. [09:44:25]line Счет N : (1)507153 [09:44:25]line 15.05.2024 09:27 [09:44:25]line ПРОДАЖА [09:44:25]line ТРК (МРК, ГНК): 41 [09:44:25]line Вид ГСМ : 2710194210 [09:44:25]line ДТ-К-5 [09:44:25]line 20.000 x 74.70 [09:44:25]line ИТОГ: 1494.00 [09:44:25]line Тип оплаты: Талоны: Топливная Карта [09:44:25]line 02750 [09:44:25]line ______________________ [09:44:25]line (подпись) [09:44:25]written 0, free lines is 4095 [09:44:26]Write to MH i2c: 01 00 00 3D 27 64 [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 07 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: 01 07 00 3D 27 00 00 00 00 00 10 0E 89 [09:44:26]RasterBufferAndPrint [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]line [09:44:26]written 0, free lines is 3601 [09:44:26]MH_Cut [09:44:26]Write to MH i2c: D1 01 00 44 27 01 3D [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 01 00 [09:44:26]MH_I2C_Read... [09:44:26]Read from MH i2c: D1 01 00 44 27 00 3C [09:44:26]Write to MH i2c: 01 00 00 45 27 6C [09:44:26]Write i2c OK [09:44:26]MH_I2C_Read... [09:44:26]*** Cut start [09:44:26]*** Purtial cut [09:44:26]*** CUTSNS_PIN = 0 [09:44:26]*** Stage 1: CUTSNS_PIN = 1 [09:44:27]OFD Sender: No OFD packet to send [09:44:28]Read from MH i2c: 01 [09:44:28]MH_I2C_Read... [09:44:28]*** Stop cut motor [09:44:28]*** Cut end [09:44:28]Read from MH i2c: 01 07 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: 01 07 00 45 27 00 00 00 00 00 FF 0F 81 [09:44:28]process_action print_text done [09:44:28]requested_data is exist [09:44:28]produce_requested_data [09:44:28]requested_item fm.sn is exist - process it [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 11 00 00 [09:44:28]Write to MH i2c: E2 08 00 46 27 80 11 00 00 00 00 00 00 E7 [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 17 00 46 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [09:44:28]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:28]wFMCommunicate OK [09:44:28]requested_item fd.num is exist - process it [09:44:28]SAM_PROTO_GetFieldsCounters [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 00 00 [09:44:28]Write to MH i2c: E2 08 00 47 27 80 13 00 00 00 00 00 00 EA [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 62 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 62 00 47 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 8C 06 01 00 0E 04 04 00 64 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 62 [09:44:28]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 8C 06 01 00 0E 04 04 00 64 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:28]wFMCommunicate OK [09:44:28]SAM_PROTO_GetFieldsCounters done [09:44:28]requested_item shift.num is exist - process it [09:44:28]requested_item shift.opened is exist - process it [09:44:28]req_shift_opened [09:44:28]FM_GetShiftState [09:44:28]SAM_PROTO_GetShiftState [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 01 00 [09:44:28]Write to MH i2c: E2 08 00 48 27 80 13 01 00 00 00 00 00 EC [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 48 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 97 [09:44:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_GetShiftState done [09:44:28]FM_GetShiftState done [09:44:28]req_shift_opened done [09:44:28]requested_item shift.open_date is exist - process it [09:44:28]req_shift_open_date [09:44:28]req_shift_open_date done [09:44:28]produce_requested_data done [09:44:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:44:28]process_action_free print_text [09:44:28]json_value_free [09:44:28]json_value_free done [09:44:28]process_json_proto returns [09:44:28]Send response to host [09:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:44:28]free response buf [09:44:28]execute_script done [09:44:28]execute_script returns [09:44:28]free content buf [09:44:28]Sock 7.Close socket [09:44:28]Sock 7.Thread stoped [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:49]accept exits with 9 [09:44:49]New connection [09:44:49]New thread 3066588516 created [09:44:49]Thread 3066731876 joined [09:44:49]Waiting for new connection... [09:44:49] Sock 9.Parse request [09:44:49]Sock 9.Check first char [09:44:49]Sock 9.First char is OK [09:44:49]request: POST /json_proto HTTP/1.0 [09:44:49]Method: POST [09:44:49]URL: /json_proto [09:44:49]Method is POST - this is cgi request [09:44:49]url: /json_proto [09:44:49]query_string will be loaded in cgi processing [09:44:49]execute_cgi json_proto POST (null) [09:44:49]execute_cgi path=json_proto method=POST [09:44:49]POST find Content-Length [09:44:49]Host: 172.17.41.195:8080 [09:44:49]Content-Length: 1209 [09:44:49]Content-Type: application/json [09:44:49] [09:44:49]POST finish read [09:44:49]Found Content-Length = 1209 [09:44:49]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)507154\u000A15.05.2024 09:27\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:44:49]execute_script... [09:44:49]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)507154\u000A15.05.2024 09:27\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:44:49]POST & json_proto [09:44:49]process_json_proto [09:44:49]json parsed OK: [09:44:49]protocol is kg_v1.0 [09:44:49]action value=print_text [09:44:49]process_action print_text [09:44:49]cmd_print_text [09:44:49]ExternCall_PrintAddStr [09:44:49]wPrintStart [09:44:49]Write to MH i2c: 01 00 00 49 27 70 [09:44:49]Write i2c OK [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: 01 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: 01 07 00 [09:44:49]MH_I2C_Read... [09:44:49]Read from MH i2c: 01 07 00 49 27 00 00 00 00 00 FF 0F 85 [09:44:49]RasterBufferAndPrint [09:44:49]line *****ТОВАРНЫЙ ЧЕК***** [09:44:49]line АЗС-91 [09:44:49]line Партнер нефть [09:44:49]line 02508201610067 [09:44:49]line Кассир : Арстанбеков Н. [09:44:49]line Счет N : (1)507154 [09:44:49]line 15.05.2024 09:27 [09:44:49]line ПРОДАЖА [09:44:49]line ТРК (МРК, ГНК): 21 [09:44:49]line Вид ГСМ : 2710194210 [09:44:49]line ДТ-К-5 [09:44:49]line 19.000 x 74.70 [09:44:49]line ИТОГ: 1419.30 [09:44:49]line Тип оплаты: Талоны: Топливная Карта [09:44:49]line 02750 [09:44:49]line ______________________ [09:44:49]line (подпись) [09:44:49]written 0, free lines is 4095 [09:44:50]Write to MH i2c: 01 00 00 5D 27 84 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 0F 0E A8 [09:44:50]RasterBufferAndPrint [09:44:50]line [09:44:50]line [09:44:50]line [09:44:50]line [09:44:50]line [09:44:50]written 0, free lines is 3601 [09:44:50]MH_Cut [09:44:50]Write to MH i2c: D1 01 00 64 27 01 5D [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: D1 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: D1 01 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: D1 01 00 64 27 00 5C [09:44:50]Write to MH i2c: 01 00 00 65 27 8C [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** Cut start [09:44:50]*** Purtial cut [09:44:50]*** Stage 1: CUTSNS_PIN = 1 [09:44:50]Read from MH i2c: 01 [09:44:50]MH_I2C_Read... [09:44:50]*** Stop cut motor [09:44:50]*** Cut end [09:44:50]Read from MH i2c: 01 07 00 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 FF 0F A1 [09:44:50]process_action print_text done [09:44:50]requested_data is exist [09:44:50]produce_requested_data [09:44:50]requested_item fm.sn is exist - process it [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 11 00 00 [09:44:50]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:50]Read from MH i2c: E2 [09:44:50]MH_I2C_Read... [09:44:50]Read from MH i2c: E2 17 00 [09:44:50]MH_I2C_Read... [09:44:50]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:44:50]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:50]wFMCommunicate OK [09:44:50]requested_item fd.num is exist - process it [09:44:50]SAM_PROTO_GetFieldsCounters [09:44:50]wFMCommunicate request_size=4 [09:44:50]MH_SAM_APDU [09:44:50]CAPDU: 80 13 00 00 [09:44:50]Write to MH i2c: E2 08 00 67 27 80 13 00 00 00 00 00 00 0A [09:44:50]Write i2c OK [09:44:50]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:51]Read from MH i2c: E2 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 62 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 62 00 67 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 8C 06 01 00 0E 04 04 00 64 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 82 [09:44: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 8C 06 01 00 0E 04 04 00 64 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:51]wFMCommunicate OK [09:44:51]SAM_PROTO_GetFieldsCounters done [09:44:51]requested_item shift.num is exist - process it [09:44:51]requested_item shift.opened is exist - process it [09:44:51]req_shift_opened [09:44:51]FM_GetShiftState [09:44:51]SAM_PROTO_GetShiftState [09:44:51]wFMCommunicate request_size=4 [09:44:51]MH_SAM_APDU [09:44:51]CAPDU: 80 13 01 00 [09:44:51]Write to MH i2c: E2 08 00 68 27 80 13 01 00 00 00 00 00 0C [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:51]Read from MH i2c: E2 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 0E 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 0E 00 68 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B7 [09:44:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:44:51]wFMCommunicate OK [09:44:51]SAM_PROTO_GetShiftState done [09:44:51]FM_GetShiftState done [09:44:51]req_shift_opened done [09:44:51]requested_item shift.open_date is exist - process it [09:44:51]req_shift_open_date [09:44:51]req_shift_open_date done [09:44:51]produce_requested_data done [09:44:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:44:51]process_action_free print_text [09:44:51]json_value_free [09:44:51]json_value_free done [09:44:51]process_json_proto returns [09:44:51]Send response to host [09:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:44:51]free response buf [09:44:51]execute_script done [09:44:51]execute_script returns [09:44:51]free content buf [09:44:51]Sock 9.Close socket [09:44:51]Sock 9.Thread stoped [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:26]accept exits with 7 [09:46:26]New connection [09:46:26]New thread 3066731876 created [09:46:26]Thread 3066588516 joined [09:46:26]Waiting for new connection... [09:46:26] Sock 7.Parse request [09:46:26]Sock 7.Check first char [09:46:26]Sock 7.First char is OK [09:46:26]request: POST /json_proto HTTP/1.0 [09:46:26]Method: POST [09:46:26]URL: /json_proto [09:46:26]Method is POST - this is cgi request [09:46:26]url: /json_proto [09:46:26]query_string will be loaded in cgi processing [09:46:26]execute_cgi json_proto POST (null) [09:46:26]execute_cgi path=json_proto method=POST [09:46:26]POST find Content-Length [09:46:26]Host: 172.17.41.195:8080 [09:46:26]Content-Length: 1209 [09:46:26]Content-Type: application/json [09:46:26] [09:46:26]POST finish read [09:46:26]Found Content-Length = 1209 [09:46: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)507155\u000A15.05.2024 09:29\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" ] } } [09:46:26]execute_script... [09:46: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)507155\u000A15.05.2024 09:29\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" ] } } [09:46:26]POST & json_proto [09:46:26]process_json_proto [09:46:26]json parsed OK: [09:46:26]protocol is kg_v1.0 [09:46:26]action value=print_text [09:46:26]process_action print_text [09:46:26]cmd_print_text [09:46:26]ExternCall_PrintAddStr [09:46:26]wPrintStart [09:46:26]Write to MH i2c: 01 00 00 69 27 90 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 FF 0F A5 [09:46:26]RasterBufferAndPrint [09:46:26]line *****ТОВАРНЫЙ ЧЕК***** [09:46:26]line АЗС-91 [09:46:26]line Партнер нефть [09:46:26]line 02508201610067 [09:46:26]line Кассир : Арстанбеков Н. [09:46:26]line Счет N : (1)507155 [09:46:26]line 15.05.2024 09:29 [09:46:26]line ПРОДАЖА [09:46:26]line ТРК (МРК, ГНК): 11 [09:46:26]line Вид ГСМ : 2710194210 [09:46:26]line ДТ-К-5 [09:46:26]line 26.780 x 74.70 [09:46:26]line ИТОГ: 2000.47 [09:46:26]line Тип оплаты: Талоны: Топливная Карта [09:46:26]line 02750 [09:46:26]line ______________________ [09:46:26]line (подпись) [09:46:26]written 0, free lines is 4095 [09:46:27]Write to MH i2c: 01 00 00 7D 27 A4 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: 01 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: 01 07 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 10 0E C9 [09:46:27]RasterBufferAndPrint [09:46:27]line [09:46:27]line [09:46:27]line [09:46:27]line [09:46:27]line [09:46:27]written 0, free lines is 3601 [09:46:27]MH_Cut [09:46:27]Write to MH i2c: D1 01 00 84 27 01 7D [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: D1 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: D1 01 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: D1 01 00 84 27 00 7C [09:46:27]Write to MH i2c: 01 00 00 85 27 AC [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]OFD Sender: No OFD packet to send [09:46:27]*** Cut start [09:46:27]*** Purtial cut [09:46:27]*** CUTSNS_PIN = 0 [09:46:27]*** Stage 1: CUTSNS_PIN = 1 [09:46:29]Read from MH i2c: 01 [09:46:29]MH_I2C_Read... [09:46:29]*** Stop cut motor [09:46:29]*** Cut end [09:46:29]Read from MH i2c: 01 07 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: 01 07 00 85 27 00 00 00 00 00 FF 0F C1 [09:46:29]process_action print_text done [09:46:29]requested_data is exist [09:46:29]produce_requested_data [09:46:29]requested_item fm.sn is exist - process it [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 11 00 00 [09:46:29]Write to MH i2c: E2 08 00 86 27 80 11 00 00 00 00 00 00 27 [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 17 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 17 00 86 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [09:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:46:29]wFMCommunicate OK [09:46:29]requested_item fd.num is exist - process it [09:46:29]SAM_PROTO_GetFieldsCounters [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 13 00 00 [09:46:29]Write to MH i2c: E2 08 00 87 27 80 13 00 00 00 00 00 00 2A [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 62 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 62 00 87 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 8C 06 01 00 0E 04 04 00 64 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 A2 [09:46: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 8C 06 01 00 0E 04 04 00 64 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:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_GetFieldsCounters done [09:46:29]requested_item shift.num is exist - process it [09:46:29]requested_item shift.opened is exist - process it [09:46:29]req_shift_opened [09:46:29]FM_GetShiftState [09:46:29]SAM_PROTO_GetShiftState [09:46:29]wFMCommunicate request_size=4 [09:46:29]MH_SAM_APDU [09:46:29]CAPDU: 80 13 01 00 [09:46:29]Write to MH i2c: E2 08 00 88 27 80 13 01 00 00 00 00 00 2C [09:46:29]Write i2c OK [09:46:29]MH_I2C_Read... [09:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:29]Read from MH i2c: E2 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 [09:46:29]MH_I2C_Read... [09:46:29]Read from MH i2c: E2 0E 00 88 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D7 [09:46:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:46:29]wFMCommunicate OK [09:46:29]SAM_PROTO_GetShiftState done [09:46:29]FM_GetShiftState done [09:46:29]req_shift_opened done [09:46:29]requested_item shift.open_date is exist - process it [09:46:29]req_shift_open_date [09:46:29]req_shift_open_date done [09:46:29]produce_requested_data done [09:46:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:46:29]process_action_free print_text [09:46:29]json_value_free [09:46:29]json_value_free done [09:46:29]process_json_proto returns [09:46:29]Send response to host [09:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:46:29]free response buf [09:46:29]execute_script done [09:46:29]execute_script returns [09:46:29]free content buf [09:46:29]Sock 7.Close socket [09:46:29]Sock 7.Thread stoped [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:06]accept exits with 9 [09:47:06]New connection [09:47:06]New thread 3066588516 created [09:47:06]Thread 3066731876 joined [09:47:06]Waiting for new connection... [09:47:06] Sock 9.Parse request [09:47:06]Sock 9.Check first char [09:47:06]Sock 9.First char is OK [09:47:06]request: POST /json_proto HTTP/1.0 [09:47:06]Method: POST [09:47:06]URL: /json_proto [09:47:06]Method is POST - this is cgi request [09:47:06]url: /json_proto [09:47:06]query_string will be loaded in cgi processing [09:47:06]execute_cgi json_proto POST (null) [09:47:06]execute_cgi path=json_proto method=POST [09:47:06]POST find Content-Length [09:47:06]Host: 172.17.41.195:8080 [09:47:06]Content-Length: 1208 [09:47:06]Content-Type: application/json [09:47:06] [09:47:06]POST finish read [09:47:06]Found Content-Length = 1208 [09:47: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)507156\u000A15.05.2024 09:29\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 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:47:06]execute_script... [09:47: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)507156\u000A15.05.2024 09:29\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 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:47:06]POST & json_proto [09:47:06]process_json_proto [09:47:06]json parsed OK: [09:47:06]protocol is kg_v1.0 [09:47:06]action value=print_text [09:47:06]process_action print_text [09:47:06]cmd_print_text [09:47:06]ExternCall_PrintAddStr [09:47:06]wPrintStart [09:47:06]Write to MH i2c: 01 00 00 89 27 B0 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 89 27 00 00 00 00 00 FF 0F C5 [09:47:06]RasterBufferAndPrint [09:47:06]line *****ТОВАРНЫЙ ЧЕК***** [09:47:06]line АЗС-91 [09:47:06]line Партнер нефть [09:47:06]line 02508201610067 [09:47:06]line Кассир : Арстанбеков Н. [09:47:06]line Счет N : (1)507156 [09:47:06]line 15.05.2024 09:29 [09:47:06]line ПРОДАЖА [09:47:06]line ТРК (МРК, ГНК): 41 [09:47:06]line Вид ГСМ : 2710194210 [09:47:06]line ДТ-К-5 [09:47:06]line 10.000 x 74.70 [09:47:06]line ИТОГ: 747.00 [09:47:06]line Тип оплаты: Талоны: Топливная Карта [09:47:06]line 02750 [09:47:06]line ______________________ [09:47:06]line (подпись) [09:47:06]written 0, free lines is 4095 [09:47:06]Write to MH i2c: 01 00 00 9D 27 C4 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 0F 0E E8 [09:47:06]RasterBufferAndPrint [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]line [09:47:06]written 0, free lines is 3600 [09:47:06]MH_Cut [09:47:06]Write to MH i2c: D1 01 00 A4 27 01 9D [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 01 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: D1 01 00 A4 27 00 9C [09:47:06]Write to MH i2c: 01 00 00 A5 27 CC [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:07]*** Cut start [09:47:07]*** Purtial cut [09:47:07]*** Stage 1: CUTSNS_PIN = 1 [09:47:07]OFD Sender: No OFD packet to send [09:47:07]Read from MH i2c: 01 [09:47:07]MH_I2C_Read... [09:47:07]*** Stop cut motor [09:47:07]*** Cut end [09:47:07]Read from MH i2c: 01 07 00 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: 01 07 00 A5 27 00 00 00 00 00 FF 0F E1 [09:47:07]process_action print_text done [09:47:07]requested_data is exist [09:47:07]produce_requested_data [09:47:07]requested_item fm.sn is exist - process it [09:47:07]wFMCommunicate request_size=4 [09:47:07]MH_SAM_APDU [09:47:07]CAPDU: 80 11 00 00 [09:47:07]Write to MH i2c: E2 08 00 A6 27 80 11 00 00 00 00 00 00 47 [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:07]Read from MH i2c: E2 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: E2 17 00 [09:47:07]MH_I2C_Read... [09:47:07]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:47:07]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:07]wFMCommunicate OK [09:47:07]requested_item fd.num is exist - process it [09:47:07]SAM_PROTO_GetFieldsCounters [09:47:07]wFMCommunicate request_size=4 [09:47:07]MH_SAM_APDU [09:47:07]CAPDU: 80 13 00 00 [09:47:07]Write to MH i2c: E2 08 00 A7 27 80 13 00 00 00 00 00 00 4A [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:07]Read from MH i2c: E2 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: E2 62 00 [09:47:07]MH_I2C_Read... [09:47:07]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 8C 06 01 00 0E 04 04 00 64 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 C2 [09:47: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 8C 06 01 00 0E 04 04 00 64 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:07]wFMCommunicate OK [09:47:07]SAM_PROTO_GetFieldsCounters done [09:47:07]requested_item shift.num is exist - process it [09:47:07]requested_item shift.opened is exist - process it [09:47:07]req_shift_opened [09:47:07]FM_GetShiftState [09:47:07]SAM_PROTO_GetShiftState [09:47:07]wFMCommunicate request_size=4 [09:47:07]MH_SAM_APDU [09:47:07]CAPDU: 80 13 01 00 [09:47:07]Write to MH i2c: E2 08 00 A8 27 80 13 01 00 00 00 00 00 4C [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:07]Read from MH i2c: E2 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: E2 0E 00 [09:47:07]MH_I2C_Read... [09:47:07]Read from MH i2c: E2 0E 00 A8 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F7 [09:47:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:47:07]wFMCommunicate OK [09:47:07]SAM_PROTO_GetShiftState done [09:47:07]FM_GetShiftState done [09:47:07]req_shift_opened done [09:47:07]requested_item shift.open_date is exist - process it [09:47:07]req_shift_open_date [09:47:07]req_shift_open_date done [09:47:07]produce_requested_data done [09:47:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:47:07]process_action_free print_text [09:47:07]json_value_free [09:47:07]json_value_free done [09:47:07]process_json_proto returns [09:47:07]Send response to host [09:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:47:07]free response buf [09:47:07]execute_script done [09:47:07]execute_script returns [09:47:07]free content buf [09:47:07]Sock 9.Close socket [09:47:07]Sock 9.Thread stoped [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:48]accept exits with 7 [09:48:48]New connection [09:48:48]New thread 3066731876 created [09:48:48]Thread 3066588516 joined [09:48:48]Waiting for new connection... [09:48:48] Sock 7.Parse request [09:48:48]Sock 7.Check first char [09:48:48]Sock 7.First char is OK [09:48:48]request: POST /json_proto HTTP/1.0 [09:48:48]Method: POST [09:48:48]URL: /json_proto [09:48:48]Method is POST - this is cgi request [09:48:48]url: /json_proto [09:48:48]query_string will be loaded in cgi processing [09:48:48]execute_cgi json_proto POST (null) [09:48:48]execute_cgi path=json_proto method=POST [09:48:48]POST find Content-Length [09:48:48]Host: 172.17.41.195:8080 [09:48:48]Content-Length: 1209 [09:48:48]Content-Type: application/json [09:48:48] [09:48:48]POST finish read [09:48:48]Found Content-Length = 1209 [09:48: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)507157\u000A15.05.2024 09:31\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:48:48]execute_script... [09:48: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)507157\u000A15.05.2024 09:31\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:48:48]POST & json_proto [09:48:48]process_json_proto [09:48:48]json parsed OK: [09:48:48]protocol is kg_v1.0 [09:48:48]action value=print_text [09:48:48]process_action print_text [09:48:48]cmd_print_text [09:48:48]ExternCall_PrintAddStr [09:48:48]wPrintStart [09:48:48]Write to MH i2c: 01 00 00 A9 27 D0 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 A9 27 00 00 00 00 00 FF 0F E5 [09:48:48]RasterBufferAndPrint [09:48:48]line *****ТОВАРНЫЙ ЧЕК***** [09:48:48]line АЗС-91 [09:48:48]line Партнер нефть [09:48:48]line 02508201610067 [09:48:48]line Кассир : Арстанбеков Н. [09:48:48]line Счет N : (1)507157 [09:48:48]line 15.05.2024 09:31 [09:48:48]line ПРОДАЖА [09:48:48]line ТРК (МРК, ГНК): 21 [09:48:48]line Вид ГСМ : 2710194210 [09:48:48]line ДТ-К-5 [09:48:48]line 20.000 x 74.70 [09:48:48]line ИТОГ: 1494.00 [09:48:48]line Тип оплаты: Талоны: Топливная Карта [09:48:48]line 02750 [09:48:48]line ______________________ [09:48:48]line (подпись) [09:48:48]written 0, free lines is 4095 [09:48:48]Write to MH i2c: 01 00 00 BD 27 E4 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 BD 27 00 00 00 00 00 0F 0E 08 [09:48:48]RasterBufferAndPrint [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]line [09:48:48]written 0, free lines is 3601 [09:48:48]MH_Cut [09:48:48]Write to MH i2c: D1 01 00 C4 27 01 BD [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 01 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D1 01 00 C4 27 00 BC [09:48:48]Write to MH i2c: 01 00 00 C5 27 EC [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:49]*** Cut start [09:48:49]*** Purtial cut [09:48:49]*** CUTSNS_PIN = 0 [09:48:49]*** Stage 1: CUTSNS_PIN = 1 [09:48:51]Read from MH i2c: 01 [09:48:51]MH_I2C_Read... [09:48:51]*** Stop cut motor [09:48:51]*** Cut end [09:48:51]Read from MH i2c: 01 07 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 C5 27 00 00 00 00 00 FF 0F 01 [09:48:51]process_action print_text done [09:48:51]requested_data is exist [09:48:51]produce_requested_data [09:48:51]requested_item fm.sn is exist - process it [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 11 00 00 [09:48:51]Write to MH i2c: E2 08 00 C6 27 80 11 00 00 00 00 00 00 67 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 C6 27 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:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:48:51]wFMCommunicate OK [09:48:51]requested_item fd.num is exist - process it [09:48:51]SAM_PROTO_GetFieldsCounters [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 00 00 [09:48:51]Write to MH i2c: E2 08 00 C7 27 80 13 00 00 00 00 00 00 6A [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 C7 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 8C 06 01 00 0E 04 04 00 64 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 E2 [09:48: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 8C 06 01 00 0E 04 04 00 64 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:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetFieldsCounters done [09:48:51]requested_item shift.num is exist - process it [09:48:51]requested_item shift.opened is exist - process it [09:48:51]req_shift_opened [09:48:51]FM_GetShiftState [09:48:51]SAM_PROTO_GetShiftState [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 01 00 [09:48:51]Write to MH i2c: E2 08 00 C8 27 80 13 01 00 00 00 00 00 6C [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 C8 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 17 [09:48:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetShiftState done [09:48:51]FM_GetShiftState done [09:48:51]req_shift_opened done [09:48:51]requested_item shift.open_date is exist - process it [09:48:51]req_shift_open_date [09:48:51]req_shift_open_date done [09:48:51]produce_requested_data done [09:48:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:48:51]process_action_free print_text [09:48:51]json_value_free [09:48:51]json_value_free done [09:48:51]process_json_proto returns [09:48:51]Send response to host [09:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67212,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:48:51]free response buf [09:48:51]execute_script done [09:48:51]execute_script returns [09:48:51]free content buf [09:48:51]Sock 7.Close socket [09:48:51]Sock 7.Thread stoped [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:50]accept exits with 9 [09:49:50]New connection [09:49:50]New thread 3066588516 created [09:49:50]Thread 3066731876 joined [09:49:50]Waiting for new connection... [09:49:50] Sock 9.Parse request [09:49:50]Sock 9.Check first char [09:49:50]Sock 9.First char is OK [09:49:50]request: POST /json_proto HTTP/1.0 [09:49:50]Method: POST [09:49:50]URL: /json_proto [09:49:50]Method is POST - this is cgi request [09:49:50]url: /json_proto [09:49:50]query_string will be loaded in cgi processing [09:49:50]execute_cgi json_proto POST (null) [09:49:50]execute_cgi path=json_proto method=POST [09:49:50]POST find Content-Length [09:49:50]Host: 172.17.41.195:8080 [09:49:50]Content-Length: 687 [09:49:50]Content-Type: application/json [09:49:50] [09:49:50]POST finish read [09:49:50]Found Content-Length = 687 [09:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12065", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:50]execute_script... [09:49: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 : (3)12065", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:50]POST & json_proto [09:49:50]process_json_proto [09:49:50]json parsed OK: [09:49:50]protocol is kg_v1.0 [09:49:50]action value=close_receipt [09:49:50]process_action close_receipt [09:49:50]cmd_close_receipt [09:49:50]MH_GetDate [09:49:50]Write to MH i2c: F0 00 00 C9 27 DF [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 09 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: F0 09 00 C9 27 00 42 85 44 66 FC 21 6F 64 49 [09:49:50]GetLastDocTimeStamp 1715765592 [09:49:50]current date 1715766594 [09:49:50]FM_GetShiftState [09:49:50]SAM_PROTO_GetShiftState [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 13 01 00 [09:49:50]Write to MH i2c: E2 08 00 CA 27 80 13 01 00 00 00 00 00 6E [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 CA 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 19 [09:49:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_GetShiftState done [09:49:50]FM_GetShiftState done [09:49:50]opened in 1715732471 [09:49:50]opened+sec_in_day 1715818871 [09:49:50]quantity*price = 9500 [09:49:50]sum+1 = 9501 [09:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 31 15.05.2024 09:49 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67213 ФПД: 1929067656196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T094954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67213&fm=1929067656196&tin=02508201610067®Number=0000000000091845&sum=9500 0 [09:49:52]StoreToDocumentArchive [09:49:52]shift 356 fd 67213 [09:49:52]save to /storage/0356/doc_00067213 [09:49:52]save last doc name /storage/0356/doc_00067213 to /storage/kkm_last_doc_name [09:49:52]save OK [09:49:52]Clear old archive folders... [09:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:49:52]tlvbuf is 003479F0 [09:49:52]SAM_PROTO_ClearQueue [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 09 00 00 [09:49:52]Write to MH i2c: E2 08 00 D7 27 80 09 00 00 00 00 00 00 70 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 D7 27 00 90 00 72 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_ClearQueue done [09:49:52]KKMCreateOFDPacket [09:49:52]OFDProtocolAddRootSTLVToBuf [09:49:52]FM_MakeSignedData [09:49:52]FM_MakeSignedData [09:49:52]SAM_PROTO_SignData [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 01 02 [09:49:52]Write to MH i2c: E2 08 00 D8 27 80 0D 01 02 00 00 00 00 78 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 D8 27 00 90 00 73 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=255 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 42 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:49:52]Write to MH i2c: E2 02 01 D9 27 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 42 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 14 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 D9 27 00 90 00 74 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=58 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 06 01 00 35 04 06 00 01 C1 25 64 74 04 [09:49:52]Write to MH i2c: E2 3D 00 DA 27 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 06 01 00 35 04 06 00 01 C1 25 64 74 04 00 00 C6 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 DA 27 00 90 00 75 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 03 02 [09:49:52]Write to MH i2c: E2 08 00 DB 27 80 0D 03 02 00 00 00 00 7D [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]OFD Sender: No OFD packet to send [09:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0B 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0B 00 DB 27 00 79 B8 7F 9E 31 D4 2D 60 90 00 5E [09:49:52]RAPDU: 79 B8 7F 9E 31 D4 2D 60 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_SignData done [09:49:52]FM_MakeSignedData done [09:49:52]CreateOFDProtocolMessage [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 11 00 00 [09:49:52]Write to MH i2c: E2 08 00 DC 27 80 11 00 00 00 00 00 00 7D [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 17 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 17 00 DC 27 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:49: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:49:52]wFMCommunicate OK [09:49:52]CreateOFDProtocolMessage done [09:49:52]OFDSenderStorePacket 67213 [09:49:52]StoreOFDPacket docnum=67213 [09:49: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 3F 01 00 00 2F 21 37 01 2D AA 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 42 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 06 01 00 35 04 06 00 01 C1 25 64 74 04 79 B8 7F 9E 31 D4 2D 60 [09:49:52]CheckFolder [09:49:52]dirname=/storage/ofd_packets [09:49:52]CheckFolder done [09:49:52]ProducePacketName [09:49:52]name=ofd_packets/00067213 [09:49:52]NVStorageSaveData ofd_packets/00067213 [09:49:52]File name is /storage/ofd_packets/00067213 [09:49:52]Write 349 bytes [09:49:52]NVStorageSaveData done [09:49:52]OFDSenderStorePacket done [09:49:52]KKMCreateOFDPacket done [09:49:52]NVStorageSaveData kkm_last_timestamp [09:49:52]File name is /storage/kkm_last_timestamp [09:49:52]Write 4 bytes [09:49:52]NVStorageSaveData done [09:49:52]ExternCall_PrintAddStr [09:49:52]wPrintStart [09:49:52]Write to MH i2c: 01 00 00 DD 27 04 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 DD 27 00 00 00 00 00 FF 0F 19 [09:49:52]RasterBufferAndPrint [09:49:52]line Счет N : (3)12065 [09:49:52]line ИНН: 02508201610067 [09:49:52]line Контрольно-Кассовый Чек [09:49:52]line ПРОДАЖА [09:49:52]line Товар: 4700003010070 [09:49:52]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [09:49:52]line 1.000 * 95.00 [09:49:52]line = 95.00 [09:49:52]line НДС 12% НСП 1% [09:49:52]line > о реализуемом товаре [09:49:52]line ИТОГО: 95.00 [09:49:52]line НСП 1% : 0.84 [09:49:52]line НДС 12% : 10.09 [09:49:52]line Наличными: 95.00 [09:49:52]line Безнал.: 0.00 [09:49:52]line Место: АЗС № 91 "Партнер Нефть" [09:49:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:49:52]line СНО: Общий режим [09:49:52]line Чек 31 15.05.2024 09:49 [09:49:52]line Смена: 356 ФФД: 1.0 [09:49:52]line ЗНМ: 0300000119 [09:49:52]line РНМ: 0000000000091845 [09:49:52]line Версия ККМ: 001 [09:49:52]line ФМ: 0000000000871829 [09:49:52]line ФД: 67213 [09:49:52]line ФПД: 1929067656196 [09:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T094954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67213&fm=1929067656196&tin=02508201610067®Number=0000000000091845&sum=9500 [09:49:52]line 0 [09:49:52]OFD Sender: Processing packet 67213 [packets to send 35, broken 34] [09:49:52]ProducePacketName [09:49:52]name=ofd_packets/00067213 [09:49:52]OFD Sender: To server: pG, [09:49:52]CommunicateWithHost lk.salyk.kg:30040 [09:49:52]ConnectInit lk.salyk.kg [09:49:52]written 0, free lines is 4095 [09:49:53]Connected sock=10 [09:49: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 3F 01 00 00 2F 21 37 01 2D AA 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 42 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8D 06 01 00 35 04 06 00 01 C1 25 64 74 04 79 B8 7F 9E 31 D4 2D 60 [09:49: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 44 25 47 00 B9 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 8D 06 01 00 F4 03 04 00 20 2D 44 66 B6 04 01 00 00 7C C7 56 28 76 62 E3 2F [09:49:53]CommunicateWithHost err = 0 [09:49:53]CheckOFDResponse [09:49:53]1017 (14) - 77093643461234 [09:49:53]1041 (16) - 0000000000871829 [09:49:53]1040 (4) - 67213 [09:49:53]1012 (4) - 15.05.2024 03:33 [09:49:53]1206 (1) - 0 [09:49:53]OFD Sender: Remove packet 67213 [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00067213 [09:49:53]NVStorageDeleteData [09:49:53]Write to MH i2c: 01 00 00 05 28 2D [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 05 28 00 00 00 00 00 D5 0C 15 [09:49:53]RasterBufferAndPrint [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]line [09:49:53]written 0, free lines is 3289 [09:49:53]MH_Cut [09:49:53]Write to MH i2c: D1 01 00 0C 28 01 06 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: D1 01 00 0C 28 00 05 [09:49:53]Write to MH i2c: 01 00 00 0D 28 35 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]OFD Sender: No OFD packet to send [09:49:54]*** Cut start [09:49:54]*** Purtial cut [09:49:54]*** Stage 1: CUTSNS_PIN = 1 [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]*** Stop cut motor [09:49:54]*** Cut end [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 0D 28 00 00 00 00 00 FF 0F 4A [09:49:54]process_action close_receipt done [09:49:54]requested_data is exist [09:49:54]produce_requested_data [09:49:54]requested_item fm.sn is exist - process it [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 11 00 00 [09:49:54]Write to MH i2c: E2 08 00 0E 28 80 11 00 00 00 00 00 00 B0 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 0E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [09:49: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:49:54]wFMCommunicate OK [09:49:54]requested_item fd.num is exist - process it [09:49:54]SAM_PROTO_GetFieldsCounters [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 13 00 00 [09:49:54]Write to MH i2c: E2 08 00 0F 28 80 13 00 00 00 00 00 00 B3 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 62 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 62 00 0F 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 8D 06 01 00 0E 04 04 00 64 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 2F [09:49: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 8D 06 01 00 0E 04 04 00 64 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:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_GetFieldsCounters done [09:49:54]requested_item shift.num is exist - process it [09:49:54]requested_item shift.opened is exist - process it [09:49:54]req_shift_opened [09:49:54]FM_GetShiftState [09:49:54]SAM_PROTO_GetShiftState [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 13 01 00 [09:49:54]Write to MH i2c: E2 08 00 10 28 80 13 01 00 00 00 00 00 B5 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0E 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0E 00 10 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 60 [09:49:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_GetShiftState done [09:49:54]FM_GetShiftState done [09:49:54]req_shift_opened done [09:49:54]requested_item shift.open_date is exist - process it [09:49:54]req_shift_open_date [09:49:54]req_shift_open_date done [09:49:54]produce_requested_data done [09:49:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67213,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:49:54]process_action_free close_receipt [09:49:54]json_value_free [09:49:54]json_value_free done [09:49:54]process_json_proto returns [09:49:54]Send response to host [09:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67213,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:49:54]free response buf [09:49:54]execute_script done [09:49:54]execute_script returns [09:49:54]free content buf [09:49:54]Sock 9.Close socket [09:49:54]Sock 9.Thread stoped [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:14]accept exits with 7 [09:51:14]New connection [09:51:14]New thread 3066731876 created [09:51:14]Thread 3066588516 joined [09:51:14]Waiting for new connection... [09:51:14] Sock 7.Parse request [09:51:14]Sock 7.Check first char [09:51:14]Sock 7.First char is OK [09:51:14]request: POST /json_proto HTTP/1.0 [09:51:14]Method: POST [09:51:14]URL: /json_proto [09:51:14]Method is POST - this is cgi request [09:51:14]url: /json_proto [09:51:14]query_string will be loaded in cgi processing [09:51:14]execute_cgi json_proto POST (null) [09:51:14]execute_cgi path=json_proto method=POST [09:51:14]POST find Content-Length [09:51:14]Host: 172.17.41.195:8080 [09:51:14]Content-Length: 1207 [09:51:14]Content-Type: application/json [09:51:14] [09:51:14]POST finish read [09:51:14]Found Content-Length = 1207 [09:51: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)507158\u000A15.05.2024 09:33\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 8.040 x 74.70\u000A\u0418\u0422\u041E\u0413: 600.59\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:51:14]execute_script... [09:51: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)507158\u000A15.05.2024 09:33\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 8.040 x 74.70\u000A\u0418\u0422\u041E\u0413: 600.59\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:51:14]POST & json_proto [09:51:14]process_json_proto [09:51:14]json parsed OK: [09:51:14]protocol is kg_v1.0 [09:51:14]action value=print_text [09:51:14]process_action print_text [09:51:14]cmd_print_text [09:51:14]ExternCall_PrintAddStr [09:51:14]wPrintStart [09:51:14]Write to MH i2c: 01 00 00 11 28 39 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 07 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 07 00 11 28 00 00 00 00 00 FF 0F 4E [09:51:14]RasterBufferAndPrint [09:51:14]line *****ТОВАРНЫЙ ЧЕК***** [09:51:14]line АЗС-91 [09:51:14]line Партнер нефть [09:51:14]line 02508201610067 [09:51:14]line Кассир : Арстанбеков Н. [09:51:14]line Счет N : (1)507158 [09:51:14]line 15.05.2024 09:33 [09:51:14]line ПРОДАЖА [09:51:14]line ТРК (МРК, ГНК): 31 [09:51:14]line Вид ГСМ : 2710194210 [09:51:14]line ДТ-К-5 [09:51:14]line 8.040 x 74.70 [09:51:14]line ИТОГ: 600.59 [09:51:14]line Тип оплаты: Талоны: Топливная Карта [09:51:14]line 02750 [09:51:14]line ______________________ [09:51:14]line (подпись) [09:51:14]written 0, free lines is 4095 [09:51:14]Write to MH i2c: 01 00 00 25 28 4D [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 07 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: 01 07 00 25 28 00 00 00 00 00 0E 0E 70 [09:51:14]RasterBufferAndPrint [09:51:14]line [09:51:14]line [09:51:14]line [09:51:14]line [09:51:14]line [09:51:14]written 0, free lines is 3600 [09:51:14]MH_Cut [09:51:14]Write to MH i2c: D1 01 00 2C 28 01 26 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: D1 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: D1 01 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: D1 01 00 2C 28 00 25 [09:51:14]Write to MH i2c: 01 00 00 2D 28 55 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:15]*** Cut start [09:51:15]*** Purtial cut [09:51:15]*** CUTSNS_PIN = 0 [09:51:15]*** Stage 1: CUTSNS_PIN = 1 [09:51:17]Read from MH i2c: 01 [09:51:17]MH_I2C_Read... [09:51:17]*** Stop cut motor [09:51:17]*** Cut end [09:51:17]Read from MH i2c: 01 07 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 2D 28 00 00 00 00 00 FF 0F 6A [09:51:17]process_action print_text done [09:51:17]requested_data is exist [09:51:17]produce_requested_data [09:51:17]requested_item fm.sn is exist - process it [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 11 00 00 [09:51:17]Write to MH i2c: E2 08 00 2E 28 80 11 00 00 00 00 00 00 D0 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 17 00 2E 28 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:51:17]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:17]wFMCommunicate OK [09:51:17]requested_item fd.num is exist - process it [09:51:17]SAM_PROTO_GetFieldsCounters [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 13 00 00 [09:51:17]Write to MH i2c: E2 08 00 2F 28 80 13 00 00 00 00 00 00 D3 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 62 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 62 00 2F 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 8D 06 01 00 0E 04 04 00 64 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 4F [09:51: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 8D 06 01 00 0E 04 04 00 64 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:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_GetFieldsCounters done [09:51:17]requested_item shift.num is exist - process it [09:51:17]requested_item shift.opened is exist - process it [09:51:17]req_shift_opened [09:51:17]FM_GetShiftState [09:51:17]SAM_PROTO_GetShiftState [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 13 01 00 [09:51:17]Write to MH i2c: E2 08 00 30 28 80 13 01 00 00 00 00 00 D5 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 30 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 80 [09:51:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_GetShiftState done [09:51:17]FM_GetShiftState done [09:51:17]req_shift_opened done [09:51:17]requested_item shift.open_date is exist - process it [09:51:17]req_shift_open_date [09:51:17]req_shift_open_date done [09:51:17]produce_requested_data done [09:51:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67213,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:51:17]process_action_free print_text [09:51:17]json_value_free [09:51:17]json_value_free done [09:51:17]process_json_proto returns [09:51:17]Send response to host [09:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67213,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:51:17]free response buf [09:51:17]execute_script done [09:51:17]execute_script returns [09:51:17]free content buf [09:51:17]Sock 7.Close socket [09:51:17]Sock 7.Thread stoped [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:32]accept exits with 9 [09:51:32]New connection [09:51:32]New thread 3066588516 created [09:51:32]Thread 3066731876 joined [09:51:32]Waiting for new connection... [09:51:32] Sock 9.Parse request [09:51:32]Sock 9.Check first char [09:51:32]Sock 9.First char is OK [09:51:32]request: POST /json_proto HTTP/1.0 [09:51:32]Method: POST [09:51:32]URL: /json_proto [09:51:32]Method is POST - this is cgi request [09:51:32]url: /json_proto [09:51:32]query_string will be loaded in cgi processing [09:51:32]execute_cgi json_proto POST (null) [09:51:32]execute_cgi path=json_proto method=POST [09:51:32]POST find Content-Length [09:51:32]Host: 172.17.41.195:8080 [09:51:32]Content-Length: 800 [09:51:32]Content-Type: application/json [09:51:32] [09:51:32]POST finish read [09:51:32]Found Content-Length = 800 [09:51:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507159", "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" ] } } [09:51:32]execute_script... [09:51:32]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)507159", "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" ] } } [09:51:32]POST & json_proto [09:51:32]process_json_proto [09:51:32]json parsed OK: [09:51:32]protocol is kg_v1.0 [09:51:32]action value=close_receipt [09:51:32]process_action close_receipt [09:51:32]cmd_close_receipt [09:51:32]MH_GetDate [09:51:32]Write to MH i2c: F0 00 00 31 28 48 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 09 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: F0 09 00 31 28 00 A8 85 44 66 FC 21 6F 64 18 [09:51:32]GetLastDocTimeStamp 1715766594 [09:51:32]current date 1715766696 [09:51:32]FM_GetShiftState [09:51:32]SAM_PROTO_GetShiftState [09:51:32]wFMCommunicate request_size=4 [09:51:32]MH_SAM_APDU [09:51:32]CAPDU: 80 13 01 00 [09:51:32]Write to MH i2c: E2 08 00 32 28 80 13 01 00 00 00 00 00 D7 [09:51:32]Write i2c OK [09:51:32]MH_I2C_Read... [09:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:32]Read from MH i2c: E2 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: E2 0E 00 [09:51:32]MH_I2C_Read... [09:51:32]Read from MH i2c: E2 0E 00 32 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 82 [09:51:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:51:32]wFMCommunicate OK [09:51:32]SAM_PROTO_GetShiftState done [09:51:32]FM_GetShiftState done [09:51:32]opened in 1715732471 [09:51:32]opened+sec_in_day 1715818871 [09:51:32]quantity*price = 50033 [09:51:32]sum+1 = 50034 [09:51:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 32 15.05.2024 09:51 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67214 ФПД: 71965985063512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095136&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67214&fm=71965985063512&tin=02508201610067®Number=0000000000091845&sum=50033 [09:51:33]StoreToDocumentArchive [09:51:33]shift 356 fd 67214 [09:51:33]save to /storage/0356/doc_00067214 [09:51:33]save last doc name /storage/0356/doc_00067214 to /storage/kkm_last_doc_name [09:51:33]save OK [09:51:33]Clear old archive folders... [09:51:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:33]tlvbuf is B6F22230 [09:51:33]SAM_PROTO_ClearQueue [09:51:33]wFMCommunicate request_size=4 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 09 00 00 [09:51:33]Write to MH i2c: E2 08 00 3F 28 80 09 00 00 00 00 00 00 D9 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]SAM_PROTO_ClearQueue done [09:51:33]KKMCreateOFDPacket [09:51:33]OFDProtocolAddRootSTLVToBuf [09:51:33]FM_MakeSignedData [09:51:33]FM_MakeSignedData [09:51:33]SAM_PROTO_SignData [09:51:33]wFMCommunicate request_size=4 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 0D 01 02 [09:51:33]Write to MH i2c: E2 08 00 40 28 80 0D 01 02 00 00 00 00 E1 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 40 28 00 90 00 DC [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]wFMCommunicate request_size=255 [09:51:33]MH_SAM_APDU [09:51: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 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 20 00 00 00 F4 03 04 00 A8 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 06 01 00 35 04 06 00 41 [09:51:33]Write to MH i2c: E2 02 01 41 28 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 20 00 00 00 F4 03 04 00 A8 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 06 01 00 35 04 06 00 41 00 00 E0 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]OFD Sender: No OFD packet to send [09:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]wFMCommunicate request_size=10 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 0D 02 02 05 73 E2 F9 C2 58 [09:51:33]Write to MH i2c: E2 0D 00 42 28 80 0D 02 02 05 00 73 E2 F9 C2 58 00 00 56 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [09:51:33]RAPDU: 90 00 [09:51:33]wFMCommunicate OK [09:51:33]wFMCommunicate request_size=4 [09:51:33]MH_SAM_APDU [09:51:33]CAPDU: 80 0D 03 02 [09:51:33]Write to MH i2c: E2 08 00 43 28 80 0D 03 02 00 00 00 00 E6 [09:51:33]Write i2c OK [09:51:33]MH_I2C_Read... [09:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:33]Read from MH i2c: E2 [09:51:33]MH_I2C_Read... [09:51:33]Read from MH i2c: E2 0B 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0B 00 43 28 00 CC AF 87 15 03 FA 5C 1C 90 00 73 [09:51:34]RAPDU: CC AF 87 15 03 FA 5C 1C 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_SignData done [09:51:34]FM_MakeSignedData done [09:51:34]CreateOFDProtocolMessage [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 11 00 00 [09:51:34]Write to MH i2c: E2 08 00 44 28 80 11 00 00 00 00 00 00 E6 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 44 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [09:51:34]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:34]wFMCommunicate OK [09:51:34]CreateOFDProtocolMessage done [09:51:34]OFDSenderStorePacket 67214 [09:51:34]StoreOFDPacket docnum=67214 [09:51: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 0F 01 00 00 5E C6 07 01 43 D6 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 20 00 00 00 F4 03 04 00 A8 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 06 01 00 35 04 06 00 41 73 E2 F9 C2 58 CC AF 87 15 03 FA 5C 1C [09:51:34]CheckFolder [09:51:34]dirname=/storage/ofd_packets [09:51:34]CheckFolder done [09:51:34]ProducePacketName [09:51:34]name=ofd_packets/00067214 [09:51:34]NVStorageSaveData ofd_packets/00067214 [09:51:34]File name is /storage/ofd_packets/00067214 [09:51:34]Write 301 bytes [09:51:34]NVStorageSaveData done [09:51:34]OFDSenderStorePacket done [09:51:34]KKMCreateOFDPacket done [09:51:34]NVStorageSaveData kkm_last_timestamp [09:51:34]File name is /storage/kkm_last_timestamp [09:51:34]Write 4 bytes [09:51:34]NVStorageSaveData done [09:51:34]ExternCall_PrintAddStr [09:51:34]wPrintStart [09:51:34]Write to MH i2c: 01 00 00 45 28 6D [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FF 0F 82 [09:51:34]RasterBufferAndPrint [09:51:34]line Счет N : (1)507159 [09:51:34]line ИНН: 02508201610067 [09:51:34]line Контрольно-Кассовый Чек [09:51:34]line ПРОДАЖА [09:51:34]line ТРК (МРК, ГНК) : 13 [09:51:34]line Товар: 2710124130 [09:51:34]line Аи-92-К-5 [09:51:34]line 7.490 * 66.80 [09:51:34]line = 500.33 [09:51:34]line НДС 12% НСП 1% [09:51:34]line > о реализуемом товаре [09:51:34]line ИТОГО: 500.33 [09:51:34]line НСП 1% : 4.43 [09:51:34]line НДС 12% : 53.13 [09:51:34]line Наличными: 0.00 [09:51:34]line Безнал.: 500.33 [09:51:34]line Место: АЗС № 91 "Партнер Нефть" [09:51:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:51:34]line СНО: Общий режим [09:51:34]line Чек 32 15.05.2024 09:51 [09:51:34]line Смена: 356 ФФД: 1.0 [09:51:34]line ЗНМ: 0300000119 [09:51:34]line РНМ: 0000000000091845 [09:51:34]line Версия ККМ: 001 [09:51:34]line Платежная система: O! деньги [09:51:34]line ФМ: 0000000000871829 [09:51:34]line ФД: 67214 [09:51:34]line ФПД: 71965985063512 [09:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095136&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67214&fm=71965985063512&tin=02508201610067®Number=0000000000091845&sum=50033 [09:51:34]written 0, free lines is 4095 [09:51:34]OFD Sender: Processing packet 67214 [packets to send 35, broken 34] [09:51:34]ProducePacketName [09:51:34]name=ofd_packets/00067214 [09:51:34]OFD Sender: To server: pG, [09:51:34]CommunicateWithHost lk.salyk.kg:30040 [09:51:34]ConnectInit lk.salyk.kg [09:51:34]Connected sock=10 [09:51:34]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 5E C6 07 01 43 D6 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 20 00 00 00 F4 03 04 00 A8 85 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8E 06 01 00 35 04 06 00 41 73 E2 F9 C2 58 CC AF 87 15 03 FA 5C 1C [09:51: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 CA 8A 47 00 41 39 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 8E 06 01 00 F4 03 04 00 85 2D 44 66 B6 04 01 00 00 B0 FA 05 80 6C 89 A0 06 [09:51:34]CommunicateWithHost err = 0 [09:51:34]CheckOFDResponse [09:51:34]1017 (14) - 77093643461234 [09:51:34]1041 (16) - 0000000000871829 [09:51:34]1040 (4) - 67214 [09:51:34]1012 (4) - 15.05.2024 03:35 [09:51:34]1206 (1) - 0 [09:51:34]OFD Sender: Remove packet 67214 [09:51:34]ProducePacketName [09:51:34]name=ofd_packets/00067214 [09:51:34]NVStorageDeleteData [09:51:34]Write to MH i2c: 01 00 00 6E 28 96 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 6E 28 00 00 00 00 00 E4 0C 8D [09:51:34]RasterBufferAndPrint [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]line [09:51:34]written 0, free lines is 3306 [09:51:34]MH_Cut [09:51:34]Write to MH i2c: D1 01 00 75 28 01 6F [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: D1 01 00 75 28 00 6E [09:51:34]Write to MH i2c: 01 00 00 76 28 9E [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:35]OFD Sender: No OFD packet to send [09:51:35]*** Cut start [09:51:35]*** Purtial cut [09:51:35]*** Stage 1: CUTSNS_PIN = 1 [09:51:35]Read from MH i2c: 01 [09:51:35]MH_I2C_Read... [09:51:35]*** Stop cut motor [09:51:35]*** Cut end [09:51:35]Read from MH i2c: 01 07 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: 01 07 00 76 28 00 00 00 00 00 FF 0F B3 [09:51:35]process_action close_receipt done [09:51:35]requested_data is exist [09:51:35]produce_requested_data [09:51:35]requested_item fm.sn is exist - process it [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 11 00 00 [09:51:35]Write to MH i2c: E2 08 00 77 28 80 11 00 00 00 00 00 00 19 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 77 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [09:51:36]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:36]wFMCommunicate OK [09:51:36]requested_item fd.num is exist - process it [09:51:36]SAM_PROTO_GetFieldsCounters [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 00 00 [09:51:36]Write to MH i2c: E2 08 00 78 28 80 13 00 00 00 00 00 00 1C [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 62 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 62 00 78 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 8E 06 01 00 0E 04 04 00 64 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 9C [09:51: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 8E 06 01 00 0E 04 04 00 64 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:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetFieldsCounters done [09:51:36]requested_item shift.num is exist - process it [09:51:36]requested_item shift.opened is exist - process it [09:51:36]req_shift_opened [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 79 28 80 13 01 00 00 00 00 00 1E [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 79 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [09:51:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetShiftState done [09:51:36]FM_GetShiftState done [09:51:36]req_shift_opened done [09:51:36]requested_item shift.open_date is exist - process it [09:51:36]req_shift_open_date [09:51:36]req_shift_open_date done [09:51:36]produce_requested_data done [09:51:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67214,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:51:36]process_action_free close_receipt [09:51:36]json_value_free [09:51:36]json_value_free done [09:51:36]process_json_proto returns [09:51:36]Send response to host [09:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67214,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:51:36]free response buf [09:51:36]execute_script done [09:51:36]execute_script returns [09:51:36]free content buf [09:51:36]Sock 9.Close socket [09:51:36]Sock 9.Thread stoped [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:14]accept exits with 7 [09:53:14]New connection [09:53:14]New thread 3066731876 created [09:53:14]Thread 3066588516 joined [09:53:14]Waiting for new connection... [09:53:14] Sock 7.Parse request [09:53:14]Sock 7.Check first char [09:53:14]Sock 7.First char is OK [09:53:14]request: POST /json_proto HTTP/1.0 [09:53:14]Method: POST [09:53:14]URL: /json_proto [09:53:14]Method is POST - this is cgi request [09:53:14]url: /json_proto [09:53:14]query_string will be loaded in cgi processing [09:53:14]execute_cgi json_proto POST (null) [09:53:14]execute_cgi path=json_proto method=POST [09:53:14]POST find Content-Length [09:53:14]Host: 172.17.41.195:8080 [09:53:14]Content-Length: 1209 [09:53:14]Content-Type: application/json [09:53:14] [09:53:14]POST finish read [09:53:14]Found Content-Length = 1209 [09:53: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)507160\u000A15.05.2024 09:35\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 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" ] } } [09:53:14]execute_script... [09:53: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)507160\u000A15.05.2024 09:35\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 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" ] } } [09:53:14]POST & json_proto [09:53:14]process_json_proto [09:53:14]json parsed OK: [09:53:14]protocol is kg_v1.0 [09:53:14]action value=print_text [09:53:14]process_action print_text [09:53:14]cmd_print_text [09:53:14]ExternCall_PrintAddStr [09:53:14]wPrintStart [09:53:14]Write to MH i2c: 01 00 00 7A 28 A2 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 7A 28 00 00 00 00 00 FF 0F B7 [09:53:14]RasterBufferAndPrint [09:53:14]line *****ТОВАРНЫЙ ЧЕК***** [09:53:14]line АЗС-91 [09:53:14]line Партнер нефть [09:53:14]line 02508201610067 [09:53:14]line Кассир : Арстанбеков Н. [09:53:14]line Счет N : (1)507160 [09:53:14]line 15.05.2024 09:35 [09:53:14]line ПРОДАЖА [09:53:14]line ТРК (МРК, ГНК): 41 [09:53:14]line Вид ГСМ : 2710194210 [09:53:14]line ДТ-К-5 [09:53:14]line 22.760 x 74.70 [09:53:14]line ИТОГ: 1700.17 [09:53:14]line Тип оплаты: Талоны: Топливная Карта [09:53:14]line 02750 [09:53:14]line ______________________ [09:53:14]line (подпись) [09:53:14]written 0, free lines is 4095 [09:53:14]Write to MH i2c: 01 00 00 8E 28 B6 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 8E 28 00 00 00 00 00 0F 0E DA [09:53:14]RasterBufferAndPrint [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]written 0, free lines is 3601 [09:53:14]MH_Cut [09:53:14]Write to MH i2c: D1 01 00 95 28 01 8F [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 95 28 00 8E [09:53:14]Write to MH i2c: 01 00 00 96 28 BE [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** Cut start [09:53:14]*** Purtial cut [09:53:14]*** CUTSNS_PIN = 0 [09:53:15]*** Stage 1: CUTSNS_PIN = 1 [09:53:15]OFD Sender: No OFD packet to send [09:53:16]Read from MH i2c: 01 [09:53:16]MH_I2C_Read... [09:53:16]*** Stop cut motor [09:53:16]*** Cut end [09:53:16]Read from MH i2c: 01 07 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 96 28 00 00 00 00 00 FF 0F D3 [09:53:16]process_action print_text done [09:53:16]requested_data is exist [09:53:16]produce_requested_data [09:53:16]requested_item fm.sn is exist - process it [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 11 00 00 [09:53:16]Write to MH i2c: E2 08 00 97 28 80 11 00 00 00 00 00 00 39 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 17 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 17 00 97 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [09:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:53:17]wFMCommunicate OK [09:53:17]requested_item fd.num is exist - process it [09:53:17]SAM_PROTO_GetFieldsCounters [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 13 00 00 [09:53:17]Write to MH i2c: E2 08 00 98 28 80 13 00 00 00 00 00 00 3C [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 62 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 62 00 98 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 8E 06 01 00 0E 04 04 00 64 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 BC [09:53: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 8E 06 01 00 0E 04 04 00 64 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:53:17]wFMCommunicate OK [09:53:17]SAM_PROTO_GetFieldsCounters done [09:53:17]requested_item shift.num is exist - process it [09:53:17]requested_item shift.opened is exist - process it [09:53:17]req_shift_opened [09:53:17]FM_GetShiftState [09:53:17]SAM_PROTO_GetShiftState [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 13 01 00 [09:53:17]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 0E 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E9 [09:53:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:53:17]wFMCommunicate OK [09:53:17]SAM_PROTO_GetShiftState done [09:53:17]FM_GetShiftState done [09:53:17]req_shift_opened done [09:53:17]requested_item shift.open_date is exist - process it [09:53:17]req_shift_open_date [09:53:17]req_shift_open_date done [09:53:17]produce_requested_data done [09:53:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67214,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:53:17]process_action_free print_text [09:53:17]json_value_free [09:53:17]json_value_free done [09:53:17]process_json_proto returns [09:53:17]Send response to host [09:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67214,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:53:17]free response buf [09:53:17]execute_script done [09:53:17]execute_script returns [09:53:17]free content buf [09:53:17]Sock 7.Close socket [09:53:17]Sock 7.Thread stoped [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:06]accept exits with 9 [09:56:06]New connection [09:56:06]New thread 3066588516 created [09:56:06]Thread 3066731876 joined [09:56:06]Waiting for new connection... [09:56:06] Sock 9.Parse request [09:56:06]Sock 9.Check first char [09:56:06]Sock 9.First char is OK [09:56:06]request: POST /json_proto HTTP/1.0 [09:56:06]Method: POST [09:56:06]URL: /json_proto [09:56:06]Method is POST - this is cgi request [09:56:06]url: /json_proto [09:56:06]query_string will be loaded in cgi processing [09:56:06]execute_cgi json_proto POST (null) [09:56:06]execute_cgi path=json_proto method=POST [09:56:06]POST find Content-Length [09:56:06]Host: 172.17.41.195:8080 [09:56:06]Content-Length: 677 [09:56:06]Content-Type: application/json [09:56:06] [09:56:06]POST finish read [09:56:06]Found Content-Length = 677 [09:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507161", "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" : 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" ] } } [09:56:06]execute_script... [09:56: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)507161", "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" : 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" ] } } [09:56:06]POST & json_proto [09:56:06]process_json_proto [09:56:06]json parsed OK: [09:56:06]protocol is kg_v1.0 [09:56:06]action value=close_receipt [09:56:06]process_action close_receipt [09:56:06]cmd_close_receipt [09:56:06]MH_GetDate [09:56:06]Write to MH i2c: F0 00 00 9A 28 B1 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: F0 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: F0 09 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: F0 09 00 9A 28 00 BA 86 44 66 FC 21 6F 64 94 [09:56:07]GetLastDocTimeStamp 1715766696 [09:56:07]current date 1715766970 [09:56:07]FM_GetShiftState [09:56:07]SAM_PROTO_GetShiftState [09:56:07]wFMCommunicate request_size=4 [09:56:07]MH_SAM_APDU [09:56:07]CAPDU: 80 13 01 00 [09:56:07]Write to MH i2c: E2 08 00 9B 28 80 13 01 00 00 00 00 00 40 [09:56:07]Write i2c OK [09:56:07]MH_I2C_Read... [09:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:07]Read from MH i2c: E2 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 [09:56:07]MH_I2C_Read... [09:56:07]Read from MH i2c: E2 0E 00 9B 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EB [09:56:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:56:07]wFMCommunicate OK [09:56:07]SAM_PROTO_GetShiftState done [09:56:07]FM_GetShiftState done [09:56:07]opened in 1715732471 [09:56:07]opened+sec_in_day 1715818871 [09:56:07]quantity*price = 30060 [09:56:07]sum+1 = 30061 [09:56:07]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 СНО: Общий режим Чек 33 15.05.2024 09:56 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67215 ФПД: 33279169013597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095610&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67215&fm=33279169013597&tin=02508201610067®Number=0000000000091845&sum=30000 [09:56:08]StoreToDocumentArchive [09:56:08]shift 356 fd 67215 [09:56:08]save to /storage/0356/doc_00067215 [09:56:08]save last doc name /storage/0356/doc_00067215 to /storage/kkm_last_doc_name [09:56:08]save OK [09:56:08]Clear old archive folders... [09:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:08]tlvbuf is 003B38D0 [09:56:08]SAM_PROTO_ClearQueue [09:56:08]wFMCommunicate request_size=4 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 09 00 00 [09:56:08]Write to MH i2c: E2 08 00 A8 28 80 09 00 00 00 00 00 00 42 [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:08]Read from MH i2c: E2 03 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [09:56:08]RAPDU: 90 00 [09:56:08]wFMCommunicate OK [09:56:08]SAM_PROTO_ClearQueue done [09:56:08]KKMCreateOFDPacket [09:56:08]OFDProtocolAddRootSTLVToBuf [09:56:08]FM_MakeSignedData [09:56:08]FM_MakeSignedData [09:56:08]SAM_PROTO_SignData [09:56:08]wFMCommunicate request_size=4 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 0D 01 02 [09:56:08]Write to MH i2c: E2 08 00 A9 28 80 0D 01 02 00 00 00 00 4A [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [09:56:08]RAPDU: 90 00 [09:56:08]wFMCommunicate OK [09:56:08]wFMCommunicate request_size=255 [09:56:08]MH_SAM_APDU [09:56:08]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 21 00 00 00 F4 03 04 00 BA 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 06 01 00 35 04 06 00 1E [09:56:08]Write to MH i2c: E2 02 01 AA 28 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 21 00 00 00 F4 03 04 00 BA 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 06 01 00 35 04 06 00 1E 00 00 0E [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 AA 28 00 90 00 46 [09:56:08]RAPDU: 90 00 [09:56:08]wFMCommunicate OK [09:56:08]wFMCommunicate request_size=10 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 0D 02 02 05 44 69 0C 27 5D [09:56:08]Write to MH i2c: E2 0D 00 AB 28 80 0D 02 02 05 00 44 69 0C 27 5D 00 00 94 [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 03 00 AB 28 00 90 00 47 [09:56:08]RAPDU: 90 00 [09:56:08]wFMCommunicate OK [09:56:08]wFMCommunicate request_size=4 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 0D 03 02 [09:56:08]Write to MH i2c: E2 08 00 AC 28 80 0D 03 02 00 00 00 00 4F [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 0B 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 0B 00 AC 28 00 38 3E C6 F4 8B 9E BA 8F 90 00 F2 [09:56:08]RAPDU: 38 3E C6 F4 8B 9E BA 8F 90 00 [09:56:08]wFMCommunicate OK [09:56:08]SAM_PROTO_SignData done [09:56:08]FM_MakeSignedData done [09:56:08]CreateOFDProtocolMessage [09:56:08]wFMCommunicate request_size=4 [09:56:08]MH_SAM_APDU [09:56:08]CAPDU: 80 11 00 00 [09:56:08]Write to MH i2c: E2 08 00 AD 28 80 11 00 00 00 00 00 00 4F [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:08]Read from MH i2c: E2 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 17 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: E2 17 00 AD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [09:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:56:08]wFMCommunicate OK [09:56:08]CreateOFDProtocolMessage done [09:56:08]OFDSenderStorePacket 67215 [09:56:08]StoreOFDPacket docnum=67215 [09:56: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 70 6F 07 01 04 72 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 21 00 00 00 F4 03 04 00 BA 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 06 01 00 35 04 06 00 1E 44 69 0C 27 5D 38 3E C6 F4 8B 9E BA 8F [09:56:08]CheckFolder [09:56:08]dirname=/storage/ofd_packets [09:56:08]CheckFolder done [09:56:08]ProducePacketName [09:56:08]name=ofd_packets/00067215 [09:56:08]NVStorageSaveData ofd_packets/00067215 [09:56:08]File name is /storage/ofd_packets/00067215 [09:56:08]Write 301 bytes [09:56:08]NVStorageSaveData done [09:56:08]OFDSenderStorePacket done [09:56:08]KKMCreateOFDPacket done [09:56:08]NVStorageSaveData kkm_last_timestamp [09:56:08]File name is /storage/kkm_last_timestamp [09:56:08]Write 4 bytes [09:56:08]NVStorageSaveData done [09:56:08]ExternCall_PrintAddStr [09:56:08]wPrintStart [09:56:08]Write to MH i2c: 01 00 00 AE 28 D6 [09:56:08]Write i2c OK [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: 01 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: 01 07 00 [09:56:08]MH_I2C_Read... [09:56:08]Read from MH i2c: 01 07 00 AE 28 00 00 00 00 00 FF 0F EB [09:56:08]RasterBufferAndPrint [09:56:08]line Счет N : (1)507161 [09:56:08]line ИНН: 02508201610067 [09:56:08]line Контрольно-Кассовый Чек [09:56:08]line ПРОДАЖА [09:56:08]line ТРК (МРК, ГНК) : 33 [09:56:08]line Товар: 2710124130 [09:56:08]line Аи-92-К-5 [09:56:08]line 4.500 * 66.80 [09:56:08]line = 300.60 [09:56:08]line НДС 12% НСП 1% [09:56:08]line > о реализуемом товаре [09:56:08]line ОКРУГЛЕНИЕ: -0.60 [09:56:08]line ИТОГО: 300.00 [09:56:08]line Внесено: 300.00 [09:56:08]line СДАЧА: 0.00 [09:56:08]line НСП 1% : 2.66 [09:56:08]line НДС 12% : 31.92 [09:56:08]line Наличными: 300.00 [09:56:08]line Безнал.: 0.00 [09:56:08]line Место: АЗС № 91 "Партнер Нефть" [09:56:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:56:08]line СНО: Общий режим [09:56:08]line Чек 33 15.05.2024 09:56 [09:56:08]line Смена: 356 ФФД: 1.0 [09:56:08]line ЗНМ: 0300000119 [09:56:08]line РНМ: 0000000000091845 [09:56:08]line Версия ККМ: 001 [09:56:08]line ФМ: 0000000000871829 [09:56:08]line ФД: 67215 [09:56:08]line ФПД: 33279169013597 [09:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095610&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67215&fm=33279169013597&tin=02508201610067®Number=0000000000091845&sum=30000 [09:56:09]written 0, free lines is 4095 [09:56:09]OFD Sender: Processing packet 67215 [packets to send 35, broken 34] [09:56:09]ProducePacketName [09:56:09]name=ofd_packets/00067215 [09:56:09]OFD Sender: To server: pG, [09:56:09]CommunicateWithHost lk.salyk.kg:30040 [09:56:09]ConnectInit lk.salyk.kg [09:56:09]Connected sock=10 [09:56: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 70 6F 07 01 04 72 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 21 00 00 00 F4 03 04 00 BA 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 8F 06 01 00 35 04 06 00 1E 44 69 0C 27 5D 38 3E C6 F4 8B 9E BA 8F [09:56: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 64 AF 47 00 85 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 8F 06 01 00 F4 03 04 00 98 2E 44 66 B6 04 01 00 00 33 BC 27 5D 9F 2D 21 2B [09:56:09]CommunicateWithHost err = 0 [09:56:09]CheckOFDResponse [09:56:09]1017 (14) - 77093643461234 [09:56:09]1041 (16) - 0000000000871829 [09:56:09]1040 (4) - 67215 [09:56:09]1012 (4) - 15.05.2024 03:40 [09:56:09]1206 (1) - 0 [09:56:09]OFD Sender: Remove packet 67215 [09:56:09]ProducePacketName [09:56:09]name=ofd_packets/00067215 [09:56:09]NVStorageDeleteData [09:56:09]Write to MH i2c: 01 00 00 D8 28 00 [09:56:09]Write i2c OK [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: 01 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: 01 07 00 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: 01 07 00 D8 28 00 00 00 00 00 C9 0C DC [09:56:09]RasterBufferAndPrint [09:56:09]line [09:56:09]line [09:56:09]line [09:56:09]line [09:56:09]line [09:56:09]written 0, free lines is 3281 [09:56:09]MH_Cut [09:56:09]Write to MH i2c: D1 01 00 DF 28 01 D9 [09:56:09]Write i2c OK [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: D1 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: D1 01 00 [09:56:09]MH_I2C_Read... [09:56:09]Read from MH i2c: D1 01 00 DF 28 00 D8 [09:56:09]Write to MH i2c: 01 00 00 E0 28 08 [09:56:09]Write i2c OK [09:56:09]MH_I2C_Read... [09:56:09]OFD Sender: No OFD packet to send [09:56:10]*** Cut start [09:56:10]*** Purtial cut [09:56:10]*** Stage 1: CUTSNS_PIN = 1 [09:56:10]Read from MH i2c: 01 [09:56:10]MH_I2C_Read... [09:56:10]*** Stop cut motor [09:56:10]*** Cut end [09:56:10]Read from MH i2c: 01 07 00 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 FF 0F 1D [09:56:10]process_action close_receipt done [09:56:10]requested_data is exist [09:56:10]produce_requested_data [09:56:10]requested_item fm.sn is exist - process it [09:56:10]wFMCommunicate request_size=4 [09:56:10]MH_SAM_APDU [09:56:10]CAPDU: 80 11 00 00 [09:56:10]Write to MH i2c: E2 08 00 E1 28 80 11 00 00 00 00 00 00 83 [09:56:10]Write i2c OK [09:56:10]MH_I2C_Read... [09:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:10]Read from MH i2c: E2 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 17 00 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 17 00 E1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [09:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:56:10]wFMCommunicate OK [09:56:10]requested_item fd.num is exist - process it [09:56:10]SAM_PROTO_GetFieldsCounters [09:56:10]wFMCommunicate request_size=4 [09:56:10]MH_SAM_APDU [09:56:10]CAPDU: 80 13 00 00 [09:56:10]Write to MH i2c: E2 08 00 E2 28 80 13 00 00 00 00 00 00 86 [09:56:10]Write i2c OK [09:56:10]MH_I2C_Read... [09:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:10]Read from MH i2c: E2 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 62 00 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 62 00 E2 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 8F 06 01 00 0E 04 04 00 64 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 0A [09:56: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 8F 06 01 00 0E 04 04 00 64 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 [09:56:10]wFMCommunicate OK [09:56:10]SAM_PROTO_GetFieldsCounters done [09:56:10]requested_item shift.num is exist - process it [09:56:10]requested_item shift.opened is exist - process it [09:56:10]req_shift_opened [09:56:10]FM_GetShiftState [09:56:10]SAM_PROTO_GetShiftState [09:56:10]wFMCommunicate request_size=4 [09:56:10]MH_SAM_APDU [09:56:10]CAPDU: 80 13 01 00 [09:56:10]Write to MH i2c: E2 08 00 E3 28 80 13 01 00 00 00 00 00 88 [09:56:10]Write i2c OK [09:56:10]MH_I2C_Read... [09:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:10]Read from MH i2c: E2 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 0E 00 [09:56:10]MH_I2C_Read... [09:56:10]Read from MH i2c: E2 0E 00 E3 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 33 [09:56:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:56:10]wFMCommunicate OK [09:56:10]SAM_PROTO_GetShiftState done [09:56:10]FM_GetShiftState done [09:56:10]req_shift_opened done [09:56:10]requested_item shift.open_date is exist - process it [09:56:10]req_shift_open_date [09:56:10]req_shift_open_date done [09:56:10]produce_requested_data done [09:56:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67215,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:56:10]process_action_free close_receipt [09:56:10]json_value_free [09:56:10]json_value_free done [09:56:10]process_json_proto returns [09:56:10]Send response to host [09:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67215,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:56:10]free response buf [09:56:10]execute_script done [09:56:10]execute_script returns [09:56:10]free content buf [09:56:10]Sock 9.Close socket [09:56:10]Sock 9.Thread stoped [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:58]accept exits with 7 [09:56:58]New connection [09:56:58]New thread 3066731876 created [09:56:58]Thread 3066588516 joined [09:56:58]Waiting for new connection... [09:56:58] Sock 7.Parse request [09:56:58]Sock 7.Check first char [09:56:58]Sock 7.First char is OK [09:56:58]request: POST /json_proto HTTP/1.0 [09:56:58]Method: POST [09:56:58]URL: /json_proto [09:56:58]Method is POST - this is cgi request [09:56:58]url: /json_proto [09:56:58]query_string will be loaded in cgi processing [09:56:58]execute_cgi json_proto POST (null) [09:56:58]execute_cgi path=json_proto method=POST [09:56:58]POST find Content-Length [09:56:58]Host: 172.17.41.195:8080 [09:56:58]Content-Length: 803 [09:56:58]Content-Type: application/json [09:56:58] [09:56:58]POST finish read [09:56:58]Found Content-Length = 803 [09:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507162", "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" : 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" ] } } [09:56:58]execute_script... [09:56: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)507162", "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" : 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" ] } } [09:56:58]POST & json_proto [09:56:58]process_json_proto [09:56:58]json parsed OK: [09:56:58]protocol is kg_v1.0 [09:56:58]action value=close_receipt [09:56:58]process_action close_receipt [09:56:58]cmd_close_receipt [09:56:58]MH_GetDate [09:56:58]Write to MH i2c: F0 00 00 E4 28 FB [09:56:58]Write i2c OK [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: F0 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: F0 09 00 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: F0 09 00 E4 28 00 ED 86 44 66 FC 21 6F 64 11 [09:56:58]GetLastDocTimeStamp 1715766970 [09:56:58]current date 1715767021 [09:56:58]FM_GetShiftState [09:56:58]SAM_PROTO_GetShiftState [09:56:58]wFMCommunicate request_size=4 [09:56:58]MH_SAM_APDU [09:56:58]CAPDU: 80 13 01 00 [09:56:58]Write to MH i2c: E2 08 00 E5 28 80 13 01 00 00 00 00 00 8A [09:56:58]Write i2c OK [09:56:58]MH_I2C_Read... [09:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:58]Read from MH i2c: E2 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: E2 0E 00 [09:56:58]MH_I2C_Read... [09:56:58]Read from MH i2c: E2 0E 00 E5 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 35 [09:56:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:56:58]wFMCommunicate OK [09:56:58]SAM_PROTO_GetShiftState done [09:56:58]FM_GetShiftState done [09:56:58]opened in 1715732471 [09:56:58]opened+sec_in_day 1715818871 [09:56:58]quantity*price = 150032 [09:56:58]sum+1 = 150034 [09:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 34 15.05.2024 09:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67216 ФПД: 158296752757794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095702&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67216&fm=158296752757794&tin=02508201610067®Number=0000000000091845&sum=150033 [09:56:59]StoreToDocumentArchive [09:56:59]shift 356 fd 67216 [09:56:59]save to /storage/0356/doc_00067216 [09:56:59]save last doc name /storage/0356/doc_00067216 to /storage/kkm_last_doc_name [09:56:59]save OK [09:56:59]Clear old archive folders... [09:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:59]tlvbuf is 0032D130 [09:56:59]SAM_PROTO_ClearQueue [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 09 00 00 [09:56:59]Write to MH i2c: E2 08 00 F2 28 80 09 00 00 00 00 00 00 8C [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [09:56:59]RAPDU: 90 00 [09:56:59]wFMCommunicate OK [09:56:59]SAM_PROTO_ClearQueue done [09:56:59]KKMCreateOFDPacket [09:56:59]OFDProtocolAddRootSTLVToBuf [09:56:59]FM_MakeSignedData [09:56:59]FM_MakeSignedData [09:56:59]SAM_PROTO_SignData [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 0D 01 02 [09:56:59]Write to MH i2c: E2 08 00 F3 28 80 0D 01 02 00 00 00 00 94 [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [09:56:59]RAPDU: 90 00 [09:56:59]wFMCommunicate OK [09:56:59]wFMCommunicate request_size=255 [09:56:59]MH_SAM_APDU [09:56: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 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 22 00 00 00 F4 03 04 00 EE 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 06 01 00 35 04 06 00 8F [09:56:59]Write to MH i2c: E2 02 01 F4 28 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 22 00 00 00 F4 03 04 00 EE 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 06 01 00 35 04 06 00 8F 00 00 7A [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [09:56:59]RAPDU: 90 00 [09:56:59]wFMCommunicate OK [09:56:59]wFMCommunicate request_size=10 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 0D 02 02 05 F8 55 B7 9C 22 [09:56:59]Write to MH i2c: E2 0D 00 F5 28 80 0D 02 02 05 00 F8 55 B7 9C 22 00 00 63 [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 03 00 F5 28 00 90 00 91 [09:56:59]RAPDU: 90 00 [09:56:59]wFMCommunicate OK [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 0D 03 02 [09:56:59]Write to MH i2c: E2 08 00 F6 28 80 0D 03 02 00 00 00 00 99 [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 0B 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 0B 00 F6 28 00 9E 8F 8F 34 90 E8 27 B6 90 00 DF [09:56:59]RAPDU: 9E 8F 8F 34 90 E8 27 B6 90 00 [09:56:59]wFMCommunicate OK [09:56:59]SAM_PROTO_SignData done [09:56:59]FM_MakeSignedData done [09:56:59]CreateOFDProtocolMessage [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 11 00 00 [09:56:59]Write to MH i2c: E2 08 00 F7 28 80 11 00 00 00 00 00 00 99 [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]OFD Sender: No OFD packet to send [09:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 17 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 17 00 F7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [09:56: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:56:59]wFMCommunicate OK [09:56:59]CreateOFDProtocolMessage done [09:56:59]OFDSenderStorePacket 67216 [09:56:59]StoreOFDPacket docnum=67216 [09:56: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 0F 01 00 00 ED 7A 07 01 06 17 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 22 00 00 00 F4 03 04 00 EE 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 06 01 00 35 04 06 00 8F F8 55 B7 9C 22 9E 8F 8F 34 90 E8 27 B6 [09:56:59]CheckFolder [09:56:59]dirname=/storage/ofd_packets [09:56:59]CheckFolder done [09:56:59]ProducePacketName [09:56:59]name=ofd_packets/00067216 [09:56:59]NVStorageSaveData ofd_packets/00067216 [09:56:59]File name is /storage/ofd_packets/00067216 [09:56:59]Write 301 bytes [09:56:59]NVStorageSaveData done [09:56:59]OFDSenderStorePacket done [09:56:59]KKMCreateOFDPacket done [09:56:59]NVStorageSaveData kkm_last_timestamp [09:56:59]File name is /storage/kkm_last_timestamp [09:56:59]Write 4 bytes [09:56:59]NVStorageSaveData done [09:56:59]ExternCall_PrintAddStr [09:56:59]wPrintStart [09:56:59]Write to MH i2c: 01 00 00 F8 28 20 [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: 01 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: 01 07 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: 01 07 00 F8 28 00 00 00 00 00 FF 0F 35 [09:56:59]RasterBufferAndPrint [09:56:59]line Счет N : (1)507162 [09:56:59]line ИНН: 02508201610067 [09:56:59]line Контрольно-Кассовый Чек [09:56:59]line ПРОДАЖА [09:56:59]line ТРК (МРК, ГНК) : 43 [09:56:59]line Товар: 2710124130 [09:56:59]line Аи-92-К-5 [09:56:59]line 22.460 * 66.80 [09:56:59]line = 1500.33 [09:56:59]line НДС 12% НСП 1% [09:56:59]line > о реализуемом товаре [09:56:59]line ИТОГО: 1500.33 [09:56:59]line НСП 1% : 13.28 [09:56:59]line НДС 12% : 159.33 [09:56:59]line Наличными: 0.00 [09:56:59]line Безнал.: 1500.33 [09:56:59]line Место: АЗС № 91 "Партнер Нефть" [09:56:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:56:59]line СНО: Общий режим [09:56:59]line Чек 34 15.05.2024 09:57 [09:56:59]line Смена: 356 ФФД: 1.0 [09:56:59]line ЗНМ: 0300000119 [09:56:59]line РНМ: 0000000000091845 [09:56:59]line Версия ККМ: 001 [09:56:59]line Платежная система: O! деньги [09:56:59]line ФМ: 0000000000871829 [09:56:59]line ФД: 67216 [09:56:59]line ФПД: 158296752757794 [09:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095702&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67216&fm=158296752757794&tin=02508201610067®Number=0000000000091845&sum=150033 [09:57:00]OFD Sender: Processing packet 67216 [packets to send 35, broken 34] [09:57:00]ProducePacketName [09:57:00]name=ofd_packets/00067216 [09:57:00]OFD Sender: To server: pG, [09:57:00]CommunicateWithHost lk.salyk.kg:30040 [09:57:00]ConnectInit lk.salyk.kg [09:57:00]written 0, free lines is 4095 [09:57:00]Connected sock=10 [09:57: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 ED 7A 07 01 06 17 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 22 00 00 00 F4 03 04 00 EE 86 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 90 06 01 00 35 04 06 00 8F F8 55 B7 9C 22 9E 8F 8F 34 90 E8 27 B6 [09:57: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 7A AA 47 00 7E 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 90 06 01 00 F4 03 04 00 CB 2E 44 66 B6 04 01 00 00 12 69 8A 7C C5 BE 27 5C [09:57:00]CommunicateWithHost err = 0 [09:57:00]CheckOFDResponse [09:57:00]1017 (14) - 77093643461234 [09:57:00]1041 (16) - 0000000000871829 [09:57:00]1040 (4) - 67216 [09:57:00]1012 (4) - 15.05.2024 03:40 [09:57:00]1206 (1) - 0 [09:57:00]OFD Sender: Remove packet 67216 [09:57:00]ProducePacketName [09:57:00]name=ofd_packets/00067216 [09:57:00]NVStorageDeleteData [09:57:00]Write to MH i2c: 01 00 00 21 29 4A [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: 01 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: 01 07 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: 01 07 00 21 29 00 00 00 00 00 E4 0C 41 [09:57:00]RasterBufferAndPrint [09:57:00]line [09:57:00]line [09:57:00]line [09:57:00]line [09:57:00]line [09:57:00]written 0, free lines is 3305 [09:57:00]MH_Cut [09:57:00]Write to MH i2c: D1 01 00 28 29 01 23 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: D1 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: D1 01 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: D1 01 00 28 29 00 22 [09:57:00]Write to MH i2c: 01 00 00 29 29 52 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:01]OFD Sender: No OFD packet to send [09:57:01]*** Cut start [09:57:01]*** Purtial cut [09:57:01]*** CUTSNS_PIN = 0 [09:57:01]*** Stage 1: CUTSNS_PIN = 1 [09:57:03]Read from MH i2c: 01 [09:57:03]MH_I2C_Read... [09:57:03]*** Stop cut motor [09:57:03]*** Cut end [09:57:03]Read from MH i2c: 01 07 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [09:57:03]process_action close_receipt done [09:57:03]requested_data is exist [09:57:03]produce_requested_data [09:57:03]requested_item fm.sn is exist - process it [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 11 00 00 [09:57:03]Write to MH i2c: E2 08 00 2A 29 80 11 00 00 00 00 00 00 CD [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 17 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 17 00 2A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [09:57: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:57:03]wFMCommunicate OK [09:57:03]requested_item fd.num is exist - process it [09:57:03]SAM_PROTO_GetFieldsCounters [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 00 00 [09:57:03]Write to MH i2c: E2 08 00 2B 29 80 13 00 00 00 00 00 00 D0 [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 62 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 62 00 2B 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 90 06 01 00 0E 04 04 00 64 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 58 [09:57: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 90 06 01 00 0E 04 04 00 64 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 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetFieldsCounters done [09:57:03]requested_item shift.num is exist - process it [09:57:03]requested_item shift.opened is exist - process it [09:57:03]req_shift_opened [09:57:03]FM_GetShiftState [09:57:03]SAM_PROTO_GetShiftState [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 01 00 [09:57:03]Write to MH i2c: E2 08 00 2C 29 80 13 01 00 00 00 00 00 D2 [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 2C 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7D [09:57:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetShiftState done [09:57:03]FM_GetShiftState done [09:57:03]req_shift_opened done [09:57:03]requested_item shift.open_date is exist - process it [09:57:03]req_shift_open_date [09:57:03]req_shift_open_date done [09:57:03]produce_requested_data done [09:57:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67216,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:57:03]process_action_free close_receipt [09:57:03]json_value_free [09:57:03]json_value_free done [09:57:03]process_json_proto returns [09:57:03]Send response to host [09:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67216,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:57:03]free response buf [09:57:03]execute_script done [09:57:03]execute_script returns [09:57:03]free content buf [09:57:03]Sock 7.Close socket [09:57:03]Sock 7.Thread stoped [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:58:59]accept exits with 9 [09:58:59]New connection [09:58:59]New thread 3066588516 created [09:58:59]Thread 3066731876 joined [09:58:59]Waiting for new connection... [09:58:59] Sock 9.Parse request [09:58:59]Sock 9.Check first char [09:58:59]Sock 9.First char is OK [09:58:59]request: POST /json_proto HTTP/1.0 [09:58:59]Method: POST [09:58:59]URL: /json_proto [09:58:59]Method is POST - this is cgi request [09:58:59]url: /json_proto [09:58:59]query_string will be loaded in cgi processing [09:58:59]execute_cgi json_proto POST (null) [09:58:59]execute_cgi path=json_proto method=POST [09:58:59]POST find Content-Length [09:58:59]Host: 172.17.41.195:8080 [09:58:59]Content-Length: 671 [09:58:59]Content-Type: application/json [09:58:59] [09:58:59]POST finish read [09:58:59]Found Content-Length = 671 [09:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507163", "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 }]} ], "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" ] } } [09:58:59]execute_script... [09:58:59]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)507163", "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 }]} ], "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" ] } } [09:58:59]POST & json_proto [09:58:59]process_json_proto [09:58:59]json parsed OK: [09:58:59]protocol is kg_v1.0 [09:58:59]action value=close_receipt [09:58:59]process_action close_receipt [09:58:59]cmd_close_receipt [09:58:59]MH_GetDate [09:58:59]Write to MH i2c: F0 00 00 2D 29 45 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: F0 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: F0 09 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: F0 09 00 2D 29 00 66 87 44 66 FC 21 6F 64 D5 [09:58:59]GetLastDocTimeStamp 1715767022 [09:58:59]current date 1715767142 [09:58:59]FM_GetShiftState [09:58:59]SAM_PROTO_GetShiftState [09:58:59]wFMCommunicate request_size=4 [09:58:59]MH_SAM_APDU [09:58:59]CAPDU: 80 13 01 00 [09:58:59]Write to MH i2c: E2 08 00 2E 29 80 13 01 00 00 00 00 00 D4 [09:58:59]Write i2c OK [09:58:59]MH_I2C_Read... [09:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:59]Read from MH i2c: E2 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 0E 00 [09:58:59]MH_I2C_Read... [09:58:59]Read from MH i2c: E2 0E 00 2E 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7F [09:58:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:58:59]wFMCommunicate OK [09:58:59]SAM_PROTO_GetShiftState done [09:58:59]FM_GetShiftState done [09:58:59]opened in 1715732471 [09:58:59]opened+sec_in_day 1715818871 [09:58:59]quantity*price = 90038 [09:58:59]sum+1 = 90039 [09:58:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 35 15.05.2024 09:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67217 ФПД: 157769923951082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095902&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67217&fm=157769923951082&tin=02508201610067®Number=0000000000091845&sum=90000 [09:59:00]StoreToDocumentArchive [09:59:00]shift 356 fd 67217 [09:59:00]save to /storage/0356/doc_00067217 [09:59:00]save last doc name /storage/0356/doc_00067217 to /storage/kkm_last_doc_name [09:59:00]save OK [09:59:00]Clear old archive folders... [09:59:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:59:00]tlvbuf is 003958E0 [09:59:00]SAM_PROTO_ClearQueue [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 09 00 00 [09:59:00]Write to MH i2c: E2 08 00 3B 29 80 09 00 00 00 00 00 00 D6 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_ClearQueue done [09:59:00]KKMCreateOFDPacket [09:59:00]OFDProtocolAddRootSTLVToBuf [09:59:00]FM_MakeSignedData [09:59:00]FM_MakeSignedData [09:59:00]SAM_PROTO_SignData [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 0D 01 02 [09:59:00]Write to MH i2c: E2 08 00 3C 29 80 0D 01 02 00 00 00 00 DE [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]wFMCommunicate request_size=255 [09:59:00]MH_SAM_APDU [09:59:00]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 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 5A 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 23 00 00 00 F4 03 04 00 66 87 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 06 01 00 35 04 06 00 [09:59:00]Write to MH i2c: E2 02 01 3D 29 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 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 5A 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 23 00 00 00 F4 03 04 00 66 87 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 06 01 00 35 04 06 00 00 00 0C [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]wFMCommunicate request_size=11 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 0D 02 02 06 8F 7D AC 45 F9 EA [09:59:00]Write to MH i2c: E2 0E 00 3E 29 80 0D 02 02 06 00 8F 7D AC 45 F9 EA 00 00 CD [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [09:59:00]RAPDU: 90 00 [09:59:00]wFMCommunicate OK [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 0D 03 02 [09:59:00]Write to MH i2c: E2 08 00 3F 29 80 0D 03 02 00 00 00 00 E3 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0B 00 3F 29 00 A6 B3 3A 36 89 56 57 95 90 00 78 [09:59:00]RAPDU: A6 B3 3A 36 89 56 57 95 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_SignData done [09:59:00]FM_MakeSignedData done [09:59:00]CreateOFDProtocolMessage [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 11 00 00 [09:59:00]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 39 [09:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:59:00]wFMCommunicate OK [09:59:00]CreateOFDProtocolMessage done [09:59:00]OFDSenderStorePacket 67217 [09:59:00]StoreOFDPacket docnum=67217 [09:59: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 10 01 00 00 87 36 08 01 9E 5F 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 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 5A 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 23 00 00 00 F4 03 04 00 66 87 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 06 01 00 35 04 06 00 8F 7D AC 45 F9 EA A6 B3 3A 36 89 56 57 95 [09:59:00]CheckFolder [09:59:00]dirname=/storage/ofd_packets [09:59:00]CheckFolder done [09:59:00]ProducePacketName [09:59:00]name=ofd_packets/00067217 [09:59:00]NVStorageSaveData ofd_packets/00067217 [09:59:00]File name is /storage/ofd_packets/00067217 [09:59:00]Write 302 bytes [09:59:00]NVStorageSaveData done [09:59:00]OFDSenderStorePacket done [09:59:00]KKMCreateOFDPacket done [09:59:00]NVStorageSaveData kkm_last_timestamp [09:59:00]File name is /storage/kkm_last_timestamp [09:59:00]Write 4 bytes [09:59:00]NVStorageSaveData done [09:59:00]ExternCall_PrintAddStr [09:59:00]wPrintStart [09:59:00]Write to MH i2c: 01 00 00 41 29 6A [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 FF 0F 7F [09:59:00]RasterBufferAndPrint [09:59:00]line Счет N : (1)507163 [09:59:00]line ИНН: 02508201610067 [09:59:00]line Контрольно-Кассовый Чек [09:59:00]line ПРОДАЖА [09:59:00]line ТРК (МРК, ГНК) : 32 [09:59:00]line Товар: 2710124130 [09:59:00]line Super-92-К-5 [09:59:00]line 13.280 * 67.80 [09:59:00]line = 900.38 [09:59:00]line НДС 12% НСП 1% [09:59:00]line > о реализуемом товаре [09:59:00]line ОКРУГЛЕНИЕ: -0.38 [09:59:00]line ИТОГО: 900.00 [09:59:00]line Внесено: 900.00 [09:59:00]line СДАЧА: 0.00 [09:59:00]line НСП 1% : 7.97 [09:59:00]line НДС 12% : 95.62 [09:59:00]line Наличными: 900.00 [09:59:00]line Безнал.: 0.00 [09:59:00]line Место: АЗС № 91 "Партнер Нефть" [09:59:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:59:00]line СНО: Общий режим [09:59:00]line Чек 35 15.05.2024 09:59 [09:59:00]line Смена: 356 ФФД: 1.0 [09:59:00]line ЗНМ: 0300000119 [09:59:00]line РНМ: 0000000000091845 [09:59:00]line Версия ККМ: 001 [09:59:00]line ФМ: 0000000000871829 [09:59:00]line ФД: 67217 [09:59:00]line ФПД: 157769923951082 [09:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T095902&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67217&fm=157769923951082&tin=02508201610067®Number=0000000000091845&sum=90000 [09:59:01]written 0, free lines is 4095 [09:59:01]OFD Sender: Processing packet 67217 [packets to send 35, broken 34] [09:59:01]ProducePacketName [09:59:01]name=ofd_packets/00067217 [09:59:01]OFD Sender: To server: pG, [09:59:01]CommunicateWithHost lk.salyk.kg:30040 [09:59:01]ConnectInit lk.salyk.kg [09:59:01]Write to MH i2c: 01 00 00 6B 29 94 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 07 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 CE 0C 75 [09:59:01]RasterBufferAndPrint [09:59:01]line [09:59:01]line [09:59:01]line [09:59:01]line [09:59:01]line [09:59:01]written 0, free lines is 3284 [09:59:01]MH_Cut [09:59:01]Write to MH i2c: D1 01 00 72 29 01 6D [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: D1 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: D1 01 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: D1 01 00 72 29 00 6C [09:59:01]Write to MH i2c: 01 00 00 73 29 9C [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:02]*** Cut start [09:59:02]*** Purtial cut [09:59:02]*** Stage 1: CUTSNS_PIN = 1 [09:59:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]*** Stop cut motor [09:59:02]*** Cut end [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [09:59:02]process_action close_receipt done [09:59:02]requested_data is exist [09:59:02]produce_requested_data [09:59:02]requested_item fm.sn is exist - process it [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 11 00 00 [09:59:02]Write to MH i2c: E2 08 00 74 29 80 11 00 00 00 00 00 00 17 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 74 29 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:59: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:59:02]wFMCommunicate OK [09:59:02]requested_item fd.num is exist - process it [09:59:02]SAM_PROTO_GetFieldsCounters [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 00 00 [09:59:02]Write to MH i2c: E2 08 00 75 29 80 13 00 00 00 00 00 00 1A [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 62 00 [09:59:02]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 62 00 75 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 91 06 01 00 0E 04 04 00 64 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 A6 [09:59: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 91 06 01 00 0E 04 04 00 64 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 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_GetFieldsCounters done [09:59:03]requested_item shift.num is exist - process it [09:59:03]requested_item shift.opened is exist - process it [09:59:03]req_shift_opened [09:59:03]FM_GetShiftState [09:59:03]SAM_PROTO_GetShiftState [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 13 01 00 [09:59:03]Write to MH i2c: E2 08 00 76 29 80 13 01 00 00 00 00 00 1C [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0E 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0E 00 76 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [09:59:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_GetShiftState done [09:59:03]FM_GetShiftState done [09:59:03]req_shift_opened done [09:59:03]requested_item shift.open_date is exist - process it [09:59:03]req_shift_open_date [09:59:03]req_shift_open_date done [09:59:03]produce_requested_data done [09:59:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67217,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [09:59:03]process_action_free close_receipt [09:59:03]json_value_free [09:59:03]json_value_free done [09:59:03]process_json_proto returns [09:59:03]Send response to host [09:59:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67217,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [09:59:03]free response buf [09:59:03]execute_script done [09:59:03]execute_script returns [09:59:03]free content buf [09:59:03]Sock 9.Close socket [09:59:03]Sock 9.Thread stoped [10:01:11]ConnectInit Can't connect to host [10:01:11]CommunicateWithHost connect error [10:01:11]CommunicateWithHost err = -1 [10:01:11]OFD Sender: Server communicate error [10:01:16]OFD Sender: Processing packet 67217 [packets to send 35, broken 34] [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00067217 [10:01:16]OFD Sender: To server: pG, [10:01:16]CommunicateWithHost lk.salyk.kg:30040 [10:01:16]ConnectInit lk.salyk.kg [10:01:16]Connected sock=9 [10:01: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 87 36 08 01 9E 5F 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 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 5A 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 23 00 00 00 F4 03 04 00 66 87 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 91 06 01 00 35 04 06 00 8F 7D AC 45 F9 EA A6 B3 3A 36 89 56 57 95 [10:01: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 17 F8 47 00 47 25 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 91 06 01 00 F4 03 04 00 CB 2F 44 66 B6 04 01 00 00 BC 16 CF A4 3E AD 52 DE [10:01:16]CommunicateWithHost err = 0 [10:01:16]CheckOFDResponse [10:01:16]1017 (14) - 77093643461234 [10:01:16]1041 (16) - 0000000000871829 [10:01:16]1040 (4) - 67217 [10:01:16]1012 (4) - 15.05.2024 03:45 [10:01:16]1206 (1) - 0 [10:01:16]OFD Sender: Remove packet 67217 [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00067217 [10:01:16]NVStorageDeleteData [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:49]accept exits with 7 [10:01:49]New connection [10:01:49]New thread 3066731876 created [10:01:49]Thread 3066588516 joined [10:01:49]Waiting for new connection... [10:01:49] Sock 7.Parse request [10:01:49]Sock 7.Check first char [10:01:49]Sock 7.First char is OK [10:01:49]request: POST /json_proto HTTP/1.0 [10:01:49]Method: POST [10:01:49]URL: /json_proto [10:01:49]Method is POST - this is cgi request [10:01:49]url: /json_proto [10:01:49]query_string will be loaded in cgi processing [10:01:49]execute_cgi json_proto POST (null) [10:01:49]execute_cgi path=json_proto method=POST [10:01:49]POST find Content-Length [10:01:49]Host: 172.17.41.195:8080 [10:01:49]Content-Length: 682 [10:01:49]Content-Type: application/json [10:01:49] [10:01:49]POST finish read [10:01:49]Found Content-Length = 682 [10:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507164", "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 }]} ], "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" ] } } [10:01:49]execute_script... [10:01: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)507164", "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 }]} ], "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" ] } } [10:01:49]POST & json_proto [10:01:49]process_json_proto [10:01:49]json parsed OK: [10:01:49]protocol is kg_v1.0 [10:01:49]action value=close_receipt [10:01:49]process_action close_receipt [10:01:49]cmd_close_receipt [10:01:49]MH_GetDate [10:01:49]Write to MH i2c: F0 00 00 77 29 8F [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: F0 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: F0 09 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: F0 09 00 77 29 00 11 88 44 66 FC 21 6F 64 CB [10:01:49]GetLastDocTimeStamp 1715767142 [10:01:49]current date 1715767313 [10:01:49]FM_GetShiftState [10:01:49]SAM_PROTO_GetShiftState [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 13 01 00 [10:01:49]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [10:01:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_GetShiftState done [10:01:49]FM_GetShiftState done [10:01:49]opened in 1715732471 [10:01:49]opened+sec_in_day 1715818871 [10:01:49]quantity*price = 100066 [10:01:49]sum+1 = 100067 [10:01:49]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 СНО: Общий режим Чек 36 15.05.2024 10:01 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67218 ФПД: 277959872507274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T100153&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67218&fm=277959872507274&tin=02508201610067®Number=0000000000091845&sum=100000 [10:01:50]StoreToDocumentArchive [10:01:50]shift 356 fd 67218 [10:01:50]save to /storage/0356/doc_00067218 [10:01:50]save last doc name /storage/0356/doc_00067218 to /storage/kkm_last_doc_name [10:01:50]save OK [10:01:50]Clear old archive folders... [10:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:50]tlvbuf is B6F1F010 [10:01:50]SAM_PROTO_ClearQueue [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 09 00 00 [10:01:50]Write to MH i2c: E2 08 00 85 29 80 09 00 00 00 00 00 00 20 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 85 29 00 90 00 22 [10:01:50]RAPDU: 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_ClearQueue done [10:01:50]KKMCreateOFDPacket [10:01:50]OFDProtocolAddRootSTLVToBuf [10:01:50]FM_MakeSignedData [10:01:50]FM_MakeSignedData [10:01:50]SAM_PROTO_SignData [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 0D 01 02 [10:01:50]Write to MH i2c: E2 08 00 86 29 80 0D 01 02 00 00 00 00 28 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [10:01:50]RAPDU: 90 00 [10:01:50]wFMCommunicate OK [10:01:50]wFMCommunicate request_size=255 [10:01:50]MH_SAM_APDU [10:01: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 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 24 00 00 00 F4 03 04 00 11 88 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 06 01 00 35 04 06 00 FC [10:01:50]Write to MH i2c: E2 02 01 87 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 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 24 00 00 00 F4 03 04 00 11 88 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 06 01 00 35 04 06 00 FC 00 00 62 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [10:01:50]RAPDU: 90 00 [10:01:50]wFMCommunicate OK [10:01:50]wFMCommunicate request_size=10 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 0D 02 02 05 CD 93 76 6D 8A [10:01:50]Write to MH i2c: E2 0D 00 88 29 80 0D 02 02 05 00 CD 93 76 6D 8A 00 00 02 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [10:01:50]RAPDU: 90 00 [10:01:50]wFMCommunicate OK [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 0D 03 02 [10:01:50]Write to MH i2c: E2 08 00 89 29 80 0D 03 02 00 00 00 00 2D [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0B 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 0B 00 89 29 00 91 6D 67 CA F0 01 9D 70 90 00 5B [10:01:50]RAPDU: 91 6D 67 CA F0 01 9D 70 90 00 [10:01:50]wFMCommunicate OK [10:01:50]SAM_PROTO_SignData done [10:01:50]FM_MakeSignedData done [10:01:50]CreateOFDProtocolMessage [10:01:50]wFMCommunicate request_size=4 [10:01:50]MH_SAM_APDU [10:01:50]CAPDU: 80 11 00 00 [10:01:50]Write to MH i2c: E2 08 00 8A 29 80 11 00 00 00 00 00 00 2D [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:50]Read from MH i2c: E2 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: E2 17 00 8A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [10:01: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:01:50]wFMCommunicate OK [10:01:50]CreateOFDProtocolMessage done [10:01:50]OFDSenderStorePacket 67218 [10:01:50]StoreOFDPacket docnum=67218 [10:01: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 EB 38 07 01 03 10 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 24 00 00 00 F4 03 04 00 11 88 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 06 01 00 35 04 06 00 FC CD 93 76 6D 8A 91 6D 67 CA F0 01 9D 70 [10:01:50]CheckFolder [10:01:50]dirname=/storage/ofd_packets [10:01:50]CheckFolder done [10:01:50]ProducePacketName [10:01:50]name=ofd_packets/00067218 [10:01:50]NVStorageSaveData ofd_packets/00067218 [10:01:50]File name is /storage/ofd_packets/00067218 [10:01:50]Write 301 bytes [10:01:50]NVStorageSaveData done [10:01:50]OFDSenderStorePacket done [10:01:50]KKMCreateOFDPacket done [10:01:50]NVStorageSaveData kkm_last_timestamp [10:01:50]File name is /storage/kkm_last_timestamp [10:01:50]Write 4 bytes [10:01:50]NVStorageSaveData done [10:01:50]ExternCall_PrintAddStr [10:01:50]wPrintStart [10:01:50]Write to MH i2c: 01 00 00 8B 29 B4 [10:01:50]Write i2c OK [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 [10:01:50]MH_I2C_Read... [10:01:50]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [10:01:50]RasterBufferAndPrint [10:01:50]line Счет N : (1)507164 [10:01:50]line ИНН: 02508201610067 [10:01:50]line Контрольно-Кассовый Чек [10:01:50]line ПРОДАЖА [10:01:50]line ТРК (МРК, ГНК) : 33 [10:01:50]line Товар: 2710124130 [10:01:50]line Аи-92-К-5 [10:01:50]line 14.980 * 66.80 [10:01:50]line = 1000.66 [10:01:50]line НДС 12% НСП 1% [10:01:50]line > о реализуемом товаре [10:01:50]line ОКРУГЛЕНИЕ: -0.66 [10:01:50]line ИТОГО: 1000.00 [10:01:50]line Внесено: 1000.00 [10:01:50]line СДАЧА: 0.00 [10:01:50]line НСП 1% : 8.85 [10:01:50]line НДС 12% : 106.26 [10:01:50]line Наличными: 1000.00 [10:01:50]line Безнал.: 0.00 [10:01:50]line Место: АЗС № 91 "Партнер Нефть" [10:01:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:01:50]line СНО: Общий режим [10:01:50]line Чек 36 15.05.2024 10:01 [10:01:50]line Смена: 356 ФФД: 1.0 [10:01:50]line ЗНМ: 0300000119 [10:01:50]line РНМ: 0000000000091845 [10:01:50]line Версия ККМ: 001 [10:01:50]line ФМ: 0000000000871829 [10:01:50]line ФД: 67218 [10:01:50]line ФПД: 277959872507274 [10:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T100153&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67218&fm=277959872507274&tin=02508201610067®Number=0000000000091845&sum=100000 [10:01:51]written 0, free lines is 4095 [10:01:51]OFD Sender: Processing packet 67218 [packets to send 35, broken 34] [10:01:51]ProducePacketName [10:01:51]name=ofd_packets/00067218 [10:01:51]OFD Sender: To server: pG, [10:01:51]CommunicateWithHost lk.salyk.kg:30040 [10:01:51]ConnectInit lk.salyk.kg [10:01:51]Connected sock=9 [10:01: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 EB 38 07 01 03 10 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 24 00 00 00 F4 03 04 00 11 88 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 92 06 01 00 35 04 06 00 FC CD 93 76 6D 8A 91 6D 67 CA F0 01 9D 70 [10:01: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 EF 69 47 00 6D 67 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 92 06 01 00 F4 03 04 00 EE 2F 44 66 B6 04 01 00 00 A4 7E 85 D8 41 E4 3C E7 [10:01:51]CommunicateWithHost err = 0 [10:01:51]CheckOFDResponse [10:01:51]1017 (14) - 77093643461234 [10:01:51]1041 (16) - 0000000000871829 [10:01:51]1040 (4) - 67218 [10:01:51]1012 (4) - 15.05.2024 03:45 [10:01:51]1206 (1) - 0 [10:01:51]OFD Sender: Remove packet 67218 [10:01:51]ProducePacketName [10:01:51]name=ofd_packets/00067218 [10:01:51]NVStorageDeleteData [10:01:51]Write to MH i2c: 01 00 00 B5 29 DE [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: 01 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: 01 07 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 C8 0C B9 [10:01:51]RasterBufferAndPrint [10:01:51]line [10:01:51]line [10:01:51]line [10:01:51]line [10:01:51]line [10:01:51]written 0, free lines is 3277 [10:01:51]MH_Cut [10:01:51]Write to MH i2c: D1 01 00 BC 29 01 B7 [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: D1 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: D1 01 00 [10:01:51]MH_I2C_Read... [10:01:51]Read from MH i2c: D1 01 00 BC 29 00 B6 [10:01:51]Write to MH i2c: 01 00 00 BD 29 E6 [10:01:51]Write i2c OK [10:01:51]MH_I2C_Read... [10:01:52]OFD Sender: No OFD packet to send [10:01:52]*** Cut start [10:01:52]*** Purtial cut [10:01:52]*** CUTSNS_PIN = 0 [10:01:52]*** Stage 1: CUTSNS_PIN = 1 [10:01:54]Read from MH i2c: 01 [10:01:54]MH_I2C_Read... [10:01:54]*** Stop cut motor [10:01:54]*** Cut end [10:01:54]Read from MH i2c: 01 07 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 FF 0F FB [10:01:54]process_action close_receipt done [10:01:54]requested_data is exist [10:01:54]produce_requested_data [10:01:54]requested_item fm.sn is exist - process it [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 11 00 00 [10:01:54]Write to MH i2c: E2 08 00 BE 29 80 11 00 00 00 00 00 00 61 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 17 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 17 00 BE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [10:01: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:01:54]wFMCommunicate OK [10:01:54]requested_item fd.num is exist - process it [10:01:54]SAM_PROTO_GetFieldsCounters [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 13 00 00 [10:01:54]Write to MH i2c: E2 08 00 BF 29 80 13 00 00 00 00 00 00 64 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 62 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 62 00 BF 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 92 06 01 00 0E 04 04 00 64 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 F4 [10:01: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 92 06 01 00 0E 04 04 00 64 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:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_GetFieldsCounters done [10:01:54]requested_item shift.num is exist - process it [10:01:54]requested_item shift.opened is exist - process it [10:01:54]req_shift_opened [10:01:54]FM_GetShiftState [10:01:54]SAM_PROTO_GetShiftState [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 13 01 00 [10:01:54]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0E 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 11 [10:01:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_GetShiftState done [10:01:54]FM_GetShiftState done [10:01:54]req_shift_opened done [10:01:54]requested_item shift.open_date is exist - process it [10:01:54]req_shift_open_date [10:01:54]req_shift_open_date done [10:01:54]produce_requested_data done [10:01:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:01:54]process_action_free close_receipt [10:01:54]json_value_free [10:01:54]json_value_free done [10:01:54]process_json_proto returns [10:01:54]Send response to host [10:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:01:54]free response buf [10:01:54]execute_script done [10:01:54]execute_script returns [10:01:54]free content buf [10:01:54]Sock 7.Close socket [10:01:54]Sock 7.Thread stoped [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:00]accept exits with 10 [10:07:00]New connection [10:07:00]New thread 3066588516 created [10:07:00]Thread 3066731876 joined [10:07:00]Waiting for new connection... [10:07:00] Sock 10.Parse request [10:07:00]Sock 10.Check first char [10:07:00]Sock 10.First char is OK [10:07:00]request: POST /json_proto HTTP/1.0 [10:07:00]Method: POST [10:07:00]URL: /json_proto [10:07:00]Method is POST - this is cgi request [10:07:00]url: /json_proto [10:07:00]query_string will be loaded in cgi processing [10:07:00]execute_cgi json_proto POST (null) [10:07:00]execute_cgi path=json_proto method=POST [10:07:00]POST find Content-Length [10:07:00]Host: 172.17.41.195:8080 [10:07:00]Content-Length: 1209 [10:07:00]Content-Type: application/json [10:07:00] [10:07:00]POST finish read [10:07:00]Found Content-Length = 1209 [10:07: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)507165\u000A15.05.2024 09:49\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" ] } } [10:07:00]execute_script... [10:07: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)507165\u000A15.05.2024 09:49\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" ] } } [10:07:00]POST & json_proto [10:07:00]process_json_proto [10:07:00]json parsed OK: [10:07:00]protocol is kg_v1.0 [10:07:00]action value=print_text [10:07:00]process_action print_text [10:07:00]cmd_print_text [10:07:00]ExternCall_PrintAddStr [10:07:00]wPrintStart [10:07:00]Write to MH i2c: 01 00 00 C1 29 EA [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 FF 0F FF [10:07:00]RasterBufferAndPrint [10:07:00]line *****ТОВАРНЫЙ ЧЕК***** [10:07:00]line АЗС-91 [10:07:00]line Партнер нефть [10:07:00]line 02508201610067 [10:07:00]line Кассир : Арстанбеков Н. [10:07:00]line Счет N : (1)507165 [10:07:00]line 15.05.2024 09:49 [10:07:00]line ПРОДАЖА [10:07:00]line ТРК (МРК, ГНК): 11 [10:07:00]line Вид ГСМ : 2710194210 [10:07:00]line ДТ-К-5 [10:07:00]line 13.390 x 74.70 [10:07:00]line ИТОГ: 1000.23 [10:07:00]line Тип оплаты: Талоны: Топливная Карта [10:07:00]line 02750 [10:07:00]line ______________________ [10:07:00]line (подпись) [10:07:00]written 0, free lines is 4095 [10:07:00]Write to MH i2c: 01 00 00 D5 29 FE [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 10 0E 23 [10:07:00]RasterBufferAndPrint [10:07:00]line [10:07:00]line [10:07:00]line [10:07:00]line [10:07:00]line [10:07:00]written 0, free lines is 3601 [10:07:00]MH_Cut [10:07:00]Write to MH i2c: D1 01 00 DC 29 01 D7 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: D1 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: D1 01 00 [10:07:00]MH_I2C_Read... [10:07:00]Read from MH i2c: D1 01 00 DC 29 00 D6 [10:07:00]Write to MH i2c: 01 00 00 DD 29 06 [10:07:00]Write i2c OK [10:07:00]MH_I2C_Read... [10:07:01]*** Cut start [10:07:01]*** Purtial cut [10:07:01]*** Stage 1: CUTSNS_PIN = 1 [10:07:01]Read from MH i2c: 01 [10:07:01]MH_I2C_Read... [10:07:01]*** Stop cut motor [10:07:01]*** Cut end [10:07:01]Read from MH i2c: 01 07 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: 01 07 00 DD 29 00 00 00 00 00 FF 0F 1B [10:07:01]process_action print_text done [10:07:01]requested_data is exist [10:07:01]produce_requested_data [10:07:01]requested_item fm.sn is exist - process it [10:07:01]wFMCommunicate request_size=4 [10:07:01]MH_SAM_APDU [10:07:01]CAPDU: 80 11 00 00 [10:07:01]Write to MH i2c: E2 08 00 DE 29 80 11 00 00 00 00 00 00 81 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 17 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 17 00 DE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D7 [10:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:07:01]wFMCommunicate OK [10:07:01]requested_item fd.num is exist - process it [10:07:01]SAM_PROTO_GetFieldsCounters [10:07:01]wFMCommunicate request_size=4 [10:07:01]MH_SAM_APDU [10:07:01]CAPDU: 80 13 00 00 [10:07:01]Write to MH i2c: E2 08 00 DF 29 80 13 00 00 00 00 00 00 84 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 62 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 62 00 DF 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 92 06 01 00 0E 04 04 00 64 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 14 [10:07: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 92 06 01 00 0E 04 04 00 64 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:07:01]wFMCommunicate OK [10:07:01]SAM_PROTO_GetFieldsCounters done [10:07:01]requested_item shift.num is exist - process it [10:07:01]requested_item shift.opened is exist - process it [10:07:01]req_shift_opened [10:07:01]FM_GetShiftState [10:07:01]SAM_PROTO_GetShiftState [10:07:01]wFMCommunicate request_size=4 [10:07:01]MH_SAM_APDU [10:07:01]CAPDU: 80 13 01 00 [10:07:01]Write to MH i2c: E2 08 00 E0 29 80 13 01 00 00 00 00 00 86 [10:07:01]Write i2c OK [10:07:01]MH_I2C_Read... [10:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:01]Read from MH i2c: E2 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 0E 00 [10:07:01]MH_I2C_Read... [10:07:01]Read from MH i2c: E2 0E 00 E0 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 31 [10:07:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:07:01]wFMCommunicate OK [10:07:01]SAM_PROTO_GetShiftState done [10:07:01]FM_GetShiftState done [10:07:01]req_shift_opened done [10:07:01]requested_item shift.open_date is exist - process it [10:07:01]req_shift_open_date [10:07:01]req_shift_open_date done [10:07:01]produce_requested_data done [10:07:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:07:01]process_action_free print_text [10:07:01]json_value_free [10:07:01]json_value_free done [10:07:01]process_json_proto returns [10:07:01]Send response to host [10:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:07:01]free response buf [10:07:01]execute_script done [10:07:01]execute_script returns [10:07:01]free content buf [10:07:01]Sock 10.Close socket [10:07:01]Sock 10.Thread stoped [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:48]accept exits with 7 [10:08:48]New connection [10:08:48]New thread 3066731876 created [10:08:48]Thread 3066588516 joined [10:08:48]Waiting for new connection... [10:08:48] Sock 7.Parse request [10:08:48]Sock 7.Check first char [10:08:48]Sock 7.First char is OK [10:08:48]request: POST /json_proto HTTP/1.0 [10:08:48]Method: POST [10:08:48]URL: /json_proto [10:08:48]Method is POST - this is cgi request [10:08:48]url: /json_proto [10:08:48]query_string will be loaded in cgi processing [10:08:48]execute_cgi json_proto POST (null) [10:08:48]execute_cgi path=json_proto method=POST [10:08:48]POST find Content-Length [10:08:48]Host: 172.17.41.195:8080 [10:08:48]Content-Length: 215 [10:08:48]Content-Type: application/json [10:08:48] [10:08:48]POST finish read [10:08:48]Found Content-Length = 215 [10:08:48]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" ] } } [10:08:48]execute_script... [10:08:48]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" ] } } [10:08:48]POST & json_proto [10:08:48]process_json_proto [10:08:48]json parsed OK: [10:08:48]protocol is kg_v1.0 [10:08:48]action value=get_value [10:08:48]process_action get_value [10:08:48]cmd_get_value [10:08:48]process_action get_value done [10:08:48]requested_data is exist [10:08:48]produce_requested_data [10:08:48]requested_item kkm.sn is exist - process it [10:08:48]requested_item kkm.ver is exist - process it [10:08:48]requested_item fm.sn is exist - process it [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 11 00 00 [10:08:48]Write to MH i2c: E2 08 00 E1 29 80 11 00 00 00 00 00 00 84 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 17 00 [10:08:48]MH_I2C_Read... [10:08:48]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:08:48]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:48]wFMCommunicate OK [10:08:48]requested_item fd.num is exist - process it [10:08:48]SAM_PROTO_GetFieldsCounters [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 00 00 [10:08:48]Write to MH i2c: E2 08 00 E2 29 80 13 00 00 00 00 00 00 87 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 62 00 [10:08:48]MH_I2C_Read... [10:08:48]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 92 06 01 00 0E 04 04 00 64 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 17 [10:08: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 92 06 01 00 0E 04 04 00 64 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:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetFieldsCounters done [10:08:48]requested_item shift.num is exist - process it [10:08:48]requested_item shift.opened is exist - process it [10:08:48]req_shift_opened [10:08:48]FM_GetShiftState [10:08:48]SAM_PROTO_GetShiftState [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 01 00 [10:08:48]Write to MH i2c: E2 08 00 E3 29 80 13 01 00 00 00 00 00 89 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 E3 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 34 [10:08:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetShiftState done [10:08:48]FM_GetShiftState done [10:08:48]req_shift_opened done [10:08:48]requested_item shift.open_date is exist - process it [10:08:48]req_shift_open_date [10:08:48]req_shift_open_date done [10:08:48]produce_requested_data done [10:08:48]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:08:48]process_action_free get_value [10:08:48]json_value_free [10:08:48]json_value_free done [10:08:48]process_json_proto returns [10:08:48]Send response to host [10:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:08:48]free response buf [10:08:48]execute_script done [10:08:48]execute_script returns [10:08:48]free content buf [10:08:48]Sock 7.Close socket [10:08:48]Sock 7.Thread stoped [10:08:48]accept exits with 9 [10:08:48]New connection [10:08:48]New thread 3066588516 created [10:08:48]Thread 3066731876 joined [10:08:48]Waiting for new connection... [10:08:48] Sock 9.Parse request [10:08:48]Sock 9.Check first char [10:08:48]Sock 9.First char is OK [10:08:48]request: POST /json_proto HTTP/1.0 [10:08:48]Method: POST [10:08:48]URL: /json_proto [10:08:48]Method is POST - this is cgi request [10:08:48]url: /json_proto [10:08:48]query_string will be loaded in cgi processing [10:08:48]execute_cgi json_proto POST (null) [10:08:48]execute_cgi path=json_proto method=POST [10:08:48]POST find Content-Length [10:08:48]Host: 172.17.41.195:8080 [10:08:48]Content-Length: 331 [10:08:48]Content-Type: application/json [10:08:48] [10:08:48]POST finish read [10:08:48]Found Content-Length = 331 [10:08:48]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" ] } } [10:08:48]execute_script... [10:08:48]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" ] } } [10:08:48]POST & json_proto [10:08:48]process_json_proto [10:08:48]json parsed OK: [10:08:48]protocol is kg_v1.0 [10:08:48]action value=get_value [10:08:48]process_action get_value [10:08:48]cmd_get_value [10:08:48]process_action get_value done [10:08:48]requested_data is exist [10:08:48]produce_requested_data [10:08:48]requested_item fm.sale.total is exist - process it [10:08:48]SAM_PROTO_GetFMData [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 03 00 [10:08:48]Write to MH i2c: E2 08 00 E4 29 80 13 03 00 00 00 00 00 8C [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 E4 29 00 C6 04 85 04 C2 04 6E 04 04 00 CA 03 01 00 69 04 A3 00 6F 04 04 00 24 03 01 00 B1 04 05 00 4F F8 37 19 03 70 04 05 00 38 F6 E2 BE 02 72 04 04 00 17 02 55 5A 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 11 46 3F 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 67 31 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 C0 [10:08:49]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 CA 03 01 00 69 04 A3 00 6F 04 04 00 24 03 01 00 B1 04 05 00 4F F8 37 19 03 70 04 05 00 38 F6 E2 BE 02 72 04 04 00 17 02 55 5A 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 11 46 3F 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 67 31 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 E5 29 80 17 00 00 00 00 00 00 8E [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 E5 29 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 A5 [10:08:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 E6 29 80 17 00 00 00 00 00 00 8F [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 E6 29 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 [10:08:49]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 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 E7 29 80 17 00 00 00 00 00 00 90 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 FD 00 E7 29 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:08:49]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 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 17 00 00 [10:08:49]Write to MH i2c: E2 08 00 E8 29 80 17 00 00 00 00 00 00 91 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 E3 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 E3 00 E8 29 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:08:50]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 [10:08:50]wFMCommunicate OK [10:08:50]SAM_PROTO_GetFMData done [10:08:50]requested_item fm.sale_refund.total is exist - process it [10:08:50]requested_item fm.buy.total is exist - process it [10:08:50]requested_item shift.sale.total is exist - process it [10:08:50]SAM_PROTO_GetShiftData [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 13 02 00 [10:08:50]Write to MH i2c: E2 08 00 E9 29 80 13 02 00 00 00 00 00 90 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 FD 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 FD 00 E9 29 00 B8 04 AA 04 B4 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 B1 3F 28 70 04 03 00 5C 90 1D 72 04 03 00 55 AF 0A 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 83 46 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 5B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 39 [10:08:50]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 B1 3F 28 70 04 03 00 5C 90 1D 72 04 03 00 55 AF 0A 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 83 46 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 5B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:08:50]wFMCommunicate OK [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 17 00 00 [10:08:50]Write to MH i2c: E2 08 00 EA 29 80 17 00 00 00 00 00 00 93 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:50]Read from MH i2c: E2 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 FD 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: E2 FD 00 EA 29 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [10:08:50]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:08:50]wFMCommunicate OK [10:08:50]wFMCommunicate request_size=4 [10:08:50]MH_SAM_APDU [10:08:50]CAPDU: 80 17 00 00 [10:08:50]Write to MH i2c: E2 08 00 EB 29 80 17 00 00 00 00 00 00 94 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 FD 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 FD 00 EB 29 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [10:08:51]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:08:51]wFMCommunicate OK [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 17 00 00 [10:08:51]Write to MH i2c: E2 08 00 EC 29 80 17 00 00 00 00 00 00 95 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 FD 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 FD 00 EC 29 00 03 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 90 00 1E [10:08:51]RAPDU: 03 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 90 00 [10:08:51]wFMCommunicate OK [10:08:51]wFMCommunicate request_size=4 [10:08:51]MH_SAM_APDU [10:08:51]CAPDU: 80 17 00 00 [10:08:51]Write to MH i2c: E2 08 00 ED 29 80 17 00 00 00 00 00 00 96 [10:08:51]Write i2c OK [10:08:51]MH_I2C_Read... [10:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:08:51]Read from MH i2c: E2 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 D5 00 [10:08:51]MH_I2C_Read... [10:08:51]Read from MH i2c: E2 D5 00 ED 29 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [10:08:51]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:08:51]wFMCommunicate OK [10:08:51]SAM_PROTO_GetShiftData done [10:08:51]requested_item shift.sale.total_cash is exist - process it [10:08:51]requested_item shift.sale_refund.total is exist - process it [10:08:51]requested_item shift.sale_refund.total_cash is exist - process it [10:08:51]requested_item shift.buy.total is exist - process it [10:08:51]requested_item shift.buy.total_cash is exist - process it [10:08:51]produce_requested_data done [10:08:51]produce_requested_data return {"fm.sale.total":133080003.35,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":26377.45,"shift.sale.total_cash":19375.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:08:51]process_action_free get_value [10:08:51]json_value_free [10:08:51]json_value_free done [10:08:51]process_json_proto returns [10:08:51]Send response to host [10:08:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133080003.35,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":26377.45,"shift.sale.total_cash":19375.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:08:51]free response buf [10:08:51]execute_script done [10:08:51]execute_script returns [10:08:51]free content buf [10:08:51]Sock 9.Close socket [10:08:51]Sock 9.Thread stoped [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:44]accept exits with 7 [10:09:44]New connection [10:09:44]New thread 3066731876 created [10:09:44]Thread 3066588516 joined [10:09:44]Waiting for new connection... [10:09:44] Sock 7.Parse request [10:09:44]Sock 7.Check first char [10:09:44]Sock 7.First char is OK [10:09:44]request: POST /json_proto HTTP/1.0 [10:09:44]Method: POST [10:09:44]URL: /json_proto [10:09:44]Method is POST - this is cgi request [10:09:44]url: /json_proto [10:09:44]query_string will be loaded in cgi processing [10:09:44]execute_cgi json_proto POST (null) [10:09:44]execute_cgi path=json_proto method=POST [10:09:44]POST find Content-Length [10:09:44]Host: 172.17.41.195:8080 [10:09:44]Content-Length: 1209 [10:09:44]Content-Type: application/json [10:09:44] [10:09:44]POST finish read [10:09:44]Found Content-Length = 1209 [10:09: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)507166\u000A15.05.2024 09:52\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" ] } } [10:09:44]execute_script... [10:09: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)507166\u000A15.05.2024 09:52\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" ] } } [10:09:44]POST & json_proto [10:09:44]process_json_proto [10:09:44]json parsed OK: [10:09:44]protocol is kg_v1.0 [10:09:44]action value=print_text [10:09:44]process_action print_text [10:09:44]cmd_print_text [10:09:44]ExternCall_PrintAddStr [10:09:44]wPrintStart [10:09:44]Write to MH i2c: 01 00 00 EE 29 17 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 EE 29 00 00 00 00 00 FF 0F 2C [10:09:44]RasterBufferAndPrint [10:09:44]line *****ТОВАРНЫЙ ЧЕК***** [10:09:44]line АЗС-91 [10:09:44]line Партнер нефть [10:09:44]line 02508201610067 [10:09:44]line Кассир : Арстанбеков Н. [10:09:44]line Счет N : (1)507166 [10:09:44]line 15.05.2024 09:52 [10:09:44]line ПРОДАЖА [10:09:44]line ТРК (МРК, ГНК): 11 [10:09:44]line Вид ГСМ : 2710194210 [10:09:44]line ДТ-К-5 [10:09:44]line 13.390 x 74.70 [10:09:44]line ИТОГ: 1000.23 [10:09:44]line Тип оплаты: Талоны: Топливная Карта [10:09:44]line 02750 [10:09:44]line ______________________ [10:09:44]line (подпись) [10:09:44]written 0, free lines is 4095 [10:09:45]Write to MH i2c: 01 00 00 02 2A 2C [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 02 2A 00 00 00 00 00 11 0E 52 [10:09:45]RasterBufferAndPrint [10:09:45]line [10:09:45]line [10:09:45]line [10:09:45]line [10:09:45]line [10:09:45]written 0, free lines is 3603 [10:09:45]MH_Cut [10:09:45]Write to MH i2c: D1 01 00 09 2A 01 05 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: D1 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: D1 01 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: D1 01 00 09 2A 00 04 [10:09:45]Write to MH i2c: 01 00 00 0A 2A 34 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** Cut start [10:09:45]*** Purtial cut [10:09:45]*** CUTSNS_PIN = 0 [10:09:45]*** Stage 1: CUTSNS_PIN = 1 [10:09:47]OFD Sender: No OFD packet to send [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]*** Stop cut motor [10:09:47]*** Cut end [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 0A 2A 00 00 00 00 00 FF 0F 49 [10:09:47]process_action print_text done [10:09:47]requested_data is exist [10:09:47]produce_requested_data [10:09:47]requested_item fm.sn is exist - process it [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 11 00 00 [10:09:47]Write to MH i2c: E2 08 00 0B 2A 80 11 00 00 00 00 00 00 AF [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 0B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 05 [10:09: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:09:47]wFMCommunicate OK [10:09:47]requested_item fd.num is exist - process it [10:09:47]SAM_PROTO_GetFieldsCounters [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 00 00 [10:09:47]Write to MH i2c: E2 08 00 0C 2A 80 13 00 00 00 00 00 00 B2 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 0C 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 92 06 01 00 0E 04 04 00 64 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 42 [10:09: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 92 06 01 00 0E 04 04 00 64 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:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetFieldsCounters done [10:09:47]requested_item shift.num is exist - process it [10:09:47]requested_item shift.opened is exist - process it [10:09:47]req_shift_opened [10:09:47]FM_GetShiftState [10:09:47]SAM_PROTO_GetShiftState [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 01 00 [10:09:47]Write to MH i2c: E2 08 00 0D 2A 80 13 01 00 00 00 00 00 B4 [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 0D 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5F [10:09:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetShiftState done [10:09:47]FM_GetShiftState done [10:09:47]req_shift_opened done [10:09:47]requested_item shift.open_date is exist - process it [10:09:47]req_shift_open_date [10:09:47]req_shift_open_date done [10:09:47]produce_requested_data done [10:09:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:09:47]process_action_free print_text [10:09:47]json_value_free [10:09:47]json_value_free done [10:09:47]process_json_proto returns [10:09:47]Send response to host [10:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:09:47]free response buf [10:09:47]execute_script done [10:09:47]execute_script returns [10:09:47]free content buf [10:09:47]Sock 7.Close socket [10:09:47]Sock 7.Thread stoped [10:09:52]OFD Sender: No OFD packet to send [10:09:52]int [10:09:52]Write to MH i2c: 01 00 00 0E 2A 38 [10:09:52]*** FLAG_PRN_PAP1 set [10:09:52]Write i2c OK [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 07 00 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 07 00 0E 2A 00 01 00 00 00 FF 0F 4E [10:09:52]state=0 [10:09:52]No paper [10:09:52]int [10:09:52]Write to MH i2c: 01 00 00 0F 2A 39 [10:09:52]*** FLAG_PRN_PAP2 set [10:09:52]Write i2c OK [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 07 00 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: 01 07 00 0F 2A 00 03 00 00 00 FF 0F 51 [10:09:52]state=0 [10:09:52]No paper [10:09:52]Cover opened [10:09:57]OFD Sender: No OFD packet to send [10:09:57]Write to MH i2c: 01 00 00 10 2A 3A [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 10 2A 00 03 00 00 00 FF 0F 52 [10:09:57]state=3 [10:09:57]No paper [10:09:57]Cover opened [10:09:58]int [10:09:58]Write to MH i2c: 01 00 00 11 2A 3B [10:09:58]*** FLAG_PRN_PAP1 reset [10:09:58]*** FLAG_PRN_PAP2 reset [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 11 2A 00 00 00 00 00 FF 0F 50 [10:09:58]state=3 [10:09:58]Cover closed [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30763022+1685004796=1715767818 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B 8A 44 66 FC 21 6F 64 2E [10:10:19]Current date/time: 15.05.2024 10:10 [10:10:19]FM_Init [10:10:19]wFMConnect [10:10:19]MH_SAM_On [10:10:19]Write to MH i2c: E0 00 00 08 00 E7 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_init finished! [10:10:19]*** atr: [10:10:19]*** 0F 3B D5 18 FF 81 91 FE [10:10:19]*** 1F C3 80 73 C8 21 10 0A [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]*** 00 00 00 00 00 00 00 00 [10:10:19]Read from MH i2c: E0 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E0 10 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:10:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:10:19]wFMCommunicate request_size=10 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:10:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 11 00 00 [10:10:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [10: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 [10:10:19]wFMCommunicate OK [10:10:19]Detected FM SN is 0000000000871829 [10:10:19]Stored FM SN is 0000000000871829 [10:10:19]wFMCommunicate request_size=9 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 16 00 00 04 44 DD 00 00 [10:10:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]FM PIN OK [10:10:19]wFMCommunicate request_size=8 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 14 04 00 03 02 00 01 [10:10:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=13 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:10:19]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:10:19]RAPDU: 90 00 [10:10:19]wFMCommunicate OK [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 11 00 00 [10:10:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:19]Read from MH i2c: E2 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [10: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 [10:10:19]wFMCommunicate OK [10:10:19]DocumentArchiveInit [10:10:19]Start Httpd... [10:10:19]Httpd thread 3066936676 created [10:10:19]Write to MH i2c: 01 00 00 0F 00 0F [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:10:19]MH Int Process started [10:10:19]Allocated Socket 8 [10:10:19]Bind OK [10:10:19]Listen OK [10:10:19]httpd running on port 8080 [10:10:19]Waiting for new connection... [10:10:19]OFD Sender: No OFD packet to send [10:10:20]accept exits with 9 [10:10:20]New connection [10:10:20]New thread 3066649956 created [10:10:20]Waiting for new connection... [10:10:20] Sock 9.Parse request [10:10:20]Sock 9.Check first char [10:10:20]Sock 9.First char is OK [10:10:20]request: POST /json_proto HTTP/1.0 [10:10:20]Method: POST [10:10:20]URL: /json_proto [10:10:20]Method is POST - this is cgi request [10:10:20]url: /json_proto [10:10:20]query_string will be loaded in cgi processing [10:10:20]execute_cgi json_proto POST (null) [10:10:20]execute_cgi path=json_proto method=POST [10:10:20]POST find Content-Length [10:10:20]Host: 172.17.41.195:8080 [10:10:20]Content-Length: 215 [10:10:20]Content-Type: application/json [10:10:20] [10:10:20]POST finish read [10:10:20]Found Content-Length = 215 [10:10: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" ] } } [10:10:20]execute_script... [10:10: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" ] } } [10:10:20]POST & json_proto [10:10:20]process_json_proto [10:10:20]json parsed OK: [10:10:20]protocol is kg_v1.0 [10:10:20]action value=get_value [10:10:20]process_action get_value [10:10:20]cmd_get_value [10:10:20]process_action get_value done [10:10:20]requested_data is exist [10:10:20]produce_requested_data [10:10:20]requested_item kkm.sn is exist - process it [10:10:20]requested_item kkm.ver is exist - process it [10:10:20]requested_item fm.sn is exist - process it [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 11 00 00 [10:10:20]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 17 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [10:10: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:10:20]wFMCommunicate OK [10:10:20]requested_item fd.num is exist - process it [10:10:20]SAM_PROTO_GetFieldsCounters [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 00 00 [10:10:20]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 62 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 62 00 11 00 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 92 06 01 00 0E 04 04 00 64 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 1D [10:10: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 92 06 01 00 0E 04 04 00 64 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:10:20]wFMCommunicate OK [10:10:20]SAM_PROTO_GetFieldsCounters done [10:10:20]requested_item shift.num is exist - process it [10:10:20]requested_item shift.opened is exist - process it [10:10:20]req_shift_opened [10:10:20]FM_GetShiftState [10:10:20]SAM_PROTO_GetShiftState [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 01 00 [10:10:20]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3A [10:10:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:10:20]wFMCommunicate OK [10:10:20]SAM_PROTO_GetShiftState done [10:10:20]FM_GetShiftState done [10:10:20]req_shift_opened done [10:10:20]requested_item shift.open_date is exist - process it [10:10:20]req_shift_open_date [10:10:20]req_shift_open_date done [10:10:20]produce_requested_data done [10:10:20]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:10:20]process_action_free get_value [10:10:20]json_value_free [10:10:20]json_value_free done [10:10:20]process_json_proto returns [10:10:20]Send response to host [10:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67218,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:10:20]free response buf [10:10:20]execute_script done [10:10:20]execute_script returns [10:10:20]free content buf [10:10:20]Sock 9.Close socket [10:10:20]Sock 9.Thread stoped [10:10:20]accept exits with 6 [10:10:20]New connection [10:10:20]New thread 3066506596 created [10:10:20]Thread 3066649956 joined [10:10:20]Waiting for new connection... [10:10:20] Sock 6.Parse request [10:10:20]Sock 6.Check first char [10:10:20]Sock 6.First char is OK [10:10:20]request: POST /json_proto HTTP/1.0 [10:10:20]Method: POST [10:10:20]URL: /json_proto [10:10:20]Method is POST - this is cgi request [10:10:20]url: /json_proto [10:10:20]query_string will be loaded in cgi processing [10:10:20]execute_cgi json_proto POST (null) [10:10:20]execute_cgi path=json_proto method=POST [10:10:20]POST find Content-Length [10:10:20]Host: 172.17.41.195:8080 [10:10:20]Content-Length: 331 [10:10:20]Content-Type: application/json [10:10:20] [10:10:20]POST finish read [10:10:20]Found Content-Length = 331 [10:10: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" ] } } [10:10:20]execute_script... [10:10: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" ] } } [10:10:20]POST & json_proto [10:10:20]process_json_proto [10:10:20]json parsed OK: [10:10:20]protocol is kg_v1.0 [10:10:20]action value=get_value [10:10:20]process_action get_value [10:10:20]cmd_get_value [10:10:20]process_action get_value done [10:10:20]requested_data is exist [10:10:20]produce_requested_data [10:10:20]requested_item fm.sale.total is exist - process it [10:10:20]SAM_PROTO_GetFMData [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 03 00 [10:10:20]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 CA 03 01 00 69 04 A3 00 6F 04 04 00 24 03 01 00 B1 04 05 00 4F F8 37 19 03 70 04 05 00 38 F6 E2 BE 02 72 04 04 00 17 02 55 5A 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 11 46 3F 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 67 31 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 C6 [10:10:21]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 CA 03 01 00 69 04 A3 00 6F 04 04 00 24 03 01 00 B1 04 05 00 4F F8 37 19 03 70 04 05 00 38 F6 E2 BE 02 72 04 04 00 17 02 55 5A 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 11 46 3F 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 67 31 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [10:10:21]wFMCommunicate OK [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 17 00 00 [10:10:21]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [10:10: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 72 FD F3 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 [10:10:21]wFMCommunicate OK [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 17 00 00 [10:10:21]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:21]Read from MH i2c: E2 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 [10:10:21]MH_I2C_Read... [10:10:21]Read from MH i2c: E2 FD 00 15 00 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 BC [10:10: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 [10:10:21]wFMCommunicate OK [10:10:21]wFMCommunicate request_size=4 [10:10:21]MH_SAM_APDU [10:10:21]CAPDU: 80 17 00 00 [10:10:21]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:10:21]Write i2c OK [10:10:21]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 FD 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:10:22]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 [10:10:22]wFMCommunicate OK [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 17 00 00 [10:10:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 E3 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [10:10: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 [10:10:22]wFMCommunicate OK [10:10:22]SAM_PROTO_GetFMData done [10:10:22]requested_item fm.sale_refund.total is exist - process it [10:10:22]requested_item fm.buy.total is exist - process it [10:10:22]requested_item shift.sale.total is exist - process it [10:10:22]SAM_PROTO_GetShiftData [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 13 02 00 [10:10:22]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 FD 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 B1 3F 28 70 04 03 00 5C 90 1D 72 04 03 00 55 AF 0A 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 83 46 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 5B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 3F [10:10:22]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 24 00 00 00 69 04 9B 00 6F 04 04 00 23 00 00 00 B1 04 03 00 B1 3F 28 70 04 03 00 5C 90 1D 72 04 03 00 55 AF 0A 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 83 46 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 5B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:10:22]wFMCommunicate OK [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 17 00 00 [10:10:22]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [10:10:23]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:10:23]wFMCommunicate OK [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 17 00 00 [10:10:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [10:10:23]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:10:23]wFMCommunicate OK [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 17 00 00 [10:10:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [10:10:23]RAPDU: 03 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 90 00 [10:10:23]wFMCommunicate OK [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 17 00 00 [10:10:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 D5 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [10:10:24]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_GetShiftData done [10:10:24]requested_item shift.sale.total_cash is exist - process it [10:10:24]requested_item shift.sale_refund.total is exist - process it [10:10:24]requested_item shift.sale_refund.total_cash is exist - process it [10:10:24]requested_item shift.buy.total is exist - process it [10:10:24]requested_item shift.buy.total_cash is exist - process it [10:10:24]produce_requested_data done [10:10:24]produce_requested_data return {"fm.sale.total":133080003.35,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":26377.45,"shift.sale.total_cash":19375.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:10:24]process_action_free get_value [10:10:24]json_value_free [10:10:24]json_value_free done [10:10:24]process_json_proto returns [10:10:24]Send response to host [10:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133080003.35,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":26377.45,"shift.sale.total_cash":19375.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:10:24]free response buf [10:10:24]execute_script done [10:10:24]execute_script returns [10:10:24]free content buf [10:10:24]Sock 6.Close socket [10:10:24]Sock 6.Thread stoped [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:07]accept exits with 9 [10:12:07]New connection [10:12:07]New thread 3066649956 created [10:12:07]Thread 3066506596 joined [10:12:07]Waiting for new connection... [10:12:07] Sock 9.Parse request [10:12:07]Sock 9.Check first char [10:12:07]Sock 9.First char is OK [10:12:07]request: POST /json_proto HTTP/1.0 [10:12:07]Method: POST [10:12:07]URL: /json_proto [10:12:07]Method is POST - this is cgi request [10:12:07]url: /json_proto [10:12:07]query_string will be loaded in cgi processing [10:12:07]execute_cgi json_proto POST (null) [10:12:07]execute_cgi path=json_proto method=POST [10:12:07]POST find Content-Length [10:12:07]Host: 172.17.41.195:8080 [10:12:07]Content-Length: 800 [10:12:07]Content-Type: application/json [10:12:07] [10:12:07]POST finish read [10:12:07]Found Content-Length = 800 [10:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507167", "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 }]} ], "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:12:07]execute_script... [10:12: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)507167", "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 }]} ], "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:12:07]POST & json_proto [10:12:07]process_json_proto [10:12:07]json parsed OK: [10:12:07]protocol is kg_v1.0 [10:12:07]action value=close_receipt [10:12:07]process_action close_receipt [10:12:07]cmd_close_receipt [10:12:07]MH_GetDate [10:12:07]Write to MH i2c: F0 00 00 1D 00 0C [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 1D 00 00 78 8A 44 66 FC 21 6F 64 B1 [10:12:07]GetLastDocTimeStamp 1715767313 [10:12:07]current date 1715767928 [10:12:07]FM_GetShiftState [10:12:07]SAM_PROTO_GetShiftState [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 13 01 00 [10:12:07]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 46 [10:12:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_GetShiftState done [10:12:07]FM_GetShiftState done [10:12:07]opened in 1715732471 [10:12:07]opened+sec_in_day 1715818871 [10:12:07]quantity*price = 50033 [10:12:07]sum+1 = 50034 [10:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 37 15.05.2024 10:12 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67219 ФПД: 262515275951283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T101208&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67219&fm=262515275951283&tin=02508201610067®Number=0000000000091845&sum=50033 [10:12:08]StoreToDocumentArchive [10:12:08]shift 356 fd 67219 [10:12:08]save to /storage/0356/doc_00067219 [10:12:08]save last doc name /storage/0356/doc_00067219 to /storage/kkm_last_doc_name [10:12:08]save OK [10:12:08]Clear old archive folders... [10:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:08]tlvbuf is 006E6EB0 [10:12:08]SAM_PROTO_ClearQueue [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 09 00 00 [10:12:08]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_ClearQueue done [10:12:09]KKMCreateOFDPacket [10:12:09]OFDProtocolAddRootSTLVToBuf [10:12:09]FM_MakeSignedData [10:12:09]FM_MakeSignedData [10:12:09]SAM_PROTO_SignData [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 0D 01 02 [10:12:09]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]wFMCommunicate request_size=255 [10:12:09]MH_SAM_APDU [10:12: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 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 25 00 00 00 F4 03 04 00 78 8A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 06 01 00 35 04 06 00 EE [10:12:09]Write to MH i2c: E2 02 01 2D 00 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 25 00 00 00 F4 03 04 00 78 8A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 06 01 00 35 04 06 00 EE 00 00 30 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]wFMCommunicate request_size=10 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 0D 02 02 05 C1 99 C5 6C B3 [10:12:09]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C1 99 C5 6C B3 00 00 F0 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:12:09]RAPDU: 90 00 [10:12:09]wFMCommunicate OK [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 0D 03 02 [10:12:09]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0B 00 2F 00 00 FC 8B B9 0F 0B 45 DF FB 90 00 24 [10:12:09]RAPDU: FC 8B B9 0F 0B 45 DF FB 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_SignData done [10:12:09]FM_MakeSignedData done [10:12:09]CreateOFDProtocolMessage [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 11 00 00 [10:12:09]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [10:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:12:09]wFMCommunicate OK [10:12:09]CreateOFDProtocolMessage done [10:12:09]OFDSenderStorePacket 67219 [10:12:09]StoreOFDPacket docnum=67219 [10:12: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 26 8E 07 01 0D B1 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 25 00 00 00 F4 03 04 00 78 8A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 06 01 00 35 04 06 00 EE C1 99 C5 6C B3 FC 8B B9 0F 0B 45 DF FB [10:12:09]CheckFolder [10:12:09]dirname=/storage/ofd_packets [10:12:09]CheckFolder done [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00067219 [10:12:09]NVStorageSaveData ofd_packets/00067219 [10:12:09]File name is /storage/ofd_packets/00067219 [10:12:09]Write 301 bytes [10:12:09]NVStorageSaveData done [10:12:09]OFDSenderStorePacket done [10:12:09]KKMCreateOFDPacket done [10:12:09]NVStorageSaveData kkm_last_timestamp [10:12:09]File name is /storage/kkm_last_timestamp [10:12:09]Write 4 bytes [10:12:09]NVStorageSaveData done [10:12:09]ExternCall_PrintAddStr [10:12:09]wPrintStart [10:12:09]Write to MH i2c: 01 00 00 31 00 31 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:12:09]RasterBufferAndPrint [10:12:09]line Счет N : (1)507167 [10:12:09]line ИНН: 02508201610067 [10:12:09]line Контрольно-Кассовый Чек [10:12:09]line ПРОДАЖА [10:12:09]line ТРК (МРК, ГНК) : 43 [10:12:09]line Товар: 2710124130 [10:12:09]line Аи-92-К-5 [10:12:09]line 7.490 * 66.80 [10:12:09]line = 500.33 [10:12:09]line НДС 12% НСП 1% [10:12:09]line > о реализуемом товаре [10:12:09]line ИТОГО: 500.33 [10:12:09]line НСП 1% : 4.43 [10:12:09]line НДС 12% : 53.13 [10:12:09]line Наличными: 0.00 [10:12:09]line Безнал.: 500.33 [10:12:09]line Место: АЗС № 91 "Партнер Нефть" [10:12:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:12:09]line СНО: Общий режим [10:12:09]line Чек 37 15.05.2024 10:12 [10:12:09]line Смена: 356 ФФД: 1.0 [10:12:09]line ЗНМ: 0300000119 [10:12:09]line РНМ: 0000000000091845 [10:12:09]line Версия ККМ: 001 [10:12:09]line Платежная система: O! деньги [10:12:09]line ФМ: 0000000000871829 [10:12:09]line ФД: 67219 [10:12:09]line ФПД: 262515275951283 [10:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T101208&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67219&fm=262515275951283&tin=02508201610067®Number=0000000000091845&sum=50033 [10:12:09]OFD Sender: Processing packet 67219 [packets to send 35, broken 34] [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00067219 [10:12:09]OFD Sender: To server: pG, [10:12:09]CommunicateWithHost lk.salyk.kg:30040 [10:12:09]ConnectInit lk.salyk.kg [10:12:09]written 0, free lines is 4095 [10:12:09]Connected sock=10 [10:12: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 26 8E 07 01 0D B1 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 25 00 00 00 F4 03 04 00 78 8A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 06 01 00 35 04 06 00 EE C1 99 C5 6C B3 FC 8B B9 0F 0B 45 DF FB [10:12: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 66 6B 47 00 BD 55 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 93 06 01 00 F4 03 04 00 55 32 44 66 B6 04 01 00 00 55 0B A2 A9 0E A9 7C 0D [10:12:10]CommunicateWithHost err = 0 [10:12:10]CheckOFDResponse [10:12:10]1017 (14) - 77093643461234 [10:12:10]1041 (16) - 0000000000871829 [10:12:10]1040 (4) - 67219 [10:12:10]1012 (4) - 15.05.2024 03:56 [10:12:10]1206 (1) - 0 [10:12:10]OFD Sender: Remove packet 67219 [10:12:10]ProducePacketName [10:12:10]name=ofd_packets/00067219 [10:12:10]NVStorageDeleteData [10:12:10]Write to MH i2c: 01 00 00 5A 00 5A [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 07 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E4 0C 51 [10:12:10]RasterBufferAndPrint [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]line [10:12:10]written 0, free lines is 3306 [10:12:10]MH_Cut [10:12:10]Write to MH i2c: D1 01 00 61 00 01 33 [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 01 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: D1 01 00 61 00 00 32 [10:12:10]Write to MH i2c: 01 00 00 62 00 62 [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]OFD Sender: No OFD packet to send [10:12:11]*** Cut start [10:12:11]*** Purtial cut [10:12:11]*** Stage 1: CUTSNS_PIN = 1 [10:12:11]Read from MH i2c: 01 [10:12:11]MH_I2C_Read... [10:12:11]*** Stop cut motor [10:12:11]*** Cut end [10:12:11]Read from MH i2c: 01 07 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [10:12:11]process_action close_receipt done [10:12:11]requested_data is exist [10:12:11]produce_requested_data [10:12:11]requested_item fm.sn is exist - process it [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 11 00 00 [10:12:11]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [10:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:12:11]wFMCommunicate OK [10:12:11]requested_item fd.num is exist - process it [10:12:11]SAM_PROTO_GetFieldsCounters [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 00 00 [10:12:11]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 64 00 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 93 06 01 00 0E 04 04 00 64 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 74 [10:12: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 93 06 01 00 0E 04 04 00 64 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:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetFieldsCounters done [10:12:11]requested_item shift.num is exist - process it [10:12:11]requested_item shift.opened is exist - process it [10:12:11]req_shift_opened [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8D [10:12:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]req_shift_opened done [10:12:11]requested_item shift.open_date is exist - process it [10:12:11]req_shift_open_date [10:12:11]req_shift_open_date done [10:12:11]produce_requested_data done [10:12:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67219,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:12:11]process_action_free close_receipt [10:12:11]json_value_free [10:12:11]json_value_free done [10:12:11]process_json_proto returns [10:12:11]Send response to host [10:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67219,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:12:11]free response buf [10:12:11]execute_script done [10:12:11]execute_script returns [10:12:11]free content buf [10:12:11]Sock 9.Close socket [10:12:11]Sock 9.Thread stoped [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:08]accept exits with 7 [10:17:08]New connection [10:17:08]New thread 3066506596 created [10:17:08]Thread 3066649956 joined [10:17:08]Waiting for new connection... [10:17:08] Sock 7.Parse request [10:17:08]Sock 7.Check first char [10:17:08]Sock 7.First char is OK [10:17:08]request: POST /json_proto HTTP/1.0 [10:17:08]Method: POST [10:17:08]URL: /json_proto [10:17:08]Method is POST - this is cgi request [10:17:08]url: /json_proto [10:17:08]query_string will be loaded in cgi processing [10:17:08]execute_cgi json_proto POST (null) [10:17:08]execute_cgi path=json_proto method=POST [10:17:08]POST find Content-Length [10:17:08]Host: 172.17.41.195:8080 [10:17:08]Content-Length: 1209 [10:17:08]Content-Type: application/json [10:17:08] [10:17:08]POST finish read [10:17:08]Found Content-Length = 1209 [10:17: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)507168\u000A15.05.2024 09:59\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 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:17:08]execute_script... [10:17: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)507168\u000A15.05.2024 09:59\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 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:17:08]POST & json_proto [10:17:08]process_json_proto [10:17:08]json parsed OK: [10:17:08]protocol is kg_v1.0 [10:17:08]action value=print_text [10:17:08]process_action print_text [10:17:08]cmd_print_text [10:17:08]ExternCall_PrintAddStr [10:17:08]wPrintStart [10:17:08]Write to MH i2c: 01 00 00 66 00 66 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [10:17:08]RasterBufferAndPrint [10:17:08]line *****ТОВАРНЫЙ ЧЕК***** [10:17:08]line АЗС-91 [10:17:08]line Партнер нефть [10:17:08]line 02508201610067 [10:17:08]line Кассир : Арстанбеков Н. [10:17:08]line Счет N : (1)507168 [10:17:08]line 15.05.2024 09:59 [10:17:08]line ПРОДАЖА [10:17:08]line ТРК (МРК, ГНК): 31 [10:17:08]line Вид ГСМ : 2710194210 [10:17:08]line ДТ-К-5 [10:17:08]line 25.000 x 74.70 [10:17:08]line ИТОГ: 1867.50 [10:17:08]line Тип оплаты: Талоны: Топливная Карта [10:17:08]line 02750 [10:17:08]line ______________________ [10:17:08]line (подпись) [10:17:08]written 0, free lines is 4095 [10:17:08]Write to MH i2c: 01 00 00 7A 00 7A [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 10 0E 9F [10:17:08]RasterBufferAndPrint [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]line [10:17:08]written 0, free lines is 3601 [10:17:08]MH_Cut [10:17:08]Write to MH i2c: D1 01 00 81 00 01 53 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 [10:17:08]MH_I2C_Read... [10:17:08]Read from MH i2c: D1 01 00 81 00 00 52 [10:17:08]Write to MH i2c: 01 00 00 82 00 82 [10:17:08]Write i2c OK [10:17:08]MH_I2C_Read... [10:17:09]*** Cut start [10:17:09]*** Purtial cut [10:17:09]*** CUTSNS_PIN = 0 [10:17:09]*** Stage 1: CUTSNS_PIN = 1 [10:17:10]OFD Sender: No OFD packet to send [10:17:11]Read from MH i2c: 01 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: 01 07 00 [10:17:11]MH_I2C_Read... [10:17:11]*** Stop cut motor [10:17:11]*** Cut end [10:17:11]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 FF 0F 97 [10:17:11]process_action print_text done [10:17:11]requested_data is exist [10:17:11]produce_requested_data [10:17:11]requested_item fm.sn is exist - process it [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 11 00 00 [10:17:11]Write to MH i2c: E2 08 00 83 00 80 11 00 00 00 00 00 00 FD [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 17 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 17 00 83 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [10:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:17:11]wFMCommunicate OK [10:17:11]requested_item fd.num is exist - process it [10:17:11]SAM_PROTO_GetFieldsCounters [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 13 00 00 [10:17:11]Write to MH i2c: E2 08 00 84 00 80 13 00 00 00 00 00 00 00 [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 62 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 62 00 84 00 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 93 06 01 00 0E 04 04 00 64 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 94 [10:17: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 93 06 01 00 0E 04 04 00 64 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:17:11]wFMCommunicate OK [10:17:11]SAM_PROTO_GetFieldsCounters done [10:17:11]requested_item shift.num is exist - process it [10:17:11]requested_item shift.opened is exist - process it [10:17:11]req_shift_opened [10:17:11]FM_GetShiftState [10:17:11]SAM_PROTO_GetShiftState [10:17:11]wFMCommunicate request_size=4 [10:17:11]MH_SAM_APDU [10:17:11]CAPDU: 80 13 01 00 [10:17:11]Write to MH i2c: E2 08 00 85 00 80 13 01 00 00 00 00 00 02 [10:17:11]Write i2c OK [10:17:11]MH_I2C_Read... [10:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:11]Read from MH i2c: E2 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 [10:17:11]MH_I2C_Read... [10:17:11]Read from MH i2c: E2 0E 00 85 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AD [10:17:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:17:11]wFMCommunicate OK [10:17:11]SAM_PROTO_GetShiftState done [10:17:11]FM_GetShiftState done [10:17:11]req_shift_opened done [10:17:11]requested_item shift.open_date is exist - process it [10:17:11]req_shift_open_date [10:17:11]req_shift_open_date done [10:17:11]produce_requested_data done [10:17:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67219,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:17:11]process_action_free print_text [10:17:11]json_value_free [10:17:11]json_value_free done [10:17:11]process_json_proto returns [10:17:11]Send response to host [10:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67219,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:17:11]free response buf [10:17:11]execute_script done [10:17:11]execute_script returns [10:17:11]free content buf [10:17:11]Sock 7.Close socket [10:17:11]Sock 7.Thread stoped [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:37]accept exits with 9 [10:20:37]New connection [10:20:37]New thread 3066649956 created [10:20:37]Thread 3066506596 joined [10:20:37]Waiting for new connection... [10:20:37] Sock 9.Parse request [10:20:37]Sock 9.Check first char [10:20:37]Sock 9.First char is OK [10:20:37]request: POST /json_proto HTTP/1.0 [10:20:37]Method: POST [10:20:37]URL: /json_proto [10:20:37]Method is POST - this is cgi request [10:20:37]url: /json_proto [10:20:37]query_string will be loaded in cgi processing [10:20:37]execute_cgi json_proto POST (null) [10:20:37]execute_cgi path=json_proto method=POST [10:20:37]POST find Content-Length [10:20:37]Host: 172.17.41.195:8080 [10:20:37]Content-Length: 794 [10:20:37]Content-Type: application/json [10:20:37] [10:20:37]POST finish read [10:20:37]Found Content-Length = 794 [10:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507169", "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 }]} ], "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" ] } } [10:20:37]execute_script... [10: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)507169", "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 }]} ], "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" ] } } [10:20:37]POST & json_proto [10:20:37]process_json_proto [10:20:37]json parsed OK: [10:20:37]protocol is kg_v1.0 [10:20:37]action value=close_receipt [10:20:37]process_action close_receipt [10:20:37]cmd_close_receipt [10:20:37]MH_GetDate [10:20:37]Write to MH i2c: F0 00 00 86 00 75 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 09 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: F0 09 00 86 00 00 75 8C 44 66 FC 21 6F 64 19 [10:20:37]GetLastDocTimeStamp 1715767928 [10:20:37]current date 1715768437 [10:20:37]FM_GetShiftState [10:20:37]SAM_PROTO_GetShiftState [10:20:37]wFMCommunicate request_size=4 [10:20:37]MH_SAM_APDU [10:20:37]CAPDU: 80 13 01 00 [10:20:37]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [10:20:37]Write i2c OK [10:20:37]MH_I2C_Read... [10:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:37]Read from MH i2c: E2 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 [10:20:37]MH_I2C_Read... [10:20:37]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AF [10:20:37]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:20:37]wFMCommunicate OK [10:20:37]SAM_PROTO_GetShiftState done [10:20:37]FM_GetShiftState done [10:20:37]opened in 1715732471 [10:20:37]opened+sec_in_day 1715818871 [10:20:37]quantity*price = 80004 [10:20:37]sum+1 = 80005 [10:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 38 15.05.2024 10:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67220 ФПД: 196777170750752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T102037&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67220&fm=196777170750752&tin=02508201610067®Number=0000000000091845&sum=80004 [10:20:38]StoreToDocumentArchive [10:20:38]shift 356 fd 67220 [10:20:38]save to /storage/0356/doc_00067220 [10:20:38]save last doc name /storage/0356/doc_00067220 to /storage/kkm_last_doc_name [10:20:38]save OK [10:20:38]Clear old archive folders... [10:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:38]tlvbuf is 006E6D90 [10:20:38]SAM_PROTO_ClearQueue [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 09 00 00 [10:20:38]Write to MH i2c: E2 08 00 94 00 80 09 00 00 00 00 00 00 06 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 94 00 00 90 00 08 [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]SAM_PROTO_ClearQueue done [10:20:38]KKMCreateOFDPacket [10:20:38]OFDProtocolAddRootSTLVToBuf [10:20:38]FM_MakeSignedData [10:20:38]FM_MakeSignedData [10:20:38]SAM_PROTO_SignData [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 01 02 [10:20:38]Write to MH i2c: E2 08 00 95 00 80 0D 01 02 00 00 00 00 0E [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 95 00 00 90 00 09 [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=255 [10:20:38]MH_SAM_APDU [10:20: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 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 26 00 00 00 F4 03 04 00 75 8C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 06 01 00 35 04 06 00 [10:20:38]Write to MH i2c: E2 02 01 96 00 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 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 26 00 00 00 F4 03 04 00 75 8C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 06 01 00 35 04 06 00 00 00 42 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 96 00 00 90 00 0A [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=11 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 02 02 06 B2 F7 C1 5C CD 20 [10:20:38]Write to MH i2c: E2 0E 00 97 00 80 0D 02 02 06 00 B2 F7 C1 5C CD 20 00 00 D0 [10:20:38]Write i2c OK [10:20:38]MH_I2C_Read... [10:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:38]Read from MH i2c: E2 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 [10:20:38]MH_I2C_Read... [10:20:38]Read from MH i2c: E2 03 00 97 00 00 90 00 0B [10:20:38]RAPDU: 90 00 [10:20:38]wFMCommunicate OK [10:20:38]wFMCommunicate request_size=4 [10:20:38]MH_SAM_APDU [10:20:38]CAPDU: 80 0D 03 02 [10:20:38]Write to MH i2c: E2 08 00 98 00 80 0D 03 02 00 00 00 00 13 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 0B 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 0B 00 98 00 00 B7 9A 73 7D DC 19 2B CF 90 00 44 [10:20:39]RAPDU: B7 9A 73 7D DC 19 2B CF 90 00 [10:20:39]wFMCommunicate OK [10:20:39]SAM_PROTO_SignData done [10:20:39]FM_MakeSignedData done [10:20:39]CreateOFDProtocolMessage [10:20:39]wFMCommunicate request_size=4 [10:20:39]MH_SAM_APDU [10:20:39]CAPDU: 80 11 00 00 [10:20:39]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:39]Read from MH i2c: E2 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 17 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [10: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 [10:20:39]wFMCommunicate OK [10:20:39]CreateOFDProtocolMessage done [10:20:39]OFDSenderStorePacket 67220 [10:20:39]StoreOFDPacket docnum=67220 [10: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 10 01 00 00 DA 04 08 01 31 5E 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 26 00 00 00 F4 03 04 00 75 8C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 06 01 00 35 04 06 00 B2 F7 C1 5C CD 20 B7 9A 73 7D DC 19 2B CF [10:20:39]CheckFolder [10:20:39]dirname=/storage/ofd_packets [10:20:39]CheckFolder done [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00067220 [10:20:39]NVStorageSaveData ofd_packets/00067220 [10:20:39]File name is /storage/ofd_packets/00067220 [10:20:39]Write 302 bytes [10:20:39]NVStorageSaveData done [10:20:39]OFDSenderStorePacket done [10:20:39]KKMCreateOFDPacket done [10:20:39]NVStorageSaveData kkm_last_timestamp [10:20:39]File name is /storage/kkm_last_timestamp [10:20:39]Write 4 bytes [10:20:39]NVStorageSaveData done [10:20:39]ExternCall_PrintAddStr [10:20:39]wPrintStart [10:20:39]Write to MH i2c: 01 00 00 9A 00 9A [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 FF 0F AF [10:20:39]RasterBufferAndPrint [10:20:39]line Счет N : (1)507169 [10:20:39]line ИНН: 02508201610067 [10:20:39]line Контрольно-Кассовый Чек [10:20:39]line ПРОДАЖА [10:20:39]line ТРК (МРК, ГНК) : 42 [10:20:39]line Товар: 2710124130 [10:20:39]line Super-92-К-5 [10:20:39]line 11.800 * 67.80 [10:20:39]line = 800.04 [10:20:39]line НДС 12% НСП 1% [10:20:39]line > о реализуемом товаре [10:20:39]line ИТОГО: 800.04 [10:20:39]line НСП 1% : 7.08 [10:20:39]line НДС 12% : 84.96 [10:20:39]line Наличными: 0.00 [10:20:39]line Безнал.: 800.04 [10:20:39]line Место: АЗС № 91 "Партнер Нефть" [10:20:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:20:39]line СНО: Общий режим [10:20:39]line Чек 38 15.05.2024 10:20 [10:20:39]line Смена: 356 ФФД: 1.0 [10:20:39]line ЗНМ: 0300000119 [10:20:39]line РНМ: 0000000000091845 [10:20:39]line Версия ККМ: 001 [10:20:39]line Платежная система: O! деньги [10:20:39]line ФМ: 0000000000871829 [10:20:39]line ФД: 67220 [10:20:39]line ФПД: 196777170750752 [10:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T102037&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67220&fm=196777170750752&tin=02508201610067®Number=0000000000091845&sum=80004 [10:20:39]written 0, free lines is 4095 [10:20:39]OFD Sender: Processing packet 67220 [packets to send 35, broken 34] [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00067220 [10:20:39]OFD Sender: To server: pG, [10:20:39]CommunicateWithHost lk.salyk.kg:30040 [10:20:39]ConnectInit lk.salyk.kg [10:20:39]Connected sock=10 [10: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 10 01 00 00 DA 04 08 01 31 5E 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 26 00 00 00 F4 03 04 00 75 8C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 94 06 01 00 35 04 06 00 B2 F7 C1 5C CD 20 B7 9A 73 7D DC 19 2B CF [10:20: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 DB B5 47 00 33 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 94 06 01 00 F4 03 04 00 53 34 44 66 B6 04 01 00 00 17 15 0A 46 DE 04 2A BF [10:20:39]CommunicateWithHost err = 0 [10:20:39]CheckOFDResponse [10:20:39]1017 (14) - 77093643461234 [10:20:39]1041 (16) - 0000000000871829 [10:20:39]1040 (4) - 67220 [10:20:39]1012 (4) - 15.05.2024 04:04 [10:20:39]1206 (1) - 0 [10:20:39]OFD Sender: Remove packet 67220 [10:20:39]ProducePacketName [10:20:39]name=ofd_packets/00067220 [10:20:39]NVStorageDeleteData [10:20:39]Write to MH i2c: 01 00 00 C3 00 C3 [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 E9 0C BF [10:20:39]RasterBufferAndPrint [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]line [10:20:39]written 0, free lines is 3311 [10:20:39]MH_Cut [10:20:39]Write to MH i2c: D1 01 00 CA 00 01 9C [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 [10:20:39]MH_I2C_Read... [10:20:39]Read from MH i2c: D1 01 00 CA 00 00 9B [10:20:39]Write to MH i2c: 01 00 00 CB 00 CB [10:20:39]Write i2c OK [10:20:39]MH_I2C_Read... [10:20:39]OFD Sender: No OFD packet to send [10:20:40]*** Cut start [10:20:40]*** Purtial cut [10:20:40]*** Stage 1: CUTSNS_PIN = 1 [10:20:40]Read from MH i2c: 01 [10:20:40]MH_I2C_Read... [10:20:40]*** Stop cut motor [10:20:40]*** Cut end [10:20:40]Read from MH i2c: 01 07 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: 01 07 00 CB 00 00 00 00 00 00 FF 0F E0 [10:20:40]process_action close_receipt done [10:20:40]requested_data is exist [10:20:40]produce_requested_data [10:20:40]requested_item fm.sn is exist - process it [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 11 00 00 [10:20:40]Write to MH i2c: E2 08 00 CC 00 80 11 00 00 00 00 00 00 46 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 17 00 CC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [10:20: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:20:40]wFMCommunicate OK [10:20:40]requested_item fd.num is exist - process it [10:20:40]SAM_PROTO_GetFieldsCounters [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 00 00 [10:20:40]Write to MH i2c: E2 08 00 CD 00 80 13 00 00 00 00 00 00 49 [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 62 00 CD 00 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 94 06 01 00 0E 04 04 00 64 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 E1 [10:20: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 94 06 01 00 0E 04 04 00 64 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:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetFieldsCounters done [10:20:40]requested_item shift.num is exist - process it [10:20:40]requested_item shift.opened is exist - process it [10:20:40]req_shift_opened [10:20:40]FM_GetShiftState [10:20:40]SAM_PROTO_GetShiftState [10:20:40]wFMCommunicate request_size=4 [10:20:40]MH_SAM_APDU [10:20:40]CAPDU: 80 13 01 00 [10:20:40]Write to MH i2c: E2 08 00 CE 00 80 13 01 00 00 00 00 00 4B [10:20:40]Write i2c OK [10:20:40]MH_I2C_Read... [10:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:40]Read from MH i2c: E2 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 [10:20:40]MH_I2C_Read... [10:20:40]Read from MH i2c: E2 0E 00 CE 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F6 [10:20:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:20:40]wFMCommunicate OK [10:20:40]SAM_PROTO_GetShiftState done [10:20:40]FM_GetShiftState done [10:20:40]req_shift_opened done [10:20:40]requested_item shift.open_date is exist - process it [10:20:40]req_shift_open_date [10:20:40]req_shift_open_date done [10:20:40]produce_requested_data done [10:20:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67220,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:20:40]process_action_free close_receipt [10:20:40]json_value_free [10:20:40]json_value_free done [10:20:40]process_json_proto returns [10:20:40]Send response to host [10:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67220,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:20:40]free response buf [10:20:40]execute_script done [10:20:40]execute_script returns [10:20:40]free content buf [10:20:40]Sock 9.Close socket [10:20:40]Sock 9.Thread stoped [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]accept exits with 7 [10:21:34]New connection [10:21:34]New thread 3066506596 created [10:21:34]Thread 3066649956 joined [10:21:34]Waiting for new connection... [10:21:34] Sock 7.Parse request [10:21:34]Sock 7.Check first char [10:21:34]Sock 7.First char is OK [10:21:34]request: POST /json_proto HTTP/1.0 [10:21:34]Method: POST [10:21:34]URL: /json_proto [10:21:34]Method is POST - this is cgi request [10:21:34]url: /json_proto [10:21:34]query_string will be loaded in cgi processing [10:21:34]execute_cgi json_proto POST (null) [10:21:34]execute_cgi path=json_proto method=POST [10:21:34]POST find Content-Length [10:21:34]Host: 172.17.41.195:8080 [10:21:34]Content-Length: 1209 [10:21:34]Content-Type: application/json [10:21:34] [10:21:34]POST finish read [10:21:34]Found Content-Length = 1209 [10:21:34]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)507170\u000A15.05.2024 10:04\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" ] } } [10:21:34]execute_script... [10:21:34]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)507170\u000A15.05.2024 10:04\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" ] } } [10:21:34]POST & json_proto [10:21:34]process_json_proto [10:21:34]json parsed OK: [10:21:34]protocol is kg_v1.0 [10:21:34]action value=print_text [10:21:34]process_action print_text [10:21:34]cmd_print_text [10:21:34]ExternCall_PrintAddStr [10:21:34]wPrintStart [10:21:34]Write to MH i2c: 01 00 00 CF 00 CF [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 07 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [10:21:34]RasterBufferAndPrint [10:21:34]line *****ТОВАРНЫЙ ЧЕК***** [10:21:34]line АЗС-91 [10:21:34]line Партнер нефть [10:21:34]line 02508201610067 [10:21:34]line Кассир : Арстанбеков Н. [10:21:34]line Счет N : (1)507170 [10:21:34]line 15.05.2024 10:04 [10:21:34]line ПРОДАЖА [10:21:34]line ТРК (МРК, ГНК): 31 [10:21:34]line Вид ГСМ : 2710194210 [10:21:34]line ДТ-К-5 [10:21:34]line 20.000 x 74.70 [10:21:34]line ИТОГ: 1494.00 [10:21:34]line Тип оплаты: Талоны: Топливная Карта [10:21:34]line 02750 [10:21:34]line ______________________ [10:21:34]line (подпись) [10:21:34]written 0, free lines is 4095 [10:21:34]OFD Sender: No OFD packet to send [10:21:35]Write to MH i2c: 01 00 00 E3 00 E3 [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: 01 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: 01 07 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 0F 0E 07 [10:21:35]RasterBufferAndPrint [10:21:35]line [10:21:35]line [10:21:35]line [10:21:35]line [10:21:35]line [10:21:35]written 0, free lines is 3601 [10:21:35]MH_Cut [10:21:35]Write to MH i2c: D1 01 00 EA 00 01 BC [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: D1 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: D1 01 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: D1 01 00 EA 00 00 BB [10:21:35]Write to MH i2c: 01 00 00 EB 00 EB [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** Cut start [10:21:35]*** Purtial cut [10:21:35]*** CUTSNS_PIN = 0 [10:21:35]*** Stage 1: CUTSNS_PIN = 1 [10:21:37]Read from MH i2c: 01 [10:21:37]MH_I2C_Read... [10:21:37]*** Stop cut motor [10:21:37]*** Cut end [10:21:37]Read from MH i2c: 01 07 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [10:21:37]process_action print_text done [10:21:37]requested_data is exist [10:21:37]produce_requested_data [10:21:37]requested_item fm.sn is exist - process it [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 11 00 00 [10:21:37]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [10:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:21:37]wFMCommunicate OK [10:21:37]requested_item fd.num is exist - process it [10:21:37]SAM_PROTO_GetFieldsCounters [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 13 00 00 [10:21:37]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 62 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 62 00 ED 00 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 94 06 01 00 0E 04 04 00 64 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 01 [10:21: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 94 06 01 00 0E 04 04 00 64 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:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_GetFieldsCounters done [10:21:37]requested_item shift.num is exist - process it [10:21:37]requested_item shift.opened is exist - process it [10:21:37]req_shift_opened [10:21:37]FM_GetShiftState [10:21:37]SAM_PROTO_GetShiftState [10:21:37]wFMCommunicate request_size=4 [10:21:37]MH_SAM_APDU [10:21:37]CAPDU: 80 13 01 00 [10:21:37]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [10:21:37]Write i2c OK [10:21:37]MH_I2C_Read... [10:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:37]Read from MH i2c: E2 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 [10:21:37]MH_I2C_Read... [10:21:37]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 16 [10:21:37]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:21:37]wFMCommunicate OK [10:21:37]SAM_PROTO_GetShiftState done [10:21:37]FM_GetShiftState done [10:21:37]req_shift_opened done [10:21:37]requested_item shift.open_date is exist - process it [10:21:37]req_shift_open_date [10:21:37]req_shift_open_date done [10:21:37]produce_requested_data done [10:21:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67220,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:21:37]process_action_free print_text [10:21:37]json_value_free [10:21:37]json_value_free done [10:21:37]process_json_proto returns [10:21:37]Send response to host [10:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67220,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:21:37]free response buf [10:21:37]execute_script done [10:21:37]execute_script returns [10:21:37]free content buf [10:21:37]Sock 7.Close socket [10:21:37]Sock 7.Thread stoped [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:31]accept exits with 9 [10:28:31]New connection [10:28:31]New thread 3066649956 created [10:28:31]Thread 3066506596 joined [10:28:31]Waiting for new connection... [10:28:31] Sock 9.Parse request [10:28:31]Sock 9.Check first char [10:28:31]Sock 9.First char is OK [10:28:31]request: POST /json_proto HTTP/1.0 [10:28:31]Method: POST [10:28:31]URL: /json_proto [10:28:31]Method is POST - this is cgi request [10:28:31]url: /json_proto [10:28:31]query_string will be loaded in cgi processing [10:28:31]execute_cgi json_proto POST (null) [10:28:31]execute_cgi path=json_proto method=POST [10:28:31]POST find Content-Length [10:28:31]Host: 172.17.41.195:8080 [10:28:31]Content-Length: 798 [10:28:31]Content-Type: application/json [10:28:31] [10:28:31]POST finish read [10:28:31]Found Content-Length = 798 [10:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507171", "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" ] } } [10:28:31]execute_script... [10:28: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)507171", "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" ] } } [10:28:31]POST & json_proto [10:28:31]process_json_proto [10:28:31]json parsed OK: [10:28:31]protocol is kg_v1.0 [10:28:31]action value=close_receipt [10:28:31]process_action close_receipt [10:28:31]cmd_close_receipt [10:28:31]MH_GetDate [10:28:31]Write to MH i2c: F0 00 00 EF 00 DE [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: F0 09 00 EF 00 00 50 8E 44 66 FC 21 6F 64 5F [10:28:31]GetLastDocTimeStamp 1715768437 [10:28:31]current date 1715768912 [10:28:31]FM_GetShiftState [10:28:31]SAM_PROTO_GetShiftState [10:28:31]wFMCommunicate request_size=4 [10:28:31]MH_SAM_APDU [10:28:31]CAPDU: 80 13 01 00 [10:28:31]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 18 [10:28:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_GetShiftState done [10:28:32]FM_GetShiftState done [10:28:32]opened in 1715732471 [10:28:32]opened+sec_in_day 1715818871 [10:28:32]quantity*price = 80003 [10:28:32]sum+1 = 80005 [10:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 39 15.05.2024 10:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67221 ФПД: 50607471174444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T102832&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67221&fm=50607471174444&tin=02508201610067®Number=0000000000091845&sum=80004 [10:28:33]StoreToDocumentArchive [10:28:33]shift 356 fd 67221 [10:28:33]save to /storage/0356/doc_00067221 [10:28:33]save last doc name /storage/0356/doc_00067221 to /storage/kkm_last_doc_name [10:28:33]save OK [10:28:33]Clear old archive folders... [10:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:33]tlvbuf is 0070F810 [10:28:33]SAM_PROTO_ClearQueue [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 09 00 00 [10:28:33]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]SAM_PROTO_ClearQueue done [10:28:33]KKMCreateOFDPacket [10:28:33]OFDProtocolAddRootSTLVToBuf [10:28:33]FM_MakeSignedData [10:28:33]FM_MakeSignedData [10:28:33]SAM_PROTO_SignData [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 01 02 [10:28:33]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=255 [10:28:33]MH_SAM_APDU [10:28:33]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 27 00 00 00 F4 03 04 00 50 8E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 06 01 00 35 04 06 00 2E 06 F8 57 [10:28:33]Write to MH i2c: E2 02 01 FF 00 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 27 00 00 00 F4 03 04 00 50 8E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 06 01 00 35 04 06 00 2E 06 F8 57 00 00 A4 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=7 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 02 02 02 A3 2C [10:28:33]Write to MH i2c: E2 0A 00 00 01 80 0D 02 02 02 00 A3 2C 00 00 4E [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 03 02 [10:28:33]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 0B 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 0B 00 01 01 00 DC 33 2E 3A FD BD AF 53 90 00 B1 [10:28:33]RAPDU: DC 33 2E 3A FD BD AF 53 90 00 [10:28:33]wFMCommunicate OK [10:28:33]SAM_PROTO_SignData done [10:28:33]FM_MakeSignedData done [10:28:33]CreateOFDProtocolMessage [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 11 00 00 [10:28:33]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 17 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [10:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:28:33]wFMCommunicate OK [10:28:33]CreateOFDProtocolMessage done [10:28:33]OFDSenderStorePacket 67221 [10:28:33]StoreOFDPacket docnum=67221 [10:28: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 ED 85 04 01 B4 9C 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 27 00 00 00 F4 03 04 00 50 8E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 06 01 00 35 04 06 00 2E 06 F8 57 A3 2C DC 33 2E 3A FD BD AF 53 [10:28:33]CheckFolder [10:28:33]dirname=/storage/ofd_packets [10:28:33]CheckFolder done [10:28:33]ProducePacketName [10:28:33]name=ofd_packets/00067221 [10:28:33]NVStorageSaveData ofd_packets/00067221 [10:28:33]File name is /storage/ofd_packets/00067221 [10:28:33]Write 298 bytes [10:28:33]NVStorageSaveData done [10:28:33]OFDSenderStorePacket done [10:28:33]KKMCreateOFDPacket done [10:28:33]NVStorageSaveData kkm_last_timestamp [10:28:33]File name is /storage/kkm_last_timestamp [10:28:33]Write 4 bytes [10:28:33]NVStorageSaveData done [10:28:33]ExternCall_PrintAddStr [10:28:33]wPrintStart [10:28:33]Write to MH i2c: 01 00 00 03 01 04 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [10:28:33]RasterBufferAndPrint [10:28:33]line Счет N : (1)507171 [10:28:33]line ИНН: 02508201610067 [10:28:33]line Контрольно-Кассовый Чек [10:28:33]line ПРОДАЖА [10:28:33]line ТРК (МРК, ГНК) : 31 [10:28:33]line Товар: 2710194210 [10:28:33]line ДТ-К-5 [10:28:33]line 10.710 * 74.70 [10:28:33]line = 800.04 [10:28:33]line НДС 12% НСП 1% [10:28:33]line > о реализуемом товаре [10:28:33]line ИТОГО: 800.04 [10:28:33]line НСП 1% : 7.08 [10:28:33]line НДС 12% : 84.96 [10:28:33]line Наличными: 0.00 [10:28:33]line Безнал.: 800.04 [10:28:33]line Место: АЗС № 91 "Партнер Нефть" [10:28:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:28:33]line СНО: Общий режим [10:28:33]line Чек 39 15.05.2024 10:28 [10:28:33]line Смена: 356 ФФД: 1.0 [10:28:33]line ЗНМ: 0300000119 [10:28:33]line РНМ: 0000000000091845 [10:28:33]line Версия ККМ: 001 [10:28:33]line Платежная система: O! деньги [10:28:33]line ФМ: 0000000000871829 [10:28:33]line ФД: 67221 [10:28:33]line ФПД: 50607471174444 [10:28:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T102832&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67221&fm=50607471174444&tin=02508201610067®Number=0000000000091845&sum=80004 [10:28:33]OFD Sender: Processing packet 67221 [packets to send 35, broken 34] [10:28:33]ProducePacketName [10:28:33]name=ofd_packets/00067221 [10:28:33]OFD Sender: To server: pG, [10:28:33]CommunicateWithHost lk.salyk.kg:30040 [10:28:33]ConnectInit lk.salyk.kg [10:28:33]written 0, free lines is 4095 [10:28:34]Connected sock=10 [10:28:34]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 ED 85 04 01 B4 9C 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 27 00 00 00 F4 03 04 00 50 8E 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 06 01 00 35 04 06 00 2E 06 F8 57 A3 2C DC 33 2E 3A FD BD AF 53 [10:28: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 1B F1 47 00 D1 A7 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 95 06 01 00 F4 03 04 00 2D 36 44 66 B6 04 01 00 00 D4 56 BC A5 17 0F D7 F9 [10:28:34]CommunicateWithHost err = 0 [10:28:34]CheckOFDResponse [10:28:34]1017 (14) - 77093643461234 [10:28:34]1041 (16) - 0000000000871829 [10:28:34]1040 (4) - 67221 [10:28:34]1012 (4) - 15.05.2024 04:12 [10:28:34]1206 (1) - 0 [10:28:34]OFD Sender: Remove packet 67221 [10:28:34]ProducePacketName [10:28:34]name=ofd_packets/00067221 [10:28:34]NVStorageDeleteData [10:28:34]Write to MH i2c: 01 00 00 2C 01 2D [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 D4 0C 14 [10:28:34]RasterBufferAndPrint [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]line [10:28:34]written 0, free lines is 3292 [10:28:34]MH_Cut [10:28:34]Write to MH i2c: D1 01 00 33 01 01 06 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 01 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: D1 01 00 33 01 00 05 [10:28:34]Write to MH i2c: 01 00 00 34 01 35 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]OFD Sender: No OFD packet to send [10:28:35]*** Cut start [10:28:35]*** Purtial cut [10:28:35]*** Stage 1: CUTSNS_PIN = 1 [10:28:35]Read from MH i2c: 01 [10:28:35]MH_I2C_Read... [10:28:35]*** Stop cut motor [10:28:35]*** Cut end [10:28:35]Read from MH i2c: 01 07 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 FF 0F 4A [10:28:35]process_action close_receipt done [10:28:35]requested_data is exist [10:28:35]produce_requested_data [10:28:35]requested_item fm.sn is exist - process it [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 11 00 00 [10:28:35]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 17 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [10:28: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:28:35]wFMCommunicate OK [10:28:35]requested_item fd.num is exist - process it [10:28:35]SAM_PROTO_GetFieldsCounters [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 00 00 [10:28:35]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 62 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 62 00 36 01 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 95 06 01 00 0E 04 04 00 64 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 4F [10:28: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 95 06 01 00 0E 04 04 00 64 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:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetFieldsCounters done [10:28:35]requested_item shift.num is exist - process it [10:28:35]requested_item shift.opened is exist - process it [10:28:35]req_shift_opened [10:28:35]FM_GetShiftState [10:28:35]SAM_PROTO_GetShiftState [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 01 00 [10:28:35]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 60 [10:28:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetShiftState done [10:28:35]FM_GetShiftState done [10:28:35]req_shift_opened done [10:28:35]requested_item shift.open_date is exist - process it [10:28:35]req_shift_open_date [10:28:35]req_shift_open_date done [10:28:35]produce_requested_data done [10:28:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67221,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:28:35]process_action_free close_receipt [10:28:35]json_value_free [10:28:35]json_value_free done [10:28:35]process_json_proto returns [10:28:35]Send response to host [10:28:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67221,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:28:35]free response buf [10:28:35]execute_script done [10:28:35]execute_script returns [10:28:35]free content buf [10:28:35]Sock 9.Close socket [10:28:35]Sock 9.Thread stoped [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]accept exits with 7 [10:32:04]New connection [10:32:04]New thread 3066506596 created [10:32:04]Thread 3066649956 joined [10:32:04]Waiting for new connection... [10:32:04] Sock 7.Parse request [10:32:04]Sock 7.Check first char [10:32:04]Sock 7.First char is OK [10:32:04]request: POST /json_proto HTTP/1.0 [10:32:04]Method: POST [10:32:04]URL: /json_proto [10:32:04]Method is POST - this is cgi request [10:32:04]url: /json_proto [10:32:04]query_string will be loaded in cgi processing [10:32:04]execute_cgi json_proto POST (null) [10:32:04]execute_cgi path=json_proto method=POST [10:32:04]POST find Content-Length [10:32:04]Host: 172.17.41.195:8080 [10:32:04]Content-Length: 796 [10:32:04]Content-Type: application/json [10:32:04] [10:32:04]POST finish read [10:32:04]Found Content-Length = 796 [10:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507173", "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" ] } } [10:32:04]execute_script... [10:32: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)507173", "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" ] } } [10:32:04]POST & json_proto [10:32:04]process_json_proto [10:32:04]json parsed OK: [10:32:04]protocol is kg_v1.0 [10:32:04]action value=close_receipt [10:32:04]process_action close_receipt [10:32:04]cmd_close_receipt [10:32:04]MH_GetDate [10:32:04]Write to MH i2c: F0 00 00 38 01 28 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 38 01 00 25 8F 44 66 FC 21 6F 64 7F [10:32:04]GetLastDocTimeStamp 1715768912 [10:32:04]current date 1715769125 [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 62 [10:32:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetShiftState done [10:32:04]FM_GetShiftState done [10:32:04]opened in 1715732471 [10:32:04]opened+sec_in_day 1715818871 [10:32:04]quantity*price = 150041 [10:32:04]sum+1 = 150042 [10:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 40 15.05.2024 10:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67222 ФПД: 53853002765087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103205&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67222&fm=53853002765087&tin=02508201610067®Number=0000000000091845&sum=150041 [10:32:06]StoreToDocumentArchive [10:32:06]shift 356 fd 67222 [10:32:06]save to /storage/0356/doc_00067222 [10:32:06]save last doc name /storage/0356/doc_00067222 to /storage/kkm_last_doc_name [10:32:06]save OK [10:32:06]Clear old archive folders... [10:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:32:06]tlvbuf is 0070F0F0 [10:32:06]SAM_PROTO_ClearQueue [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 09 00 00 [10:32:06]Write to MH i2c: E2 08 00 46 01 80 09 00 00 00 00 00 00 B9 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_ClearQueue done [10:32:06]KKMCreateOFDPacket [10:32:06]OFDProtocolAddRootSTLVToBuf [10:32:06]FM_MakeSignedData [10:32:06]FM_MakeSignedData [10:32:06]SAM_PROTO_SignData [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 01 02 [10:32:06]Write to MH i2c: E2 08 00 47 01 80 0D 01 02 00 00 00 00 C1 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=255 [10:32:06]MH_SAM_APDU [10:32:06]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 28 00 00 00 F4 03 04 00 25 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 06 01 00 35 04 06 00 [10:32:06]Write to MH i2c: E2 02 01 48 01 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 28 00 00 00 F4 03 04 00 25 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 06 01 00 35 04 06 00 00 00 C0 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=11 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 02 02 06 30 FA A1 19 93 1F [10:32:06]Write to MH i2c: E2 0E 00 49 01 80 0D 02 02 06 00 30 FA A1 19 93 1F 00 00 66 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 03 02 [10:32:06]Write to MH i2c: E2 08 00 4A 01 80 0D 03 02 00 00 00 00 C6 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 4A 01 00 B4 FE 7D 5C F9 3E 7F 14 90 00 1C [10:32:06]RAPDU: B4 FE 7D 5C F9 3E 7F 14 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_SignData done [10:32:06]FM_MakeSignedData done [10:32:06]CreateOFDProtocolMessage [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 11 00 00 [10:32:06]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [10:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:32:06]wFMCommunicate OK [10:32:06]CreateOFDProtocolMessage done [10:32:06]OFDSenderStorePacket 67222 [10:32:06]StoreOFDPacket docnum=67222 [10:32: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 10 01 00 00 66 DE 08 01 89 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 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 28 00 00 00 F4 03 04 00 25 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 06 01 00 35 04 06 00 30 FA A1 19 93 1F B4 FE 7D 5C F9 3E 7F 14 [10:32:06]CheckFolder [10:32:06]dirname=/storage/ofd_packets [10:32:06]CheckFolder done [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00067222 [10:32:06]NVStorageSaveData ofd_packets/00067222 [10:32:06]File name is /storage/ofd_packets/00067222 [10:32:06]Write 302 bytes [10:32:06]NVStorageSaveData done [10:32:06]OFDSenderStorePacket done [10:32:06]KKMCreateOFDPacket done [10:32:06]NVStorageSaveData kkm_last_timestamp [10:32:06]File name is /storage/kkm_last_timestamp [10:32:06]Write 4 bytes [10:32:06]NVStorageSaveData done [10:32:06]ExternCall_PrintAddStr [10:32:06]wPrintStart [10:32:06]Write to MH i2c: 01 00 00 4C 01 4D [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [10:32:06]RasterBufferAndPrint [10:32:06]line Счет N : (1)507173 [10:32:06]line ИНН: 02508201610067 [10:32:06]line Контрольно-Кассовый Чек [10:32:06]line ПРОДАЖА [10:32:06]line ТРК (МРК, ГНК) : 42 [10:32:06]line Товар: 2710124130 [10:32:06]line Super-92-К-5 [10:32:06]line 22.130 * 67.80 [10:32:06]line = 1500.41 [10:32:06]line НДС 12% НСП 1% [10:32:06]line > о реализуемом товаре [10:32:06]line ИТОГО: 1500.41 [10:32:06]line НСП 1% : 13.28 [10:32:06]line НДС 12% : 159.34 [10:32:06]line Наличными: 0.00 [10:32:06]line Безнал.: 1500.41 [10:32:06]line Место: АЗС № 91 "Партнер Нефть" [10:32:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:32:06]line СНО: Общий режим [10:32:06]line Чек 40 15.05.2024 10:32 [10:32:06]line Смена: 356 ФФД: 1.0 [10:32:06]line ЗНМ: 0300000119 [10:32:06]line РНМ: 0000000000091845 [10:32:06]line Версия ККМ: 001 [10:32:06]line Платежная система: O! деньги [10:32:06]line ФМ: 0000000000871829 [10:32:06]line ФД: 67222 [10:32:06]line ФПД: 53853002765087 [10:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103205&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67222&fm=53853002765087&tin=02508201610067®Number=0000000000091845&sum=150041 [10:32:06]written 0, free lines is 4095 [10:32:06]OFD Sender: Processing packet 67222 [packets to send 35, broken 34] [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00067222 [10:32:06]OFD Sender: To server: pG, [10:32:06]CommunicateWithHost lk.salyk.kg:30040 [10:32:06]ConnectInit lk.salyk.kg [10:32:06]Connected sock=10 [10:32: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 10 01 00 00 66 DE 08 01 89 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 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 28 00 00 00 F4 03 04 00 25 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 96 06 01 00 35 04 06 00 30 FA A1 19 93 1F B4 FE 7D 5C F9 3E 7F 14 [10:32: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 57 B2 47 00 30 E7 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 96 06 01 00 F4 03 04 00 02 37 44 66 B6 04 01 00 00 70 DA 25 E8 C8 1F BE 49 [10:32:06]CommunicateWithHost err = 0 [10:32:06]CheckOFDResponse [10:32:06]1017 (14) - 77093643461234 [10:32:06]1041 (16) - 0000000000871829 [10:32:06]1040 (4) - 67222 [10:32:06]1012 (4) - 15.05.2024 04:16 [10:32:06]1206 (1) - 0 [10:32:06]OFD Sender: Remove packet 67222 [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00067222 [10:32:06]NVStorageDeleteData [10:32:07]Write to MH i2c: 01 00 00 75 01 76 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 FD 0C 86 [10:32:07]RasterBufferAndPrint [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]written 0, free lines is 3330 [10:32:07]MH_Cut [10:32:07]Write to MH i2c: D1 01 00 7C 01 01 4F [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 7C 01 00 4E [10:32:07]Write to MH i2c: 01 00 00 7D 01 7E [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]OFD Sender: No OFD packet to send [10:32:07]*** Cut start [10:32:07]*** Purtial cut [10:32:07]*** CUTSNS_PIN = 0 [10:32:08]*** Stage 1: CUTSNS_PIN = 1 [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]*** Stop cut motor [10:32:09]*** Cut end [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [10:32:09]process_action close_receipt done [10:32:09]requested_data is exist [10:32:09]produce_requested_data [10:32:09]requested_item fm.sn is exist - process it [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 11 00 00 [10:32:09]Write to MH i2c: E2 08 00 7E 01 80 11 00 00 00 00 00 00 F9 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 7E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4F [10:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:32:09]wFMCommunicate OK [10:32:09]requested_item fd.num is exist - process it [10:32:09]SAM_PROTO_GetFieldsCounters [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 00 00 [10:32:09]Write to MH i2c: E2 08 00 7F 01 80 13 00 00 00 00 00 00 FC [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 7F 01 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 96 06 01 00 0E 04 04 00 64 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 9C [10:32: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 96 06 01 00 0E 04 04 00 64 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:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetFieldsCounters done [10:32:10]requested_item shift.num is exist - process it [10:32:10]requested_item shift.opened is exist - process it [10:32:10]req_shift_opened [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A9 [10:32:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]req_shift_opened done [10:32:10]requested_item shift.open_date is exist - process it [10:32:10]req_shift_open_date [10:32:10]req_shift_open_date done [10:32:10]produce_requested_data done [10:32:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67222,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:32:10]process_action_free close_receipt [10:32:10]json_value_free [10:32:10]json_value_free done [10:32:10]process_json_proto returns [10:32:10]Send response to host [10:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67222,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:32:10]free response buf [10:32:10]execute_script done [10:32:10]execute_script returns [10:32:10]free content buf [10:32:10]Sock 7.Close socket [10:32:10]Sock 7.Thread stoped [10:32:12]accept exits with 9 [10:32:12]New connection [10:32:12]New thread 3066649956 created [10:32:12]Thread 3066506596 joined [10:32:12]Waiting for new connection... [10:32:12] Sock 9.Parse request [10:32:12]Sock 9.Check first char [10:32:12]Sock 9.First char is OK [10:32:12]request: POST /json_proto HTTP/1.0 [10:32:12]Method: POST [10:32:12]URL: /json_proto [10:32:12]Method is POST - this is cgi request [10:32:12]url: /json_proto [10:32:12]query_string will be loaded in cgi processing [10:32:12]execute_cgi json_proto POST (null) [10:32:12]execute_cgi path=json_proto method=POST [10:32:12]POST find Content-Length [10:32:12]Host: 172.17.41.195:8080 [10:32:12]Content-Length: 1209 [10:32:12]Content-Type: application/json [10:32:12] [10:32:12]POST finish read [10:32:12]Found Content-Length = 1209 [10:32: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)507172\u000A15.05.2024 10: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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.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" ] } } [10:32:12]execute_script... [10:32: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)507172\u000A15.05.2024 10: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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.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" ] } } [10:32:12]POST & json_proto [10:32:12]process_json_proto [10:32:12]json parsed OK: [10:32:12]protocol is kg_v1.0 [10:32:12]action value=print_text [10:32:12]process_action print_text [10:32:12]cmd_print_text [10:32:12]ExternCall_PrintAddStr [10:32:12]wPrintStart [10:32:12]Write to MH i2c: 01 00 00 81 01 82 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [10:32:12]RasterBufferAndPrint [10:32:12]line *****ТОВАРНЫЙ ЧЕК***** [10:32:12]line АЗС-91 [10:32:12]line Партнер нефть [10:32:12]line 02508201610067 [10:32:12]line Кассир : Арстанбеков Н. [10:32:12]line Счет N : (1)507172 [10:32:12]line 15.05.2024 10:14 [10:32:12]line ПРОДАЖА [10:32:12]line ТРК (МРК, ГНК): 21 [10:32:12]line Вид ГСМ : 2710194210 [10:32:12]line ДТ-К-5 [10:32:12]line 34.000 x 74.70 [10:32:12]line ИТОГ: 2539.80 [10:32:12]line Тип оплаты: Талоны: Топливная Карта [10:32:12]line 02750 [10:32:12]line ______________________ [10:32:12]line (подпись) [10:32:12]written 0, free lines is 4095 [10:32:12]Write to MH i2c: 01 00 00 95 01 96 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 10 0E BB [10:32:12]RasterBufferAndPrint [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]line [10:32:12]written 0, free lines is 3602 [10:32:12]MH_Cut [10:32:12]Write to MH i2c: D1 01 00 9C 01 01 6F [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 01 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: D1 01 00 9C 01 00 6E [10:32:12]Write to MH i2c: 01 00 00 9D 01 9E [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]OFD Sender: No OFD packet to send [10:32:13]*** Cut start [10:32:13]*** Purtial cut [10:32:13]*** Stage 1: CUTSNS_PIN = 1 [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]*** Stop cut motor [10:32:13]*** Cut end [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [10:32:13]process_action print_text done [10:32:13]requested_data is exist [10:32:13]produce_requested_data [10:32:13]requested_item fm.sn is exist - process it [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 11 00 00 [10:32:13]Write to MH i2c: E2 08 00 9E 01 80 11 00 00 00 00 00 00 19 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 9E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [10: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 [10:32:13]wFMCommunicate OK [10:32:13]requested_item fd.num is exist - process it [10:32:13]SAM_PROTO_GetFieldsCounters [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 00 00 [10:32:13]Write to MH i2c: E2 08 00 9F 01 80 13 00 00 00 00 00 00 1C [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 62 00 9F 01 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 96 06 01 00 0E 04 04 00 64 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 BC [10: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 96 06 01 00 0E 04 04 00 64 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:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetFieldsCounters done [10:32:13]requested_item shift.num is exist - process it [10:32:13]requested_item shift.opened is exist - process it [10:32:13]req_shift_opened [10:32:13]FM_GetShiftState [10:32:13]SAM_PROTO_GetShiftState [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 01 00 [10:32:13]Write to MH i2c: E2 08 00 A0 01 80 13 01 00 00 00 00 00 1E [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 A0 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [10:32:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetShiftState done [10:32:13]FM_GetShiftState done [10:32:13]req_shift_opened done [10:32:13]requested_item shift.open_date is exist - process it [10:32:13]req_shift_open_date [10:32:13]req_shift_open_date done [10:32:13]produce_requested_data done [10:32:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67222,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:32:13]process_action_free print_text [10:32:13]json_value_free [10:32:13]json_value_free done [10:32:13]process_json_proto returns [10:32:13]Send response to host [10:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67222,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:32:13]free response buf [10:32:13]execute_script done [10:32:13]execute_script returns [10:32:13]free content buf [10:32:13]Sock 9.Close socket [10:32:13]Sock 9.Thread stoped [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:39]accept exits with 7 [10:34:39]New connection [10:34:39]New thread 3066506596 created [10:34:39]Thread 3066649956 joined [10:34:39]Waiting for new connection... [10:34:39] Sock 7.Parse request [10:34:39]Sock 7.Check first char [10:34:39]Sock 7.First char is OK [10:34:39]request: POST /json_proto HTTP/1.0 [10:34:39]Method: POST [10:34:39]URL: /json_proto [10:34:39]Method is POST - this is cgi request [10:34:39]url: /json_proto [10:34:39]query_string will be loaded in cgi processing [10:34:39]execute_cgi json_proto POST (null) [10:34:39]execute_cgi path=json_proto method=POST [10:34:39]POST find Content-Length [10:34:39]Host: 172.17.41.195:8080 [10:34:39]Content-Length: 800 [10:34:39]Content-Type: application/json [10:34:39] [10:34:39]POST finish read [10:34:39]Found Content-Length = 800 [10:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507175", "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" : 16.070, "sum" : 1200.43, "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.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]execute_script... [10:34: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)507175", "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" : 16.070, "sum" : 1200.43, "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.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:39]POST & json_proto [10:34:39]process_json_proto [10:34:39]json parsed OK: [10:34:39]protocol is kg_v1.0 [10:34:39]action value=close_receipt [10:34:39]process_action close_receipt [10:34:39]cmd_close_receipt [10:34:39]MH_GetDate [10:34:39]Write to MH i2c: F0 00 00 A1 01 91 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: F0 09 00 A1 01 00 C0 8F 44 66 FC 21 6F 64 83 [10:34:39]GetLastDocTimeStamp 1715769125 [10:34:39]current date 1715769280 [10:34:39]FM_GetShiftState [10:34:39]SAM_PROTO_GetShiftState [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 13 01 00 [10:34:39]Write to MH i2c: E2 08 00 A2 01 80 13 01 00 00 00 00 00 20 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 0E 00 A2 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CB [10:34:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:34:39]wFMCommunicate OK [10:34:39]SAM_PROTO_GetShiftState done [10:34:39]FM_GetShiftState done [10:34:39]opened in 1715732471 [10:34:39]opened+sec_in_day 1715818871 [10:34:39]quantity*price = 120042 [10:34:39]sum+1 = 120044 [10:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.43 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.43 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 41 15.05.2024 10:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67223 ФПД: 66944830824539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103440&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67223&fm=66944830824539&tin=02508201610067®Number=0000000000091845&sum=120043 [10:34:41]StoreToDocumentArchive [10:34:41]shift 356 fd 67223 [10:34:41]save to /storage/0356/doc_00067223 [10:34:41]save last doc name /storage/0356/doc_00067223 to /storage/kkm_last_doc_name [10:34:41]save OK [10:34:41]Clear old archive folders... [10:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:34:41]tlvbuf is 0072B240 [10:34:41]SAM_PROTO_ClearQueue [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 09 00 00 [10:34:41]Write to MH i2c: E2 08 00 AF 01 80 09 00 00 00 00 00 00 22 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [10:34:41]RAPDU: 90 00 [10:34:41]wFMCommunicate OK [10:34:41]SAM_PROTO_ClearQueue done [10:34:41]KKMCreateOFDPacket [10:34:41]OFDProtocolAddRootSTLVToBuf [10:34:41]FM_MakeSignedData [10:34:41]FM_MakeSignedData [10:34:41]SAM_PROTO_SignData [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 0D 01 02 [10:34:41]Write to MH i2c: E2 08 00 B0 01 80 0D 01 02 00 00 00 00 2A [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 B0 01 00 90 00 25 [10:34:41]RAPDU: 90 00 [10:34:41]wFMCommunicate OK [10:34:41]wFMCommunicate request_size=255 [10:34:41]MH_SAM_APDU [10:34: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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 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 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C0 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 06 01 00 35 04 06 00 3C E2 CE DC [10:34:41]Write to MH i2c: E2 02 01 B1 01 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 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 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C0 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 06 01 00 35 04 06 00 3C E2 CE DC 00 00 2F [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 B1 01 00 90 00 26 [10:34:41]RAPDU: 90 00 [10:34:41]wFMCommunicate OK [10:34:41]wFMCommunicate request_size=7 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 0D 02 02 02 60 5B [10:34:41]Write to MH i2c: E2 0A 00 B2 01 80 0D 02 02 02 00 60 5B 00 00 EC [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [10:34:41]RAPDU: 90 00 [10:34:41]wFMCommunicate OK [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 0D 03 02 [10:34:41]Write to MH i2c: E2 08 00 B3 01 80 0D 03 02 00 00 00 00 2F [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 0B 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 0B 00 B3 01 00 2B 76 85 C6 8F E1 A4 4E 90 00 7E [10:34:41]RAPDU: 2B 76 85 C6 8F E1 A4 4E 90 00 [10:34:41]wFMCommunicate OK [10:34:41]SAM_PROTO_SignData done [10:34:41]FM_MakeSignedData done [10:34:41]CreateOFDProtocolMessage [10:34:41]wFMCommunicate request_size=4 [10:34:41]MH_SAM_APDU [10:34:41]CAPDU: 80 11 00 00 [10:34:41]Write to MH i2c: E2 08 00 B4 01 80 11 00 00 00 00 00 00 2F [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:41]Read from MH i2c: E2 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: E2 17 00 B4 01 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:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:34:41]wFMCommunicate OK [10:34:41]CreateOFDProtocolMessage done [10:34:41]OFDSenderStorePacket 67223 [10:34:41]StoreOFDPacket docnum=67223 [10:34: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 EF F0 04 01 1C E0 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 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 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C0 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 06 01 00 35 04 06 00 3C E2 CE DC 60 5B 2B 76 85 C6 8F E1 A4 4E [10:34:41]CheckFolder [10:34:41]dirname=/storage/ofd_packets [10:34:41]CheckFolder done [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00067223 [10:34:41]NVStorageSaveData ofd_packets/00067223 [10:34:41]File name is /storage/ofd_packets/00067223 [10:34:41]Write 298 bytes [10:34:41]NVStorageSaveData done [10:34:41]OFDSenderStorePacket done [10:34:41]KKMCreateOFDPacket done [10:34:41]NVStorageSaveData kkm_last_timestamp [10:34:41]File name is /storage/kkm_last_timestamp [10:34:41]Write 4 bytes [10:34:41]NVStorageSaveData done [10:34:41]ExternCall_PrintAddStr [10:34:41]wPrintStart [10:34:41]Write to MH i2c: 01 00 00 B5 01 B6 [10:34:41]Write i2c OK [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 [10:34:41]MH_I2C_Read... [10:34:41]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 FF 0F CB [10:34:41]RasterBufferAndPrint [10:34:41]line Счет N : (1)507175 [10:34:41]line ИНН: 02508201610067 [10:34:41]line Контрольно-Кассовый Чек [10:34:41]line ПРОДАЖА [10:34:41]line ТРК (МРК, ГНК) : 11 [10:34:41]line Товар: 2710194210 [10:34:41]line ДТ-К-5 [10:34:41]line 16.070 * 74.70 [10:34:41]line = 1200.43 [10:34:41]line НДС 12% НСП 1% [10:34:41]line > о реализуемом товаре [10:34:41]line ИТОГО: 1200.43 [10:34:41]line НСП 1% : 10.62 [10:34:41]line НДС 12% : 127.48 [10:34:41]line Наличными: 0.00 [10:34:41]line Безнал.: 1200.43 [10:34:41]line Место: АЗС № 91 "Партнер Нефть" [10:34:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:34:41]line СНО: Общий режим [10:34:41]line Чек 41 15.05.2024 10:34 [10:34:41]line Смена: 356 ФФД: 1.0 [10:34:41]line ЗНМ: 0300000119 [10:34:41]line РНМ: 0000000000091845 [10:34:41]line Версия ККМ: 001 [10:34:41]line Платежная система: O! деньги [10:34:41]line ФМ: 0000000000871829 [10:34:41]line ФД: 67223 [10:34:41]line ФПД: 66944830824539 [10:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103440&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67223&fm=66944830824539&tin=02508201610067®Number=0000000000091845&sum=120043 [10:34:41]OFD Sender: Processing packet 67223 [packets to send 35, broken 34] [10:34:41]ProducePacketName [10:34:41]name=ofd_packets/00067223 [10:34:41]OFD Sender: To server: pG, [10:34:41]CommunicateWithHost lk.salyk.kg:30040 [10:34:41]ConnectInit lk.salyk.kg [10:34:41]written 0, free lines is 4095 [10:34:41]Connected sock=10 [10:34: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 0C 01 00 00 EF F0 04 01 1C E0 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB 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 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C0 8F 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 97 06 01 00 35 04 06 00 3C E2 CE DC 60 5B 2B 76 85 C6 8F E1 A4 4E [10:34: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 0B FF 47 00 FF 52 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 97 06 01 00 F4 03 04 00 9D 37 44 66 B6 04 01 00 00 4A 30 B0 28 9D 0C 81 34 [10:34:42]CommunicateWithHost err = 0 [10:34:42]CheckOFDResponse [10:34:42]1017 (14) - 77093643461234 [10:34:42]1041 (16) - 0000000000871829 [10:34:42]1040 (4) - 67223 [10:34:42]1012 (4) - 15.05.2024 04:18 [10:34:42]1206 (1) - 0 [10:34:42]OFD Sender: Remove packet 67223 [10:34:42]ProducePacketName [10:34:42]name=ofd_packets/00067223 [10:34:42]NVStorageDeleteData [10:34:42]Write to MH i2c: 01 00 00 DE 01 DF [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 E6 0C D8 [10:34:42]RasterBufferAndPrint [10:34:42]line [10:34:42]line [10:34:42]line [10:34:42]line [10:34:42]line [10:34:42]written 0, free lines is 3308 [10:34:42]MH_Cut [10:34:42]Write to MH i2c: D1 01 00 E5 01 01 B8 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: D1 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: D1 01 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: D1 01 00 E5 01 00 B7 [10:34:42]Write to MH i2c: 01 00 00 E6 01 E7 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]OFD Sender: No OFD packet to send [10:34:43]*** Cut start [10:34:43]*** Purtial cut [10:34:43]*** CUTSNS_PIN = 0 [10:34:43]*** Stage 1: CUTSNS_PIN = 1 [10:34:45]Read from MH i2c: 01 [10:34:45]MH_I2C_Read... [10:34:45]*** Stop cut motor [10:34:45]*** Cut end [10:34:45]Read from MH i2c: 01 07 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [10:34:45]process_action close_receipt done [10:34:45]requested_data is exist [10:34:45]produce_requested_data [10:34:45]requested_item fm.sn is exist - process it [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 11 00 00 [10:34:45]Write to MH i2c: E2 08 00 E7 01 80 11 00 00 00 00 00 00 62 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 E7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [10:34: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:34:45]wFMCommunicate OK [10:34:45]requested_item fd.num is exist - process it [10:34:45]SAM_PROTO_GetFieldsCounters [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 13 00 00 [10:34:45]Write to MH i2c: E2 08 00 E8 01 80 13 00 00 00 00 00 00 65 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 E8 01 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 97 06 01 00 0E 04 04 00 64 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 09 [10:34: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 97 06 01 00 0E 04 04 00 64 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:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetFieldsCounters done [10:34:45]requested_item shift.num is exist - process it [10:34:45]requested_item shift.opened is exist - process it [10:34:45]req_shift_opened [10:34:45]FM_GetShiftState [10:34:45]SAM_PROTO_GetShiftState [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 13 01 00 [10:34:45]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [10:34:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetShiftState done [10:34:45]FM_GetShiftState done [10:34:45]req_shift_opened done [10:34:45]requested_item shift.open_date is exist - process it [10:34:45]req_shift_open_date [10:34:45]req_shift_open_date done [10:34:45]produce_requested_data done [10:34:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:34:45]process_action_free close_receipt [10:34:45]json_value_free [10:34:45]json_value_free done [10:34:45]process_json_proto returns [10:34:45]Send response to host [10:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:34:45]free response buf [10:34:45]execute_script done [10:34:45]execute_script returns [10:34:45]free content buf [10:34:45]Sock 7.Close socket [10:34:45]Sock 7.Thread stoped [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:10]accept exits with 9 [10:35:10]New connection [10:35:10]New thread 3066649956 created [10:35:10]Thread 3066506596 joined [10:35:10]Waiting for new connection... [10:35:10] Sock 9.Parse request [10:35:10]Sock 9.Check first char [10:35:10]Sock 9.First char is OK [10:35:10]request: POST /json_proto HTTP/1.0 [10:35:10]Method: POST [10:35:10]URL: /json_proto [10:35:10]Method is POST - this is cgi request [10:35:10]url: /json_proto [10:35:10]query_string will be loaded in cgi processing [10:35:10]execute_cgi json_proto POST (null) [10:35:10]execute_cgi path=json_proto method=POST [10:35:10]POST find Content-Length [10:35:10]Host: 172.17.41.195:8080 [10:35:10]Content-Length: 1173 [10:35:10]Content-Type: application/json [10:35:10] [10:35:10]POST finish read [10:35:10]Found Content-Length = 1173 [10:35: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)507174\u000A15.05.2024 10:17\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:35:10]execute_script... [10:35: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)507174\u000A15.05.2024 10:17\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:35:10]POST & json_proto [10:35:10]process_json_proto [10:35:10]json parsed OK: [10:35:10]protocol is kg_v1.0 [10:35:10]action value=print_text [10:35:10]process_action print_text [10:35:10]cmd_print_text [10:35:10]ExternCall_PrintAddStr [10:35:10]wPrintStart [10:35:10]Write to MH i2c: 01 00 00 EA 01 EB [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [10:35:10]RasterBufferAndPrint [10:35:10]line *****ТОВАРНЫЙ ЧЕК***** [10:35:10]line АЗС-91 [10:35:10]line Партнер нефть [10:35:10]line 02508201610067 [10:35:10]line Кассир : Арстанбеков Н. [10:35:10]line Счет N : (1)507174 [10:35:10]line 15.05.2024 10:17 [10:35:10]line ПРОДАЖА [10:35:10]line ТРК (МРК, ГНК): 33 [10:35:10]line Вид ГСМ : 2710124130 [10:35:10]line Аи-92-К-5 [10:35:10]line 10.000 x 66.80 [10:35:10]line ИТОГ: 668.00 [10:35:10]line Тип оплаты: Талоны: ТК ГПНА Online [10:35:10]line 30039368 [10:35:10]line ______________________ [10:35:10]line (подпись) [10:35:10]written 0, free lines is 4095 [10:35:10]Write to MH i2c: 01 00 00 FE 01 FF [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 FE 01 00 00 00 00 00 11 0E 25 [10:35:10]RasterBufferAndPrint [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]written 0, free lines is 3603 [10:35:10]MH_Cut [10:35:10]Write to MH i2c: D1 01 00 05 02 01 D9 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 05 02 00 D8 [10:35:10]Write to MH i2c: 01 00 00 06 02 08 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:11]*** Cut start [10:35:11]*** Purtial cut [10:35:11]*** Stage 1: CUTSNS_PIN = 1 [10:35:11]Read from MH i2c: 01 [10:35:11]MH_I2C_Read... [10:35:11]*** Stop cut motor [10:35:11]*** Cut end [10:35:11]Read from MH i2c: 01 07 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [10:35:11]process_action print_text done [10:35:11]requested_data is exist [10:35:11]produce_requested_data [10:35:11]requested_item fm.sn is exist - process it [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 11 00 00 [10:35:11]Write to MH i2c: E2 08 00 07 02 80 11 00 00 00 00 00 00 83 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 17 00 07 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [10:35:11]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:11]wFMCommunicate OK [10:35:11]requested_item fd.num is exist - process it [10:35:11]SAM_PROTO_GetFieldsCounters [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 00 00 [10:35:11]Write to MH i2c: E2 08 00 08 02 80 13 00 00 00 00 00 00 86 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 62 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 62 00 08 02 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 97 06 01 00 0E 04 04 00 64 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 2A [10:35: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 97 06 01 00 0E 04 04 00 64 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:35:11]wFMCommunicate OK [10:35:11]SAM_PROTO_GetFieldsCounters done [10:35:11]requested_item shift.num is exist - process it [10:35:11]requested_item shift.opened is exist - process it [10:35:11]req_shift_opened [10:35:11]FM_GetShiftState [10:35:11]SAM_PROTO_GetShiftState [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 01 00 [10:35:11]Write to MH i2c: E2 08 00 09 02 80 13 01 00 00 00 00 00 88 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 09 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 33 [10:35:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetShiftState done [10:35:12]FM_GetShiftState done [10:35:12]req_shift_opened done [10:35:12]requested_item shift.open_date is exist - process it [10:35:12]req_shift_open_date [10:35:12]req_shift_open_date done [10:35:12]produce_requested_data done [10:35:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:35:12]process_action_free print_text [10:35:12]json_value_free [10:35:12]json_value_free done [10:35:12]process_json_proto returns [10:35:12]Send response to host [10:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:35:12]free response buf [10:35:12]execute_script done [10:35:12]execute_script returns [10:35:12]free content buf [10:35:12]Sock 9.Close socket [10:35:12]Sock 9.Thread stoped [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:50]accept exits with 7 [10:36:50]New connection [10:36:50]New thread 3066506596 created [10:36:50]Thread 3066649956 joined [10:36:50]Waiting for new connection... [10:36:50] Sock 7.Parse request [10:36:50]Sock 7.Check first char [10:36:50]Sock 7.First char is OK [10:36:50]request: POST /json_proto HTTP/1.0 [10:36:50]Method: POST [10:36:50]URL: /json_proto [10:36:50]Method is POST - this is cgi request [10:36:50]url: /json_proto [10:36:50]query_string will be loaded in cgi processing [10:36:50]execute_cgi json_proto POST (null) [10:36:50]execute_cgi path=json_proto method=POST [10:36:50]POST find Content-Length [10:36:50]Host: 172.17.41.195:8080 [10:36:50]Content-Length: 1212 [10:36:50]Content-Type: application/json [10:36:50] [10:36:50]POST finish read [10:36:50]Found Content-Length = 1212 [10:36:50]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)507176\u000A15.05.2024 10:19\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 18.550 x 66.80\u000A\u0418\u0422\u041E\u0413: 1239.14\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\u000A99928\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:50]execute_script... [10:36:50]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)507176\u000A15.05.2024 10:19\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 18.550 x 66.80\u000A\u0418\u0422\u041E\u0413: 1239.14\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\u000A99928\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:50]POST & json_proto [10:36:50]process_json_proto [10:36:50]json parsed OK: [10:36:50]protocol is kg_v1.0 [10:36:50]action value=print_text [10:36:50]process_action print_text [10:36:50]cmd_print_text [10:36:50]ExternCall_PrintAddStr [10:36:50]wPrintStart [10:36:50]Write to MH i2c: 01 00 00 0A 02 0C [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 07 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [10:36:50]RasterBufferAndPrint [10:36:50]line *****ТОВАРНЫЙ ЧЕК***** [10:36:50]line АЗС-91 [10:36:50]line Партнер нефть [10:36:50]line 02508201610067 [10:36:50]line Кассир : Арстанбеков Н. [10:36:50]line Счет N : (1)507176 [10:36:50]line 15.05.2024 10:19 [10:36:50]line ПРОДАЖА [10:36:50]line ТРК (МРК, ГНК): 43 [10:36:50]line Вид ГСМ : 2710124130 [10:36:50]line Аи-92-К-5 [10:36:50]line 18.550 x 66.80 [10:36:50]line ИТОГ: 1239.14 [10:36:50]line Тип оплаты: Талоны: Топливная Карта [10:36:50]line 99928 [10:36:50]line ______________________ [10:36:50]line (подпись) [10:36:50]written 0, free lines is 4095 [10:36:50]Write to MH i2c: 01 00 00 1E 02 20 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 07 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 12 0E 47 [10:36:50]RasterBufferAndPrint [10:36:50]line [10:36:50]line [10:36:50]line [10:36:50]line [10:36:50]line [10:36:50]written 0, free lines is 3604 [10:36:50]MH_Cut [10:36:50]Write to MH i2c: D1 01 00 25 02 01 F9 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: D1 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: D1 01 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: D1 01 00 25 02 00 F8 [10:36:50]Write to MH i2c: 01 00 00 26 02 28 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:51]*** Cut start [10:36:51]*** Purtial cut [10:36:51]*** CUTSNS_PIN = 0 [10:36:51]*** Stage 1: CUTSNS_PIN = 1 [10:36:52]OFD Sender: No OFD packet to send [10:36:53]Read from MH i2c: 01 [10:36:53]MH_I2C_Read... [10:36:53]*** Stop cut motor [10:36:53]*** Cut end [10:36:53]Read from MH i2c: 01 07 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [10:36:53]process_action print_text done [10:36:53]requested_data is exist [10:36:53]produce_requested_data [10:36:53]requested_item fm.sn is exist - process it [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 11 00 00 [10:36:53]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 17 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [10:36: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:36:53]wFMCommunicate OK [10:36:53]requested_item fd.num is exist - process it [10:36:53]SAM_PROTO_GetFieldsCounters [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 13 00 00 [10:36:53]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 62 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 62 00 28 02 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 97 06 01 00 0E 04 04 00 64 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 4A [10:36: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 97 06 01 00 0E 04 04 00 64 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:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_GetFieldsCounters done [10:36:53]requested_item shift.num is exist - process it [10:36:53]requested_item shift.opened is exist - process it [10:36:53]req_shift_opened [10:36:53]FM_GetShiftState [10:36:53]SAM_PROTO_GetShiftState [10:36:53]wFMCommunicate request_size=4 [10:36:53]MH_SAM_APDU [10:36:53]CAPDU: 80 13 01 00 [10:36:53]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [10:36:53]Write i2c OK [10:36:53]MH_I2C_Read... [10:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:53]Read from MH i2c: E2 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 [10:36:53]MH_I2C_Read... [10:36:53]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 53 [10:36:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:36:53]wFMCommunicate OK [10:36:53]SAM_PROTO_GetShiftState done [10:36:53]FM_GetShiftState done [10:36:53]req_shift_opened done [10:36:53]requested_item shift.open_date is exist - process it [10:36:53]req_shift_open_date [10:36:53]req_shift_open_date done [10:36:53]produce_requested_data done [10:36:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:36:53]process_action_free print_text [10:36:53]json_value_free [10:36:53]json_value_free done [10:36:53]process_json_proto returns [10:36:53]Send response to host [10:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67223,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:36:53]free response buf [10:36:53]execute_script done [10:36:53]execute_script returns [10:36:53]free content buf [10:36:53]Sock 7.Close socket [10:36:53]Sock 7.Thread stoped [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:34]accept exits with 9 [10:39:34]New connection [10:39:34]New thread 3066649956 created [10:39:34]Thread 3066506596 joined [10:39:34]Waiting for new connection... [10:39:34] Sock 9.Parse request [10:39:34]Sock 9.Check first char [10:39:34]Sock 9.First char is OK [10:39:34]request: POST /json_proto HTTP/1.0 [10:39:34]Method: POST [10:39:34]URL: /json_proto [10:39:34]Method is POST - this is cgi request [10:39:34]url: /json_proto [10:39:34]query_string will be loaded in cgi processing [10:39:34]execute_cgi json_proto POST (null) [10:39:34]execute_cgi path=json_proto method=POST [10:39:34]POST find Content-Length [10:39:34]Host: 172.17.41.195:8080 [10:39:34]Content-Length: 656 [10:39:34]Content-Type: application/json [10:39:34] [10:39:34]POST finish read [10:39:34]Found Content-Length = 656 [10:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12066", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:34]execute_script... [10:39: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 : (3)12066", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:34]POST & json_proto [10:39:34]process_json_proto [10:39:34]json parsed OK: [10:39:34]protocol is kg_v1.0 [10:39:34]action value=close_receipt [10:39:34]process_action close_receipt [10:39:34]cmd_close_receipt [10:39:34]MH_GetDate [10:39:34]Write to MH i2c: F0 00 00 2A 02 1B [10:39:34]Write i2c OK [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: F0 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: F0 09 00 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: F0 09 00 2A 02 00 E6 90 44 66 FC 21 6F 64 34 [10:39:34]GetLastDocTimeStamp 1715769280 [10:39:34]current date 1715769574 [10:39:34]FM_GetShiftState [10:39:34]SAM_PROTO_GetShiftState [10:39:34]wFMCommunicate request_size=4 [10:39:34]MH_SAM_APDU [10:39:34]CAPDU: 80 13 01 00 [10:39:34]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [10:39:34]Write i2c OK [10:39:34]MH_I2C_Read... [10:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:34]Read from MH i2c: E2 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 0E 00 [10:39:34]MH_I2C_Read... [10:39:34]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 55 [10:39:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:39:34]wFMCommunicate OK [10:39:34]SAM_PROTO_GetShiftState done [10:39:34]FM_GetShiftState done [10:39:34]opened in 1715732471 [10:39:34]opened+sec_in_day 1715818871 [10:39:34]quantity*price = 17000 [10:39:34]sum+1 = 17001 [10:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 42 15.05.2024 10:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67224 ФПД: 224528127631192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103934&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67224&fm=224528127631192&tin=02508201610067®Number=0000000000091845&sum=17000 0 [10:39:35]StoreToDocumentArchive [10:39:35]shift 356 fd 67224 [10:39:35]save to /storage/0356/doc_00067224 [10:39:35]save last doc name /storage/0356/doc_00067224 to /storage/kkm_last_doc_name [10:39:35]save OK [10:39:35]Clear old archive folders... [10:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:39:35]tlvbuf is 0071CE90 [10:39:35]SAM_PROTO_ClearQueue [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 09 00 00 [10:39:35]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_ClearQueue done [10:39:35]KKMCreateOFDPacket [10:39:35]OFDProtocolAddRootSTLVToBuf [10:39:35]FM_MakeSignedData [10:39:35]FM_MakeSignedData [10:39:35]SAM_PROTO_SignData [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 01 02 [10:39:35]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=255 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 90 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:39:35]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 90 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 07 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=53 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 06 01 00 35 04 06 00 CC 35 07 4A 1F 58 [10:39:35]Write to MH i2c: E2 38 00 3B 02 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 06 01 00 35 04 06 00 CC 35 07 4A 1F 58 00 00 19 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [10:39:35]RAPDU: 90 00 [10:39:35]wFMCommunicate OK [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 0D 03 02 [10:39:35]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:35]Read from MH i2c: E2 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 [10:39:35]MH_I2C_Read... [10:39:35]Read from MH i2c: E2 0B 00 3C 02 00 11 BB 7C 7C 0B 30 4C A0 90 00 A5 [10:39:35]RAPDU: 11 BB 7C 7C 0B 30 4C A0 90 00 [10:39:35]wFMCommunicate OK [10:39:35]SAM_PROTO_SignData done [10:39:35]FM_MakeSignedData done [10:39:35]CreateOFDProtocolMessage [10:39:35]wFMCommunicate request_size=4 [10:39:35]MH_SAM_APDU [10:39:35]CAPDU: 80 11 00 00 [10:39:35]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [10:39:35]Write i2c OK [10:39:35]MH_I2C_Read... [10:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:36]Read from MH i2c: E2 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 17 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [10:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:39:36]wFMCommunicate OK [10:39:36]CreateOFDProtocolMessage done [10:39:36]OFDSenderStorePacket 67224 [10:39:36]StoreOFDPacket docnum=67224 [10:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 3A 01 00 00 02 05 32 01 D1 8F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 90 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 06 01 00 35 04 06 00 CC 35 07 4A 1F 58 11 BB 7C 7C 0B 30 4C A0 [10:39:36]CheckFolder [10:39:36]dirname=/storage/ofd_packets [10:39:36]CheckFolder done [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00067224 [10:39:36]NVStorageSaveData ofd_packets/00067224 [10:39:36]File name is /storage/ofd_packets/00067224 [10:39:36]Write 344 bytes [10:39:36]NVStorageSaveData done [10:39:36]OFDSenderStorePacket done [10:39:36]KKMCreateOFDPacket done [10:39:36]NVStorageSaveData kkm_last_timestamp [10:39:36]File name is /storage/kkm_last_timestamp [10:39:36]Write 4 bytes [10:39:36]NVStorageSaveData done [10:39:36]ExternCall_PrintAddStr [10:39:36]wPrintStart [10:39:36]Write to MH i2c: 01 00 00 3E 02 40 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [10:39:36]RasterBufferAndPrint [10:39:36]line Счет N : (3)12066 [10:39:36]line ИНН: 02508201610067 [10:39:36]line Контрольно-Кассовый Чек [10:39:36]line ПРОДАЖА [10:39:36]line Товар: 4600682557456 [10:39:36]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:39:36]line 2.000 * 85.00 [10:39:36]line = 170.00 [10:39:36]line НДС 12% НСП 1% [10:39:36]line > о реализуемом товаре [10:39:36]line ИТОГО: 170.00 [10:39:36]line НСП 1% : 1.50 [10:39:36]line НДС 12% : 18.05 [10:39:36]line Наличными: 170.00 [10:39:36]line Безнал.: 0.00 [10:39:36]line Место: АЗС № 91 "Партнер Нефть" [10:39:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:39:36]line СНО: Общий режим [10:39:36]line Чек 42 15.05.2024 10:39 [10:39:36]line Смена: 356 ФФД: 1.0 [10:39:36]line ЗНМ: 0300000119 [10:39:36]line РНМ: 0000000000091845 [10:39:36]line Версия ККМ: 001 [10:39:36]line ФМ: 0000000000871829 [10:39:36]line ФД: 67224 [10:39:36]line ФПД: 224528127631192 [10:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T103934&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67224&fm=224528127631192&tin=02508201610067®Number=0000000000091845&sum=17000 [10:39:36]OFD Sender: Processing packet 67224 [packets to send 35, broken 34] [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00067224 [10:39:36]OFD Sender: To server: pG, [10:39:36]CommunicateWithHost lk.salyk.kg:30040 [10:39:36]ConnectInit lk.salyk.kg [10:39:36]line 0 [10:39:36]written 0, free lines is 4095 [10:39:36]int [10:39:36]Write to MH i2c: 01 00 00 44 02 46 [10:39:36]*** FLAG_PRN_PAP1 set [10:39:36]Connected sock=10 [10:39: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 3A 01 00 00 02 05 32 01 D1 8F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E6 90 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 98 06 01 00 35 04 06 00 CC 35 07 4A 1F 58 11 BB 7C 7C 0B 30 4C A0 [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Write i2c OK [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: DD [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: DD [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: DD 01 00 [10:39:36]MH_I2C_Read... [10:39:36]Read from MH i2c: DD 01 00 [10:39:36]answer for other command [DD] [10:39:36]MH Int Process stopped [10:39:36]Read from MH i2c: DD 01 00 44 02 05 28 [10:39:36]answer with wrong packet_num 0244 - expected 0245 [10:39:36]process_action_free close_receipt [10:39:36]json_value_free [10:39:36]json_value_free done [10:39:36]process_json_proto returns [10:39:36]Send response to host [10:39:36]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [10:39:36]free response buf [10:39:36]execute_script done [10:39:36]execute_script returns [10:39:36]free content buf [10:39:36]Sock 9.Close socket [10:39:36]Sock 9.Thread stoped [10:39: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 E1 D0 47 00 36 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 98 06 01 00 F4 03 04 00 C4 38 44 66 B6 04 01 00 00 C3 D8 3B 02 1B 5E FD 7E [10:39:36]CommunicateWithHost err = 0 [10:39:36]CheckOFDResponse [10:39:36]1017 (14) - 77093643461234 [10:39:36]1041 (16) - 0000000000871829 [10:39:36]1040 (4) - 67224 [10:39:36]1012 (4) - 15.05.2024 04:23 [10:39:36]1206 (1) - 0 [10:39:36]OFD Sender: Remove packet 67224 [10:39:36]ProducePacketName [10:39:36]name=ofd_packets/00067224 [10:39:36]NVStorageDeleteData [10:39:37]OFD Sender: No OFD packet to send [10:39:40]*** FLAG_PRN_PAP2 set [10:39:42]OFD Sender: No OFD packet to send [10:39:45]*** FLAG_PRN_PAP1 reset [10:39:45]*** FLAG_PRN_PAP2 reset [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30764814+1685004796=1715769610 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B 91 44 66 FC 21 6F 64 35 [10:40:11]Current date/time: 15.05.2024 10:40 [10:40:11]FM_Init [10:40:11]wFMConnect [10:40:11]MH_SAM_On [10:40:11]Write to MH i2c: E0 00 00 08 00 E7 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_init finished! [10:40:11]*** atr: [10:40:11]*** 0F 3B D5 18 FF 81 91 FE [10:40:11]*** 1F C3 80 73 C8 21 10 0A [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]*** 00 00 00 00 00 00 00 00 [10:40:11]Read from MH i2c: E0 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E0 10 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:40:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:40:11]wFMCommunicate request_size=10 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:40:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:40:11]RAPDU: 90 00 [10:40:11]wFMCommunicate OK [10:40:11]wFMCommunicate request_size=4 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 80 11 00 00 [10:40:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 17 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [10:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:40:11]wFMCommunicate OK [10:40:11]Detected FM SN is 0000000000871829 [10:40:11]Stored FM SN is 0000000000871829 [10:40:11]wFMCommunicate request_size=9 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 80 16 00 00 04 44 DD 00 00 [10:40:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:40:11]RAPDU: 90 00 [10:40:11]wFMCommunicate OK [10:40:11]FM PIN OK [10:40:11]wFMCommunicate request_size=8 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 80 14 04 00 03 02 00 01 [10:40:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:40:11]RAPDU: 90 00 [10:40:11]wFMCommunicate OK [10:40:11]wFMCommunicate request_size=13 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:40:11]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:40:11]RAPDU: 90 00 [10:40:11]wFMCommunicate OK [10:40:11]wFMCommunicate request_size=4 [10:40:11]MH_SAM_APDU [10:40:11]CAPDU: 80 11 00 00 [10:40:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:11]Read from MH i2c: E2 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 17 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [10:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:40:11]wFMCommunicate OK [10:40:11]DocumentArchiveInit [10:40:11]Start Httpd... [10:40:11]Httpd thread 3067383140 created [10:40:11]Write to MH i2c: 01 00 00 0F 00 0F [10:40:11]Write i2c OK [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: 01 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: 01 07 00 [10:40:11]MH_I2C_Read... [10:40:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:40:11]MH Int Process started [10:40:11]Allocated Socket 8 [10:40:11]Bind OK [10:40:11]Listen OK [10:40:11]httpd running on port 8080 [10:40:11]Waiting for new connection... [10:40:11]OFD Sender: No OFD packet to send [10:40:14]accept exits with 9 [10:40:14]New connection [10:40:14]New thread 3067096420 created [10:40:14]Waiting for new connection... [10:40:14] Sock 9.Parse request [10:40:14]Sock 9.Check first char [10:40:14]Sock 9.First char is OK [10:40:14]request: POST /json_proto HTTP/1.0 [10:40:14]Method: POST [10:40:14]URL: /json_proto [10:40:14]Method is POST - this is cgi request [10:40:14]url: /json_proto [10:40:14]query_string will be loaded in cgi processing [10:40:14]execute_cgi json_proto POST (null) [10:40:14]execute_cgi path=json_proto method=POST [10:40:14]POST find Content-Length [10:40:14]Host: 172.17.41.195:8080 [10:40:14]Content-Length: 215 [10:40:14]Content-Type: application/json [10:40:14] [10:40:14]POST finish read [10:40:14]Found Content-Length = 215 [10:40:14]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" ] } } [10:40:14]execute_script... [10:40:14]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" ] } } [10:40:14]POST & json_proto [10:40:14]process_json_proto [10:40:14]json parsed OK: [10:40:14]protocol is kg_v1.0 [10:40:14]action value=get_value [10:40:14]process_action get_value [10:40:14]cmd_get_value [10:40:14]process_action get_value done [10:40:14]requested_data is exist [10:40:14]produce_requested_data [10:40:14]requested_item kkm.sn is exist - process it [10:40:14]requested_item kkm.ver is exist - process it [10:40:14]requested_item fm.sn is exist - process it [10:40:14]wFMCommunicate request_size=4 [10:40:14]MH_SAM_APDU [10:40:14]CAPDU: 80 11 00 00 [10:40:14]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:40:14]Write i2c OK [10:40:14]MH_I2C_Read... [10:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:14]Read from MH i2c: E2 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: E2 17 00 [10:40:14]MH_I2C_Read... [10:40:14]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [10:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:40:14]wFMCommunicate OK [10:40:14]requested_item fd.num is exist - process it [10:40:14]SAM_PROTO_GetFieldsCounters [10:40:14]wFMCommunicate request_size=4 [10:40:14]MH_SAM_APDU [10:40:14]CAPDU: 80 13 00 00 [10:40:14]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:40:14]Write i2c OK [10:40:14]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:15]Read from MH i2c: E2 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 62 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 62 00 11 00 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 98 06 01 00 0E 04 04 00 64 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 35 [10:40: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 98 06 01 00 0E 04 04 00 64 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:40:15]wFMCommunicate OK [10:40:15]SAM_PROTO_GetFieldsCounters done [10:40:15]requested_item shift.num is exist - process it [10:40:15]requested_item shift.opened is exist - process it [10:40:15]req_shift_opened [10:40:15]FM_GetShiftState [10:40:15]SAM_PROTO_GetShiftState [10:40:15]wFMCommunicate request_size=4 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 13 01 00 [10:40:15]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:15]Read from MH i2c: E2 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 0E 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3A [10:40:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:40:15]wFMCommunicate OK [10:40:15]SAM_PROTO_GetShiftState done [10:40:15]FM_GetShiftState done [10:40:15]req_shift_opened done [10:40:15]requested_item shift.open_date is exist - process it [10:40:15]req_shift_open_date [10:40:15]req_shift_open_date done [10:40:15]produce_requested_data done [10:40:15]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:40:15]process_action_free get_value [10:40:15]json_value_free [10:40:15]json_value_free done [10:40:15]process_json_proto returns [10:40:15]Send response to host [10:40:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:40:15]free response buf [10:40:15]execute_script done [10:40:15]execute_script returns [10:40:15]free content buf [10:40:15]Sock 9.Close socket [10:40:15]Sock 9.Thread stoped [10:40:15]accept exits with 6 [10:40:15]New connection [10:40:15]New thread 3066953060 created [10:40:15]Thread 3067096420 joined [10:40:15]Waiting for new connection... [10:40:15] Sock 6.Parse request [10:40:15]Sock 6.Check first char [10:40:15]Sock 6.First char is OK [10:40:15]request: POST /json_proto HTTP/1.0 [10:40:15]Method: POST [10:40:15]URL: /json_proto [10:40:15]Method is POST - this is cgi request [10:40:15]url: /json_proto [10:40:15]query_string will be loaded in cgi processing [10:40:15]execute_cgi json_proto POST (null) [10:40:15]execute_cgi path=json_proto method=POST [10:40:15]POST find Content-Length [10:40:15]Host: 172.17.41.195:8080 [10:40:15]Content-Length: 331 [10:40:15]Content-Type: application/json [10:40:15] [10:40:15]POST finish read [10:40:15]Found Content-Length = 331 [10:40:15]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" ] } } [10:40:15]execute_script... [10:40:15]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" ] } } [10:40:15]POST & json_proto [10:40:15]process_json_proto [10:40:15]json parsed OK: [10:40:15]protocol is kg_v1.0 [10:40:15]action value=get_value [10:40:15]process_action get_value [10:40:15]cmd_get_value [10:40:15]process_action get_value done [10:40:15]requested_data is exist [10:40:15]produce_requested_data [10:40:15]requested_item fm.sale.total is exist - process it [10:40:15]SAM_PROTO_GetFMData [10:40:15]wFMCommunicate request_size=4 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 13 03 00 [10:40:15]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:40:15]Read from MH i2c: E2 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 FD 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 D0 03 01 00 69 04 A3 00 6F 04 04 00 2A 03 01 00 B1 04 05 00 34 8E 3F 19 03 70 04 05 00 A0 38 E3 BE 02 72 04 04 00 94 55 5C 5A 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 49 14 40 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 96 42 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 1E [10:40:15]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 D0 03 01 00 69 04 A3 00 6F 04 04 00 2A 03 01 00 B1 04 05 00 34 8E 3F 19 03 70 04 05 00 A0 38 E3 BE 02 72 04 04 00 94 55 5C 5A 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 49 14 40 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 96 42 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [10:40:15]wFMCommunicate OK [10:40:15]wFMCommunicate request_size=4 [10:40:15]MH_SAM_APDU [10:40:15]CAPDU: 80 17 00 00 [10:40:15]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 FD 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [10:40:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [10:40:16]wFMCommunicate OK [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 17 00 00 [10:40:16]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 FD 00 [10:40:16]MH_I2C_Read... [10:40:16]OFD Sender: No OFD packet to send [10:40:16]Read from MH i2c: E2 FD 00 15 00 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 BC [10:40:16]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 [10:40:16]wFMCommunicate OK [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 17 00 00 [10:40:16]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 FD 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:40:16]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 [10:40:16]wFMCommunicate OK [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 17 00 00 [10:40:16]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 E3 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [10:40:16]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 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_GetFMData done [10:40:17]requested_item fm.sale_refund.total is exist - process it [10:40:17]requested_item fm.buy.total is exist - process it [10:40:17]requested_item shift.sale.total is exist - process it [10:40:17]SAM_PROTO_GetShiftData [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 13 02 00 [10:40:17]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 FD 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 2A 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 96 D5 2F 70 04 03 00 C4 D2 1D 72 04 03 00 D2 02 12 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 BB 14 05 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 63 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 96 [10:40:17]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 2A 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 96 D5 2F 70 04 03 00 C4 D2 1D 72 04 03 00 D2 02 12 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 BB 14 05 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 63 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:40:17]wFMCommunicate OK [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 17 00 00 [10:40:17]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 FD 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [10:40:17]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:40:17]wFMCommunicate OK [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 17 00 00 [10:40:17]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 FD 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [10:40:18]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 17 00 00 [10:40:18]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 FD 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [10:40:18]RAPDU: 03 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 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 17 00 00 [10:40:18]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 D5 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [10:40:18]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_GetShiftData done [10:40:18]requested_item shift.sale.total_cash is exist - process it [10:40:18]requested_item shift.sale_refund.total is exist - process it [10:40:18]requested_item shift.sale_refund.total_cash is exist - process it [10:40:18]requested_item shift.buy.total is exist - process it [10:40:18]requested_item shift.buy.total_cash is exist - process it [10:40:18]produce_requested_data done [10:40:18]produce_requested_data return {"fm.sale.total":133084974.60,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":31348.70,"shift.sale.total_cash":19545.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:40:18]process_action_free get_value [10:40:18]json_value_free [10:40:18]json_value_free done [10:40:18]process_json_proto returns [10:40:18]Send response to host [10:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133084974.60,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":31348.70,"shift.sale.total_cash":19545.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:40:18]free response buf [10:40:18]execute_script done [10:40:18]execute_script returns [10:40:18]free content buf [10:40:18]Sock 6.Close socket [10:40:18]Sock 6.Thread stoped [10:40:19]accept exits with 9 [10:40:19]New connection [10:40:19]New thread 3067096420 created [10:40:19]Thread 3066953060 joined [10:40:19]Waiting for new connection... [10:40:19] Sock 9.Parse request [10:40:19]Sock 9.Check first char [10:40:19]Sock 9.First char is OK [10:40:19]request: POST /json_proto HTTP/1.0 [10:40:19]Method: POST [10:40:19]URL: /json_proto [10:40:19]Method is POST - this is cgi request [10:40:19]url: /json_proto [10:40:19]query_string will be loaded in cgi processing [10:40:19]execute_cgi json_proto POST (null) [10:40:19]execute_cgi path=json_proto method=POST [10:40:19]POST find Content-Length [10:40:19]Host: 172.17.41.195:8080 [10:40:19]Content-Length: 1174 [10:40:19]Content-Type: application/json [10:40:19] [10:40:19]POST finish read [10:40:19]Found Content-Length = 1174 [10:40: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)507177\u000A15.05.2024 10:22\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30108338\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]execute_script... [10:40: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)507177\u000A15.05.2024 10:22\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30108338\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:19]POST & json_proto [10:40:19]process_json_proto [10:40:19]json parsed OK: [10:40:19]protocol is kg_v1.0 [10:40:19]action value=print_text [10:40:19]process_action print_text [10:40:19]cmd_print_text [10:40:19]ExternCall_PrintAddStr [10:40:19]wPrintStart [10:40:19]Write to MH i2c: 01 00 00 1D 00 1D [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [10:40:19]RasterBufferAndPrint [10:40:19]line *****ТОВАРНЫЙ ЧЕК***** [10:40:19]line АЗС-91 [10:40:19]line Партнер нефть [10:40:19]line 02508201610067 [10:40:19]line Кассир : Арстанбеков Н. [10:40:19]line Счет N : (1)507177 [10:40:19]line 15.05.2024 10:22 [10:40:19]line ПРОДАЖА [10:40:19]line ТРК (МРК, ГНК): 13 [10:40:19]line Вид ГСМ : 2710124130 [10:40:19]line Аи-92-К-5 [10:40:19]line 40.000 x 66.80 [10:40:19]line ИТОГ: 2672.00 [10:40:19]line Тип оплаты: Талоны: ТК ГПНА Online [10:40:19]line 30108338 [10:40:19]line ______________________ [10:40:19]line (подпись) [10:40:19]written 0, free lines is 4095 [10:40:19]Write to MH i2c: 01 00 00 31 00 31 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 16 0E 5C [10:40:19]RasterBufferAndPrint [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]written 0, free lines is 3615 [10:40:19]MH_Cut [10:40:19]Write to MH i2c: D1 01 00 38 00 01 0A [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 38 00 00 09 [10:40:19]Write to MH i2c: 01 00 00 39 00 39 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** Cut start [10:40:19]*** Purtial cut [10:40:19]*** Stage 1: CUTSNS_PIN = 1 [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]*** Stop cut motor [10:40:20]*** Cut end [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [10:40:20]process_action print_text done [10:40:20]requested_data is exist [10:40:20]produce_requested_data [10:40:20]requested_item fm.sn is exist - process it [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 11 00 00 [10:40:20]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [10:40: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:40:20]wFMCommunicate OK [10:40:20]requested_item fd.num is exist - process it [10:40:20]SAM_PROTO_GetFieldsCounters [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 00 00 [10:40:20]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 3B 00 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 98 06 01 00 0E 04 04 00 64 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 5F [10:40: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 98 06 01 00 0E 04 04 00 64 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:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetFieldsCounters done [10:40:20]requested_item shift.num is exist - process it [10:40:20]requested_item shift.opened is exist - process it [10:40:20]req_shift_opened [10:40:20]FM_GetShiftState [10:40:20]SAM_PROTO_GetShiftState [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 01 00 [10:40:20]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 64 [10:40:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetShiftState done [10:40:20]FM_GetShiftState done [10:40:20]req_shift_opened done [10:40:20]requested_item shift.open_date is exist - process it [10:40:20]req_shift_open_date [10:40:20]req_shift_open_date done [10:40:20]produce_requested_data done [10:40:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:40:20]process_action_free print_text [10:40:20]json_value_free [10:40:20]json_value_free done [10:40:20]process_json_proto returns [10:40:20]Send response to host [10:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:40:20]free response buf [10:40:20]execute_script done [10:40:20]execute_script returns [10:40:20]free content buf [10:40:20]Sock 9.Close socket [10:40:20]Sock 9.Thread stoped [10:40:20]accept exits with 6 [10:40:20]New connection [10:40:20]New thread 3066953060 created [10:40:20]Thread 3067096420 joined [10:40:20]Waiting for new connection... [10:40:20] Sock 6.Parse request [10:40:20]Sock 6.Check first char [10:40:20]Sock 6.First char is OK [10:40:20]request: POST /json_proto HTTP/1.0 [10:40:20]Method: POST [10:40:20]URL: /json_proto [10:40:20]Method is POST - this is cgi request [10:40:20]url: /json_proto [10:40:20]query_string will be loaded in cgi processing [10:40:20]execute_cgi json_proto POST (null) [10:40:20]execute_cgi path=json_proto method=POST [10:40:20]POST find Content-Length [10:40:20]Host: 172.17.41.195:8080 [10:40:20]Content-Length: 1209 [10:40:20]Content-Type: application/json [10:40:20] [10:40:20]POST finish read [10:40:20]Found Content-Length = 1209 [10:40: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)507178\u000A15.05.2024 10:22\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.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" ] } } [10:40:20]execute_script... [10:40: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)507178\u000A15.05.2024 10:22\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.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" ] } } [10:40:20]POST & json_proto [10:40:20]process_json_proto [10:40:20]json parsed OK: [10:40:20]protocol is kg_v1.0 [10:40:20]action value=print_text [10:40:20]process_action print_text [10:40:20]cmd_print_text [10:40:20]ExternCall_PrintAddStr [10:40:20]wPrintStart [10:40:20]Write to MH i2c: 01 00 00 3D 00 3D [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 3D 00 00 00 00 00 00 FF 0F 52 [10:40:20]RasterBufferAndPrint [10:40:20]line *****ТОВАРНЫЙ ЧЕК***** [10:40:20]line АЗС-91 [10:40:20]line Партнер нефть [10:40:20]line 02508201610067 [10:40:20]line Кассир : Арстанбеков Н. [10:40:20]line Счет N : (1)507178 [10:40:20]line 15.05.2024 10:22 [10:40:20]line ПРОДАЖА [10:40:20]line ТРК (МРК, ГНК): 41 [10:40:20]line Вид ГСМ : 2710194210 [10:40:20]line ДТ-К-5 [10:40:20]line 20.090 x 74.70 [10:40:20]line ИТОГ: 1500.72 [10:40:20]line Тип оплаты: Талоны: Топливная Карта [10:40:20]line 02750 [10:40:20]line ______________________ [10:40:20]line (подпись) [10:40:20]written 0, free lines is 4095 [10:40:21]Write to MH i2c: 01 00 00 51 00 51 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 11 0E 77 [10:40:21]RasterBufferAndPrint [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]line [10:40:21]written 0, free lines is 3608 [10:40:21]MH_Cut [10:40:21]Write to MH i2c: D1 01 00 58 00 01 2A [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: D1 01 00 58 00 00 29 [10:40:21]Write to MH i2c: 01 00 00 59 00 59 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]OFD Sender: No OFD packet to send [10:40:21]*** Cut start [10:40:21]*** Purtial cut [10:40:21]*** CUTSNS_PIN = 0 [10:40:21]*** Stage 1: CUTSNS_PIN = 1 [10:40:23]Read from MH i2c: 01 [10:40:23]MH_I2C_Read... [10:40:23]*** Stop cut motor [10:40:23]*** Cut end [10:40:23]Read from MH i2c: 01 07 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 FF 0F 6E [10:40:23]process_action print_text done [10:40:23]requested_data is exist [10:40:23]produce_requested_data [10:40:23]requested_item fm.sn is exist - process it [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 11 00 00 [10:40:23]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [10:40: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:40:23]wFMCommunicate OK [10:40:23]requested_item fd.num is exist - process it [10:40:23]SAM_PROTO_GetFieldsCounters [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 00 00 [10:40:23]Write to MH i2c: E2 08 00 5B 00 80 13 00 00 00 00 00 00 D7 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 62 00 5B 00 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 98 06 01 00 0E 04 04 00 64 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 7F [10:40: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 98 06 01 00 0E 04 04 00 64 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:40:23]wFMCommunicate OK [10:40:23]SAM_PROTO_GetFieldsCounters done [10:40:23]requested_item shift.num is exist - process it [10:40:23]requested_item shift.opened is exist - process it [10:40:23]req_shift_opened [10:40:23]FM_GetShiftState [10:40:23]SAM_PROTO_GetShiftState [10:40:23]wFMCommunicate request_size=4 [10:40:23]MH_SAM_APDU [10:40:23]CAPDU: 80 13 01 00 [10:40:23]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [10:40:23]Write i2c OK [10:40:23]MH_I2C_Read... [10:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:23]Read from MH i2c: E2 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 0E 00 [10:40:23]MH_I2C_Read... [10:40:23]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 84 [10:40:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:40:23]wFMCommunicate OK [10:40:23]SAM_PROTO_GetShiftState done [10:40:23]FM_GetShiftState done [10:40:23]req_shift_opened done [10:40:23]requested_item shift.open_date is exist - process it [10:40:23]req_shift_open_date [10:40:23]req_shift_open_date done [10:40:23]produce_requested_data done [10:40:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:40:23]process_action_free print_text [10:40:23]json_value_free [10:40:23]json_value_free done [10:40:23]process_json_proto returns [10:40:23]Send response to host [10:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67224,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:40:23]free response buf [10:40:23]execute_script done [10:40:23]execute_script returns [10:40:23]free content buf [10:40:23]Sock 6.Close socket [10:40:23]Sock 6.Thread stoped [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:11]accept exits with 9 [10:42:11]New connection [10:42:11]New thread 3067096420 created [10:42:11]Thread 3066953060 joined [10:42:11]Waiting for new connection... [10:42:11] Sock 9.Parse request [10:42:11]Sock 9.Check first char [10:42:11]Sock 9.First char is OK [10:42:11]request: POST /json_proto HTTP/1.0 [10:42:11]Method: POST [10:42:11]URL: /json_proto [10:42:11]Method is POST - this is cgi request [10:42:11]url: /json_proto [10:42:11]query_string will be loaded in cgi processing [10:42:11]execute_cgi json_proto POST (null) [10:42:11]execute_cgi path=json_proto method=POST [10:42:11]POST find Content-Length [10:42:11]Host: 172.17.41.195:8080 [10:42:11]Content-Length: 803 [10:42:11]Content-Type: application/json [10:42:11] [10:42:11]POST finish read [10:42:11]Found Content-Length = 803 [10:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507179", "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" ] } } [10:42:11]execute_script... [10:42: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)507179", "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" ] } } [10:42:11]POST & json_proto [10:42:11]process_json_proto [10:42:11]json parsed OK: [10:42:11]protocol is kg_v1.0 [10:42:11]action value=close_receipt [10:42:11]process_action close_receipt [10:42:11]cmd_close_receipt [10:42:11]MH_GetDate [10:42:11]Write to MH i2c: F0 00 00 5D 00 4C [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: F0 09 00 5D 00 00 84 91 44 66 FC 21 6F 64 04 [10:42:11]GetLastDocTimeStamp 97 [10:42:11]current date 1715769732 [10:42:11]FM_GetShiftState [10:42:11]SAM_PROTO_GetShiftState [10:42:11]wFMCommunicate request_size=4 [10:42:11]MH_SAM_APDU [10:42:11]CAPDU: 80 13 01 00 [10:42:11]Write to MH i2c: E2 08 00 5E 00 80 13 01 00 00 00 00 00 DB [10:42:11]Write i2c OK [10:42:11]MH_I2C_Read... [10:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:11]Read from MH i2c: E2 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 0E 00 [10:42:11]MH_I2C_Read... [10:42:11]Read from MH i2c: E2 0E 00 5E 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 86 [10:42:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:42:11]wFMCommunicate OK [10:42:11]SAM_PROTO_GetShiftState done [10:42:11]FM_GetShiftState done [10:42:11]opened in 1715732471 [10:42:11]opened+sec_in_day 1715818871 [10:42:11]quantity*price = 100066 [10:42:11]sum+1 = 100067 [10:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 43 15.05.2024 10:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67225 ФПД: 96879593765057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T104212&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67225&fm=96879593765057&tin=02508201610067®Number=0000000000091845&sum=100066 [10:42:13]StoreToDocumentArchive [10:42:13]shift 356 fd 67225 [10:42:13]save to /storage/0356/doc_00067225 [10:42:13]save last doc name /storage/0356/doc_00067225 to /storage/kkm_last_doc_name [10:42:13]save OK [10:42:13]Clear old archive folders... [10:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:13]tlvbuf is 0132EAF0 [10:42:13]SAM_PROTO_ClearQueue [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 09 00 00 [10:42:13]Write to MH i2c: E2 08 00 6B 00 80 09 00 00 00 00 00 00 DD [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_ClearQueue done [10:42:13]KKMCreateOFDPacket [10:42:13]OFDProtocolAddRootSTLVToBuf [10:42:13]FM_MakeSignedData [10:42:13]FM_MakeSignedData [10:42:13]SAM_PROTO_SignData [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 01 02 [10:42:13]Write to MH i2c: E2 08 00 6C 00 80 0D 01 02 00 00 00 00 E5 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=255 [10:42:13]MH_SAM_APDU [10:42:13]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 2B 00 00 00 F4 03 04 00 84 91 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 06 01 00 35 04 06 00 58 [10:42:13]Write to MH i2c: E2 02 01 6D 00 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 2B 00 00 00 F4 03 04 00 84 91 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 06 01 00 35 04 06 00 58 00 00 89 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=10 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 05 1C 89 C5 B8 C1 [10:42:13]Write to MH i2c: E2 0D 00 6E 00 80 0D 02 02 05 00 1C 89 C5 B8 C1 00 00 D5 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 03 02 [10:42:13]Write to MH i2c: E2 08 00 6F 00 80 0D 03 02 00 00 00 00 EA [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 6F 00 00 15 6B 83 D3 C4 6A 69 CA 90 00 22 [10:42:13]RAPDU: 15 6B 83 D3 C4 6A 69 CA 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_SignData done [10:42:13]FM_MakeSignedData done [10:42:13]CreateOFDProtocolMessage [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 11 00 00 [10:42:13]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [10:42:13]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:13]wFMCommunicate OK [10:42:13]CreateOFDProtocolMessage done [10:42:13]OFDSenderStorePacket 67225 [10:42:13]StoreOFDPacket docnum=67225 [10:42: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 0F 01 00 00 F5 9D 07 01 51 20 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 2B 00 00 00 F4 03 04 00 84 91 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 06 01 00 35 04 06 00 58 1C 89 C5 B8 C1 15 6B 83 D3 C4 6A 69 CA [10:42:13]CheckFolder [10:42:13]dirname=/storage/ofd_packets [10:42:13]CheckFolder done [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00067225 [10:42:13]NVStorageSaveData ofd_packets/00067225 [10:42:13]File name is /storage/ofd_packets/00067225 [10:42:13]Write 301 bytes [10:42:13]NVStorageSaveData done [10:42:13]OFDSenderStorePacket done [10:42:13]KKMCreateOFDPacket done [10:42:13]NVStorageSaveData kkm_last_timestamp [10:42:13]File name is /storage/kkm_last_timestamp [10:42:13]Write 4 bytes [10:42:13]NVStorageSaveData done [10:42:13]ExternCall_PrintAddStr [10:42:13]wPrintStart [10:42:13]Write to MH i2c: 01 00 00 71 00 71 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 FF 0F 86 [10:42:13]RasterBufferAndPrint [10:42:13]line Счет N : (1)507179 [10:42:13]line ИНН: 02508201610067 [10:42:13]line Контрольно-Кассовый Чек [10:42:13]line ПРОДАЖА [10:42:13]line ТРК (МРК, ГНК) : 33 [10:42:13]line Товар: 2710124130 [10:42:13]line Аи-92-К-5 [10:42:13]line 14.980 * 66.80 [10:42:13]line = 1000.66 [10:42:13]line НДС 12% НСП 1% [10:42:13]line > о реализуемом товаре [10:42:13]line ИТОГО: 1000.66 [10:42:13]line НСП 1% : 8.85 [10:42:13]line НДС 12% : 106.26 [10:42:13]line Наличными: 0.00 [10:42:13]line Безнал.: 1000.66 [10:42:13]line Место: АЗС № 91 "Партнер Нефть" [10:42:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:42:13]line СНО: Общий режим [10:42:13]line Чек 43 15.05.2024 10:42 [10:42:13]line Смена: 356 ФФД: 1.0 [10:42:13]line ЗНМ: 0300000119 [10:42:13]line РНМ: 0000000000091845 [10:42:13]line Версия ККМ: 001 [10:42:13]line Платежная система: O! деньги [10:42:13]line ФМ: 0000000000871829 [10:42:13]line ФД: 67225 [10:42:13]line ФПД: 96879593765057 [10:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T104212&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67225&fm=96879593765057&tin=02508201610067®Number=0000000000091845&sum=100066 [10:42:13]written 0, free lines is 4095 [10:42:13]OFD Sender: Processing packet 67225 [packets to send 35, broken 34] [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00067225 [10:42:13]OFD Sender: To server: pG, [10:42:13]CommunicateWithHost lk.salyk.kg:30040 [10:42:13]ConnectInit lk.salyk.kg [10:42:14]Connected sock=10 [10: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 0F 01 00 00 F5 9D 07 01 51 20 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 2B 00 00 00 F4 03 04 00 84 91 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 06 01 00 35 04 06 00 58 1C 89 C5 B8 C1 15 6B 83 D3 C4 6A 69 CA [10:42:14]Write to MH i2c: 01 00 00 9A 00 9A [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 E7 0C 94 [10:42:14]RasterBufferAndPrint [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]written 0, free lines is 3309 [10:42:14]MH_Cut [10:42:14]Write to MH i2c: D1 01 00 A1 00 01 73 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 A1 00 00 72 [10:42:14]Write to MH i2c: 01 00 00 A2 00 A2 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10: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 EB 8F 47 00 D1 F4 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 99 06 01 00 F4 03 04 00 62 39 44 66 B6 04 01 00 00 46 D0 6F FA A6 1C 71 B0 [10:42:14]CommunicateWithHost err = 0 [10:42:14]CheckOFDResponse [10:42:14]1017 (14) - 77093643461234 [10:42:14]1041 (16) - 0000000000871829 [10:42:14]1040 (4) - 67225 [10:42:14]1012 (4) - 15.05.2024 04:26 [10:42:14]1206 (1) - 0 [10:42:14]OFD Sender: Remove packet 67225 [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00067225 [10:42:14]NVStorageDeleteData [10:42:14]OFD Sender: No OFD packet to send [10:42:14]*** Cut start [10:42:14]*** Purtial cut [10:42:14]*** Stage 1: CUTSNS_PIN = 1 [10:42:15]Read from MH i2c: 01 [10:42:15]MH_I2C_Read... [10:42:15]*** Stop cut motor [10:42:15]*** Cut end [10:42:15]Read from MH i2c: 01 07 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [10:42:15]process_action close_receipt done [10:42:15]requested_data is exist [10:42:15]produce_requested_data [10:42:15]requested_item fm.sn is exist - process it [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 11 00 00 [10:42:15]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [10:42: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:42:15]wFMCommunicate OK [10:42:15]requested_item fd.num is exist - process it [10:42:15]SAM_PROTO_GetFieldsCounters [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 00 00 [10:42:15]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 62 00 A4 00 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 99 06 01 00 0E 04 04 00 64 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 CC [10:42: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 99 06 01 00 0E 04 04 00 64 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 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetFieldsCounters done [10:42:15]requested_item shift.num is exist - process it [10:42:15]requested_item shift.opened is exist - process it [10:42:15]req_shift_opened [10:42:15]FM_GetShiftState [10:42:15]SAM_PROTO_GetShiftState [10:42:15]wFMCommunicate request_size=4 [10:42:15]MH_SAM_APDU [10:42:15]CAPDU: 80 13 01 00 [10:42:15]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [10:42:15]Write i2c OK [10:42:15]MH_I2C_Read... [10:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:15]Read from MH i2c: E2 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 [10:42:15]MH_I2C_Read... [10:42:15]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CD [10:42:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:42:15]wFMCommunicate OK [10:42:15]SAM_PROTO_GetShiftState done [10:42:15]FM_GetShiftState done [10:42:15]req_shift_opened done [10:42:15]requested_item shift.open_date is exist - process it [10:42:15]req_shift_open_date [10:42:15]req_shift_open_date done [10:42:15]produce_requested_data done [10:42:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67225,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:42:15]process_action_free close_receipt [10:42:15]json_value_free [10:42:15]json_value_free done [10:42:15]process_json_proto returns [10:42:15]Send response to host [10:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67225,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:42:15]free response buf [10:42:15]execute_script done [10:42:15]execute_script returns [10:42:15]free content buf [10:42:15]Sock 9.Close socket [10:42:15]Sock 9.Thread stoped [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]accept exits with 7 [10:43:14]New connection [10:43:14]New thread 3066953060 created [10:43:14]Thread 3067096420 joined [10:43:14]Waiting for new connection... [10:43:14] Sock 7.Parse request [10:43:14]Sock 7.Check first char [10:43:14]Sock 7.First char is OK [10:43:14]request: POST /json_proto HTTP/1.0 [10:43:14]Method: POST [10:43:14]URL: /json_proto [10:43:14]Method is POST - this is cgi request [10:43:14]url: /json_proto [10:43:14]query_string will be loaded in cgi processing [10:43:14]execute_cgi json_proto POST (null) [10:43:14]execute_cgi path=json_proto method=POST [10:43:14]POST find Content-Length [10:43:14]Host: 172.17.41.195:8080 [10:43:14]Content-Length: 1208 [10:43:14]Content-Type: application/json [10:43:14] [10:43:14]POST finish read [10:43:14]Found Content-Length = 1208 [10:43: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)507180\u000A15.05.2024 10:25\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" ] } } [10:43:14]execute_script... [10:43: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)507180\u000A15.05.2024 10:25\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" ] } } [10:43:14]POST & json_proto [10:43:14]process_json_proto [10:43:14]json parsed OK: [10:43:14]protocol is kg_v1.0 [10:43:14]action value=print_text [10:43:14]process_action print_text [10:43:14]cmd_print_text [10:43:14]ExternCall_PrintAddStr [10:43:14]wPrintStart [10:43:14]Write to MH i2c: 01 00 00 A6 00 A6 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FF 0F BB [10:43:14]RasterBufferAndPrint [10:43:14]line *****ТОВАРНЫЙ ЧЕК***** [10:43:14]line АЗС-91 [10:43:14]line Партнер нефть [10:43:14]line 02508201610067 [10:43:14]line Кассир : Арстанбеков Н. [10:43:14]line Счет N : (1)507180 [10:43:14]line 15.05.2024 10:25 [10:43:14]line ПРОДАЖА [10:43:14]line ТРК (МРК, ГНК): 11 [10:43:14]line Вид ГСМ : 2710194210 [10:43:14]line ДТ-К-5 [10:43:14]line 10.000 x 74.70 [10:43:14]line ИТОГ: 747.00 [10:43:14]line Тип оплаты: Талоны: Топливная Карта [10:43:14]line 02750 [10:43:14]line ______________________ [10:43:14]line (подпись) [10:43:14]written 0, free lines is 4095 [10:43:14]Write to MH i2c: 01 00 00 BA 00 BA [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 0D 0E DC [10:43:14]RasterBufferAndPrint [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]line [10:43:14]written 0, free lines is 3598 [10:43:14]MH_Cut [10:43:14]Write to MH i2c: D1 01 00 C1 00 01 93 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 01 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: D1 01 00 C1 00 00 92 [10:43:14]Write to MH i2c: 01 00 00 C2 00 C2 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]OFD Sender: No OFD packet to send [10:43:15]*** Cut start [10:43:15]*** Purtial cut [10:43:15]*** CUTSNS_PIN = 0 [10:43:15]*** Stage 1: CUTSNS_PIN = 1 [10:43:17]Read from MH i2c: 01 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 [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 C2 00 00 00 00 00 00 FF 0F D7 [10:43:17]process_action print_text 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 C3 00 80 11 00 00 00 00 00 00 3D [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 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [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 C4 00 80 13 00 00 00 00 00 00 40 [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 C4 00 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 99 06 01 00 0E 04 04 00 64 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 EC [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 99 06 01 00 0E 04 04 00 64 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 [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 C5 00 80 13 01 00 00 00 00 00 42 [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 C5 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 ED [10:43:17]RAPDU: 09 00 01 F7 FF 43 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":67225,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:43:17]process_action_free print_text [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":67225,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [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:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:13]accept exits with 10 [10:45:13]New connection [10:45:13]New thread 3067096420 created [10:45:13]Thread 3066953060 joined [10:45:13]Waiting for new connection... [10:45:13] Sock 10.Parse request [10:45:13]Sock 10.Check first char [10:45:13]Sock 10.First char is OK [10:45:13]request: POST /json_proto HTTP/1.0 [10:45:13]Method: POST [10:45:13]URL: /json_proto [10:45:13]Method is POST - this is cgi request [10:45:13]url: /json_proto [10:45:13]query_string will be loaded in cgi processing [10:45:13]execute_cgi json_proto POST (null) [10:45:13]execute_cgi path=json_proto method=POST [10:45:13]POST find Content-Length [10:45:13]Host: 172.17.41.195:8080 [10:45:13]Content-Length: 800 [10:45:13]Content-Type: application/json [10:45:13] [10:45:13]POST finish read [10:45:13]Found Content-Length = 800 [10:45:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507181", "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:45:13]execute_script... [10:45: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)507181", "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:45:13]POST & json_proto [10:45:13]process_json_proto [10:45:13]json parsed OK: [10:45:13]protocol is kg_v1.0 [10:45:13]action value=close_receipt [10:45:13]process_action close_receipt [10:45:13]cmd_close_receipt [10:45:13]MH_GetDate [10:45:13]Write to MH i2c: F0 00 00 C6 00 B5 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: F0 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: F0 09 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: F0 09 00 C6 00 00 3A 92 44 66 FC 21 6F 64 24 [10:45:13]GetLastDocTimeStamp 1715769732 [10:45:13]current date 1715769914 [10:45:13]FM_GetShiftState [10:45:13]SAM_PROTO_GetShiftState [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 13 01 00 [10:45:13]Write to MH i2c: E2 08 00 C7 00 80 13 01 00 00 00 00 00 44 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0E 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0E 00 C7 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EF [10:45:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:45:13]wFMCommunicate OK [10:45:13]SAM_PROTO_GetShiftState done [10:45:13]FM_GetShiftState done [10:45:13]opened in 1715732471 [10:45:13]opened+sec_in_day 1715818871 [10:45:13]quantity*price = 100023 [10:45:13]sum+1 = 100024 [10:45: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 СНО: Общий режим Чек 44 15.05.2024 10:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67226 ФПД: 238273413208492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T104514&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67226&fm=238273413208492&tin=02508201610067®Number=0000000000091845&sum=100023 [10:45:14]StoreToDocumentArchive [10:45:14]shift 356 fd 67226 [10:45:14]save to /storage/0356/doc_00067226 [10:45:14]save last doc name /storage/0356/doc_00067226 to /storage/kkm_last_doc_name [10:45:14]save OK [10:45:14]Clear old archive folders... [10:45:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:45:14]tlvbuf is 01325670 [10:45:14]SAM_PROTO_ClearQueue [10:45:14]wFMCommunicate request_size=4 [10:45:14]MH_SAM_APDU [10:45:14]CAPDU: 80 09 00 00 [10:45:14]Write to MH i2c: E2 08 00 D4 00 80 09 00 00 00 00 00 00 46 [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: E2 [10:45:14]MH_I2C_Read... [10:45:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:14]Read from MH i2c: E2 03 00 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [10:45:14]RAPDU: 90 00 [10:45:14]wFMCommunicate OK [10:45:14]SAM_PROTO_ClearQueue done [10:45:14]KKMCreateOFDPacket [10:45:14]OFDProtocolAddRootSTLVToBuf [10:45:14]FM_MakeSignedData [10:45:14]FM_MakeSignedData [10:45:14]SAM_PROTO_SignData [10:45:14]wFMCommunicate request_size=4 [10:45:14]MH_SAM_APDU [10:45:14]CAPDU: 80 0D 01 02 [10:45:14]Write to MH i2c: E2 08 00 D5 00 80 0D 01 02 00 00 00 00 4E [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:14]Read from MH i2c: E2 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: E2 03 00 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [10:45:14]RAPDU: 90 00 [10:45:14]wFMCommunicate OK [10:45:14]wFMCommunicate request_size=255 [10:45:14]MH_SAM_APDU [10:45: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 2C 00 00 00 F4 03 04 00 3A 92 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 06 01 00 35 04 06 00 D8 B5 5A 27 [10:45:14]Write to MH i2c: E2 02 01 D6 00 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 2C 00 00 00 F4 03 04 00 3A 92 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 06 01 00 35 04 06 00 D8 B5 5A 27 00 00 0C [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:15]OFD Sender: No OFD packet to send [10:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 03 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [10:45:15]RAPDU: 90 00 [10:45:15]wFMCommunicate OK [10:45:15]wFMCommunicate request_size=7 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 0D 02 02 02 59 AC [10:45:15]Write to MH i2c: E2 0A 00 D7 00 80 0D 02 02 02 00 59 AC 00 00 5A [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 03 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 03 00 D7 00 00 90 00 4B [10:45:15]RAPDU: 90 00 [10:45:15]wFMCommunicate OK [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 0D 03 02 [10:45:15]Write to MH i2c: E2 08 00 D8 00 80 0D 03 02 00 00 00 00 53 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0B 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0B 00 D8 00 00 8C 2A 49 B7 21 4F 9B B5 90 00 CA [10:45:15]RAPDU: 8C 2A 49 B7 21 4F 9B B5 90 00 [10:45:15]wFMCommunicate OK [10:45:15]SAM_PROTO_SignData done [10:45:15]FM_MakeSignedData done [10:45:15]CreateOFDProtocolMessage [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 11 00 00 [10:45:15]Write to MH i2c: E2 08 00 D9 00 80 11 00 00 00 00 00 00 53 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 17 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 17 00 D9 00 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:45: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:45:15]wFMCommunicate OK [10:45:15]CreateOFDProtocolMessage done [10:45:15]OFDSenderStorePacket 67226 [10:45:15]StoreOFDPacket docnum=67226 [10:45: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 46 88 04 01 6F 8F 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 2C 00 00 00 F4 03 04 00 3A 92 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 06 01 00 35 04 06 00 D8 B5 5A 27 59 AC 8C 2A 49 B7 21 4F 9B B5 [10:45:15]CheckFolder [10:45:15]dirname=/storage/ofd_packets [10:45:15]CheckFolder done [10:45:15]ProducePacketName [10:45:15]name=ofd_packets/00067226 [10:45:15]NVStorageSaveData ofd_packets/00067226 [10:45:15]File name is /storage/ofd_packets/00067226 [10:45:15]Write 298 bytes [10:45:15]NVStorageSaveData done [10:45:15]OFDSenderStorePacket done [10:45:15]KKMCreateOFDPacket done [10:45:15]NVStorageSaveData kkm_last_timestamp [10:45:15]File name is /storage/kkm_last_timestamp [10:45:15]Write 4 bytes [10:45:15]NVStorageSaveData done [10:45:15]ExternCall_PrintAddStr [10:45:15]wPrintStart [10:45:15]Write to MH i2c: 01 00 00 DA 00 DA [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 07 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FF 0F EF [10:45:15]RasterBufferAndPrint [10:45:15]line Счет N : (1)507181 [10:45:15]line ИНН: 02508201610067 [10:45:15]line Контрольно-Кассовый Чек [10:45:15]line ПРОДАЖА [10:45:15]line ТРК (МРК, ГНК) : 31 [10:45:15]line Товар: 2710194210 [10:45:15]line ДТ-К-5 [10:45:15]line 13.390 * 74.70 [10:45:15]line = 1000.23 [10:45:15]line НДС 12% НСП 1% [10:45:15]line > о реализуемом товаре [10:45:15]line ИТОГО: 1000.23 [10:45:15]line НСП 1% : 8.85 [10:45:15]line НДС 12% : 106.22 [10:45:15]line Наличными: 0.00 [10:45:15]line Безнал.: 1000.23 [10:45:15]line Место: АЗС № 91 "Партнер Нефть" [10:45:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:45:15]line СНО: Общий режим [10:45:15]line Чек 44 15.05.2024 10:45 [10:45:15]line Смена: 356 ФФД: 1.0 [10:45:15]line ЗНМ: 0300000119 [10:45:15]line РНМ: 0000000000091845 [10:45:15]line Версия ККМ: 001 [10:45:15]line Платежная система: O! деньги [10:45:15]line ФМ: 0000000000871829 [10:45:15]line ФД: 67226 [10:45:15]line ФПД: 238273413208492 [10:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T104514&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67226&fm=238273413208492&tin=02508201610067®Number=0000000000091845&sum=100023 [10:45:15]OFD Sender: Processing packet 67226 [packets to send 35, broken 34] [10:45:15]ProducePacketName [10:45:15]name=ofd_packets/00067226 [10:45:15]OFD Sender: To server: pG, [10:45:15]CommunicateWithHost lk.salyk.kg:30040 [10:45:15]ConnectInit lk.salyk.kg [10:45:15]written 0, free lines is 4095 [10:45:15]Connected sock=9 [10:45: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 46 88 04 01 6F 8F 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 2C 00 00 00 F4 03 04 00 3A 92 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 06 01 00 35 04 06 00 D8 B5 5A 27 59 AC 8C 2A 49 B7 21 4F 9B B5 [10:45: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 F8 77 47 00 0A 3D 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 9A 06 01 00 F4 03 04 00 17 3A 44 66 B6 04 01 00 00 20 CC 81 61 A0 2A 34 51 [10:45:15]CommunicateWithHost err = 0 [10:45:15]CheckOFDResponse [10:45:15]1017 (14) - 77093643461234 [10:45:15]1041 (16) - 0000000000871829 [10:45:15]1040 (4) - 67226 [10:45:15]1012 (4) - 15.05.2024 04:29 [10:45:15]1206 (1) - 0 [10:45:15]OFD Sender: Remove packet 67226 [10:45:15]ProducePacketName [10:45:15]name=ofd_packets/00067226 [10:45:15]NVStorageDeleteData [10:45:15]Write to MH i2c: 01 00 00 03 01 04 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 07 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 D4 0C EB [10:45:15]RasterBufferAndPrint [10:45:15]line [10:45:15]line [10:45:15]line [10:45:15]line [10:45:15]line [10:45:15]written 0, free lines is 3290 [10:45:16]MH_Cut [10:45:16]Write to MH i2c: D1 01 00 0A 01 01 DD [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: D1 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: D1 01 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: D1 01 00 0A 01 00 DC [10:45:16]Write to MH i2c: 01 00 00 0B 01 0C [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]OFD Sender: No OFD packet to send [10:45:16]*** Cut start [10:45:16]*** Purtial cut [10:45:16]*** Stage 1: CUTSNS_PIN = 1 [10:45:17]Read from MH i2c: 01 [10:45:17]MH_I2C_Read... [10:45:17]*** Stop cut motor [10:45:17]*** Cut end [10:45:17]Read from MH i2c: 01 07 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [10:45:17]process_action close_receipt done [10:45:17]requested_data is exist [10:45:17]produce_requested_data [10:45:17]requested_item fm.sn is exist - process it [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 11 00 00 [10:45:17]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 17 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [10: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 [10:45:17]wFMCommunicate OK [10:45:17]requested_item fd.num is exist - process it [10:45:17]SAM_PROTO_GetFieldsCounters [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 13 00 00 [10:45:17]Write to MH i2c: E2 08 00 0D 01 80 13 00 00 00 00 00 00 8A [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 62 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 62 00 0D 01 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 9A 06 01 00 0E 04 04 00 64 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 3A [10:45: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 9A 06 01 00 0E 04 04 00 64 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 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_GetFieldsCounters done [10:45:17]requested_item shift.num is exist - process it [10:45:17]requested_item shift.opened is exist - process it [10:45:17]req_shift_opened [10:45:17]FM_GetShiftState [10:45:17]SAM_PROTO_GetShiftState [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 13 01 00 [10:45:17]Write to MH i2c: E2 08 00 0E 01 80 13 01 00 00 00 00 00 8C [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 0E 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 37 [10:45:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_GetShiftState done [10:45:17]FM_GetShiftState done [10:45:17]req_shift_opened done [10:45:17]requested_item shift.open_date is exist - process it [10:45:17]req_shift_open_date [10:45:17]req_shift_open_date done [10:45:17]produce_requested_data done [10:45:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67226,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:45:17]process_action_free close_receipt [10:45:17]json_value_free [10:45:17]json_value_free done [10:45:17]process_json_proto returns [10:45:17]Send response to host [10:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67226,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:45:17]free response buf [10:45:17]execute_script done [10:45:17]execute_script returns [10:45:17]free content buf [10:45:17]Sock 10.Close socket [10:45:17]Sock 10.Thread stoped [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:16]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:20]accept exits with 7 [10:52:20]New connection [10:52:20]New thread 3066953060 created [10:52:20]Thread 3067096420 joined [10:52:20]Waiting for new connection... [10:52:20] Sock 7.Parse request [10:52:20]Sock 7.Check first char [10:52:20]Sock 7.First char is OK [10:52:20]request: POST /json_proto HTTP/1.0 [10:52:20]Method: POST [10:52:20]URL: /json_proto [10:52:20]Method is POST - this is cgi request [10:52:20]url: /json_proto [10:52:20]query_string will be loaded in cgi processing [10:52:20]execute_cgi json_proto POST (null) [10:52:20]execute_cgi path=json_proto method=POST [10:52:20]POST find Content-Length [10:52:20]Host: 172.17.41.195:8080 [10:52:20]Content-Length: 215 [10:52:20]Content-Type: application/json [10:52:20] [10:52:20]POST finish read [10:52:20]Found Content-Length = 215 [10:52: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" ] } } [10:52:20]execute_script... [10:52: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" ] } } [10:52:20]POST & json_proto [10:52:20]process_json_proto [10:52:20]json parsed OK: [10:52:20]protocol is kg_v1.0 [10:52:20]action value=get_value [10:52:20]process_action get_value [10:52:20]cmd_get_value [10:52:20]process_action get_value done [10:52:20]requested_data is exist [10:52:20]produce_requested_data [10:52:20]requested_item kkm.sn is exist - process it [10:52:20]requested_item kkm.ver is exist - process it [10:52:20]requested_item fm.sn is exist - process it [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 11 00 00 [10:52:20]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 17 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [10:52: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:52:20]wFMCommunicate OK [10:52:20]requested_item fd.num is exist - process it [10:52:20]SAM_PROTO_GetFieldsCounters [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 13 00 00 [10:52:20]Write to MH i2c: E2 08 00 10 01 80 13 00 00 00 00 00 00 8D [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 62 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 62 00 10 01 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 9A 06 01 00 0E 04 04 00 64 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 3D [10:52: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 9A 06 01 00 0E 04 04 00 64 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 [10:52:20]wFMCommunicate OK [10:52:20]SAM_PROTO_GetFieldsCounters done [10:52:20]requested_item shift.num is exist - process it [10:52:20]requested_item shift.opened is exist - process it [10:52:20]req_shift_opened [10:52:20]FM_GetShiftState [10:52:20]SAM_PROTO_GetShiftState [10:52:20]wFMCommunicate request_size=4 [10:52:20]MH_SAM_APDU [10:52:20]CAPDU: 80 13 01 00 [10:52:20]Write to MH i2c: E2 08 00 11 01 80 13 01 00 00 00 00 00 8F [10:52:20]Write i2c OK [10:52:20]MH_I2C_Read... [10:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:20]Read from MH i2c: E2 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 0E 00 [10:52:20]MH_I2C_Read... [10:52:20]Read from MH i2c: E2 0E 00 11 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3A [10:52:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:52:20]wFMCommunicate OK [10:52:20]SAM_PROTO_GetShiftState done [10:52:20]FM_GetShiftState done [10:52:20]req_shift_opened done [10:52:20]requested_item shift.open_date is exist - process it [10:52:20]req_shift_open_date [10:52:20]req_shift_open_date done [10:52:20]produce_requested_data done [10:52:20]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67226,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:52:20]process_action_free get_value [10:52:20]json_value_free [10:52:20]json_value_free done [10:52:20]process_json_proto returns [10:52:20]Send response to host [10:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67226,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:52:20]free response buf [10:52:20]execute_script done [10:52:20]execute_script returns [10:52:20]free content buf [10:52:20]Sock 7.Close socket [10:52:20]Sock 7.Thread stoped [10:52:20]accept exits with 9 [10:52:20]New connection [10:52:20]New thread 3067096420 created [10:52:20]Thread 3066953060 joined [10:52:20]Waiting for new connection... [10:52:20] Sock 9.Parse request [10:52:20]Sock 9.Check first char [10:52:20]Sock 9.First char is OK [10:52:20]request: POST /json_proto HTTP/1.0 [10:52:20]Method: POST [10:52:20]URL: /json_proto [10:52:20]Method is POST - this is cgi request [10:52:20]url: /json_proto [10:52:20]query_string will be loaded in cgi processing [10:52:20]execute_cgi json_proto POST (null) [10:52:20]execute_cgi path=json_proto method=POST [10:52:20]POST find Content-Length [10:52:20]Host: 172.17.41.195:8080 [10:52:20]Content-Length: 331 [10:52:20]Content-Type: application/json [10:52:20] [10:52:20]POST finish read [10:52:20]Found Content-Length = 331 [10:52: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" ] } } [10:52:20]execute_script... [10:52:21]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" ] } } [10:52:21]POST & json_proto [10:52:21]process_json_proto [10:52:21]json parsed OK: [10:52:21]protocol is kg_v1.0 [10:52:21]action value=get_value [10:52:21]process_action get_value [10:52:21]cmd_get_value [10:52:21]process_action get_value done [10:52:21]requested_data is exist [10:52:21]produce_requested_data [10:52:21]requested_item fm.sale.total is exist - process it [10:52:21]SAM_PROTO_GetFMData [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 13 03 00 [10:52:21]Write to MH i2c: E2 08 00 12 01 80 13 03 00 00 00 00 00 92 [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:52:21]Read from MH i2c: E2 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 FD 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 FD 00 12 01 00 C6 04 85 04 C2 04 6E 04 04 00 D2 03 01 00 69 04 A3 00 6F 04 04 00 2C 03 01 00 B1 04 05 00 CD 9B 42 19 03 70 04 05 00 A0 38 E3 BE 02 72 04 04 00 2D 63 5F 5A 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 49 67 40 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 80 49 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 B9 [10:52:21]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 D2 03 01 00 69 04 A3 00 6F 04 04 00 2C 03 01 00 B1 04 05 00 CD 9B 42 19 03 70 04 05 00 A0 38 E3 BE 02 72 04 04 00 2D 63 5F 5A 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 49 67 40 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 80 49 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [10:52:21]wFMCommunicate OK [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 17 00 00 [10:52:21]Write to MH i2c: E2 08 00 13 01 80 17 00 00 00 00 00 00 94 [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]OFD Sender: No OFD packet to send [10:52:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:21]Read from MH i2c: E2 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 FD 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 FD 00 13 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [10:52: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 72 FD F3 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 [10:52:21]wFMCommunicate OK [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 17 00 00 [10:52:21]Write to MH i2c: E2 08 00 14 01 80 17 00 00 00 00 00 00 95 [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:22]Read from MH i2c: E2 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 FD 00 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 FD 00 14 01 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 BC [10:52: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 [10:52:22]wFMCommunicate OK [10:52:22]wFMCommunicate request_size=4 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 17 00 00 [10:52:22]Write to MH i2c: E2 08 00 15 01 80 17 00 00 00 00 00 00 96 [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:22]Read from MH i2c: E2 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 FD 00 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 FD 00 15 01 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:52:22]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 [10:52:22]wFMCommunicate OK [10:52:22]wFMCommunicate request_size=4 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 17 00 00 [10:52:22]Write to MH i2c: E2 08 00 16 01 80 17 00 00 00 00 00 00 97 [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [10:52:22]Read from MH i2c: E2 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 E3 00 [10:52:22]MH_I2C_Read... [10:52:22]Read from MH i2c: E2 E3 00 16 01 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [10:52: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 [10:52:22]wFMCommunicate OK [10:52:22]SAM_PROTO_GetFMData done [10:52:22]requested_item fm.sale_refund.total is exist - process it [10:52:22]requested_item fm.buy.total is exist - process it [10:52:22]requested_item shift.sale.total is exist - process it [10:52:22]SAM_PROTO_GetShiftData [10:52:22]wFMCommunicate request_size=4 [10:52:22]MH_SAM_APDU [10:52:22]CAPDU: 80 13 02 00 [10:52:22]Write to MH i2c: E2 08 00 17 01 80 13 02 00 00 00 00 00 96 [10:52:22]Write i2c OK [10:52:22]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 17 01 00 B8 04 AA 04 B4 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 2F E3 32 70 04 03 00 C4 D2 1D 72 04 03 00 6B 10 15 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 BB 67 05 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 73 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 32 [10:52:23]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 2F E3 32 70 04 03 00 C4 D2 1D 72 04 03 00 6B 10 15 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 BB 67 05 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 73 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:52:23]wFMCommunicate OK [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 17 00 00 [10:52:23]Write to MH i2c: E2 08 00 18 01 80 17 00 00 00 00 00 00 99 [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 18 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [10:52:23]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:52:23]wFMCommunicate OK [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 17 00 00 [10:52:23]Write to MH i2c: E2 08 00 19 01 80 17 00 00 00 00 00 00 9A [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 19 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [10:52:23]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:52:23]wFMCommunicate OK [10:52:23]wFMCommunicate request_size=4 [10:52:23]MH_SAM_APDU [10:52:23]CAPDU: 80 17 00 00 [10:52:23]Write to MH i2c: E2 08 00 1A 01 80 17 00 00 00 00 00 00 9B [10:52:23]Write i2c OK [10:52:23]MH_I2C_Read... [10:52:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:52:23]Read from MH i2c: E2 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 [10:52:23]MH_I2C_Read... [10:52:23]Read from MH i2c: E2 FD 00 1A 01 00 03 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 90 00 24 [10:52:24]RAPDU: 03 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 90 00 [10:52:24]wFMCommunicate OK [10:52:24]wFMCommunicate request_size=4 [10:52:24]MH_SAM_APDU [10:52:24]CAPDU: 80 17 00 00 [10:52:24]Write to MH i2c: E2 08 00 1B 01 80 17 00 00 00 00 00 00 9C [10:52:24]Write i2c OK [10:52:24]MH_I2C_Read... [10:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:52:24]Read from MH i2c: E2 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 D5 00 [10:52:24]MH_I2C_Read... [10:52:24]Read from MH i2c: E2 D5 00 1B 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [10:52:24]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:52:24]wFMCommunicate OK [10:52:24]SAM_PROTO_GetShiftData done [10:52:24]requested_item shift.sale.total_cash is exist - process it [10:52:24]requested_item shift.sale_refund.total is exist - process it [10:52:24]requested_item shift.sale_refund.total_cash is exist - process it [10:52:24]requested_item shift.buy.total is exist - process it [10:52:24]requested_item shift.buy.total_cash is exist - process it [10:52:24]produce_requested_data done [10:52:24]produce_requested_data return {"fm.sale.total":133086975.49,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":33349.59,"shift.sale.total_cash":19545.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:52:24]process_action_free get_value [10:52:24]json_value_free [10:52:24]json_value_free done [10:52:24]process_json_proto returns [10:52:24]Send response to host [10:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133086975.49,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":33349.59,"shift.sale.total_cash":19545.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:52:24]free response buf [10:52:24]execute_script done [10:52:24]execute_script returns [10:52:24]free content buf [10:52:24]Sock 9.Close socket [10:52:24]Sock 9.Thread stoped [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:09]accept exits with 7 [10:54:09]New connection [10:54:09]New thread 3066953060 created [10:54:09]Thread 3067096420 joined [10:54:09]Waiting for new connection... [10:54:09] Sock 7.Parse request [10:54:09]Sock 7.Check first char [10:54:09]Sock 7.First char is OK [10:54:09]request: POST /json_proto HTTP/1.0 [10:54:09]Method: POST [10:54:09]URL: /json_proto [10:54:09]Method is POST - this is cgi request [10:54:09]url: /json_proto [10:54:09]query_string will be loaded in cgi processing [10:54:09]execute_cgi json_proto POST (null) [10:54:09]execute_cgi path=json_proto method=POST [10:54:09]POST find Content-Length [10:54:09]Host: 172.17.41.195:8080 [10:54:09]Content-Length: 794 [10:54:09]Content-Type: application/json [10:54:09] [10:54:09]POST finish read [10:54:09]Found Content-Length = 794 [10:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507182", "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.000, "sum" : 678.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" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:09]execute_script... [10:54: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)507182", "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.000, "sum" : 678.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" : 678.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:09]POST & json_proto [10:54:09]process_json_proto [10:54:09]json parsed OK: [10:54:09]protocol is kg_v1.0 [10:54:09]action value=close_receipt [10:54:09]process_action close_receipt [10:54:09]cmd_close_receipt [10:54:09]MH_GetDate [10:54:09]Write to MH i2c: F0 00 00 1C 01 0C [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 09 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: F0 09 00 1C 01 00 51 94 44 66 FC 21 6F 64 94 [10:54:09]GetLastDocTimeStamp 1715769914 [10:54:09]current date 1715770449 [10:54:09]FM_GetShiftState [10:54:09]SAM_PROTO_GetShiftState [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 01 00 [10:54:09]Write to MH i2c: E2 08 00 1D 01 80 13 01 00 00 00 00 00 9B [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 1D 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 46 [10:54:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetShiftState done [10:54:09]FM_GetShiftState done [10:54:09]opened in 1715732471 [10:54:09]opened+sec_in_day 1715818871 [10:54:09]quantity*price = 67800 [10:54:09]sum+1 = 67801 [10:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 678.00 НСП 1% : 6.00 НДС 12% : 72.00 Наличными: 0.00 Безнал.: 678.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 45 15.05.2024 10:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67227 ФПД: 184356073922511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105409&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67227&fm=184356073922511&tin=02508201610067®Number=0000000000091845&sum=67800 [10:54:10]StoreToDocumentArchive [10:54:10]shift 356 fd 67227 [10:54:10]save to /storage/0356/doc_00067227 [10:54:10]save last doc name /storage/0356/doc_00067227 to /storage/kkm_last_doc_name [10:54:10]save OK [10:54:10]Clear old archive folders... [10:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:54:10]tlvbuf is 013422E0 [10:54:10]SAM_PROTO_ClearQueue [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 09 00 00 [10:54:10]Write to MH i2c: E2 08 00 2A 01 80 09 00 00 00 00 00 00 9D [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 2A 01 00 90 00 9F [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_ClearQueue done [10:54:10]KKMCreateOFDPacket [10:54:10]OFDProtocolAddRootSTLVToBuf [10:54:10]FM_MakeSignedData [10:54:10]FM_MakeSignedData [10:54:10]SAM_PROTO_SignData [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 01 02 [10:54:10]Write to MH i2c: E2 08 00 2B 01 80 0D 01 02 00 00 00 00 A5 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=255 [10:54:10]MH_SAM_APDU [10:54: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 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 2D 00 00 00 F4 03 04 00 51 94 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 06 01 00 35 04 06 00 [10:54:10]Write to MH i2c: E2 02 01 2C 01 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 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 2D 00 00 00 F4 03 04 00 51 94 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 06 01 00 35 04 06 00 00 00 A7 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=11 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 02 02 06 A7 AB BE 4C 5F CF [10:54:10]Write to MH i2c: E2 0E 00 2D 01 80 0D 02 02 06 00 A7 AB BE 4C 5F CF 00 00 3E [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [10:54:10]RAPDU: 90 00 [10:54:10]wFMCommunicate OK [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 0D 03 02 [10:54:10]Write to MH i2c: E2 08 00 2E 01 80 0D 03 02 00 00 00 00 AA [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0B 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0B 00 2E 01 00 48 55 8D EC 40 14 6F 2F 90 00 B3 [10:54:10]RAPDU: 48 55 8D EC 40 14 6F 2F 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_SignData done [10:54:10]FM_MakeSignedData done [10:54:10]CreateOFDProtocolMessage [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 11 00 00 [10:54:10]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 17 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [10: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 [10:54:10]wFMCommunicate OK [10:54:10]CreateOFDProtocolMessage done [10:54:10]OFDSenderStorePacket 67227 [10:54:10]StoreOFDPacket docnum=67227 [10:54: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 10 01 00 00 C2 4C 08 01 CD 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 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 2D 00 00 00 F4 03 04 00 51 94 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 06 01 00 35 04 06 00 A7 AB BE 4C 5F CF 48 55 8D EC 40 14 6F 2F [10:54:10]CheckFolder [10:54:10]dirname=/storage/ofd_packets [10:54:10]CheckFolder done [10:54:10]ProducePacketName [10:54:10]name=ofd_packets/00067227 [10:54:10]NVStorageSaveData ofd_packets/00067227 [10:54:10]File name is /storage/ofd_packets/00067227 [10:54:10]Write 302 bytes [10:54:10]NVStorageSaveData done [10:54:10]OFDSenderStorePacket done [10:54:10]KKMCreateOFDPacket done [10:54:10]NVStorageSaveData kkm_last_timestamp [10:54:10]File name is /storage/kkm_last_timestamp [10:54:10]Write 4 bytes [10:54:10]NVStorageSaveData done [10:54:10]ExternCall_PrintAddStr [10:54:10]wPrintStart [10:54:10]Write to MH i2c: 01 00 00 30 01 31 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: 01 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: 01 07 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 FF 0F 46 [10:54:10]RasterBufferAndPrint [10:54:10]line Счет N : (1)507182 [10:54:10]line ИНН: 02508201610067 [10:54:10]line Контрольно-Кассовый Чек [10:54:10]line ПРОДАЖА [10:54:10]line ТРК (МРК, ГНК) : 32 [10:54:10]line Товар: 2710124130 [10:54:10]line Super-92-К-5 [10:54:10]line 10.000 * 67.80 [10:54:10]line = 678.00 [10:54:10]line НДС 12% НСП 1% [10:54:10]line > о реализуемом товаре [10:54:10]line ИТОГО: 678.00 [10:54:10]line НСП 1% : 6.00 [10:54:10]line НДС 12% : 72.00 [10:54:10]line Наличными: 0.00 [10:54:10]line Безнал.: 678.00 [10:54:10]line Место: АЗС № 91 "Партнер Нефть" [10:54:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:54:10]line СНО: Общий режим [10:54:10]line Чек 45 15.05.2024 10:54 [10:54:10]line Смена: 356 ФФД: 1.0 [10:54:10]line ЗНМ: 0300000119 [10:54:10]line РНМ: 0000000000091845 [10:54:10]line Версия ККМ: 001 [10:54:10]line Платежная система: O! деньги [10:54:10]line ФМ: 0000000000871829 [10:54:10]line ФД: 67227 [10:54:10]line ФПД: 184356073922511 [10:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105409&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67227&fm=184356073922511&tin=02508201610067®Number=0000000000091845&sum=67800 [10:54:11]OFD Sender: Processing packet 67227 [packets to send 35, broken 34] [10:54:11]ProducePacketName [10:54:11]name=ofd_packets/00067227 [10:54:11]OFD Sender: To server: pG, [10:54:11]CommunicateWithHost lk.salyk.kg:30040 [10:54:11]ConnectInit lk.salyk.kg [10:54:11]written 0, free lines is 4095 [10:54:11]Connected sock=10 [10:54: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 C2 4C 08 01 CD 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 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 2D 00 00 00 F4 03 04 00 51 94 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9B 06 01 00 35 04 06 00 A7 AB BE 4C 5F CF 48 55 8D EC 40 14 6F 2F [10:54: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 4E BF 47 00 D1 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 9B 06 01 00 F4 03 04 00 2F 3C 44 66 B6 04 01 00 00 01 E4 FC 6C 26 BB 0E AA [10:54:11]CommunicateWithHost err = 0 [10:54:11]CheckOFDResponse [10:54:11]1017 (14) - 77093643461234 [10:54:11]1041 (16) - 0000000000871829 [10:54:11]1040 (4) - 67227 [10:54:11]1012 (4) - 15.05.2024 04:38 [10:54:11]1206 (1) - 0 [10:54:11]OFD Sender: Remove packet 67227 [10:54:11]ProducePacketName [10:54:11]name=ofd_packets/00067227 [10:54:11]NVStorageDeleteData [10:54:11]Write to MH i2c: 01 00 00 59 01 5A [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 D3 0C 40 [10:54:11]RasterBufferAndPrint [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]written 0, free lines is 3288 [10:54:11]MH_Cut [10:54:11]Write to MH i2c: D1 01 00 60 01 01 33 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 60 01 00 32 [10:54:11]Write to MH i2c: 01 00 00 61 01 62 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:12]OFD Sender: No OFD packet to send [10:54:12]*** Cut start [10:54:12]*** Purtial cut [10:54:12]*** CUTSNS_PIN = 0 [10:54:12]*** Stage 1: CUTSNS_PIN = 1 [10:54:14]Read from MH i2c: 01 [10:54:14]MH_I2C_Read... [10:54:14]*** Stop cut motor [10:54:14]*** Cut end [10:54:14]Read from MH i2c: 01 07 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [10:54:14]process_action close_receipt done [10:54:14]requested_data is exist [10:54:14]produce_requested_data [10:54:14]requested_item fm.sn is exist - process it [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 11 00 00 [10:54:14]Write to MH i2c: E2 08 00 62 01 80 11 00 00 00 00 00 00 DD [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 17 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 17 00 62 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [10:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:54:14]wFMCommunicate OK [10:54:14]requested_item fd.num is exist - process it [10:54:14]SAM_PROTO_GetFieldsCounters [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 13 00 00 [10:54:14]Write to MH i2c: E2 08 00 63 01 80 13 00 00 00 00 00 00 E0 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 62 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 62 00 63 01 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 9B 06 01 00 0E 04 04 00 64 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 94 [10:54: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 9B 06 01 00 0E 04 04 00 64 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 [10:54:14]wFMCommunicate OK [10:54:14]SAM_PROTO_GetFieldsCounters done [10:54:14]requested_item shift.num is exist - process it [10:54:14]requested_item shift.opened is exist - process it [10:54:14]req_shift_opened [10:54:14]FM_GetShiftState [10:54:14]SAM_PROTO_GetShiftState [10:54:14]wFMCommunicate request_size=4 [10:54:14]MH_SAM_APDU [10:54:14]CAPDU: 80 13 01 00 [10:54:14]Write to MH i2c: E2 08 00 64 01 80 13 01 00 00 00 00 00 E2 [10:54:14]Write i2c OK [10:54:14]MH_I2C_Read... [10:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:14]Read from MH i2c: E2 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 0E 00 [10:54:14]MH_I2C_Read... [10:54:14]Read from MH i2c: E2 0E 00 64 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8D [10:54:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:54:14]wFMCommunicate OK [10:54:14]SAM_PROTO_GetShiftState done [10:54:14]FM_GetShiftState done [10:54:14]req_shift_opened done [10:54:14]requested_item shift.open_date is exist - process it [10:54:14]req_shift_open_date [10:54:14]req_shift_open_date done [10:54:14]produce_requested_data done [10:54:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67227,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:54:14]process_action_free close_receipt [10:54:14]json_value_free [10:54:14]json_value_free done [10:54:14]process_json_proto returns [10:54:14]Send response to host [10:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67227,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:54:14]free response buf [10:54:14]execute_script done [10:54:14]execute_script returns [10:54:14]free content buf [10:54:14]Sock 7.Close socket [10:54:14]Sock 7.Thread stoped [10:54:16]int [10:54:16]Write to MH i2c: 01 00 00 65 01 66 [10:54:16]*** FLAG_PRN_PAP1 set [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 65 01 00 01 00 00 00 FF 0F 7C [10:54:16]state=0 [10:54:16]No paper [10:54:16]int [10:54:16]Write to MH i2c: 01 00 00 66 01 67 [10:54:16]*** FLAG_PRN_PAP2 set [10:54:16]Write i2c OK [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 [10:54:16]MH_I2C_Read... [10:54:16]Read from MH i2c: 01 07 00 66 01 00 03 00 00 00 FF 0F 7F [10:54:16]state=0 [10:54:16]No paper [10:54:16]Cover opened [10:54:17]OFD Sender: No OFD packet to send [10:54:21]Write to MH i2c: 01 00 00 67 01 68 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 07 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 07 00 67 01 00 03 00 00 00 FF 0F 80 [10:54:21]state=3 [10:54:21]No paper [10:54:21]Cover opened [10:54:22]OFD Sender: No OFD packet to send [10:54:26]Write to MH i2c: 01 00 00 68 01 69 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 07 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 07 00 68 01 00 03 00 00 00 FF 0F 81 [10:54:26]state=3 [10:54:26]No paper [10:54:26]Cover opened [10:54:27]OFD Sender: No OFD packet to send [10:54:29]int [10:54:29]Write to MH i2c: 01 00 00 69 01 6A [10:54:29]*** FLAG_PRN_PAP1 reset [10:54:29]*** FLAG_PRN_PAP2 reset [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [10:54:29]state=3 [10:54:29]Cover closed [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]/dev/ttyS4 opened [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:09]*** [00:00:09]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:09]*** Waiting for read because exit forced [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** 10 ms more... [00:00:09]*** MH1903 init start (LINUX_LIGHT) [00:00:09]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 30765692+1685004796=1715770488 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30515 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 78 94 44 66 FC 21 6F 64 A5 [10:54:48]Current date/time: 15.05.2024 10:54 [10:54:48]FM_Init [10:54:48]wFMConnect [10:54:48]MH_SAM_On [10:54:48]Write to MH i2c: E0 00 00 08 00 E7 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_init finished! [10:54:48]*** atr: [10:54:48]*** 0F 3B D5 18 FF 81 91 FE [10:54:48]*** 1F C3 80 73 C8 21 10 0A [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]*** 00 00 00 00 00 00 00 00 [10:54:48]Read from MH i2c: E0 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E0 10 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:54:48]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:54:48]wFMCommunicate request_size=10 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:54:48]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 11 00 00 [10:54:48]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [10:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:54:48]wFMCommunicate OK [10:54:48]Detected FM SN is 0000000000871829 [10:54:48]Stored FM SN is 0000000000871829 [10:54:48]wFMCommunicate request_size=9 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 16 00 00 04 44 DD 00 00 [10:54:48]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]FM PIN OK [10:54:48]wFMCommunicate request_size=8 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 14 04 00 03 02 00 01 [10:54:48]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=13 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:54:48]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:54:48]RAPDU: 90 00 [10:54:48]wFMCommunicate OK [10:54:48]wFMCommunicate request_size=4 [10:54:48]MH_SAM_APDU [10:54:48]CAPDU: 80 11 00 00 [10:54:48]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:48]Read from MH i2c: E2 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [10:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:54:48]wFMCommunicate OK [10:54:48]DocumentArchiveInit [10:54:48]Start Httpd... [10:54:48]Httpd thread 3066883428 created [10:54:48]Write to MH i2c: 01 00 00 0F 00 0F [10:54:48]Write i2c OK [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 [10:54:48]MH_I2C_Read... [10:54:48]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:54:48]MH Int Process started [10:54:48]Allocated Socket 8 [10:54:48]Bind OK [10:54:48]Listen OK [10:54:48]httpd running on port 8080 [10:54:48]Waiting for new connection... [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:07]accept exits with 9 [10:57:07]New connection [10:57:07]New thread 3066596708 created [10:57:07]Waiting for new connection... [10:57:07] Sock 9.Parse request [10:57:07]Sock 9.Check first char [10:57:07]Sock 9.First char is OK [10:57:07]request: POST /json_proto HTTP/1.0 [10:57:07]Method: POST [10:57:07]URL: /json_proto [10:57:07]Method is POST - this is cgi request [10:57:07]url: /json_proto [10:57:07]query_string will be loaded in cgi processing [10:57:07]execute_cgi json_proto POST (null) [10:57:07]execute_cgi path=json_proto method=POST [10:57:07]POST find Content-Length [10:57:07]Host: 172.17.41.195:8080 [10:57:07]Content-Length: 800 [10:57:07]Content-Type: application/json [10:57:07] [10:57:07]POST finish read [10:57:07]Found Content-Length = 800 [10:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507183", "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:57:07]execute_script... [10:57: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)507183", "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:57:07]POST & json_proto [10:57:07]process_json_proto [10:57:07]json parsed OK: [10:57:07]protocol is kg_v1.0 [10:57:07]action value=close_receipt [10:57:07]process_action close_receipt [10:57:07]cmd_close_receipt [10:57:07]MH_GetDate [10:57:07]Write to MH i2c: F0 00 00 10 00 FF [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: F0 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: F0 09 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: F0 09 00 10 00 00 03 95 44 66 FC 21 6F 64 3A [10:57:07]GetLastDocTimeStamp 97 [10:57:07]current date 1715770627 [10:57:07]FM_GetShiftState [10:57:07]SAM_PROTO_GetShiftState [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 13 01 00 [10:57:07]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 0E 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 39 [10:57:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:57:07]wFMCommunicate OK [10:57:07]SAM_PROTO_GetShiftState done [10:57:07]FM_GetShiftState done [10:57:07]opened in 1715732471 [10:57:07]opened+sec_in_day 1715818871 [10:57:07]quantity*price = 100023 [10:57:07]sum+1 = 100024 [10:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 46 15.05.2024 10:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67228 ФПД: 215238190701627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67228&fm=215238190701627&tin=02508201610067®Number=0000000000091845&sum=100023 [10:57:08]StoreToDocumentArchive [10:57:08]shift 356 fd 67228 [10:57:08]save to /storage/0356/doc_00067228 [10:57:08]save last doc name /storage/0356/doc_00067228 to /storage/kkm_last_doc_name [10:57:08]save OK [10:57:08]Clear old archive folders... [10:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:08]tlvbuf is 00620BA0 [10:57:08]SAM_PROTO_ClearQueue [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 09 00 00 [10:57:08]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_ClearQueue done [10:57:08]KKMCreateOFDPacket [10:57:08]OFDProtocolAddRootSTLVToBuf [10:57:08]FM_MakeSignedData [10:57:08]FM_MakeSignedData [10:57:08]SAM_PROTO_SignData [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 01 02 [10:57:08]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=255 [10:57:08]MH_SAM_APDU [10:57:08]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 2E 00 00 00 F4 03 04 00 04 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 06 01 00 35 04 06 00 C3 C2 0B E6 [10:57:08]Write to MH i2c: E2 02 01 20 00 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 2E 00 00 00 F4 03 04 00 04 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 06 01 00 35 04 06 00 C3 C2 0B E6 00 00 8F [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]OFD Sender: No OFD packet to send [10:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=7 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 02 02 02 1C 3B [10:57:08]Write to MH i2c: E2 0A 00 21 00 80 0D 02 02 02 00 1C 3B 00 00 F6 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 03 02 [10:57:08]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 22 00 00 16 3D 9C 01 63 35 98 DC 90 00 9A [10:57:08]RAPDU: 16 3D 9C 01 63 35 98 DC 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_SignData done [10:57:08]FM_MakeSignedData done [10:57:08]CreateOFDProtocolMessage [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 11 00 00 [10:57:08]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [10:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:57:08]wFMCommunicate OK [10:57:08]CreateOFDProtocolMessage done [10:57:08]OFDSenderStorePacket 67228 [10:57:08]StoreOFDPacket docnum=67228 [10:57: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 0C 01 00 00 14 16 04 01 5D 3A 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 2E 00 00 00 F4 03 04 00 04 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 06 01 00 35 04 06 00 C3 C2 0B E6 1C 3B 16 3D 9C 01 63 35 98 DC [10:57:08]CheckFolder [10:57:08]dirname=/storage/ofd_packets [10:57:08]CheckFolder done [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00067228 [10:57:08]NVStorageSaveData ofd_packets/00067228 [10:57:08]File name is /storage/ofd_packets/00067228 [10:57:08]Write 298 bytes [10:57:08]NVStorageSaveData done [10:57:08]OFDSenderStorePacket done [10:57:08]KKMCreateOFDPacket done [10:57:08]NVStorageSaveData kkm_last_timestamp [10:57:08]File name is /storage/kkm_last_timestamp [10:57:08]Write 4 bytes [10:57:08]NVStorageSaveData done [10:57:08]ExternCall_PrintAddStr [10:57:08]wPrintStart [10:57:08]Write to MH i2c: 01 00 00 24 00 24 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [10:57:08]RasterBufferAndPrint [10:57:08]line Счет N : (1)507183 [10:57:08]line ИНН: 02508201610067 [10:57:08]line Контрольно-Кассовый Чек [10:57:08]line ПРОДАЖА [10:57:08]line ТРК (МРК, ГНК) : 11 [10:57:08]line Товар: 2710194210 [10:57:08]line ДТ-К-5 [10:57:08]line 13.390 * 74.70 [10:57:08]line = 1000.23 [10:57:08]line НДС 12% НСП 1% [10:57:08]line > о реализуемом товаре [10:57:08]line ИТОГО: 1000.23 [10:57:08]line НСП 1% : 8.85 [10:57:08]line НДС 12% : 106.22 [10:57:08]line Наличными: 0.00 [10:57:08]line Безнал.: 1000.23 [10:57:08]line Место: АЗС № 91 "Партнер Нефть" [10:57:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:57:08]line СНО: Общий режим [10:57:08]line Чек 46 15.05.2024 10:57 [10:57:08]line Смена: 356 ФФД: 1.0 [10:57:08]line ЗНМ: 0300000119 [10:57:08]line РНМ: 0000000000091845 [10:57:08]line Версия ККМ: 001 [10:57:08]line Платежная система: O! деньги [10:57:08]line ФМ: 0000000000871829 [10:57:08]line ФД: 67228 [10:57:08]line ФПД: 215238190701627 [10:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67228&fm=215238190701627&tin=02508201610067®Number=0000000000091845&sum=100023 [10:57:08]written 0, free lines is 4095 [10:57:08]OFD Sender: Processing packet 67228 [packets to send 35, broken 34] [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00067228 [10:57:08]OFD Sender: To server: pG, [10:57:08]CommunicateWithHost lk.salyk.kg:30040 [10:57:08]ConnectInit lk.salyk.kg [10:57:09]Connected sock=10 [10:57: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 0C 01 00 00 14 16 04 01 5D 3A 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 2E 00 00 00 F4 03 04 00 04 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9C 06 01 00 35 04 06 00 C3 C2 0B E6 1C 3B 16 3D 9C 01 63 35 98 DC [10:57: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 D2 B5 47 00 6D 47 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 9C 06 01 00 F4 03 04 00 E1 3C 44 66 B6 04 01 00 00 FC 3F 65 9C 80 99 55 72 [10:57:09]CommunicateWithHost err = 0 [10:57:09]CheckOFDResponse [10:57:09]1017 (14) - 77093643461234 [10:57:09]1041 (16) - 0000000000871829 [10:57:09]1040 (4) - 67228 [10:57:09]1012 (4) - 15.05.2024 04:41 [10:57:09]1206 (1) - 0 [10:57:09]OFD Sender: Remove packet 67228 [10:57:09]ProducePacketName [10:57:09]name=ofd_packets/00067228 [10:57:09]NVStorageDeleteData [10:57:09]Write to MH i2c: 01 00 00 4D 00 4D [10:57:09]Write i2c OK [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: 01 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: 01 07 00 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 E0 0C 40 [10:57:09]RasterBufferAndPrint [10:57:09]line [10:57:09]line [10:57:09]line [10:57:09]line [10:57:09]line [10:57:09]written 0, free lines is 3302 [10:57:09]MH_Cut [10:57:09]Write to MH i2c: D1 01 00 54 00 01 26 [10:57:09]Write i2c OK [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: D1 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: D1 01 00 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: D1 01 00 54 00 00 25 [10:57:09]Write to MH i2c: 01 00 00 55 00 55 [10:57:09]Write i2c OK [10:57:09]MH_I2C_Read... [10:57:09]OFD Sender: No OFD packet to send [10:57:10]*** Cut start [10:57:10]*** Purtial cut [10:57:10]*** Stage 1: CUTSNS_PIN = 1 [10:57:10]Read from MH i2c: 01 [10:57:10]MH_I2C_Read... [10:57:10]*** Stop cut motor [10:57:10]*** Cut end [10:57:10]Read from MH i2c: 01 07 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [10:57:10]process_action close_receipt done [10:57:10]requested_data is exist [10:57:10]produce_requested_data [10:57:10]requested_item fm.sn is exist - process it [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 11 00 00 [10:57:10]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [10:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:57:10]wFMCommunicate OK [10:57:10]requested_item fd.num is exist - process it [10:57:10]SAM_PROTO_GetFieldsCounters [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 00 00 [10:57:10]Write to MH i2c: E2 08 00 57 00 80 13 00 00 00 00 00 00 D3 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 57 00 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 9C 06 01 00 0E 04 04 00 64 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 8B [10:57: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 9C 06 01 00 0E 04 04 00 64 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 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetFieldsCounters done [10:57:10]requested_item shift.num is exist - process it [10:57:10]requested_item shift.opened is exist - process it [10:57:10]req_shift_opened [10:57:10]FM_GetShiftState [10:57:10]SAM_PROTO_GetShiftState [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 01 00 [10:57:10]Write to MH i2c: E2 08 00 58 00 80 13 01 00 00 00 00 00 D5 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 58 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 80 [10:57:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetShiftState done [10:57:10]FM_GetShiftState done [10:57:10]req_shift_opened done [10:57:10]requested_item shift.open_date is exist - process it [10:57:10]req_shift_open_date [10:57:10]req_shift_open_date done [10:57:10]produce_requested_data done [10:57:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67228,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:57:10]process_action_free close_receipt [10:57:10]json_value_free [10:57:10]json_value_free done [10:57:10]process_json_proto returns [10:57:10]Send response to host [10:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67228,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:57:10]free response buf [10:57:10]execute_script done [10:57:10]execute_script returns [10:57:10]free content buf [10:57:10]Sock 9.Close socket [10:57:10]Sock 9.Thread stoped [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:38]accept exits with 7 [10:57:38]New connection [10:57:38]New thread 3066453348 created [10:57:38]Thread 3066596708 joined [10:57:38]Waiting for new connection... [10:57:38] Sock 7.Parse request [10:57:38]Sock 7.Check first char [10:57:38]Sock 7.First char is OK [10:57:38]request: POST /json_proto HTTP/1.0 [10:57:38]Method: POST [10:57:38]URL: /json_proto [10:57:38]Method is POST - this is cgi request [10:57:38]url: /json_proto [10:57:38]query_string will be loaded in cgi processing [10:57:38]execute_cgi json_proto POST (null) [10:57:38]execute_cgi path=json_proto method=POST [10:57:38]POST find Content-Length [10:57:38]Host: 172.17.41.195:8080 [10:57:38]Content-Length: 947 [10:57:38]Content-Type: application/json [10:57:38] [10:57:38]POST finish read [10:57:38]Found Content-Length = 947 [10:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12067", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:38]execute_script... [10:57: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 : (3)12067", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:38]POST & json_proto [10:57:38]process_json_proto [10:57:38]json parsed OK: [10:57:38]protocol is kg_v1.0 [10:57:38]action value=close_receipt [10:57:38]process_action close_receipt [10:57:38]cmd_close_receipt [10:57:38]MH_GetDate [10:57:38]Write to MH i2c: F0 00 00 59 00 48 [10:57:38]Write i2c OK [10:57:38]MH_I2C_Read... [10:57:38]Read from MH i2c: F0 [10:57:38]MH_I2C_Read... [10:57:38]Read from MH i2c: F0 09 00 [10:57:38]MH_I2C_Read... [10:57:38]Read from MH i2c: F0 09 00 59 00 00 23 95 44 66 FC 21 6F 64 A3 [10:57:38]GetLastDocTimeStamp 1715770628 [10:57:38]current date 1715770659 [10:57:38]FM_GetShiftState [10:57:38]SAM_PROTO_GetShiftState [10:57:38]wFMCommunicate request_size=4 [10:57:38]MH_SAM_APDU [10:57:38]CAPDU: 80 13 01 00 [10:57:38]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [10:57:38]Write i2c OK [10:57:38]MH_I2C_Read... [10:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:38]Read from MH i2c: E2 [10:57:38]MH_I2C_Read... [10:57:38]Read from MH i2c: E2 0E 00 [10:57:38]MH_I2C_Read... [10:57:38]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 82 [10:57:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:57:38]wFMCommunicate OK [10:57:38]SAM_PROTO_GetShiftState done [10:57:38]FM_GetShiftState done [10:57:38]opened in 1715732471 [10:57:38]opened+sec_in_day 1715818871 [10:57:38]quantity*price = 9000 [10:57:38]sum+1 = 9001 [10:57:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 62.00 = 62.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.35 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 47 15.05.2024 10:57 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67229 ФПД: 189315624750004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105739&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67229&fm=189315624750004&tin=02508201610067®Number=0000000000091845&sum=15200 0 [10:57:39]StoreToDocumentArchive [10:57:39]shift 356 fd 67229 [10:57:39]save to /storage/0356/doc_00067229 [10:57:39]save last doc name /storage/0356/doc_00067229 to /storage/kkm_last_doc_name [10:57:39]save OK [10:57:39]Clear old archive folders... [10:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=406 [10:57:39]tlvbuf is 00616E60 [10:57:39]SAM_PROTO_ClearQueue [10:57:39]wFMCommunicate request_size=4 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 09 00 00 [10:57:39]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [10:57:39]RAPDU: 90 00 [10:57:39]wFMCommunicate OK [10:57:39]SAM_PROTO_ClearQueue done [10:57:39]KKMCreateOFDPacket [10:57:39]OFDProtocolAddRootSTLVToBuf [10:57:39]FM_MakeSignedData [10:57:39]FM_MakeSignedData [10:57:39]SAM_PROTO_SignData [10:57:39]wFMCommunicate request_size=4 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 0D 01 02 [10:57:39]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [10:57:39]RAPDU: 90 00 [10:57:39]wFMCommunicate OK [10:57:39]wFMCommunicate request_size=255 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 [10:57:39]Write to MH i2c: E2 02 01 69 00 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 00 00 AB [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:39]OFD Sender: No OFD packet to send [10:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:39]Read from MH i2c: E2 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 [10:57:39]MH_I2C_Read... [10:57:39]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [10:57:39]RAPDU: 90 00 [10:57:39]wFMCommunicate OK [10:57:39]wFMCommunicate request_size=165 [10:57:39]MH_SAM_APDU [10:57:39]CAPDU: 80 0D 02 02 A0 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 23 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 06 01 00 35 04 06 00 AC 2E 7A 90 4B B4 [10:57:39]Write to MH i2c: E2 A8 00 6A 00 80 0D 02 02 A0 00 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 23 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 06 01 00 35 04 06 00 AC 2E 7A 90 4B B4 00 00 94 [10:57:39]Write i2c OK [10:57:39]MH_I2C_Read... [10:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:40]Read from MH i2c: E2 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 03 00 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [10:57:40]RAPDU: 90 00 [10:57:40]wFMCommunicate OK [10:57:40]wFMCommunicate request_size=4 [10:57:40]MH_SAM_APDU [10:57:40]CAPDU: 80 0D 03 02 [10:57:40]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [10:57:40]Write i2c OK [10:57:40]MH_I2C_Read... [10:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:40]Read from MH i2c: E2 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 0B 00 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 0B 00 6B 00 00 90 43 04 FC 85 49 21 6F 90 00 18 [10:57:40]RAPDU: 90 43 04 FC 85 49 21 6F 90 00 [10:57:40]wFMCommunicate OK [10:57:40]SAM_PROTO_SignData done [10:57:40]FM_MakeSignedData done [10:57:40]CreateOFDProtocolMessage [10:57:40]wFMCommunicate request_size=4 [10:57:40]MH_SAM_APDU [10:57:40]CAPDU: 80 11 00 00 [10:57:40]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [10:57:40]Write i2c OK [10:57:40]MH_I2C_Read... [10:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:40]Read from MH i2c: E2 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 17 00 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: E2 17 00 6C 00 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:57: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:57:40]wFMCommunicate OK [10:57:40]CreateOFDProtocolMessage done [10:57:40]OFDSenderStorePacket 67229 [10:57:40]StoreOFDPacket docnum=67229 [10:57: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 AA 01 00 00 67 27 A2 01 97 90 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 23 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 06 01 00 35 04 06 00 AC 2E 7A 90 4B B4 90 43 04 FC 85 49 21 6F [10:57:40]CheckFolder [10:57:40]dirname=/storage/ofd_packets [10:57:40]CheckFolder done [10:57:40]ProducePacketName [10:57:40]name=ofd_packets/00067229 [10:57:40]NVStorageSaveData ofd_packets/00067229 [10:57:40]File name is /storage/ofd_packets/00067229 [10:57:40]Write 456 bytes [10:57:40]NVStorageSaveData done [10:57:40]OFDSenderStorePacket done [10:57:40]KKMCreateOFDPacket done [10:57:40]NVStorageSaveData kkm_last_timestamp [10:57:40]File name is /storage/kkm_last_timestamp [10:57:40]Write 4 bytes [10:57:40]NVStorageSaveData done [10:57:40]ExternCall_PrintAddStr [10:57:40]wPrintStart [10:57:40]Write to MH i2c: 01 00 00 6D 00 6D [10:57:40]Write i2c OK [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: 01 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: 01 07 00 [10:57:40]MH_I2C_Read... [10:57:40]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [10:57:40]RasterBufferAndPrint [10:57:40]line Счет N : (3)12067 [10:57:40]line ИНН: 02508201610067 [10:57:40]line Контрольно-Кассовый Чек [10:57:40]line ПРОДАЖА [10:57:40]line Товар: 5449000176431 [10:57:40]line Сок Piko Pulpy апельсин ПЭТ 0,5л [10:57:40]line 1.000 * 90.00 [10:57:40]line = 90.00 [10:57:40]line НДС 12% НСП 1% [10:57:40]line > о реализуемом товаре [10:57:40]line Товар: 5449000189394 [10:57:40]line Холодный чай Fuse ягода 0,5л [10:57:40]line 1.000 * 62.00 [10:57:40]line = 62.00 [10:57:40]line НДС 12% НСП 1% [10:57:40]line > о реализуемом товаре [10:57:40]line ИТОГО: 152.00 [10:57:40]line НСП 1% : 1.35 [10:57:40]line НДС 12% : 16.14 [10:57:40]line Наличными: 152.00 [10:57:40]line Безнал.: 0.00 [10:57:40]line Место: АЗС № 91 "Партнер Нефть" [10:57:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:57:40]line СНО: Общий режим [10:57:40]line Чек 47 15.05.2024 10:57 [10:57:40]line Смена: 356 ФФД: 1.0 [10:57:40]line ЗНМ: 0300000119 [10:57:40]line РНМ: 0000000000091845 [10:57:40]line Версия ККМ: 001 [10:57:40]line ФМ: 0000000000871829 [10:57:40]line ФД: 67229 [10:57:40]line ФПД: 189315624750004 [10:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T105739&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67229&fm=189315624750004&tin=02508201610067®Number=0000000000091845&sum=15200 [10:57:40]OFD Sender: Processing packet 67229 [packets to send 35, broken 34] [10:57:40]ProducePacketName [10:57:40]name=ofd_packets/00067229 [10:57:40]OFD Sender: To server: pG, [10:57:40]CommunicateWithHost lk.salyk.kg:30040 [10:57:40]ConnectInit lk.salyk.kg [10:57:40]line 0 [10:57:40]written 0, free lines is 4095 [10:57:40]Connected sock=10 [10:57: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 AA 01 00 00 67 27 A2 01 97 90 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 23 95 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 06 01 00 35 04 06 00 AC 2E 7A 90 4B B4 90 43 04 FC 85 49 21 6F [10:57: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 55 CB 47 00 2F 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 9D 06 01 00 F4 03 04 00 00 3D 44 66 B6 04 01 00 00 5F AE 32 11 3D C2 C5 6E [10:57:40]CommunicateWithHost err = 0 [10:57:40]CheckOFDResponse [10:57:40]1017 (14) - 77093643461234 [10:57:40]1041 (16) - 0000000000871829 [10:57:40]1040 (4) - 67229 [10:57:40]1012 (4) - 15.05.2024 04:41 [10:57:40]1206 (1) - 0 [10:57:40]OFD Sender: Remove packet 67229 [10:57:40]ProducePacketName [10:57:40]name=ofd_packets/00067229 [10:57:40]NVStorageDeleteData [10:57:41]Write to MH i2c: 01 00 00 9B 00 9B [10:57:41]Write i2c OK [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: 01 [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: 01 07 00 [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: 01 07 00 9B 00 00 00 00 00 00 84 0C 32 [10:57:41]RasterBufferAndPrint [10:57:41]line [10:57:41]line [10:57:41]line [10:57:41]line [10:57:41]line [10:57:41]written 0, free lines is 3212 [10:57:41]MH_Cut [10:57:41]Write to MH i2c: D1 01 00 A2 00 01 74 [10:57:41]Write i2c OK [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: D1 [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: D1 01 00 [10:57:41]MH_I2C_Read... [10:57:41]Read from MH i2c: D1 01 00 A2 00 00 73 [10:57:41]Write to MH i2c: 01 00 00 A3 00 A3 [10:57:41]Write i2c OK [10:57:41]MH_I2C_Read... [10:57:41]OFD Sender: No OFD packet to send [10:57:41]*** Cut start [10:57:41]*** Purtial cut [10:57:41]*** CUTSNS_PIN = 0 [10:57:42]*** Stage 1: CUTSNS_PIN = 1 [10:57:43]Read from MH i2c: 01 [10:57:43]MH_I2C_Read... [10:57:43]*** Stop cut motor [10:57:43]*** Cut end [10:57:43]Read from MH i2c: 01 07 00 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 FF 0F B8 [10:57:43]process_action close_receipt done [10:57:43]requested_data is exist [10:57:43]produce_requested_data [10:57:43]requested_item fm.sn is exist - process it [10:57:43]wFMCommunicate request_size=4 [10:57:43]MH_SAM_APDU [10:57:43]CAPDU: 80 11 00 00 [10:57:43]Write to MH i2c: E2 08 00 A4 00 80 11 00 00 00 00 00 00 1E [10:57:43]Write i2c OK [10:57:43]MH_I2C_Read... [10:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:43]Read from MH i2c: E2 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: E2 17 00 [10:57:43]MH_I2C_Read... [10:57:43]Read from MH i2c: E2 17 00 A4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [10:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:57:43]wFMCommunicate OK [10:57:43]requested_item fd.num is exist - process it [10:57:43]SAM_PROTO_GetFieldsCounters [10:57:43]wFMCommunicate request_size=4 [10:57:43]MH_SAM_APDU [10:57:43]CAPDU: 80 13 00 00 [10:57:43]Write to MH i2c: E2 08 00 A5 00 80 13 00 00 00 00 00 00 21 [10:57:43]Write i2c OK [10:57:43]MH_I2C_Read... [10:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:44]Read from MH i2c: E2 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 62 00 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 62 00 A5 00 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 9D 06 01 00 0E 04 04 00 64 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 DD [10:57: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 9D 06 01 00 0E 04 04 00 64 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 [10:57:44]wFMCommunicate OK [10:57:44]SAM_PROTO_GetFieldsCounters done [10:57:44]requested_item shift.num is exist - process it [10:57:44]requested_item shift.opened is exist - process it [10:57:44]req_shift_opened [10:57:44]FM_GetShiftState [10:57:44]SAM_PROTO_GetShiftState [10:57:44]wFMCommunicate request_size=4 [10:57:44]MH_SAM_APDU [10:57:44]CAPDU: 80 13 01 00 [10:57:44]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [10:57:44]Write i2c OK [10:57:44]MH_I2C_Read... [10:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:44]Read from MH i2c: E2 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 0E 00 [10:57:44]MH_I2C_Read... [10:57:44]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CE [10:57:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [10:57:44]wFMCommunicate OK [10:57:44]SAM_PROTO_GetShiftState done [10:57:44]FM_GetShiftState done [10:57:44]req_shift_opened done [10:57:44]requested_item shift.open_date is exist - process it [10:57:44]req_shift_open_date [10:57:44]req_shift_open_date done [10:57:44]produce_requested_data done [10:57:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [10:57:44]process_action_free close_receipt [10:57:44]json_value_free [10:57:44]json_value_free done [10:57:44]process_json_proto returns [10:57:44]Send response to host [10:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [10:57:44]free response buf [10:57:44]execute_script done [10:57:44]execute_script returns [10:57:44]free content buf [10:57:44]Sock 7.Close socket [10:57:44]Sock 7.Thread stoped [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:09]int [10:58:09]Write to MH i2c: 01 00 00 A7 00 A7 [10:58:09]*** FLAG_PRN_PAP1 set [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 A7 00 00 01 00 00 00 FF 0F BD [10:58:09]state=0 [10:58:09]No paper [10:58:09]int [10:58:09]Write to MH i2c: 01 00 00 A8 00 A8 [10:58:09]*** FLAG_PRN_PAP2 set [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 A8 00 00 03 00 00 00 FF 0F C0 [10:58:09]state=0 [10:58:09]No paper [10:58:09]Cover opened [10:58:11]int [10:58:11]Write to MH i2c: 01 00 00 A9 00 A9 [10:58:11]*** FLAG_PRN_PAP2 reset [10:58:11]Write i2c OK [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 07 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 07 00 A9 00 00 01 00 00 00 FF 0F BF [10:58:11]state=3 [10:58:11]No paper [10:58:11]Cover closed [10:58:11]int [10:58:11]Write to MH i2c: 01 00 00 AA 00 AA [10:58:11]*** FLAG_PRN_PAP2 set [10:58:11]Write i2c OK [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 07 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 07 00 AA 00 00 03 00 00 00 FF 0F C2 [10:58:11]state=0 [10:58:11]No paper [10:58:11]Cover opened [10:58:11]OFD Sender: No OFD packet to send [10:58:16]Write to MH i2c: 01 00 00 AB 00 AB [10:58:16]Write i2c OK [10:58:16]MH_I2C_Read... [10:58:16]Read from MH i2c: 01 [10:58:16]MH_I2C_Read... [10:58:16]Read from MH i2c: 01 07 00 [10:58:16]MH_I2C_Read... [10:58:16]Read from MH i2c: 01 07 00 AB 00 00 03 00 00 00 FF 0F C3 [10:58:16]state=3 [10:58:16]No paper [10:58:16]Cover opened [10:58:16]OFD Sender: No OFD packet to send [10:58:21]Write to MH i2c: 01 00 00 AC 00 AC [10:58:21]Write i2c OK [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: 01 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: 01 07 00 [10:58:21]MH_I2C_Read... [10:58:21]Read from MH i2c: 01 07 00 AC 00 00 03 00 00 00 FF 0F C4 [10:58:21]state=3 [10:58:21]No paper [10:58:21]Cover opened [10:58:21]OFD Sender: No OFD packet to send [10:58:26]Write to MH i2c: 01 00 00 AD 00 AD [10:58:26]Write i2c OK [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 [10:58:26]MH_I2C_Read... [10:58:26]Read from MH i2c: 01 07 00 AD 00 00 03 00 00 00 FF 0F C5 [10:58:26]state=3 [10:58:26]No paper [10:58:26]Cover opened [10:58:26]OFD Sender: No OFD packet to send [10:58:31]Write to MH i2c: 01 00 00 AE 00 AE [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: 01 07 00 AE 00 00 03 00 00 00 FF 0F C6 [10:58:31]state=3 [10:58:31]No paper [10:58:31]Cover opened [10:58:31]OFD Sender: No OFD packet to send [10:58:36]Write to MH i2c: 01 00 00 AF 00 AF [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 AF 00 00 03 00 00 00 FF 0F C7 [10:58:36]state=3 [10:58:36]No paper [10:58:36]Cover opened [10:58:36]OFD Sender: No OFD packet to send [10:58:41]Write to MH i2c: 01 00 00 B0 00 B0 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: 01 07 00 B0 00 00 03 00 00 00 FF 0F C8 [10:58:41]state=3 [10:58:41]No paper [10:58:41]Cover opened [10:58:41]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 8A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 540000000057254E (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 30766007+1685004796=1715770803 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4E FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 B4 95 44 66 FC 21 6F 64 E2 [11:00:04]Current date/time: 15.05.2024 11:00 [11:00:04]FM_Init [11:00:04]wFMConnect [11:00:04]MH_SAM_On [11:00:04]Write to MH i2c: E0 00 00 08 00 E7 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_init finished! [11:00:04]*** atr: [11:00:04]*** 0F 3B D5 18 FF 81 91 FE [11:00:04]*** 1F C3 80 73 C8 21 10 0A [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]*** 00 00 00 00 00 00 00 00 [11:00:04]Read from MH i2c: E0 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E0 10 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:00:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:00:04]wFMCommunicate request_size=10 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:00:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 11 00 00 [11:00:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [11:00: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:00:04]wFMCommunicate OK [11:00:04]Detected FM SN is 0000000000871829 [11:00:04]Stored FM SN is 0000000000871829 [11:00:04]wFMCommunicate request_size=9 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 16 00 00 04 44 DD 00 00 [11:00:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]FM PIN OK [11:00:04]wFMCommunicate request_size=8 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 14 04 00 03 02 00 01 [11:00:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=13 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:00:04]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:00:04]RAPDU: 90 00 [11:00:04]wFMCommunicate OK [11:00:04]wFMCommunicate request_size=4 [11:00:04]MH_SAM_APDU [11:00:04]CAPDU: 80 11 00 00 [11:00:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:04]Read from MH i2c: E2 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [11:00: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:00:04]wFMCommunicate OK [11:00:04]DocumentArchiveInit [11:00:04]Start Httpd... [11:00:04]Httpd thread 3067460964 created [11:00:04]Write to MH i2c: 01 00 00 0F 00 0F [11:00:04]Write i2c OK [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 07 00 [11:00:04]MH_I2C_Read... [11:00:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:00:04]MH Int Process started [11:00:04]Allocated Socket 8 [11:00:04]Bind OK [11:00:04]Listen OK [11:00:04]httpd running on port 8080 [11:00:04]Waiting for new connection... [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:23]accept exits with 9 [11:00:23]New connection [11:00:23]New thread 3067174244 created [11:00:23]Waiting for new connection... [11:00:23] Sock 9.Parse request [11:00:23]Sock 9.Check first char [11:00:23]Sock 9.First char is OK [11:00:23]request: POST /json_proto HTTP/1.0 [11:00:23]Method: POST [11:00:23]URL: /json_proto [11:00:23]Method is POST - this is cgi request [11:00:23]url: /json_proto [11:00:23]query_string will be loaded in cgi processing [11:00:23]execute_cgi json_proto POST (null) [11:00:23]execute_cgi path=json_proto method=POST [11:00:23]POST find Content-Length [11:00:23]Host: 172.17.41.195:8080 [11:00:23]Content-Length: 215 [11:00:23]Content-Type: application/json [11:00:23] [11:00:23]POST finish read [11:00:23]Found Content-Length = 215 [11:00:23]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:00:23]execute_script... [11:00:23]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:00:23]POST & json_proto [11:00:23]process_json_proto [11:00:23]json parsed OK: [11:00:23]protocol is kg_v1.0 [11:00:23]action value=get_value [11:00:23]process_action get_value [11:00:23]cmd_get_value [11:00:23]process_action get_value done [11:00:23]requested_data is exist [11:00:23]produce_requested_data [11:00:23]requested_item kkm.sn is exist - process it [11:00:23]requested_item kkm.ver is exist - process it [11:00:23]requested_item fm.sn is exist - process it [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 11 00 00 [11:00:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [11:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:00:23]wFMCommunicate OK [11:00:23]requested_item fd.num is exist - process it [11:00:23]SAM_PROTO_GetFieldsCounters [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 00 00 [11:00:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 62 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 62 00 11 00 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 9D 06 01 00 0E 04 04 00 64 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 49 [11: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 9D 06 01 00 0E 04 04 00 64 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:00:23]wFMCommunicate OK [11:00:23]SAM_PROTO_GetFieldsCounters done [11:00:23]requested_item shift.num is exist - process it [11:00:23]requested_item shift.opened is exist - process it [11:00:23]req_shift_opened [11:00:23]FM_GetShiftState [11:00:23]SAM_PROTO_GetShiftState [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 01 00 [11:00:23]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3A [11:00:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:00:23]wFMCommunicate OK [11:00:23]SAM_PROTO_GetShiftState done [11:00:23]FM_GetShiftState done [11:00:23]req_shift_opened done [11:00:23]requested_item shift.open_date is exist - process it [11:00:23]req_shift_open_date [11:00:23]req_shift_open_date done [11:00:23]produce_requested_data done [11:00:23]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:00:23]process_action_free get_value [11:00:23]json_value_free [11:00:23]json_value_free done [11:00:23]process_json_proto returns [11:00:23]Send response to host [11:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:00:23]free response buf [11:00:23]execute_script done [11:00:23]execute_script returns [11:00:23]free content buf [11:00:23]Sock 9.Close socket [11:00:23]Sock 9.Thread stoped [11:00:23]accept exits with 7 [11:00:23]New connection [11:00:23]New thread 3067030884 created [11:00:23]Thread 3067174244 joined [11:00:23]Waiting for new connection... [11:00:23] Sock 7.Parse request [11:00:23]Sock 7.Check first char [11:00:23]Sock 7.First char is OK [11:00:23]request: POST /json_proto HTTP/1.0 [11:00:23]Method: POST [11:00:23]URL: /json_proto [11:00:23]Method is POST - this is cgi request [11:00:23]url: /json_proto [11:00:23]query_string will be loaded in cgi processing [11:00:23]execute_cgi json_proto POST (null) [11:00:23]execute_cgi path=json_proto method=POST [11:00:23]POST find Content-Length [11:00:23]Host: 172.17.41.195:8080 [11:00:23]Content-Length: 331 [11:00:23]Content-Type: application/json [11:00:23] [11:00:23]POST finish read [11:00:23]Found Content-Length = 331 [11:00:23]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:00:23]execute_script... [11:00:23]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:00:23]POST & json_proto [11:00:23]process_json_proto [11:00:23]json parsed OK: [11:00:23]protocol is kg_v1.0 [11:00:23]action value=get_value [11:00:23]process_action get_value [11:00:23]cmd_get_value [11:00:23]process_action get_value done [11:00:23]requested_data is exist [11:00:23]produce_requested_data [11:00:23]requested_item fm.sale.total is exist - process it [11:00:23]SAM_PROTO_GetFMData [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 03 00 [11:00:23]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 D5 03 01 00 69 04 A3 00 6F 04 04 00 2F 03 01 00 B1 04 05 00 BC 66 45 19 03 70 04 05 00 00 74 E3 BE 02 72 04 04 00 BC F2 61 5A 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 35 B3 40 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 D4 4F 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 CA [11:00:24]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 D5 03 01 00 69 04 A3 00 6F 04 04 00 2F 03 01 00 B1 04 05 00 BC 66 45 19 03 70 04 05 00 00 74 E3 BE 02 72 04 04 00 BC F2 61 5A 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 35 B3 40 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 D4 4F 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [11:00:24]wFMCommunicate OK [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 17 00 00 [11:00:24]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]OFD Sender: No OFD packet to send [11:00:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [11:00:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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:00:24]wFMCommunicate OK [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 17 00 00 [11:00:24]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 FD 00 15 00 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 BC [11:00:24]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:00:24]wFMCommunicate OK [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 17 00 00 [11:00:24]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 FD 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:00: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:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 17 00 00 [11:00:25]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 E3 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 E3 00 17 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [11:00:25]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:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetFMData done [11:00:25]requested_item fm.sale_refund.total is exist - process it [11:00:25]requested_item fm.buy.total is exist - process it [11:00:25]requested_item shift.sale.total is exist - process it [11:00:25]SAM_PROTO_GetShiftData [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 02 00 [11:00:25]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 FD 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 1E AE 35 70 04 03 00 24 0E 1E 72 04 03 00 FA 9F 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 A7 B3 05 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 A1 79 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 44 [11:00:25]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 2F 00 00 00 69 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 1E AE 35 70 04 03 00 24 0E 1E 72 04 03 00 FA 9F 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 A7 B3 05 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 A1 79 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 17 00 00 [11:00:25]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [11:00:26]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 17 00 00 [11:00:26]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [11:00:26]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 17 00 00 [11:00:26]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [11:00:26]RAPDU: 03 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 90 00 [11:00:26]wFMCommunicate OK [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 17 00 00 [11:00:26]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 D5 00 [11:00:26]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [11:00:27]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:27]wFMCommunicate OK [11:00:27]SAM_PROTO_GetShiftData done [11:00:27]requested_item shift.sale.total_cash is exist - process it [11:00:27]requested_item shift.sale_refund.total is exist - process it [11:00:27]requested_item shift.sale_refund.total_cash is exist - process it [11:00:27]requested_item shift.buy.total is exist - process it [11:00:27]requested_item shift.buy.total_cash is exist - process it [11:00:27]produce_requested_data done [11:00:27]produce_requested_data return {"fm.sale.total":133088805.72,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":35179.82,"shift.sale.total_cash":19697.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:00:27]process_action_free get_value [11:00:27]json_value_free [11:00:27]json_value_free done [11:00:27]process_json_proto returns [11:00:27]Send response to host [11:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133088805.72,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":35179.82,"shift.sale.total_cash":19697.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:00:27]free response buf [11:00:27]execute_script done [11:00:27]execute_script returns [11:00:27]free content buf [11:00:27]Sock 7.Close socket [11:00:27]Sock 7.Thread stoped [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [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:21]accept exits with 9 [11:06:21]New connection [11:06:21]New thread 3067174244 created [11:06:21]Thread 3067030884 joined [11:06:21]Waiting for new connection... [11:06:21] Sock 9.Parse request [11:06:21]Sock 9.Check first char [11:06:21]Sock 9.First char is OK [11:06:21]request: POST /json_proto HTTP/1.0 [11:06:21]Method: POST [11:06:21]URL: /json_proto [11:06:21]Method is POST - this is cgi request [11:06:21]url: /json_proto [11:06:21]query_string will be loaded in cgi processing [11:06:21]execute_cgi json_proto POST (null) [11:06:21]execute_cgi path=json_proto method=POST [11:06:21]POST find Content-Length [11:06:21]Host: 172.17.41.195:8080 [11:06:21]Content-Length: 1209 [11:06:21]Content-Type: application/json [11:06:21] [11:06:21]POST finish read [11:06:21]Found Content-Length = 1209 [11:06: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)507184\u000A15.05.2024 10:48\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 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:06:21]execute_script... [11:06: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)507184\u000A15.05.2024 10:48\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 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:06:21]POST & json_proto [11:06:21]process_json_proto [11:06:21]json parsed OK: [11:06:21]protocol is kg_v1.0 [11:06:21]action value=print_text [11:06:21]process_action print_text [11:06:21]cmd_print_text [11:06:21]ExternCall_PrintAddStr [11:06:21]wPrintStart [11:06:21]Write to MH i2c: 01 00 00 1D 00 1D [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [11:06:21]RasterBufferAndPrint [11:06:21]line *****ТОВАРНЫЙ ЧЕК***** [11:06:21]line АЗС-91 [11:06:21]line Партнер нефть [11:06:21]line 02508201610067 [11:06:21]line Кассир : Арстанбеков Н. [11:06:21]line Счет N : (1)507184 [11:06:21]line 15.05.2024 10:48 [11:06:21]line ПРОДАЖА [11:06:21]line ТРК (МРК, ГНК): 31 [11:06:21]line Вид ГСМ : 2710194210 [11:06:21]line ДТ-К-5 [11:06:21]line 13.390 x 74.70 [11:06:21]line ИТОГ: 1000.23 [11:06:21]line Тип оплаты: Талоны: Топливная Карта [11:06:21]line 02750 [11:06:21]line ______________________ [11:06:21]line (подпись) [11:06:21]written 0, free lines is 4095 [11:06:21]Write to MH i2c: 01 00 00 31 00 31 [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 12 0E 58 [11:06:21]RasterBufferAndPrint [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]line [11:06:21]written 0, free lines is 3604 [11:06:21]MH_Cut [11:06:21]Write to MH i2c: D1 01 00 38 00 01 0A [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 01 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: D1 01 00 38 00 00 09 [11:06:21]Write to MH i2c: 01 00 00 39 00 39 [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:22]*** Cut start [11:06:22]*** Purtial cut [11:06:22]*** Stage 1: CUTSNS_PIN = 1 [11:06:22]Read from MH i2c: 01 [11:06:22]MH_I2C_Read... [11:06:22]*** Stop cut motor [11:06:22]*** Cut end [11:06:22]Read from MH i2c: 01 07 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [11:06:22]process_action print_text done [11:06:22]requested_data is exist [11:06:22]produce_requested_data [11:06:22]requested_item fm.sn is exist - process it [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 11 00 00 [11:06:22]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 17 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 17 00 3A 00 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:06: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:06:22]wFMCommunicate OK [11:06:22]requested_item fd.num is exist - process it [11:06:22]SAM_PROTO_GetFieldsCounters [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 13 00 00 [11:06:22]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 62 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 62 00 3B 00 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 9D 06 01 00 0E 04 04 00 64 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 73 [11:06: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 9D 06 01 00 0E 04 04 00 64 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:06:22]wFMCommunicate OK [11:06:22]SAM_PROTO_GetFieldsCounters done [11:06:22]requested_item shift.num is exist - process it [11:06:22]requested_item shift.opened is exist - process it [11:06:22]req_shift_opened [11:06:22]FM_GetShiftState [11:06:22]SAM_PROTO_GetShiftState [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 13 01 00 [11:06:22]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 0E 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 64 [11:06:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:06:22]wFMCommunicate OK [11:06:22]SAM_PROTO_GetShiftState done [11:06:22]FM_GetShiftState done [11:06:22]req_shift_opened done [11:06:22]requested_item shift.open_date is exist - process it [11:06:22]req_shift_open_date [11:06:22]req_shift_open_date done [11:06:22]produce_requested_data done [11:06:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:06:22]process_action_free print_text [11:06:22]json_value_free [11:06:22]json_value_free done [11:06:22]process_json_proto returns [11:06:22]Send response to host [11:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:06:22]free response buf [11:06:22]execute_script done [11:06:22]execute_script returns [11:06:22]free content buf [11:06:22]Sock 9.Close socket [11:06:22]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]accept exits with 7 [11:09:55]New connection [11:09:55]New thread 3067030884 created [11:09:55]Thread 3067174244 joined [11:09:55]Waiting for new connection... [11:09:55] Sock 7.Parse request [11:09:55]Sock 7.Check first char [11:09:55]Sock 7.First char is OK [11:09:55]request: POST /json_proto HTTP/1.0 [11:09:55]Method: POST [11:09:55]URL: /json_proto [11:09:55]Method is POST - this is cgi request [11:09:55]url: /json_proto [11:09:55]query_string will be loaded in cgi processing [11:09:55]execute_cgi json_proto POST (null) [11:09:55]execute_cgi path=json_proto method=POST [11:09:55]POST find Content-Length [11:09:55]Host: 172.17.41.195:8080 [11:09:55]Content-Length: 1171 [11:09:55]Content-Type: application/json [11:09:55] [11:09:55]POST finish read [11:09:55]Found Content-Length = 1171 [11: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)507186\u000A15.05.2024 10: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 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:55]execute_script... [11: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)507186\u000A15.05.2024 10: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 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:55]POST & json_proto [11:09:55]process_json_proto [11:09:55]json parsed OK: [11:09:55]protocol is kg_v1.0 [11:09:55]action value=print_text [11:09:55]process_action print_text [11:09:55]cmd_print_text [11:09:55]ExternCall_PrintAddStr [11:09:55]wPrintStart [11:09:55]Write to MH i2c: 01 00 00 3D 00 3D [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 07 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 07 00 3D 00 00 00 00 00 00 FF 0F 52 [11:09:55]RasterBufferAndPrint [11:09:55]line *****ТОВАРНЫЙ ЧЕК***** [11:09:55]line АЗС-91 [11:09:55]line Партнер нефть [11:09:55]line 02508201610067 [11:09:55]line Кассир : Арстанбеков Н. [11:09:55]line Счет N : (1)507186 [11:09:55]line 15.05.2024 10:52 [11:09:55]line ПРОДАЖА [11:09:55]line ТРК (МРК, ГНК): 21 [11:09:55]line Вид ГСМ : 2710194210 [11:09:55]line ДТ-К-5 [11:09:55]line 30.000 x 74.70 [11:09:55]line ИТОГ: 2241.00 [11:09:55]line Тип оплаты: Талоны: ТК ГПНА Online [11:09:55]OFD Sender: No OFD packet to send [11:09:55]line 30069563 [11:09:55]line ______________________ [11:09:55]line (подпись) [11:09:55]written 0, free lines is 4095 [11:09:55]Write to MH i2c: 01 00 00 51 00 51 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 07 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 10 0E 76 [11:09:55]RasterBufferAndPrint [11:09:55]line [11:09:55]line [11:09:55]line [11:09:55]line [11:09:55]line [11:09:55]written 0, free lines is 3602 [11:09:55]MH_Cut [11:09:55]Write to MH i2c: D1 01 00 58 00 01 2A [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: D1 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: D1 01 00 [11:09:55]MH_I2C_Read... [11:09:55]Read from MH i2c: D1 01 00 58 00 00 29 [11:09:55]Write to MH i2c: 01 00 00 59 00 59 [11:09:55]Write i2c OK [11:09:55]MH_I2C_Read... [11:09:55]*** Cut start [11:09:55]*** Purtial cut [11:09:55]*** CUTSNS_PIN = 0 [11:09:56]*** Stage 1: CUTSNS_PIN = 1 [11:09:57]Read from MH i2c: 01 [11:09:57]MH_I2C_Read... [11:09:57]*** Stop cut motor [11:09:57]*** Cut end [11:09:57]Read from MH i2c: 01 07 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 FF 0F 6E [11:09:57]process_action print_text done [11:09:57]requested_data is exist [11:09:57]produce_requested_data [11:09:57]requested_item fm.sn is exist - process it [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 11 00 00 [11:09:57]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 17 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [11:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:09:57]wFMCommunicate OK [11:09:57]requested_item fd.num is exist - process it [11:09:57]SAM_PROTO_GetFieldsCounters [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 13 00 00 [11:09:57]Write to MH i2c: E2 08 00 5B 00 80 13 00 00 00 00 00 00 D7 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:57]Read from MH i2c: E2 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 62 00 [11:09:57]MH_I2C_Read... [11:09:57]Read from MH i2c: E2 62 00 5B 00 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 9D 06 01 00 0E 04 04 00 64 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 93 [11:09: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 9D 06 01 00 0E 04 04 00 64 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:09:57]wFMCommunicate OK [11:09:57]SAM_PROTO_GetFieldsCounters done [11:09:57]requested_item shift.num is exist - process it [11:09:57]requested_item shift.opened is exist - process it [11:09:57]req_shift_opened [11:09:57]FM_GetShiftState [11:09:57]SAM_PROTO_GetShiftState [11:09:57]wFMCommunicate request_size=4 [11:09:57]MH_SAM_APDU [11:09:57]CAPDU: 80 13 01 00 [11:09:57]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [11:09:57]Write i2c OK [11:09:57]MH_I2C_Read... [11:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:58]Read from MH i2c: E2 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 0E 00 [11:09:58]MH_I2C_Read... [11:09:58]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 84 [11:09:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:09:58]wFMCommunicate OK [11:09:58]SAM_PROTO_GetShiftState done [11:09:58]FM_GetShiftState done [11:09:58]req_shift_opened done [11:09:58]requested_item shift.open_date is exist - process it [11:09:58]req_shift_open_date [11:09:58]req_shift_open_date done [11:09:58]produce_requested_data done [11:09:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:09:58]process_action_free print_text [11:09:58]json_value_free [11:09:58]json_value_free done [11:09:58]process_json_proto returns [11:09:58]Send response to host [11:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:09:58]free response buf [11:09:58]execute_script done [11:09:58]execute_script returns [11:09:58]free content buf [11:09:58]Sock 7.Close socket [11:09:58]Sock 7.Thread stoped [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:31]accept exits with 9 [11:10:31]New connection [11:10:31]New thread 3067174244 created [11:10:31]Thread 3067030884 joined [11:10:31]Waiting for new connection... [11:10:31] Sock 9.Parse request [11:10:31]Sock 9.Check first char [11:10:31]Sock 9.First char is OK [11:10:31]request: POST /json_proto HTTP/1.0 [11:10:31]Method: POST [11:10:31]URL: /json_proto [11:10:31]Method is POST - this is cgi request [11:10:31]url: /json_proto [11:10:31]query_string will be loaded in cgi processing [11:10:31]execute_cgi json_proto POST (null) [11:10:31]execute_cgi path=json_proto method=POST [11:10:31]POST find Content-Length [11:10:31]Host: 172.17.41.195:8080 [11:10:31]Content-Length: 1209 [11:10:31]Content-Type: application/json [11:10:31] [11:10:31]POST finish read [11:10:31]Found Content-Length = 1209 [11: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)507185\u000A15.05.2024 10:53\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 55.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4108.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:10:31]execute_script... [11: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)507185\u000A15.05.2024 10:53\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 55.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4108.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:10:31]POST & json_proto [11:10:31]process_json_proto [11:10:31]json parsed OK: [11:10:31]protocol is kg_v1.0 [11:10:31]action value=print_text [11:10:31]process_action print_text [11:10:31]cmd_print_text [11:10:31]ExternCall_PrintAddStr [11:10:31]wPrintStart [11:10:31]Write to MH i2c: 01 00 00 5D 00 5D [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: 01 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: 01 07 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: 01 07 00 5D 00 00 00 00 00 00 FF 0F 72 [11:10:31]RasterBufferAndPrint [11:10:31]line *****ТОВАРНЫЙ ЧЕК***** [11:10:31]line АЗС-91 [11:10:31]line Партнер нефть [11:10:31]line 02508201610067 [11:10:31]line Кассир : Арстанбеков Н. [11:10:31]line Счет N : (1)507185 [11:10:31]line 15.05.2024 10:53 [11:10:31]line ПРОДАЖА [11:10:31]line ТРК (МРК, ГНК): 11 [11:10:31]line Вид ГСМ : 2710194210 [11:10:31]line ДТ-К-5 [11:10:31]line 55.000 x 74.70 [11:10:31]line ИТОГ: 4108.50 [11:10:31]line Тип оплаты: Талоны: Топливная Карта [11:10:31]line 02750 [11:10:31]line ______________________ [11:10:31]line (подпись) [11:10:31]written 0, free lines is 4095 [11:10:32]Write to MH i2c: 01 00 00 71 00 71 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: 01 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: 01 07 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: 01 07 00 71 00 00 00 00 00 00 0F 0E 95 [11:10:32]RasterBufferAndPrint [11:10:32]line [11:10:32]line [11:10:32]line [11:10:32]line [11:10:32]line [11:10:32]written 0, free lines is 3600 [11:10:32]MH_Cut [11:10:32]Write to MH i2c: D1 01 00 78 00 01 4A [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: D1 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: D1 01 00 [11:10:32]MH_I2C_Read... [11:10:32]Read from MH i2c: D1 01 00 78 00 00 49 [11:10:32]Write to MH i2c: 01 00 00 79 00 79 [11:10:32]Write i2c OK [11:10:32]MH_I2C_Read... [11:10:32]*** Cut start [11:10:32]*** Purtial cut [11:10:32]*** Stage 1: CUTSNS_PIN = 1 [11:10:33]Read from MH i2c: 01 [11:10:33]MH_I2C_Read... [11:10:33]*** Stop cut motor [11:10:33]*** Cut end [11:10:33]Read from MH i2c: 01 07 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [11:10:33]process_action print_text done [11:10:33]requested_data is exist [11:10:33]produce_requested_data [11:10:33]requested_item fm.sn is exist - process it [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 11 00 00 [11:10:33]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 17 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [11:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:10:33]wFMCommunicate OK [11:10:33]requested_item fd.num is exist - process it [11:10:33]SAM_PROTO_GetFieldsCounters [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 13 00 00 [11:10:33]Write to MH i2c: E2 08 00 7B 00 80 13 00 00 00 00 00 00 F7 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 62 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 62 00 7B 00 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 9D 06 01 00 0E 04 04 00 64 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 B3 [11:10: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 9D 06 01 00 0E 04 04 00 64 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:10:33]wFMCommunicate OK [11:10:33]SAM_PROTO_GetFieldsCounters done [11:10:33]requested_item shift.num is exist - process it [11:10:33]requested_item shift.opened is exist - process it [11:10:33]req_shift_opened [11:10:33]FM_GetShiftState [11:10:33]SAM_PROTO_GetShiftState [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 13 01 00 [11:10:33]Write to MH i2c: E2 08 00 7C 00 80 13 01 00 00 00 00 00 F9 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0E 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0E 00 7C 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A4 [11:10:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:10:33]wFMCommunicate OK [11:10:33]SAM_PROTO_GetShiftState done [11:10:33]FM_GetShiftState done [11:10:33]req_shift_opened done [11:10:33]requested_item shift.open_date is exist - process it [11:10:33]req_shift_open_date [11:10:33]req_shift_open_date done [11:10:33]produce_requested_data done [11:10:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:10:33]process_action_free print_text [11:10:33]json_value_free [11:10:33]json_value_free done [11:10:33]process_json_proto returns [11:10:33]Send response to host [11:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67229,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:10:33]free response buf [11:10:33]execute_script done [11:10:33]execute_script returns [11:10:33]free content buf [11:10:33]Sock 9.Close socket [11:10:33]Sock 9.Thread stoped [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:11:58]accept exits with 7 [11:11:58]New connection [11:11:58]New thread 3067030884 created [11:11:58]Thread 3067174244 joined [11:11:58]Waiting for new connection... [11:11:58] Sock 7.Parse request [11:11:58]Sock 7.Check first char [11:11:58]Sock 7.First char is OK [11:11:58]request: POST /json_proto HTTP/1.0 [11:11:58]Method: POST [11:11:58]URL: /json_proto [11:11:58]Method is POST - this is cgi request [11:11:58]url: /json_proto [11:11:58]query_string will be loaded in cgi processing [11:11:58]execute_cgi json_proto POST (null) [11:11:58]execute_cgi path=json_proto method=POST [11:11:58]POST find Content-Length [11:11:58]Host: 172.17.41.195:8080 [11:11:58]Content-Length: 626 [11:11:58]Content-Type: application/json [11:11:58] [11:11:58]POST finish read [11:11:58]Found Content-Length = 626 [11:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12068", "tax_sys" : 0, "items" : [ { "code": "90494406", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:58]execute_script... [11:11: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)12068", "tax_sys" : 0, "items" : [ { "code": "90494406", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:58]POST & json_proto [11:11:58]process_json_proto [11:11:58]json parsed OK: [11:11:58]protocol is kg_v1.0 [11:11:58]action value=close_receipt [11:11:58]process_action close_receipt [11:11:58]cmd_close_receipt [11:11:58]MH_GetDate [11:11:58]Write to MH i2c: F0 00 00 7D 00 6C [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 7D 00 00 7E 98 44 66 FC 21 6F 64 25 [11:11:58]GetLastDocTimeStamp 1715770659 [11:11:58]current date 1715771518 [11:11:58]FM_GetShiftState [11:11:58]SAM_PROTO_GetShiftState [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 01 00 [11:11:58]Write to MH i2c: E2 08 00 7E 00 80 13 01 00 00 00 00 00 FB [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 7E 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A6 [11:11:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetShiftState done [11:11:58]FM_GetShiftState done [11:11:58]opened in 1715732471 [11:11:58]opened+sec_in_day 1715818871 [11:11:58]quantity*price = 3500 [11:11:58]sum+1 = 3501 [11:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 48 15.05.2024 11:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67230 ФПД: 188851872482646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111158&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67230&fm=188851872482646&tin=02508201610067®Number=0000000000091845&sum=3500 0 [11:11:59]StoreToDocumentArchive [11:11:59]shift 356 fd 67230 [11:11:59]save to /storage/0356/doc_00067230 [11:11:59]save last doc name /storage/0356/doc_00067230 to /storage/kkm_last_doc_name [11:11:59]save OK [11:11:59]Clear old archive folders... [11:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:11:59]tlvbuf is 00B15880 [11:11:59]SAM_PROTO_ClearQueue [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 09 00 00 [11:11:59]Write to MH i2c: E2 08 00 8B 00 80 09 00 00 00 00 00 00 FD [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 8B 00 00 90 00 FF [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_ClearQueue done [11:11:59]KKMCreateOFDPacket [11:11:59]OFDProtocolAddRootSTLVToBuf [11:11:59]FM_MakeSignedData [11:11:59]FM_MakeSignedData [11:11:59]SAM_PROTO_SignData [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 01 02 [11:11:59]Write to MH i2c: E2 08 00 8C 00 80 0D 01 02 00 00 00 00 05 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 03 00 8C 00 00 90 00 00 [11:11:59]RAPDU: 90 00 [11:11:59]wFMCommunicate OK [11:11:59]wFMCommunicate request_size=255 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7E 98 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [11:11:59]Write to MH i2c: E2 02 01 8D 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7E 98 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 46 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 8D 00 00 90 00 01 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=25 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 02 02 14 32 39 10 04 04 00 9E 06 01 00 35 04 06 00 AB C2 80 C6 45 56 [11:12:00]Write to MH i2c: E2 1C 00 8E 00 80 0D 02 02 14 00 32 39 10 04 04 00 9E 06 01 00 35 04 06 00 AB C2 80 C6 45 56 00 00 E5 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 8E 00 00 90 00 02 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 03 02 [11:12:00]Write to MH i2c: E2 08 00 8F 00 80 0D 03 02 00 00 00 00 0A [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 8F 00 00 12 42 3B 82 8E 1D 54 E1 90 00 FC [11:12:00]RAPDU: 12 42 3B 82 8E 1D 54 E1 90 00 [11:12:00]wFMCommunicate OK [11:12:00]SAM_PROTO_SignData done [11:12:00]FM_MakeSignedData done [11:12:00]CreateOFDProtocolMessage [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 11 00 00 [11:12:00]Write to MH i2c: E2 08 00 90 00 80 11 00 00 00 00 00 00 0A [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]OFD Sender: No OFD packet to send [11:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 90 00 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:12: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:12:00]wFMCommunicate OK [11:12:00]CreateOFDProtocolMessage done [11:12:00]OFDSenderStorePacket 67230 [11:12:00]StoreOFDPacket docnum=67230 [11:12: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 1E 01 00 00 5D 84 16 01 8C 5A 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7E 98 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 06 01 00 35 04 06 00 AB C2 80 C6 45 56 12 42 3B 82 8E 1D 54 E1 [11:12:00]CheckFolder [11:12:00]dirname=/storage/ofd_packets [11:12:00]CheckFolder done [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00067230 [11:12:00]NVStorageSaveData ofd_packets/00067230 [11:12:00]File name is /storage/ofd_packets/00067230 [11:12:00]Write 316 bytes [11:12:00]NVStorageSaveData done [11:12:00]OFDSenderStorePacket done [11:12:00]KKMCreateOFDPacket done [11:12:00]NVStorageSaveData kkm_last_timestamp [11:12:00]File name is /storage/kkm_last_timestamp [11:12:00]Write 4 bytes [11:12:00]NVStorageSaveData done [11:12:00]ExternCall_PrintAddStr [11:12:00]wPrintStart [11:12:00]Write to MH i2c: 01 00 00 91 00 91 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 91 00 00 00 00 00 00 FF 0F A6 [11:12:00]RasterBufferAndPrint [11:12:00]line Счет N : (3)12068 [11:12:00]line ИНН: 02508201610067 [11:12:00]line Контрольно-Кассовый Чек [11:12:00]line ПРОДАЖА [11:12:00]line Товар: 90494406 [11:12:00]line Вода Бонаква 0,5л [11:12:00]line 1.000 * 35.00 [11:12:00]line = 35.00 [11:12:00]line НДС 12% НСП 1% [11:12:00]line > о реализуемом товаре [11:12:00]line ИТОГО: 35.00 [11:12:00]line НСП 1% : 0.31 [11:12:00]line НДС 12% : 3.72 [11:12:00]line Наличными: 35.00 [11:12:00]line Безнал.: 0.00 [11:12:00]line Место: АЗС № 91 "Партнер Нефть" [11:12:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:12:00]line СНО: Общий режим [11:12:00]line Чек 48 15.05.2024 11:11 [11:12:00]line Смена: 356 ФФД: 1.0 [11:12:00]line ЗНМ: 0300000119 [11:12:00]line РНМ: 0000000000091845 [11:12:00]line Версия ККМ: 001 [11:12:00]line ФМ: 0000000000871829 [11:12:00]line ФД: 67230 [11:12:00]line ФПД: 188851872482646 [11:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111158&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67230&fm=188851872482646&tin=02508201610067®Number=0000000000091845&sum=3500 [11:12:00]line 0 [11:12:00]written 0, free lines is 4095 [11:12:00]OFD Sender: Processing packet 67230 [packets to send 35, broken 34] [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00067230 [11:12:00]OFD Sender: To server: pG, [11:12:00]CommunicateWithHost lk.salyk.kg:30040 [11:12:00]ConnectInit lk.salyk.kg [11:12:00]Connected sock=10 [11:12: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 1E 01 00 00 5D 84 16 01 8C 5A 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 39 30 34 39 34 34 30 36 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7E 98 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9E 06 01 00 35 04 06 00 AB C2 80 C6 45 56 12 42 3B 82 8E 1D 54 E1 [11:12:00]Write to MH i2c: 01 00 00 B8 00 B8 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 EC 0C B7 [11:12:00]RasterBufferAndPrint [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]line [11:12:00]written 0, free lines is 3314 [11:12:00]MH_Cut [11:12:00]Write to MH i2c: D1 01 00 BF 00 01 91 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 01 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: D1 01 00 BF 00 00 90 [11:12:00]Write to MH i2c: 01 00 00 C0 00 C0 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12: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 84 B3 47 00 4B 4C 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 9E 06 01 00 F4 03 04 00 5C 40 44 66 B6 04 01 00 00 3E 51 DE 76 18 58 C1 35 [11:12:00]CommunicateWithHost err = 0 [11:12:00]CheckOFDResponse [11:12:00]1017 (14) - 77093643461234 [11:12:00]1041 (16) - 0000000000871829 [11:12:00]1040 (4) - 67230 [11:12:00]1012 (4) - 15.05.2024 04:55 [11:12:00]1206 (1) - 0 [11:12:00]OFD Sender: Remove packet 67230 [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00067230 [11:12:00]NVStorageDeleteData [11:12:01]OFD Sender: No OFD packet to send [11:12:01]*** Cut start [11:12:01]*** Purtial cut [11:12:01]*** CUTSNS_PIN = 0 [11:12:01]*** Stage 1: CUTSNS_PIN = 1 [11:12:03]Read from MH i2c: 01 [11:12:03]MH_I2C_Read... [11:12:03]*** Stop cut motor [11:12:03]*** Cut end [11:12:03]Read from MH i2c: 01 07 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: 01 07 00 C0 00 00 00 00 00 00 FF 0F D5 [11:12:03]process_action close_receipt done [11:12:03]requested_data is exist [11:12:03]produce_requested_data [11:12:03]requested_item fm.sn is exist - process it [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 11 00 00 [11:12:03]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 17 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 91 [11:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:12:03]wFMCommunicate OK [11:12:03]requested_item fd.num is exist - process it [11:12:03]SAM_PROTO_GetFieldsCounters [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 13 00 00 [11:12:03]Write to MH i2c: E2 08 00 C2 00 80 13 00 00 00 00 00 00 3E [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 62 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 62 00 C2 00 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 9E 06 01 00 0E 04 04 00 64 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 FE [11:12: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 9E 06 01 00 0E 04 04 00 64 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:12:03]wFMCommunicate OK [11:12:03]SAM_PROTO_GetFieldsCounters done [11:12:03]requested_item shift.num is exist - process it [11:12:03]requested_item shift.opened is exist - process it [11:12:03]req_shift_opened [11:12:03]FM_GetShiftState [11:12:03]SAM_PROTO_GetShiftState [11:12:03]wFMCommunicate request_size=4 [11:12:03]MH_SAM_APDU [11:12:03]CAPDU: 80 13 01 00 [11:12:03]Write to MH i2c: E2 08 00 C3 00 80 13 01 00 00 00 00 00 40 [11:12:03]Write i2c OK [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 [11:12:03]MH_I2C_Read... [11:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:03]Read from MH i2c: E2 0E 00 [11:12:03]MH_I2C_Read... [11:12:03]Read from MH i2c: E2 0E 00 C3 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EB [11:12:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:12:03]wFMCommunicate OK [11:12:03]SAM_PROTO_GetShiftState done [11:12:03]FM_GetShiftState done [11:12:03]req_shift_opened done [11:12:03]requested_item shift.open_date is exist - process it [11:12:03]req_shift_open_date [11:12:03]req_shift_open_date done [11:12:03]produce_requested_data done [11:12:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:12:03]process_action_free close_receipt [11:12:03]json_value_free [11:12:03]json_value_free done [11:12:03]process_json_proto returns [11:12:03]Send response to host [11:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:12:03]free response buf [11:12:03]execute_script done [11:12:03]execute_script returns [11:12:03]free content buf [11:12:03]Sock 7.Close socket [11:12:03]Sock 7.Thread stoped [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:36]accept exits with 9 [11:12:36]New connection [11:12:36]New thread 3067174244 created [11:12:36]Thread 3067030884 joined [11:12:36]Waiting for new connection... [11:12:36] Sock 9.Parse request [11:12:36]Sock 9.Check first char [11:12:36]Sock 9.First char is OK [11:12:36]request: POST /json_proto HTTP/1.0 [11:12:36]Method: POST [11:12:36]URL: /json_proto [11:12:36]Method is POST - this is cgi request [11:12:36]url: /json_proto [11:12:36]query_string will be loaded in cgi processing [11:12:36]execute_cgi json_proto POST (null) [11:12:36]execute_cgi path=json_proto method=POST [11:12:36]POST find Content-Length [11:12:36]Host: 172.17.41.195:8080 [11:12:36]Content-Length: 1209 [11:12:36]Content-Type: application/json [11:12:36] [11:12:36]POST finish read [11:12:36]Found Content-Length = 1209 [11:12: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)507188\u000A15.05.2024 10:55\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" ] } } [11:12:36]execute_script... [11:12: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)507188\u000A15.05.2024 10:55\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" ] } } [11:12:36]POST & json_proto [11:12:36]process_json_proto [11:12:36]json parsed OK: [11:12:36]protocol is kg_v1.0 [11:12:36]action value=print_text [11:12:36]process_action print_text [11:12:36]cmd_print_text [11:12:36]ExternCall_PrintAddStr [11:12:36]wPrintStart [11:12:36]Write to MH i2c: 01 00 00 C4 00 C4 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [11:12:36]RasterBufferAndPrint [11:12:36]line *****ТОВАРНЫЙ ЧЕК***** [11:12:36]line АЗС-91 [11:12:36]line Партнер нефть [11:12:36]line 02508201610067 [11:12:36]line Кассир : Арстанбеков Н. [11:12:36]line Счет N : (1)507188 [11:12:36]line 15.05.2024 10:55 [11:12:36]line ПРОДАЖА [11:12:36]line ТРК (МРК, ГНК): 41 [11:12:36]line Вид ГСМ : 2710194210 [11:12:36]line ДТ-К-5 [11:12:36]line 26.780 x 74.70 [11:12:36]line ИТОГ: 2000.47 [11:12:36]line Тип оплаты: Талоны: Топливная Карта [11:12:36]line 02750 [11:12:36]line ______________________ [11:12:36]line (подпись) [11:12:36]written 0, free lines is 4095 [11:12:37]Write to MH i2c: 01 00 00 D8 00 D8 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 10 0E FD [11:12:37]RasterBufferAndPrint [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]line [11:12:37]written 0, free lines is 3601 [11:12:37]MH_Cut [11:12:37]Write to MH i2c: D1 01 00 DF 00 01 B1 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 01 00 [11:12:37]MH_I2C_Read... [11:12:37]Read from MH i2c: D1 01 00 DF 00 00 B0 [11:12:37]Write to MH i2c: 01 00 00 E0 00 E0 [11:12:37]Write i2c OK [11:12:37]MH_I2C_Read... [11:12:37]*** Cut start [11:12:37]*** Purtial cut [11:12:37]*** Stage 1: CUTSNS_PIN = 1 [11:12:38]Read from MH i2c: 01 [11:12:38]MH_I2C_Read... [11:12:38]*** Stop cut motor [11:12:38]*** Cut end [11:12:38]Read from MH i2c: 01 07 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [11:12:38]process_action print_text done [11:12:38]requested_data is exist [11:12:38]produce_requested_data [11:12:38]requested_item fm.sn is exist - process it [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 11 00 00 [11:12:38]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 17 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [11:12: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:12:38]wFMCommunicate OK [11:12:38]requested_item fd.num is exist - process it [11:12:38]SAM_PROTO_GetFieldsCounters [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 13 00 00 [11:12:38]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 62 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 62 00 E2 00 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 9E 06 01 00 0E 04 04 00 64 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 1E [11:12: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 9E 06 01 00 0E 04 04 00 64 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:12:38]wFMCommunicate OK [11:12:38]SAM_PROTO_GetFieldsCounters done [11:12:38]requested_item shift.num is exist - process it [11:12:38]requested_item shift.opened is exist - process it [11:12:38]req_shift_opened [11:12:38]FM_GetShiftState [11:12:38]SAM_PROTO_GetShiftState [11:12:38]wFMCommunicate request_size=4 [11:12:38]MH_SAM_APDU [11:12:38]CAPDU: 80 13 01 00 [11:12:38]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [11:12:38]Write i2c OK [11:12:38]MH_I2C_Read... [11:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:38]Read from MH i2c: E2 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 0E 00 [11:12:38]MH_I2C_Read... [11:12:38]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0B [11:12:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:12:38]wFMCommunicate OK [11:12:38]SAM_PROTO_GetShiftState done [11:12:38]FM_GetShiftState done [11:12:38]req_shift_opened done [11:12:38]requested_item shift.open_date is exist - process it [11:12:38]req_shift_open_date [11:12:38]req_shift_open_date done [11:12:38]produce_requested_data done [11:12:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:12:38]process_action_free print_text [11:12:38]json_value_free [11:12:38]json_value_free done [11:12:38]process_json_proto returns [11:12:38]Send response to host [11:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:12:38]free response buf [11:12:38]execute_script done [11:12:38]execute_script returns [11:12:38]free content buf [11:12:38]Sock 9.Close socket [11:12:38]Sock 9.Thread stoped [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:12:57]accept exits with 7 [11:12:57]New connection [11:12:57]New thread 3067030884 created [11:12:57]Thread 3067174244 joined [11:12:57]Waiting for new connection... [11:12:57] Sock 7.Parse request [11:12:57]Sock 7.Check first char [11:12:57]Sock 7.First char is OK [11:12:57]request: POST /json_proto HTTP/1.0 [11:12:57]Method: POST [11:12:57]URL: /json_proto [11:12:57]Method is POST - this is cgi request [11:12:57]url: /json_proto [11:12:57]query_string will be loaded in cgi processing [11:12:57]execute_cgi json_proto POST (null) [11:12:57]execute_cgi path=json_proto method=POST [11:12:57]POST find Content-Length [11:12:57]Host: 172.17.41.195:8080 [11:12:57]Content-Length: 1210 [11:12:57]Content-Type: application/json [11:12:57] [11:12:57]POST finish read [11:12:57]Found Content-Length = 1210 [11:12: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)507189\u000A15.05.2024 10:55\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 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" ] } } [11:12:57]execute_script... [11:12: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)507189\u000A15.05.2024 10:55\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 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" ] } } [11:12:57]POST & json_proto [11:12:57]process_json_proto [11:12:57]json parsed OK: [11:12:57]protocol is kg_v1.0 [11:12:57]action value=print_text [11:12:57]process_action print_text [11:12:57]cmd_print_text [11:12:57]ExternCall_PrintAddStr [11:12:57]wPrintStart [11:12:57]Write to MH i2c: 01 00 00 E4 00 E4 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [11:12:57]RasterBufferAndPrint [11:12:57]line *****ТОВАРНЫЙ ЧЕК***** [11:12:57]line АЗС-91 [11:12:57]line Партнер нефть [11:12:57]line 02508201610067 [11:12:57]line Кассир : Арстанбеков Н. [11:12:57]line Счет N : (1)507189 [11:12:57]line 15.05.2024 10:55 [11:12:57]line ПРОДАЖА [11:12:57]line ТРК (МРК, ГНК): 23 [11:12:57]line Вид ГСМ : 2710124130 [11:12:57]line Аи-92-К-5 [11:12:57]line 7.490 x 66.80 [11:12:57]line ИТОГ: 500.33 [11:12:57]line Тип оплаты: Талоны: Топливная Карта [11:12:57]line 02750 [11:12:57]line ______________________ [11:12:57]line (подпись) [11:12:57]written 0, free lines is 4095 [11:12:58]Write to MH i2c: 01 00 00 F8 00 F8 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 11 0E 1E [11:12:58]RasterBufferAndPrint [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]written 0, free lines is 3602 [11:12:58]MH_Cut [11:12:58]Write to MH i2c: D1 01 00 FF 00 01 D1 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 FF 00 00 D0 [11:12:58]Write to MH i2c: 01 00 00 00 01 01 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]*** Cut start [11:12:58]*** Purtial cut [11:12:58]*** CUTSNS_PIN = 0 [11:12:58]*** Stage 1: CUTSNS_PIN = 1 [11:13:00]Read from MH i2c: 01 [11:13:00]MH_I2C_Read... [11:13:00]*** Stop cut motor [11:13:00]*** Cut end [11:13:00]Read from MH i2c: 01 07 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [11:13:00]process_action print_text done [11:13:00]requested_data is exist [11:13:00]produce_requested_data [11:13:00]requested_item fm.sn is exist - process it [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 11 00 00 [11:13:00]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [11:13: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:13:00]wFMCommunicate OK [11:13:00]requested_item fd.num is exist - process it [11:13:00]SAM_PROTO_GetFieldsCounters [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 13 00 00 [11:13:00]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 02 01 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 9E 06 01 00 0E 04 04 00 64 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 3F [11:13: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 9E 06 01 00 0E 04 04 00 64 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:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetFieldsCounters done [11:13:00]requested_item shift.num is exist - process it [11:13:00]requested_item shift.opened is exist - process it [11:13:00]req_shift_opened [11:13:00]FM_GetShiftState [11:13:00]SAM_PROTO_GetShiftState [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 13 01 00 [11:13:00]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2C [11:13:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetShiftState done [11:13:00]FM_GetShiftState done [11:13:00]req_shift_opened done [11:13:00]requested_item shift.open_date is exist - process it [11:13:00]req_shift_open_date [11:13:00]req_shift_open_date done [11:13:00]produce_requested_data done [11:13:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:13:00]process_action_free print_text [11:13:00]json_value_free [11:13:00]json_value_free done [11:13:00]process_json_proto returns [11:13:00]Send response to host [11:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:13:00]free response buf [11:13:00]execute_script done [11:13:00]execute_script returns [11:13:00]free content buf [11:13:00]Sock 7.Close socket [11:13:00]Sock 7.Thread stoped [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:01]accept exits with 9 [11:14:01]New connection [11:14:01]New thread 3067174244 created [11:14:01]Thread 3067030884 joined [11:14:01]Waiting for new connection... [11:14:01] Sock 9.Parse request [11:14:01]Sock 9.Check first char [11:14:01]Sock 9.First char is OK [11:14:01]request: POST /json_proto HTTP/1.0 [11:14:01]Method: POST [11:14:01]URL: /json_proto [11:14:01]Method is POST - this is cgi request [11:14:01]url: /json_proto [11:14:01]query_string will be loaded in cgi processing [11:14:01]execute_cgi json_proto POST (null) [11:14:01]execute_cgi path=json_proto method=POST [11:14:01]POST find Content-Length [11:14:01]Host: 172.17.41.195:8080 [11:14:01]Content-Length: 1209 [11:14:01]Content-Type: application/json [11:14:01] [11:14:01]POST finish read [11:14:01]Found Content-Length = 1209 [11:14: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)507187\u000A15.05.2024 10: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 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.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\u000A03537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:01]execute_script... [11:14: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)507187\u000A15.05.2024 10: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 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.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\u000A03537\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:01]POST & json_proto [11:14:01]process_json_proto [11:14:01]json parsed OK: [11:14:01]protocol is kg_v1.0 [11:14:01]action value=print_text [11:14:01]process_action print_text [11:14:01]cmd_print_text [11:14:01]ExternCall_PrintAddStr [11:14:01]wPrintStart [11:14:01]Write to MH i2c: 01 00 00 04 01 05 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [11:14:01]RasterBufferAndPrint [11:14:01]line *****ТОВАРНЫЙ ЧЕК***** [11:14:01]line АЗС-91 [11:14:01]line Партнер нефть [11:14:01]line 02508201610067 [11:14:01]line Кассир : Арстанбеков Н. [11:14:01]line Счет N : (1)507187 [11:14:01]line 15.05.2024 10:56 [11:14:01]line ПРОДАЖА [11:14:01]line ТРК (МРК, ГНК): 31 [11:14:01]line Вид ГСМ : 2710194210 [11:14:01]line ДТ-К-5 [11:14:01]line 60.000 x 74.70 [11:14:01]line ИТОГ: 4482.00 [11:14:01]line Тип оплаты: Талоны: Топливная Карта [11:14:01]line 03537 [11:14:01]line ______________________ [11:14:01]line (подпись) [11:14:01]written 0, free lines is 4095 [11:14:02]Write to MH i2c: 01 00 00 18 01 19 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 10 0E 3E [11:14:02]RasterBufferAndPrint [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]line [11:14:02]written 0, free lines is 3601 [11:14:02]MH_Cut [11:14:02]Write to MH i2c: D1 01 00 1F 01 01 F2 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: D1 01 00 1F 01 00 F1 [11:14:02]Write to MH i2c: 01 00 00 20 01 21 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** Cut start [11:14:02]*** Purtial cut [11:14:02]*** Stage 1: CUTSNS_PIN = 1 [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]*** Stop cut motor [11:14:03]*** Cut end [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 FF 0F 36 [11:14:03]process_action print_text done [11:14:03]requested_data is exist [11:14:03]produce_requested_data [11:14:03]requested_item fm.sn is exist - process it [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 11 00 00 [11:14:03]Write to MH i2c: E2 08 00 21 01 80 11 00 00 00 00 00 00 9C [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 17 00 21 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [11:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:03]wFMCommunicate OK [11:14:03]requested_item fd.num is exist - process it [11:14:03]SAM_PROTO_GetFieldsCounters [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 00 00 [11:14:03]Write to MH i2c: E2 08 00 22 01 80 13 00 00 00 00 00 00 9F [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 62 00 22 01 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 9E 06 01 00 0E 04 04 00 64 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 5F [11:14: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 9E 06 01 00 0E 04 04 00 64 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:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetFieldsCounters done [11:14:03]requested_item shift.num is exist - process it [11:14:03]requested_item shift.opened is exist - process it [11:14:03]req_shift_opened [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 23 01 80 13 01 00 00 00 00 00 A1 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 23 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4C [11:14:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]req_shift_opened done [11:14:03]requested_item shift.open_date is exist - process it [11:14:03]req_shift_open_date [11:14:03]req_shift_open_date done [11:14:03]produce_requested_data done [11:14:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:14:03]process_action_free print_text [11:14:03]json_value_free [11:14:03]json_value_free done [11:14:03]process_json_proto returns [11:14:03]Send response to host [11:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67230,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:14:03]free response buf [11:14:03]execute_script done [11:14:03]execute_script returns [11:14:03]free content buf [11:14:03]Sock 9.Close socket [11:14:03]Sock 9.Thread stoped [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:18]accept exits with 7 [11:14:18]New connection [11:14:18]New thread 3067030884 created [11:14:18]Thread 3067174244 joined [11:14:18]Waiting for new connection... [11:14:18] Sock 7.Parse request [11:14:18]Sock 7.Check first char [11:14:18]Sock 7.First char is OK [11:14:18]request: POST /json_proto HTTP/1.0 [11:14:18]Method: POST [11:14:18]URL: /json_proto [11:14:18]Method is POST - this is cgi request [11:14:18]url: /json_proto [11:14:18]query_string will be loaded in cgi processing [11:14:18]execute_cgi json_proto POST (null) [11:14:18]execute_cgi path=json_proto method=POST [11:14:18]POST find Content-Length [11:14:18]Host: 172.17.41.195:8080 [11:14:18]Content-Length: 796 [11:14:18]Content-Type: application/json [11:14:18] [11:14:18]POST finish read [11:14:18]Found Content-Length = 796 [11:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:14:18]execute_script... [11:14: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)507190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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:14:18]POST & json_proto [11:14:18]process_json_proto [11:14:18]json parsed OK: [11:14:18]protocol is kg_v1.0 [11:14:18]action value=close_receipt [11:14:18]process_action close_receipt [11:14:18]cmd_close_receipt [11:14:18]MH_GetDate [11:14:18]Write to MH i2c: F0 00 00 24 01 14 [11:14:18]Write i2c OK [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: F0 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: F0 09 00 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: F0 09 00 24 01 00 0B 99 44 66 FC 21 6F 64 5B [11:14:18]GetLastDocTimeStamp 1715771518 [11:14:18]current date 1715771659 [11:14:18]FM_GetShiftState [11:14:18]SAM_PROTO_GetShiftState [11:14:18]wFMCommunicate request_size=4 [11:14:18]MH_SAM_APDU [11:14:18]CAPDU: 80 13 01 00 [11:14:18]Write to MH i2c: E2 08 00 25 01 80 13 01 00 00 00 00 00 A3 [11:14:18]Write i2c OK [11:14:18]MH_I2C_Read... [11:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:18]Read from MH i2c: E2 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: E2 0E 00 [11:14:18]MH_I2C_Read... [11:14:18]Read from MH i2c: E2 0E 00 25 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4E [11:14:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:14:18]wFMCommunicate OK [11:14:18]SAM_PROTO_GetShiftState done [11:14:18]FM_GetShiftState done [11:14:18]opened in 1715732471 [11:14:18]opened+sec_in_day 1715818871 [11:14:18]quantity*price = 150041 [11:14:18]sum+1 = 150042 [11:14:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 49 15.05.2024 11:14 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67231 ФПД: 130864893196508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111419&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67231&fm=130864893196508&tin=02508201610067®Number=0000000000091845&sum=150041 [11:14:19]StoreToDocumentArchive [11:14:19]shift 356 fd 67231 [11:14:19]save to /storage/0356/doc_00067231 [11:14:19]save last doc name /storage/0356/doc_00067231 to /storage/kkm_last_doc_name [11:14:19]save OK [11:14:19]Clear old archive folders... [11:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:14:19]tlvbuf is 00B0E660 [11:14:19]SAM_PROTO_ClearQueue [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 09 00 00 [11:14:19]Write to MH i2c: E2 08 00 32 01 80 09 00 00 00 00 00 00 A5 [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 [11:14:19]MH_I2C_Read... [11:14:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:19]Read from MH i2c: E2 03 00 [11:14:19]MH_I2C_Read... [11:14:19]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [11:14:19]RAPDU: 90 00 [11:14:19]wFMCommunicate OK [11:14:19]SAM_PROTO_ClearQueue done [11:14:19]KKMCreateOFDPacket [11:14:19]OFDProtocolAddRootSTLVToBuf [11:14:19]FM_MakeSignedData [11:14:19]FM_MakeSignedData [11:14:19]SAM_PROTO_SignData [11:14:19]wFMCommunicate request_size=4 [11:14:19]MH_SAM_APDU [11:14:19]CAPDU: 80 0D 01 02 [11:14:19]Write to MH i2c: E2 08 00 33 01 80 0D 01 02 00 00 00 00 AD [11:14:19]Write i2c OK [11:14:19]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [11:14:20]RAPDU: 90 00 [11:14:20]wFMCommunicate OK [11:14:20]wFMCommunicate request_size=255 [11:14:20]MH_SAM_APDU [11:14:20]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 31 00 00 00 F4 03 04 00 0B 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 06 01 00 35 04 06 00 [11:14:20]Write to MH i2c: E2 02 01 34 01 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 31 00 00 00 F4 03 04 00 0B 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 06 01 00 35 04 06 00 00 00 AE [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [11:14:20]RAPDU: 90 00 [11:14:20]wFMCommunicate OK [11:14:20]wFMCommunicate request_size=11 [11:14:20]MH_SAM_APDU [11:14:20]CAPDU: 80 0D 02 02 06 77 05 5B 78 F8 DC [11:14:20]Write to MH i2c: E2 0E 00 35 01 80 0D 02 02 06 00 77 05 5B 78 F8 DC 00 00 DF [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [11:14:20]RAPDU: 90 00 [11:14:20]wFMCommunicate OK [11:14:20]wFMCommunicate request_size=4 [11:14:20]MH_SAM_APDU [11:14:20]CAPDU: 80 0D 03 02 [11:14:20]Write to MH i2c: E2 08 00 36 01 80 0D 03 02 00 00 00 00 B2 [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 0B 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 0B 00 36 01 00 97 84 0B 67 75 4B 7D 30 90 00 AD [11:14:20]RAPDU: 97 84 0B 67 75 4B 7D 30 90 00 [11:14:20]wFMCommunicate OK [11:14:20]SAM_PROTO_SignData done [11:14:20]FM_MakeSignedData done [11:14:20]CreateOFDProtocolMessage [11:14:20]wFMCommunicate request_size=4 [11:14:20]MH_SAM_APDU [11:14:20]CAPDU: 80 11 00 00 [11:14:20]Write to MH i2c: E2 08 00 37 01 80 11 00 00 00 00 00 00 B2 [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:20]Read from MH i2c: E2 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 17 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: E2 17 00 37 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [11:14: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:14:20]wFMCommunicate OK [11:14:20]CreateOFDProtocolMessage done [11:14:20]OFDSenderStorePacket 67231 [11:14:20]StoreOFDPacket docnum=67231 [11:14: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 10 01 00 00 C0 7D 08 01 28 7F 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 31 00 00 00 F4 03 04 00 0B 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 06 01 00 35 04 06 00 77 05 5B 78 F8 DC 97 84 0B 67 75 4B 7D 30 [11:14:20]CheckFolder [11:14:20]dirname=/storage/ofd_packets [11:14:20]CheckFolder done [11:14:20]ProducePacketName [11:14:20]name=ofd_packets/00067231 [11:14:20]NVStorageSaveData ofd_packets/00067231 [11:14:20]File name is /storage/ofd_packets/00067231 [11:14:20]Write 302 bytes [11:14:20]NVStorageSaveData done [11:14:20]OFDSenderStorePacket done [11:14:20]KKMCreateOFDPacket done [11:14:20]NVStorageSaveData kkm_last_timestamp [11:14:20]File name is /storage/kkm_last_timestamp [11:14:20]Write 4 bytes [11:14:20]NVStorageSaveData done [11:14:20]ExternCall_PrintAddStr [11:14:20]wPrintStart [11:14:20]Write to MH i2c: 01 00 00 38 01 39 [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [11:14:20]RasterBufferAndPrint [11:14:20]line Счет N : (1)507190 [11:14:20]line ИНН: 02508201610067 [11:14:20]line Контрольно-Кассовый Чек [11:14:20]line ПРОДАЖА [11:14:20]line ТРК (МРК, ГНК) : 12 [11:14:20]line Товар: 2710124130 [11:14:20]line Super-92-К-5 [11:14:20]line 22.130 * 67.80 [11:14:20]line = 1500.41 [11:14:20]line НДС 12% НСП 1% [11:14:20]line > о реализуемом товаре [11:14:20]line ИТОГО: 1500.41 [11:14:20]line НСП 1% : 13.28 [11:14:20]line НДС 12% : 159.34 [11:14:20]line Наличными: 0.00 [11:14:20]line Безнал.: 1500.41 [11:14:20]line Место: АЗС № 91 "Партнер Нефть" [11:14:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:14:20]line СНО: Общий режим [11:14:20]line Чек 49 15.05.2024 11:14 [11:14:20]line Смена: 356 ФФД: 1.0 [11:14:20]line ЗНМ: 0300000119 [11:14:20]line РНМ: 0000000000091845 [11:14:20]line Версия ККМ: 001 [11:14:20]line Платежная система: O! деньги [11:14:20]line ФМ: 0000000000871829 [11:14:20]line ФД: 67231 [11:14:20]line ФПД: 130864893196508 [11:14:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111419&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67231&fm=130864893196508&tin=02508201610067®Number=0000000000091845&sum=150041 [11:14:20]written 0, free lines is 4095 [11:14:20]OFD Sender: Processing packet 67231 [packets to send 35, broken 34] [11:14:20]ProducePacketName [11:14:20]name=ofd_packets/00067231 [11:14:20]OFD Sender: To server: pG, [11:14:20]CommunicateWithHost lk.salyk.kg:30040 [11:14:20]ConnectInit lk.salyk.kg [11:14:20]Connected sock=10 [11:14: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 10 01 00 00 C0 7D 08 01 28 7F 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 31 00 00 00 F4 03 04 00 0B 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9F 06 01 00 35 04 06 00 77 05 5B 78 F8 DC 97 84 0B 67 75 4B 7D 30 [11:14: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 95 75 47 00 A4 BA 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 9F 06 01 00 F4 03 04 00 E8 40 44 66 B6 04 01 00 00 77 1A 3D 28 AE 3F 7C 15 [11:14:20]CommunicateWithHost err = 0 [11:14:20]CheckOFDResponse [11:14:20]1017 (14) - 77093643461234 [11:14:20]1041 (16) - 0000000000871829 [11:14:20]1040 (4) - 67231 [11:14:20]1012 (4) - 15.05.2024 04:58 [11:14:20]1206 (1) - 0 [11:14:20]OFD Sender: Remove packet 67231 [11:14:20]ProducePacketName [11:14:20]name=ofd_packets/00067231 [11:14:20]NVStorageDeleteData [11:14:20]Write to MH i2c: 01 00 00 61 01 62 [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 EB 0C 60 [11:14:20]RasterBufferAndPrint [11:14:20]line [11:14:20]line [11:14:20]line [11:14:20]line [11:14:20]line [11:14:20]written 0, free lines is 3313 [11:14:20]MH_Cut [11:14:20]Write to MH i2c: D1 01 00 68 01 01 3B [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: D1 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: D1 01 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: D1 01 00 68 01 00 3A [11:14:20]Write to MH i2c: 01 00 00 69 01 6A [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:21]OFD Sender: No OFD packet to send [11:14:21]*** Cut start [11:14:21]*** Purtial cut [11:14:21]*** CUTSNS_PIN = 0 [11:14:21]*** Stage 1: CUTSNS_PIN = 1 [11:14:23]Read from MH i2c: 01 [11:14:23]MH_I2C_Read... [11:14:23]*** Stop cut motor [11:14:23]*** Cut end [11:14:23]Read from MH i2c: 01 07 00 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [11:14:23]process_action close_receipt done [11:14:23]requested_data is exist [11:14:23]produce_requested_data [11:14:23]requested_item fm.sn is exist - process it [11:14:23]wFMCommunicate request_size=4 [11:14:23]MH_SAM_APDU [11:14:23]CAPDU: 80 11 00 00 [11:14:23]Write to MH i2c: E2 08 00 6A 01 80 11 00 00 00 00 00 00 E5 [11:14:23]Write i2c OK [11:14:23]MH_I2C_Read... [11:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:23]Read from MH i2c: E2 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 17 00 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 17 00 6A 01 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:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:23]wFMCommunicate OK [11:14:23]requested_item fd.num is exist - process it [11:14:23]SAM_PROTO_GetFieldsCounters [11:14:23]wFMCommunicate request_size=4 [11:14:23]MH_SAM_APDU [11:14:23]CAPDU: 80 13 00 00 [11:14:23]Write to MH i2c: E2 08 00 6B 01 80 13 00 00 00 00 00 00 E8 [11:14:23]Write i2c OK [11:14:23]MH_I2C_Read... [11:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:23]Read from MH i2c: E2 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 62 00 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 62 00 6B 01 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 9F 06 01 00 0E 04 04 00 64 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:14: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 9F 06 01 00 0E 04 04 00 64 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:14:23]wFMCommunicate OK [11:14:23]SAM_PROTO_GetFieldsCounters done [11:14:23]requested_item shift.num is exist - process it [11:14:23]requested_item shift.opened is exist - process it [11:14:23]req_shift_opened [11:14:23]FM_GetShiftState [11:14:23]SAM_PROTO_GetShiftState [11:14:23]wFMCommunicate request_size=4 [11:14:23]MH_SAM_APDU [11:14:23]CAPDU: 80 13 01 00 [11:14:23]Write to MH i2c: E2 08 00 6C 01 80 13 01 00 00 00 00 00 EA [11:14:23]Write i2c OK [11:14:23]MH_I2C_Read... [11:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:23]Read from MH i2c: E2 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 0E 00 [11:14:23]MH_I2C_Read... [11:14:23]Read from MH i2c: E2 0E 00 6C 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 95 [11:14:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:14:23]wFMCommunicate OK [11:14:23]SAM_PROTO_GetShiftState done [11:14:23]FM_GetShiftState done [11:14:23]req_shift_opened done [11:14:23]requested_item shift.open_date is exist - process it [11:14:23]req_shift_open_date [11:14:23]req_shift_open_date done [11:14:23]produce_requested_data done [11:14:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67231,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:14:23]process_action_free close_receipt [11:14:23]json_value_free [11:14:23]json_value_free done [11:14:23]process_json_proto returns [11:14:23]Send response to host [11:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67231,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:14:23]free response buf [11:14:23]execute_script done [11:14:23]execute_script returns [11:14:23]free content buf [11:14:23]Sock 7.Close socket [11:14:23]Sock 7.Thread stoped [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:22]accept exits with 9 [11:16:22]New connection [11:16:22]New thread 3067174244 created [11:16:22]Thread 3067030884 joined [11:16:22]Waiting for new connection... [11:16:22] Sock 9.Parse request [11:16:22]Sock 9.Check first char [11:16:22]Sock 9.First char is OK [11:16:22]request: POST /json_proto HTTP/1.0 [11:16:22]Method: POST [11:16:22]URL: /json_proto [11:16:22]Method is POST - this is cgi request [11:16:22]url: /json_proto [11:16:22]query_string will be loaded in cgi processing [11:16:22]execute_cgi json_proto POST (null) [11:16:22]execute_cgi path=json_proto method=POST [11:16:22]POST find Content-Length [11:16:22]Host: 172.17.41.195:8080 [11:16:22]Content-Length: 794 [11:16:22]Content-Type: application/json [11:16:22] [11:16:22]POST finish read [11:16:22]Found Content-Length = 794 [11:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507191", "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 }]} ], "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:16:22]execute_script... [11:16: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)507191", "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 }]} ], "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:16:22]POST & json_proto [11:16:22]process_json_proto [11:16:22]json parsed OK: [11:16:22]protocol is kg_v1.0 [11:16:22]action value=close_receipt [11:16:22]process_action close_receipt [11:16:22]cmd_close_receipt [11:16:22]MH_GetDate [11:16:22]Write to MH i2c: F0 00 00 6D 01 5D [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 09 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 09 00 6D 01 00 87 99 44 66 FC 21 6F 64 20 [11:16:22]GetLastDocTimeStamp 1715771659 [11:16:22]current date 1715771783 [11:16:22]FM_GetShiftState [11:16:22]SAM_PROTO_GetShiftState [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 13 01 00 [11:16:22]Write to MH i2c: E2 08 00 6E 01 80 13 01 00 00 00 00 00 EC [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 6E 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 97 [11:16:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:16:22]wFMCommunicate OK [11:16:22]SAM_PROTO_GetShiftState done [11:16:22]FM_GetShiftState done [11:16:22]opened in 1715732471 [11:16:22]opened+sec_in_day 1715818871 [11:16:22]quantity*price = 70037 [11:16:22]sum+1 = 70038 [11:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 50 15.05.2024 11:16 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67232 ФПД: 109821140019263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111623&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67232&fm=109821140019263&tin=02508201610067®Number=0000000000091845&sum=70037 [11:16:24]StoreToDocumentArchive [11:16:24]shift 356 fd 67232 [11:16:24]save to /storage/0356/doc_00067232 [11:16:24]save last doc name /storage/0356/doc_00067232 to /storage/kkm_last_doc_name [11:16:24]save OK [11:16:24]Clear old archive folders... [11:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:24]tlvbuf is 00B02A10 [11:16:24]SAM_PROTO_ClearQueue [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 09 00 00 [11:16:24]Write to MH i2c: E2 08 00 7B 01 80 09 00 00 00 00 00 00 EE [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 7B 01 00 90 00 F0 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_ClearQueue done [11:16:24]KKMCreateOFDPacket [11:16:24]OFDProtocolAddRootSTLVToBuf [11:16:24]FM_MakeSignedData [11:16:24]FM_MakeSignedData [11:16:24]SAM_PROTO_SignData [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 01 02 [11:16:24]Write to MH i2c: E2 08 00 7C 01 80 0D 01 02 00 00 00 00 F6 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 7C 01 00 90 00 F1 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=255 [11:16:24]MH_SAM_APDU [11:16: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 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 32 00 00 00 F4 03 04 00 87 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 06 01 00 35 04 06 00 [11:16:24]Write to MH i2c: E2 02 01 7D 01 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 32 00 00 00 F4 03 04 00 87 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 06 01 00 35 04 06 00 00 00 DD [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=11 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 02 02 06 63 E1 BA 0A 28 3F [11:16:24]Write to MH i2c: E2 0E 00 7E 01 80 0D 02 02 06 00 63 E1 BA 0A 28 3F 00 00 74 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 03 02 [11:16:24]Write to MH i2c: E2 08 00 7F 01 80 0D 03 02 00 00 00 00 FB [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0B 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0B 00 7F 01 00 A8 42 6A E3 B9 24 FA 22 90 00 2C [11:16:24]RAPDU: A8 42 6A E3 B9 24 FA 22 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_SignData done [11:16:24]FM_MakeSignedData done [11:16:24]CreateOFDProtocolMessage [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 80 01 80 11 00 00 00 00 00 00 FB [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 80 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [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]CreateOFDProtocolMessage done [11:16:24]OFDSenderStorePacket 67232 [11:16:24]StoreOFDPacket docnum=67232 [11:16:24]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 6F 3A 08 01 6D 96 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 32 00 00 00 F4 03 04 00 87 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 06 01 00 35 04 06 00 63 E1 BA 0A 28 3F A8 42 6A E3 B9 24 FA 22 [11:16:24]CheckFolder [11:16:24]dirname=/storage/ofd_packets [11:16:24]CheckFolder done [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00067232 [11:16:24]NVStorageSaveData ofd_packets/00067232 [11:16:24]File name is /storage/ofd_packets/00067232 [11:16:24]Write 302 bytes [11:16:24]NVStorageSaveData done [11:16:24]OFDSenderStorePacket done [11:16:24]KKMCreateOFDPacket done [11:16:24]NVStorageSaveData kkm_last_timestamp [11:16:24]File name is /storage/kkm_last_timestamp [11:16:24]Write 4 bytes [11:16:24]NVStorageSaveData done [11:16:24]ExternCall_PrintAddStr [11:16:24]wPrintStart [11:16:24]Write to MH i2c: 01 00 00 81 01 82 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [11:16:24]RasterBufferAndPrint [11:16:24]line Счет N : (1)507191 [11:16:24]line ИНН: 02508201610067 [11:16:24]line Контрольно-Кассовый Чек [11:16:24]line ПРОДАЖА [11:16:24]line ТРК (МРК, ГНК) : 42 [11:16:24]line Товар: 2710124130 [11:16:24]line Super-92-К-5 [11:16:24]line 10.330 * 67.80 [11:16:24]line = 700.37 [11:16:24]line НДС 12% НСП 1% [11:16:24]line > о реализуемом товаре [11:16:24]line ИТОГО: 700.37 [11:16:24]line НСП 1% : 6.20 [11:16:24]line НДС 12% : 74.38 [11:16:24]line Наличными: 0.00 [11:16:24]line Безнал.: 700.37 [11:16:24]line Место: АЗС № 91 "Партнер Нефть" [11:16:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:16:24]line СНО: Общий режим [11:16:24]line Чек 50 15.05.2024 11:16 [11:16:24]line Смена: 356 ФФД: 1.0 [11:16:24]line ЗНМ: 0300000119 [11:16:24]line РНМ: 0000000000091845 [11:16:24]line Версия ККМ: 001 [11:16:24]line Платежная система: O! деньги [11:16:24]line ФМ: 0000000000871829 [11:16:24]line ФД: 67232 [11:16:24]line ФПД: 109821140019263 [11:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T111623&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67232&fm=109821140019263&tin=02508201610067®Number=0000000000091845&sum=70037 [11:16:24]written 0, free lines is 4095 [11:16:24]OFD Sender: Processing packet 67232 [packets to send 35, broken 34] [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00067232 [11:16:24]OFD Sender: To server: pG, [11:16:24]CommunicateWithHost lk.salyk.kg:30040 [11:16:24]ConnectInit lk.salyk.kg [11:16:24]Connected sock=10 [11:16:24]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 6F 3A 08 01 6D 96 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 32 00 00 00 F4 03 04 00 87 99 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A0 06 01 00 35 04 06 00 63 E1 BA 0A 28 3F A8 42 6A E3 B9 24 FA 22 [11:16: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 8B 7F 47 00 F6 E8 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 A0 06 01 00 F4 03 04 00 64 41 44 66 B6 04 01 00 00 BB 9E 35 7D 96 EB D2 00 [11:16:24]CommunicateWithHost err = 0 [11:16:24]CheckOFDResponse [11:16:24]1017 (14) - 77093643461234 [11:16:24]1041 (16) - 0000000000871829 [11:16:24]1040 (4) - 67232 [11:16:24]1012 (4) - 15.05.2024 05:00 [11:16:24]1206 (1) - 0 [11:16:24]OFD Sender: Remove packet 67232 [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00067232 [11:16:24]NVStorageDeleteData [11:16:25]Write to MH i2c: 01 00 00 AA 01 AB [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 AA 01 00 00 00 00 00 EA 0C A8 [11:16:25]RasterBufferAndPrint [11:16:25]line [11:16:25]line [11:16:25]line [11:16:25]line [11:16:25]line [11:16:25]written 0, free lines is 3311 [11:16:25]MH_Cut [11:16:25]Write to MH i2c: D1 01 00 B1 01 01 84 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: D1 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: D1 01 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: D1 01 00 B1 01 00 83 [11:16:25]Write to MH i2c: 01 00 00 B2 01 B3 [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]*** Cut start [11:16:25]*** Purtial cut [11:16:25]*** Stage 1: CUTSNS_PIN = 1 [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]*** Stop cut motor [11:16:26]*** Cut end [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 FF 0F C8 [11:16:26]process_action close_receipt done [11:16:26]requested_data is exist [11:16:26]produce_requested_data [11:16:26]requested_item fm.sn is exist - process it [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 11 00 00 [11:16:26]Write to MH i2c: E2 08 00 B3 01 80 11 00 00 00 00 00 00 2E [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 84 [11:16:26]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:26]wFMCommunicate OK [11:16:26]requested_item fd.num is exist - process it [11:16:26]SAM_PROTO_GetFieldsCounters [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 13 00 00 [11:16:26]Write to MH i2c: E2 08 00 B4 01 80 13 00 00 00 00 00 00 31 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 62 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 62 00 B4 01 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 A0 06 01 00 0E 04 04 00 64 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 F9 [11:16: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 A0 06 01 00 0E 04 04 00 64 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:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_GetFieldsCounters done [11:16:26]requested_item shift.num is exist - process it [11:16:26]requested_item shift.opened is exist - process it [11:16:26]req_shift_opened [11:16:26]FM_GetShiftState [11:16:26]SAM_PROTO_GetShiftState [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 13 01 00 [11:16:26]Write to MH i2c: E2 08 00 B5 01 80 13 01 00 00 00 00 00 33 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0E 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0E 00 B5 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DE [11:16:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_GetShiftState done [11:16:26]FM_GetShiftState done [11:16:26]req_shift_opened done [11:16:26]requested_item shift.open_date is exist - process it [11:16:26]req_shift_open_date [11:16:26]req_shift_open_date done [11:16:26]produce_requested_data done [11:16:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67232,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:16:26]process_action_free close_receipt [11:16:26]json_value_free [11:16:26]json_value_free done [11:16:26]process_json_proto returns [11:16:26]Send response to host [11:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67232,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:16:26]free response buf [11:16:26]execute_script done [11:16:26]execute_script returns [11:16:26]free content buf [11:16:26]Sock 9.Close socket [11:16:26]Sock 9.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:05]OFD Sender: No OFD packet to send [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:48]accept exits with 7 [11:17:48]New connection [11:17:48]New thread 3067030884 created [11:17:48]Thread 3067174244 joined [11:17:48]Waiting for new connection... [11:17:48] Sock 7.Parse request [11:17:48]Sock 7.Check first char [11:17:48]Sock 7.First char is OK [11:17:48]request: POST /json_proto HTTP/1.0 [11:17:48]Method: POST [11:17:48]URL: /json_proto [11:17:48]Method is POST - this is cgi request [11:17:48]url: /json_proto [11:17:48]query_string will be loaded in cgi processing [11:17:48]execute_cgi json_proto POST (null) [11:17:48]execute_cgi path=json_proto method=POST [11:17:48]POST find Content-Length [11:17:48]Host: 172.17.41.195:8080 [11:17:48]Content-Length: 1212 [11:17:48]Content-Type: application/json [11:17:48] [11:17:48]POST finish read [11:17:48]Found Content-Length = 1212 [11:17: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)507192\u000A15.05.2024 11:00\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 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" ] } } [11:17:48]execute_script... [11:17: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)507192\u000A15.05.2024 11:00\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 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" ] } } [11:17:48]POST & json_proto [11:17:48]process_json_proto [11:17:48]json parsed OK: [11:17:48]protocol is kg_v1.0 [11:17:48]action value=print_text [11:17:48]process_action print_text [11:17:48]cmd_print_text [11:17:48]ExternCall_PrintAddStr [11:17:48]wPrintStart [11:17:48]Write to MH i2c: 01 00 00 B6 01 B7 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 07 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [11:17:48]RasterBufferAndPrint [11:17:48]line *****ТОВАРНЫЙ ЧЕК***** [11:17:48]line АЗС-91 [11:17:48]line Партнер нефть [11:17:48]line 02508201610067 [11:17:48]line Кассир : Арстанбеков Н. [11:17:48]line Счет N : (1)507192 [11:17:48]line 15.05.2024 11:00 [11:17:48]line ПРОДАЖА [11:17:48]line ТРК (МРК, ГНК): 23 [11:17:48]line Вид ГСМ : 2710124130 [11:17:48]line Аи-92-К-5 [11:17:48]line 14.980 x 66.80 [11:17:48]line ИТОГ: 1000.66 [11:17:48]line Тип оплаты: Талоны: Топливная Карта [11:17:48]line 02750 [11:17:48]line ______________________ [11:17:48]line (подпись) [11:17:48]written 0, free lines is 4095 [11:17:49]Write to MH i2c: 01 00 00 CA 01 CB [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: 01 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: 01 07 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 12 0E F2 [11:17:49]RasterBufferAndPrint [11:17:49]line [11:17:49]line [11:17:49]line [11:17:49]line [11:17:49]line [11:17:49]written 0, free lines is 3604 [11:17:49]MH_Cut [11:17:49]Write to MH i2c: D1 01 00 D1 01 01 A4 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: D1 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: D1 01 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: D1 01 00 D1 01 00 A3 [11:17:49]Write to MH i2c: 01 00 00 D2 01 D3 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** Cut start [11:17:49]*** Purtial cut [11:17:49]*** CUTSNS_PIN = 0 [11:17:49]*** Stage 1: CUTSNS_PIN = 1 [11:17:50]OFD Sender: No OFD packet to send [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]*** Stop cut motor [11:17:51]*** Cut end [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [11:17:51]process_action print_text done [11:17:51]requested_data is exist [11:17:51]produce_requested_data [11:17:51]requested_item fm.sn is exist - process it [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 11 00 00 [11:17:51]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [11:17: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:17:51]wFMCommunicate OK [11:17:51]requested_item fd.num is exist - process it [11:17:51]SAM_PROTO_GetFieldsCounters [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 13 00 00 [11:17:51]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 62 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 62 00 D4 01 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 A0 06 01 00 0E 04 04 00 64 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 19 [11: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 A0 06 01 00 0E 04 04 00 64 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:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_GetFieldsCounters done [11:17:51]requested_item shift.num is exist - process it [11:17:51]requested_item shift.opened is exist - process it [11:17:51]req_shift_opened [11:17:51]FM_GetShiftState [11:17:51]SAM_PROTO_GetShiftState [11:17:51]wFMCommunicate request_size=4 [11:17:51]MH_SAM_APDU [11:17:51]CAPDU: 80 13 01 00 [11:17:51]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:51]Read from MH i2c: E2 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0E 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FE [11:17:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:17:51]wFMCommunicate OK [11:17:51]SAM_PROTO_GetShiftState done [11:17:51]FM_GetShiftState done [11:17:51]req_shift_opened done [11:17:51]requested_item shift.open_date is exist - process it [11:17:51]req_shift_open_date [11:17:51]req_shift_open_date done [11:17:51]produce_requested_data done [11:17:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67232,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:17:51]process_action_free print_text [11:17:51]json_value_free [11:17:51]json_value_free done [11:17:51]process_json_proto returns [11:17:51]Send response to host [11:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67232,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:17:51]free response buf [11:17:51]execute_script done [11:17:51]execute_script returns [11:17:51]free content buf [11:17:51]Sock 7.Close socket [11:17:51]Sock 7.Thread stoped [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:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [11:20:07]New connection [11:20:07]New thread 3067174244 created [11:20:07]Thread 3067030884 joined [11:20:07]Waiting for new connection... [11:20:07] Sock 9.Parse request [11:20:07]Sock 9.Check first char [11:20:07]Sock 9.First char is OK [11:20:07]request: POST /json_proto HTTP/1.0 [11:20:07]Method: POST [11:20:07]URL: /json_proto [11:20:07]Method is POST - this is cgi request [11:20:07]url: /json_proto [11:20:07]query_string will be loaded in cgi processing [11:20:07]execute_cgi json_proto POST (null) [11:20:07]execute_cgi path=json_proto method=POST [11:20:07]POST find Content-Length [11:20:07]Host: 172.17.41.195:8080 [11:20:07]Content-Length: 800 [11:20:07]Content-Type: application/json [11:20:07] [11:20:07]POST finish read [11:20:07]Found Content-Length = 800 [11:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507193", "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" ] } } [11:20:07]execute_script... [11:20: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)507193", "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" ] } } [11:20:07]POST & json_proto [11:20:07]process_json_proto [11:20:07]json parsed OK: [11:20:07]protocol is kg_v1.0 [11:20:07]action value=close_receipt [11:20:07]process_action close_receipt [11:20:07]cmd_close_receipt [11:20:07]MH_GetDate [11:20:07]Write to MH i2c: F0 00 00 D6 01 C6 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: F0 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: F0 09 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: F0 09 00 D6 01 00 68 9A 44 66 FC 21 6F 64 6B [11:20:07]GetLastDocTimeStamp 1715771783 [11:20:07]current date 1715772008 [11:20:07]FM_GetShiftState [11:20:07]SAM_PROTO_GetShiftState [11:20:07]wFMCommunicate request_size=4 [11:20:07]MH_SAM_APDU [11:20:07]CAPDU: 80 13 01 00 [11:20:07]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [11:20:07]Write i2c OK [11:20:07]MH_I2C_Read... [11:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:07]Read from MH i2c: E2 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 0E 00 [11:20:07]MH_I2C_Read... [11:20:07]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 00 [11:20:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:20:07]wFMCommunicate OK [11:20:07]SAM_PROTO_GetShiftState done [11:20:07]FM_GetShiftState done [11:20:07]opened in 1715732471 [11:20:07]opened+sec_in_day 1715818871 [11:20:07]quantity*price = 100023 [11:20:07]sum+1 = 100024 [11:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 51 15.05.2024 11:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67233 ФПД: 53805077439492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112008&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67233&fm=53805077439492&tin=02508201610067®Number=0000000000091845&sum=100023 [11:20:08]StoreToDocumentArchive [11:20:08]shift 356 fd 67233 [11:20:08]save to /storage/0356/doc_00067233 [11:20:08]save last doc name /storage/0356/doc_00067233 to /storage/kkm_last_doc_name [11:20:08]save OK [11:20:08]Clear old archive folders... [11:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:08]tlvbuf is 00B26080 [11:20:08]SAM_PROTO_ClearQueue [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 09 00 00 [11:20:08]Write to MH i2c: E2 08 00 E4 01 80 09 00 00 00 00 00 00 57 [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:08]Read from MH i2c: E2 03 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [11:20:08]RAPDU: 90 00 [11:20:08]wFMCommunicate OK [11:20:08]SAM_PROTO_ClearQueue done [11:20:08]KKMCreateOFDPacket [11:20:08]OFDProtocolAddRootSTLVToBuf [11:20:08]FM_MakeSignedData [11:20:08]FM_MakeSignedData [11:20:08]SAM_PROTO_SignData [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 0D 01 02 [11:20:08]Write to MH i2c: E2 08 00 E5 01 80 0D 01 02 00 00 00 00 5F [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=255 [11:20:09]MH_SAM_APDU [11:20:09]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 33 00 00 00 F4 03 04 00 68 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 06 01 00 35 04 06 00 30 EF 78 87 [11:20:09]Write to MH i2c: E2 02 01 E6 01 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 33 00 00 00 F4 03 04 00 68 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 06 01 00 35 04 06 00 30 EF 78 87 00 00 71 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=7 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 02 02 02 24 04 [11:20:09]Write to MH i2c: E2 0A 00 E7 01 80 0D 02 02 02 00 24 04 00 00 8E [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 03 02 [11:20:09]Write to MH i2c: E2 08 00 E8 01 80 0D 03 02 00 00 00 00 64 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 0B 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 0B 00 E8 01 00 0F 3A BA 00 9C 5E 0A 21 90 00 8D [11:20:09]RAPDU: 0F 3A BA 00 9C 5E 0A 21 90 00 [11:20:09]wFMCommunicate OK [11:20:09]SAM_PROTO_SignData done [11:20:09]FM_MakeSignedData done [11:20:09]CreateOFDProtocolMessage [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 11 00 00 [11:20:09]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 17 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [11:20: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:20:09]wFMCommunicate OK [11:20:09]CreateOFDProtocolMessage done [11:20:09]OFDSenderStorePacket 67233 [11:20:09]StoreOFDPacket docnum=67233 [11:20: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 0C 01 00 00 1B DA 04 01 FB 04 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 33 00 00 00 F4 03 04 00 68 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A1 06 01 00 35 04 06 00 30 EF 78 87 24 04 0F 3A BA 00 9C 5E 0A 21 [11:20:09]CheckFolder [11:20:09]dirname=/storage/ofd_packets [11:20:09]CheckFolder done [11:20:09]ProducePacketName [11:20:09]name=ofd_packets/00067233 [11:20:09]NVStorageSaveData ofd_packets/00067233 [11:20:09]File name is /storage/ofd_packets/00067233 [11:20:09]Write 298 bytes [11:20:09]NVStorageSaveData done [11:20:09]OFDSenderStorePacket done [11:20:09]KKMCreateOFDPacket done [11:20:09]NVStorageSaveData kkm_last_timestamp [11:20:09]File name is /storage/kkm_last_timestamp [11:20:09]Write 4 bytes [11:20:09]NVStorageSaveData done [11:20:09]OFD Sender: Processing packet 67233 [packets to send 35, broken 34] [11:20:09]ProducePacketName [11:20:09]name=ofd_packets/00067233 [11:20:09]OFD Sender: To server: pG, [11:20:09]CommunicateWithHost lk.salyk.kg:30040 [11:20:09]ConnectInit lk.salyk.kg [11:20:09]ExternCall_PrintAddStr [11:20:09]wPrintStart [11:20:09]Write to MH i2c: 01 00 00 EA 01 EB [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 07 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 FF 0F 00 [11:20:09]RasterBufferAndPrint [11:20:09]line Счет N : (1)507193 [11:20:09]line ИНН: 02508201610067 [11:20:09]line Контрольно-Кассовый Чек [11:20:09]line ПРОДАЖА [11:20:09]line ТРК (МРК, ГНК) : 21 [11:20:09]line Товар: 2710194210 [11:20:09]line ДТ-К-5 [11:20:09]line 13.390 * 74.70 [11:20:09]line = 1000.23 [11:20:09]line НДС 12% НСП 1% [11:20:09]line > о реализуемом товаре [11:20:09]line ИТОГО: 1000.23 [11:20:09]line НСП 1% : 8.85 [11:20:09]line НДС 12% : 106.22 [11:20:09]line Наличными: 0.00 [11:20:09]line Безнал.: 1000.23 [11:20:09]line Место: АЗС № 91 "Партнер Нефть" [11:20:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:20:09]line СНО: Общий режим [11:20:09]line Чек 51 15.05.2024 11:20 [11:20:09]line Смена: 356 ФФД: 1.0 [11:20:09]line ЗНМ: 0300000119 [11:20:09]line РНМ: 0000000000091845 [11:20:09]line Версия ККМ: 001 [11:20:09]line Платежная система: O! деньги [11:20:09]line ФМ: 0000000000871829 [11:20:09]line ФД: 67233 [11:20:09]line ФПД: 53805077439492 [11:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112008&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67233&fm=53805077439492&tin=02508201610067®Number=0000000000091845&sum=100023 [11:20:09]Connected sock=11 [11:20: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 0C 01 00 00 1B DA 04 01 FB 04 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 33 00 00 00 F4 03 04 00 68 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 written 0, free lines is 4095 [11:20:09]38 37 31 38 32 39 10 04 04 00 A1 06 01 00 35 04 06 00 30 EF 78 87 24 04 0F 3A BA 00 9C 5E 0A 21 [11:20: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 6A 5E 47 00 39 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 A1 06 01 00 F4 03 04 00 45 42 44 66 B6 04 01 00 00 99 33 3B 64 86 C0 E3 2E [11:20:10]CommunicateWithHost err = 0 [11:20:10]CheckOFDResponse [11:20:10]1017 (14) - 77093643461234 [11:20:10]1041 (16) - 0000000000871829 [11:20:10]1040 (4) - 67233 [11:20:10]1012 (4) - 15.05.2024 05:04 [11:20:10]1206 (1) - 0 [11:20:10]OFD Sender: Remove packet 67233 [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00067233 [11:20:10]NVStorageDeleteData [11:20:10]Write to MH i2c: 01 00 00 13 02 15 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 E4 0C 0C [11:20:10]RasterBufferAndPrint [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]written 0, free lines is 3305 [11:20:10]MH_Cut [11:20:10]Write to MH i2c: D1 01 00 1A 02 01 EE [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 1A 02 00 ED [11:20:10]Write to MH i2c: 01 00 00 1B 02 1D [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]OFD Sender: No OFD packet to send [11:20:11]*** Cut start [11:20:11]*** Purtial cut [11:20:11]*** Stage 1: CUTSNS_PIN = 1 [11:20:11]Read from MH i2c: 01 [11:20:11]MH_I2C_Read... [11:20:11]*** Stop cut motor [11:20:11]*** Cut end [11:20:11]Read from MH i2c: 01 07 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [11:20:11]process_action close_receipt done [11:20:11]requested_data is exist [11:20:11]produce_requested_data [11:20:11]requested_item fm.sn is exist - process it [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 11 00 00 [11:20:11]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 17 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 17 00 1C 02 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:20: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:20:11]wFMCommunicate OK [11:20:11]requested_item fd.num is exist - process it [11:20:11]SAM_PROTO_GetFieldsCounters [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 13 00 00 [11:20:11]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 62 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 62 00 1D 02 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 A1 06 01 00 0E 04 04 00 64 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 67 [11:20: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 A1 06 01 00 0E 04 04 00 64 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:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_GetFieldsCounters done [11:20:11]requested_item shift.num is exist - process it [11:20:11]requested_item shift.opened is exist - process it [11:20:11]req_shift_opened [11:20:11]FM_GetShiftState [11:20:11]SAM_PROTO_GetShiftState [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 13 01 00 [11:20:11]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 0E 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 48 [11:20:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_GetShiftState done [11:20:11]FM_GetShiftState done [11:20:11]req_shift_opened done [11:20:11]requested_item shift.open_date is exist - process it [11:20:11]req_shift_open_date [11:20:11]req_shift_open_date done [11:20:11]produce_requested_data done [11:20:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67233,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:20:11]process_action_free close_receipt [11:20:11]json_value_free [11:20:11]json_value_free done [11:20:11]process_json_proto returns [11:20:11]Send response to host [11:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67233,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:20:11]free response buf [11:20:11]execute_script done [11:20:11]execute_script returns [11:20:11]free content buf [11:20:11]Sock 9.Close socket [11:20:11]Sock 9.Thread stoped [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]accept exits with 7 [11:22:00]New connection [11:22:00]New thread 3067030884 created [11:22:00]Thread 3067174244 joined [11:22:00]Waiting for new connection... [11:22:00] Sock 7.Parse request [11:22:00]Sock 7.Check first char [11:22:00]Sock 7.First char is OK [11:22:00]request: POST /json_proto HTTP/1.0 [11:22:00]Method: POST [11:22:00]URL: /json_proto [11:22:00]Method is POST - this is cgi request [11:22:00]url: /json_proto [11:22:00]query_string will be loaded in cgi processing [11:22:00]execute_cgi json_proto POST (null) [11:22:00]execute_cgi path=json_proto method=POST [11:22:00]POST find Content-Length [11:22:00]Host: 172.17.41.195:8080 [11:22:00]Content-Length: 610 [11:22:00]Content-Type: application/json [11:22:00] [11:22:00]POST finish read [11:22:00]Found Content-Length = 610 [11:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12069", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:00]execute_script... [11:22: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 : (3)12069", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:00]POST & json_proto [11:22:00]process_json_proto [11:22:00]json parsed OK: [11:22:00]protocol is kg_v1.0 [11:22:00]action value=close_receipt [11:22:00]process_action close_receipt [11:22:00]cmd_close_receipt [11:22:00]MH_GetDate [11:22:00]Write to MH i2c: F0 00 00 1F 02 10 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 09 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 09 00 1F 02 00 D8 9A 44 66 FC 21 6F 64 25 [11:22:00]GetLastDocTimeStamp 1715772008 [11:22:00]current date 1715772120 [11:22:00]FM_GetShiftState [11:22:00]SAM_PROTO_GetShiftState [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 01 00 [11:22:00]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4A [11:22:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetShiftState done [11:22:00]FM_GetShiftState done [11:22:00]opened in 1715732471 [11:22:00]opened+sec_in_day 1715818871 [11:22:00]quantity*price = 8700 [11:22:00]sum+1 = 8701 [11:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 52 15.05.2024 11:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67234 ФПД: 118779233509430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112201&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67234&fm=118779233509430&tin=02508201610067®Number=0000000000091845&sum=8700 0 [11:22:01]StoreToDocumentArchive [11:22:01]shift 356 fd 67234 [11:22:01]save to /storage/0356/doc_00067234 [11:22:01]save last doc name /storage/0356/doc_00067234 to /storage/kkm_last_doc_name [11:22:01]save OK [11:22:01]Clear old archive folders... [11:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:22:01]tlvbuf is 00B27920 [11:22:01]SAM_PROTO_ClearQueue [11:22:01]wFMCommunicate request_size=4 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 09 00 00 [11:22:01]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:01]Read from MH i2c: E2 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 03 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [11:22:01]RAPDU: 90 00 [11:22:01]wFMCommunicate OK [11:22:01]SAM_PROTO_ClearQueue done [11:22:01]KKMCreateOFDPacket [11:22:01]OFDProtocolAddRootSTLVToBuf [11:22:01]FM_MakeSignedData [11:22:01]FM_MakeSignedData [11:22:01]SAM_PROTO_SignData [11:22:01]wFMCommunicate request_size=4 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 0D 01 02 [11:22:01]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:01]Read from MH i2c: E2 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 03 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [11:22:01]RAPDU: 90 00 [11:22:01]wFMCommunicate OK [11:22:01]wFMCommunicate request_size=255 [11:22:01]MH_SAM_APDU [11:22:01]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 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 D9 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [11:22:01]Write to MH i2c: E2 02 01 2F 02 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 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 D9 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 BB [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]wFMCommunicate request_size=25 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 02 02 14 32 39 10 04 04 00 A2 06 01 00 35 04 06 00 6C 07 72 05 20 36 [11:22:02]Write to MH i2c: E2 1C 00 30 02 80 0D 02 02 14 00 32 39 10 04 04 00 A2 06 01 00 35 04 06 00 6C 07 72 05 20 36 00 00 7F [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 03 02 [11:22:02]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0B 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0B 00 31 02 00 DD 6D 15 82 41 C2 64 35 90 00 2C [11:22:02]RAPDU: DD 6D 15 82 41 C2 64 35 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_SignData done [11:22:02]FM_MakeSignedData done [11:22:02]CreateOFDProtocolMessage [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 11 00 00 [11:22:02]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 32 02 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:22: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:22:02]wFMCommunicate OK [11:22:02]CreateOFDProtocolMessage done [11:22:02]OFDSenderStorePacket 67234 [11:22:02]StoreOFDPacket docnum=67234 [11:22: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 1E 01 00 00 2F 9F 16 01 78 02 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 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 D9 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 06 01 00 35 04 06 00 6C 07 72 05 20 36 DD 6D 15 82 41 C2 64 35 [11:22:02]CheckFolder [11:22:02]dirname=/storage/ofd_packets [11:22:02]CheckFolder done [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00067234 [11:22:02]NVStorageSaveData ofd_packets/00067234 [11:22:02]File name is /storage/ofd_packets/00067234 [11:22:02]Write 316 bytes [11:22:02]NVStorageSaveData done [11:22:02]OFDSenderStorePacket done [11:22:02]KKMCreateOFDPacket done [11:22:02]NVStorageSaveData kkm_last_timestamp [11:22:02]File name is /storage/kkm_last_timestamp [11:22:02]Write 4 bytes [11:22:02]NVStorageSaveData done [11:22:02]ExternCall_PrintAddStr [11:22:02]wPrintStart [11:22:02]Write to MH i2c: 01 00 00 33 02 35 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [11:22:02]RasterBufferAndPrint [11:22:02]line Счет N : (3)12069 [11:22:02]line ИНН: 02508201610067 [11:22:02]line Контрольно-Кассовый Чек [11:22:02]line ПРОДАЖА [11:22:02]line Товар: 4870001570071 [11:22:02]line Напиток Pepsi 1л [11:22:02]line 1.000 * 87.00 [11:22:02]line = 87.00 [11:22:02]line НДС 12% НСП 1% [11:22:02]line > о реализуемом товаре [11:22:02]line ИТОГО: 87.00 [11:22:02]line НСП 1% : 0.77 [11:22:02]line НДС 12% : 9.24 [11:22:02]line Наличными: 87.00 [11:22:02]line Безнал.: 0.00 [11:22:02]line Место: АЗС № 91 "Партнер Нефть" [11:22:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:22:02]line СНО: Общий режим [11:22:02]line Чек 52 15.05.2024 11:22 [11:22:02]line Смена: 356 ФФД: 1.0 [11:22:02]line ЗНМ: 0300000119 [11:22:02]line РНМ: 0000000000091845 [11:22:02]line Версия ККМ: 001 [11:22:02]line ФМ: 0000000000871829 [11:22:02]line ФД: 67234 [11:22:02]line ФПД: 118779233509430 [11:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112201&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67234&fm=118779233509430&tin=02508201610067®Number=0000000000091845&sum=8700 [11:22:02]line 0 [11:22:02]OFD Sender: Processing packet 67234 [packets to send 35, broken 34] [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00067234 [11:22:02]OFD Sender: To server: pG, [11:22:02]CommunicateWithHost lk.salyk.kg:30040 [11:22:02]ConnectInit lk.salyk.kg [11:22:02]written 0, free lines is 4095 [11:22:02]Connected sock=10 [11:22: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 1E 01 00 00 2F 9F 16 01 78 02 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 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 D9 9A 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A2 06 01 00 35 04 06 00 6C 07 72 05 20 36 DD 6D 15 82 41 C2 64 35 [11:22: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 8C 6F 47 00 F9 BD 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 A2 06 01 00 F4 03 04 00 B6 42 44 66 B6 04 01 00 00 0A 81 26 FD 34 5C 93 25 [11:22:02]CommunicateWithHost err = 0 [11:22:02]CheckOFDResponse [11:22:02]1017 (14) - 77093643461234 [11:22:02]1041 (16) - 0000000000871829 [11:22:02]1040 (4) - 67234 [11:22:02]1012 (4) - 15.05.2024 05:05 [11:22:02]1206 (1) - 0 [11:22:02]OFD Sender: Remove packet 67234 [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00067234 [11:22:02]NVStorageDeleteData [11:22:02]Write to MH i2c: 01 00 00 5A 02 5C [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 EC 0C 5B [11:22:02]RasterBufferAndPrint [11:22:02]line [11:22:02]line [11:22:02]line [11:22:02]line [11:22:02]line [11:22:02]written 0, free lines is 3312 [11:22:02]MH_Cut [11:22:02]Write to MH i2c: D1 01 00 61 02 01 35 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: D1 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: D1 01 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: D1 01 00 61 02 00 34 [11:22:02]Write to MH i2c: 01 00 00 62 02 64 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:03]OFD Sender: No OFD packet to send [11:22:03]*** Cut start [11:22:03]*** Purtial cut [11:22:03]*** CUTSNS_PIN = 0 [11:22:03]*** Stage 1: CUTSNS_PIN = 1 [11:22:05]Read from MH i2c: 01 [11:22:05]MH_I2C_Read... [11:22:05]*** Stop cut motor [11:22:05]*** Cut end [11:22:05]Read from MH i2c: 01 07 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [11:22:05]process_action close_receipt done [11:22:05]requested_data is exist [11:22:05]produce_requested_data [11:22:05]requested_item fm.sn is exist - process it [11:22:05]wFMCommunicate request_size=4 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 11 00 00 [11:22:05]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 17 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [11:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:22:05]wFMCommunicate OK [11:22:05]requested_item fd.num is exist - process it [11:22:05]SAM_PROTO_GetFieldsCounters [11:22:05]wFMCommunicate request_size=4 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 13 00 00 [11:22:05]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 62 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 62 00 64 02 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 A2 06 01 00 0E 04 04 00 64 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 B2 [11:22: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 A2 06 01 00 0E 04 04 00 64 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:22:05]wFMCommunicate OK [11:22:05]SAM_PROTO_GetFieldsCounters done [11:22:05]requested_item shift.num is exist - process it [11:22:05]requested_item shift.opened is exist - process it [11:22:05]req_shift_opened [11:22:05]FM_GetShiftState [11:22:05]SAM_PROTO_GetShiftState [11:22:05]wFMCommunicate request_size=4 [11:22:05]MH_SAM_APDU [11:22:05]CAPDU: 80 13 01 00 [11:22:05]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [11:22:05]Write i2c OK [11:22:05]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0E 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8F [11:22:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:22:05]wFMCommunicate OK [11:22:05]SAM_PROTO_GetShiftState done [11:22:05]FM_GetShiftState done [11:22:05]req_shift_opened done [11:22:05]requested_item shift.open_date is exist - process it [11:22:05]req_shift_open_date [11:22:05]req_shift_open_date done [11:22:05]produce_requested_data done [11:22:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67234,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:22:05]process_action_free close_receipt [11:22:05]json_value_free [11:22:05]json_value_free done [11:22:05]process_json_proto returns [11:22:05]Send response to host [11:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67234,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:22:05]free response buf [11:22:05]execute_script done [11:22:05]execute_script returns [11:22:05]free content buf [11:22:05]Sock 7.Close socket [11:22:05]Sock 7.Thread stoped [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:30]accept exits with 9 [11:23:30]New connection [11:23:30]New thread 3067174244 created [11:23:30]Thread 3067030884 joined [11:23:30]Waiting for new connection... [11:23:30] Sock 9.Parse request [11:23:30]Sock 9.Check first char [11:23:30]Sock 9.First char is OK [11:23:30]request: POST /json_proto HTTP/1.0 [11:23:30]Method: POST [11:23:30]URL: /json_proto [11:23:30]Method is POST - this is cgi request [11:23:30]url: /json_proto [11:23:30]query_string will be loaded in cgi processing [11:23:30]execute_cgi json_proto POST (null) [11:23:30]execute_cgi path=json_proto method=POST [11:23:30]POST find Content-Length [11:23:30]Host: 172.17.41.195:8080 [11:23:30]Content-Length: 1211 [11:23:30]Content-Type: application/json [11:23:30] [11:23:30]POST finish read [11:23:30]Found Content-Length = 1211 [11:23: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)507194\u000A15.05.2024 11:06\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 11.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 800.26\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:23:30]execute_script... [11:23: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)507194\u000A15.05.2024 11:06\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 11.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 800.26\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:23:30]POST & json_proto [11:23:30]process_json_proto [11:23:30]json parsed OK: [11:23:30]protocol is kg_v1.0 [11:23:30]action value=print_text [11:23:30]process_action print_text [11:23:30]cmd_print_text [11:23:30]ExternCall_PrintAddStr [11:23:30]wPrintStart [11:23:30]Write to MH i2c: 01 00 00 66 02 68 [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 07 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [11:23:30]RasterBufferAndPrint [11:23:30]line *****ТОВАРНЫЙ ЧЕК***** [11:23:30]line АЗС-91 [11:23:30]line Партнер нефть [11:23:30]line 02508201610067 [11:23:30]line Кассир : Арстанбеков Н. [11:23:30]line Счет N : (1)507194 [11:23:30]line 15.05.2024 11:06 [11:23:30]line ПРОДАЖА [11:23:30]line ТРК (МРК, ГНК): 33 [11:23:30]line Вид ГСМ : 2710124130 [11:23:30]line Аи-92-К-5 [11:23:30]line 11.980 x 66.80 [11:23:30]line ИТОГ: 800.26 [11:23:30]line Тип оплаты: Талоны: Топливная Карта [11:23:30]line 02750 [11:23:30]line ______________________ [11:23:30]line (подпись) [11:23:30]written 0, free lines is 4095 [11:23:31]Write to MH i2c: 01 00 00 7A 02 7C [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 07 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 10 0E A1 [11:23:31]RasterBufferAndPrint [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]written 0, free lines is 3602 [11:23:31]MH_Cut [11:23:31]Write to MH i2c: D1 01 00 81 02 01 55 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 01 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 01 00 81 02 00 54 [11:23:31]Write to MH i2c: 01 00 00 82 02 84 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]*** Cut start [11:23:31]*** Purtial cut [11:23:31]*** Stage 1: CUTSNS_PIN = 1 [11:23:31]Read from MH i2c: 01 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 07 00 [11:23:31]MH_I2C_Read... [11:23:31]*** Stop cut motor [11:23:31]*** Cut end [11:23:31]Read from MH i2c: 01 07 00 82 02 00 00 00 00 00 FF 0F 99 [11:23:31]process_action print_text done [11:23:31]requested_data is exist [11:23:31]produce_requested_data [11:23:31]requested_item fm.sn is exist - process it [11:23:31]wFMCommunicate request_size=4 [11:23:31]MH_SAM_APDU [11:23:31]CAPDU: 80 11 00 00 [11:23:31]Write to MH i2c: E2 08 00 83 02 80 11 00 00 00 00 00 00 FF [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:31]Read from MH i2c: E2 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 17 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: E2 17 00 83 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 55 [11:23: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:23:31]wFMCommunicate OK [11:23:31]requested_item fd.num is exist - process it [11:23:31]SAM_PROTO_GetFieldsCounters [11:23:31]wFMCommunicate request_size=4 [11:23:31]MH_SAM_APDU [11:23:31]CAPDU: 80 13 00 00 [11:23:31]Write to MH i2c: E2 08 00 84 02 80 13 00 00 00 00 00 00 02 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 84 02 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 A2 06 01 00 0E 04 04 00 64 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 D2 [11:23: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 A2 06 01 00 0E 04 04 00 64 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:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetFieldsCounters done [11:23:32]requested_item shift.num is exist - process it [11:23:32]requested_item shift.opened is exist - process it [11:23:32]req_shift_opened [11:23:32]FM_GetShiftState [11:23:32]SAM_PROTO_GetShiftState [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 01 00 [11:23:32]Write to MH i2c: E2 08 00 85 02 80 13 01 00 00 00 00 00 04 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 85 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AF [11:23:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetShiftState done [11:23:32]FM_GetShiftState done [11:23:32]req_shift_opened done [11:23:32]requested_item shift.open_date is exist - process it [11:23:32]req_shift_open_date [11:23:32]req_shift_open_date done [11:23:32]produce_requested_data done [11:23:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67234,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:23:32]process_action_free print_text [11:23:32]json_value_free [11:23:32]json_value_free done [11:23:32]process_json_proto returns [11:23:32]Send response to host [11:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67234,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:23:32]free response buf [11:23:32]execute_script done [11:23:32]execute_script returns [11:23:32]free content buf [11:23:32]Sock 9.Close socket [11:23:32]Sock 9.Thread stoped [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:25]accept exits with 7 [11:24:25]New connection [11:24:25]New thread 3067030884 created [11:24:25]Thread 3067174244 joined [11:24:25]Waiting for new connection... [11:24:25] Sock 7.Parse request [11:24:25]Sock 7.Check first char [11:24:25]Sock 7.First char is OK [11:24:25]request: POST /json_proto HTTP/1.0 [11:24:25]Method: POST [11:24:25]URL: /json_proto [11:24:25]Method is POST - this is cgi request [11:24:25]url: /json_proto [11:24:25]query_string will be loaded in cgi processing [11:24:25]execute_cgi json_proto POST (null) [11:24:25]execute_cgi path=json_proto method=POST [11:24:25]POST find Content-Length [11:24:25]Host: 172.17.41.195:8080 [11:24:25]Content-Length: 800 [11:24:25]Content-Type: application/json [11:24:25] [11:24:25]POST finish read [11:24:25]Found Content-Length = 800 [11:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507195", "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" ] } } [11:24:25]execute_script... [11:24: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)507195", "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" ] } } [11:24:25]POST & json_proto [11:24:25]process_json_proto [11:24:25]json parsed OK: [11:24:25]protocol is kg_v1.0 [11:24:25]action value=close_receipt [11:24:25]process_action close_receipt [11:24:25]cmd_close_receipt [11:24:25]MH_GetDate [11:24:25]Write to MH i2c: F0 00 00 86 02 77 [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 09 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 09 00 86 02 00 6A 9B 44 66 FC 21 6F 64 1F [11:24:25]GetLastDocTimeStamp 1715772121 [11:24:25]current date 1715772266 [11:24:25]FM_GetShiftState [11:24:25]SAM_PROTO_GetShiftState [11:24:25]wFMCommunicate request_size=4 [11:24:25]MH_SAM_APDU [11:24:25]CAPDU: 80 13 01 00 [11:24:25]Write to MH i2c: E2 08 00 87 02 80 13 01 00 00 00 00 00 06 [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:25]Read from MH i2c: E2 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 0E 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 0E 00 87 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B1 [11:24:25]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:24:25]wFMCommunicate OK [11:24:25]SAM_PROTO_GetShiftState done [11:24:25]FM_GetShiftState done [11:24:25]opened in 1715732471 [11:24:25]opened+sec_in_day 1715818871 [11:24:25]quantity*price = 150072 [11:24:25]sum+1 = 150073 [11:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 53 15.05.2024 11:24 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67235 ФПД: 220554097887706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67235&fm=220554097887706&tin=02508201610067®Number=0000000000091845&sum=150072 [11:24:26]StoreToDocumentArchive [11:24:26]shift 356 fd 67235 [11:24:26]save to /storage/0356/doc_00067235 [11:24:26]save last doc name /storage/0356/doc_00067235 to /storage/kkm_last_doc_name [11:24:26]save OK [11:24:26]Clear old archive folders... [11:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:24:26]tlvbuf is 00B03680 [11:24:26]SAM_PROTO_ClearQueue [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 09 00 00 [11:24:26]Write to MH i2c: E2 08 00 94 02 80 09 00 00 00 00 00 00 08 [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:26]Read from MH i2c: E2 03 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 03 00 94 02 00 90 00 0A [11:24:26]RAPDU: 90 00 [11:24:26]wFMCommunicate OK [11:24:26]SAM_PROTO_ClearQueue done [11:24:26]KKMCreateOFDPacket [11:24:26]OFDProtocolAddRootSTLVToBuf [11:24:26]FM_MakeSignedData [11:24:26]FM_MakeSignedData [11:24:26]SAM_PROTO_SignData [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 0D 01 02 [11:24:26]Write to MH i2c: E2 08 00 95 02 80 0D 01 02 00 00 00 00 10 [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 03 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [11:24:26]RAPDU: 90 00 [11:24:26]wFMCommunicate OK [11:24:26]wFMCommunicate request_size=255 [11:24:26]MH_SAM_APDU [11:24: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 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 35 00 00 00 F4 03 04 00 6A 9B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 06 01 00 35 04 06 00 C8 97 C0 A8 [11:24:26]Write to MH i2c: E2 02 01 96 02 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 35 00 00 00 F4 03 04 00 6A 9B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 06 01 00 35 04 06 00 C8 97 C0 A8 00 00 7F [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]wFMCommunicate request_size=7 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 02 02 02 89 DA [11:24:27]Write to MH i2c: E2 0A 00 97 02 80 0D 02 02 02 00 89 DA 00 00 7A [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]wFMCommunicate request_size=4 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 03 02 [11:24:27]Write to MH i2c: E2 08 00 98 02 80 0D 03 02 00 00 00 00 15 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 0B 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 0B 00 98 02 00 6E 77 AC AA 40 F0 FE 44 90 00 C3 [11:24:27]RAPDU: 6E 77 AC AA 40 F0 FE 44 90 00 [11:24:27]wFMCommunicate OK [11:24:27]SAM_PROTO_SignData done [11:24:27]FM_MakeSignedData done [11:24:27]CreateOFDProtocolMessage [11:24:27]wFMCommunicate request_size=4 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 11 00 00 [11:24:27]Write to MH i2c: E2 08 00 99 02 80 11 00 00 00 00 00 00 15 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 17 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 17 00 99 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [11:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:24:27]wFMCommunicate OK [11:24:27]CreateOFDProtocolMessage done [11:24:27]OFDSenderStorePacket 67235 [11:24:27]StoreOFDPacket docnum=67235 [11:24: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 F8 5C 04 01 D9 6C 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 35 00 00 00 F4 03 04 00 6A 9B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 06 01 00 35 04 06 00 C8 97 C0 A8 89 DA 6E 77 AC AA 40 F0 FE 44 [11:24:27]CheckFolder [11:24:27]dirname=/storage/ofd_packets [11:24:27]CheckFolder done [11:24:27]ProducePacketName [11:24:27]name=ofd_packets/00067235 [11:24:27]NVStorageSaveData ofd_packets/00067235 [11:24:27]File name is /storage/ofd_packets/00067235 [11:24:27]Write 298 bytes [11:24:27]NVStorageSaveData done [11:24:27]OFDSenderStorePacket done [11:24:27]KKMCreateOFDPacket done [11:24:27]NVStorageSaveData kkm_last_timestamp [11:24:27]File name is /storage/kkm_last_timestamp [11:24:27]Write 4 bytes [11:24:27]NVStorageSaveData done [11:24:27]ExternCall_PrintAddStr [11:24:27]wPrintStart [11:24:27]Write to MH i2c: 01 00 00 9A 02 9C [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 07 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [11:24:27]RasterBufferAndPrint [11:24:27]line Счет N : (1)507195 [11:24:27]line ИНН: 02508201610067 [11:24:27]line Контрольно-Кассовый Чек [11:24:27]line ПРОДАЖА [11:24:27]line ТРК (МРК, ГНК) : 21 [11:24:27]line Товар: 2710194210 [11:24:27]line ДТ-К-5 [11:24:27]line 20.090 * 74.70 [11:24:27]line = 1500.72 [11:24:27]line НДС 12% НСП 1% [11:24:27]line > о реализуемом товаре [11:24:27]line ИТОГО: 1500.72 [11:24:27]line НСП 1% : 13.28 [11:24:27]line НДС 12% : 159.37 [11:24:27]line Наличными: 0.00 [11:24:27]line Безнал.: 1500.72 [11:24:27]line Место: АЗС № 91 "Партнер Нефть" [11:24:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:24:27]line СНО: Общий режим [11:24:27]line Чек 53 15.05.2024 11:24 [11:24:27]line Смена: 356 ФФД: 1.0 [11:24:27]line ЗНМ: 0300000119 [11:24:27]line РНМ: 0000000000091845 [11:24:27]line Версия ККМ: 001 [11:24:27]line Платежная система: O! деньги [11:24:27]line ФМ: 0000000000871829 [11:24:27]line ФД: 67235 [11:24:27]line ФПД: 220554097887706 [11:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T112426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67235&fm=220554097887706&tin=02508201610067®Number=0000000000091845&sum=150072 [11:24:27]OFD Sender: Processing packet 67235 [packets to send 35, broken 34] [11:24:27]ProducePacketName [11:24:27]name=ofd_packets/00067235 [11:24:27]OFD Sender: To server: pG, [11:24:27]CommunicateWithHost lk.salyk.kg:30040 [11:24:27]ConnectInit lk.salyk.kg [11:24:27]written 0, free lines is 4095 [11:24:27]Connected sock=10 [11:24: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 F8 5C 04 01 D9 6C 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 35 00 00 00 F4 03 04 00 6A 9B 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A3 06 01 00 35 04 06 00 C8 97 C0 A8 89 DA 6E 77 AC AA 40 F0 FE 44 [11:24: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 06 26 47 00 D8 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 A3 06 01 00 F4 03 04 00 47 43 44 66 B6 04 01 00 00 AD 6F 09 C4 8D D0 39 BB [11:24:27]CommunicateWithHost err = 0 [11:24:27]CheckOFDResponse [11:24:27]1017 (14) - 77093643461234 [11:24:27]1041 (16) - 0000000000871829 [11:24:27]1040 (4) - 67235 [11:24:27]1012 (4) - 15.05.2024 05:08 [11:24:27]1206 (1) - 0 [11:24:27]OFD Sender: Remove packet 67235 [11:24:27]ProducePacketName [11:24:27]name=ofd_packets/00067235 [11:24:27]NVStorageDeleteData [11:24:28]Write to MH i2c: 01 00 00 C3 02 C5 [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 07 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 D5 0C AD [11:24:28]RasterBufferAndPrint [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]written 0, free lines is 3292 [11:24:28]MH_Cut [11:24:28]Write to MH i2c: D1 01 00 CA 02 01 9E [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 01 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 01 00 CA 02 00 9D [11:24:28]Write to MH i2c: 01 00 00 CB 02 CD [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]OFD Sender: No OFD packet to send [11:24:28]*** Cut start [11:24:28]*** Purtial cut [11:24:28]*** CUTSNS_PIN = 0 [11:24:29]*** Stage 1: CUTSNS_PIN = 1 [11:24:30]Read from MH i2c: 01 [11:24:30]MH_I2C_Read... [11:24:30]*** Stop cut motor [11:24:30]*** Cut end [11:24:30]Read from MH i2c: 01 07 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [11:24:30]process_action close_receipt done [11:24:30]requested_data is exist [11:24:30]produce_requested_data [11:24:30]requested_item fm.sn is exist - process it [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 11 00 00 [11:24:30]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 CC 02 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:24: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:24:30]wFMCommunicate OK [11:24:30]requested_item fd.num is exist - process it [11:24:30]SAM_PROTO_GetFieldsCounters [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 13 00 00 [11:24:30]Write to MH i2c: E2 08 00 CD 02 80 13 00 00 00 00 00 00 4B [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 62 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 62 00 CD 02 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 A3 06 01 00 0E 04 04 00 64 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 1F [11:24: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 A3 06 01 00 0E 04 04 00 64 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:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_GetFieldsCounters done [11:24:31]requested_item shift.num is exist - process it [11:24:31]requested_item shift.opened is exist - process it [11:24:31]req_shift_opened [11:24:31]FM_GetShiftState [11:24:31]SAM_PROTO_GetShiftState [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 13 01 00 [11:24:31]Write to MH i2c: E2 08 00 CE 02 80 13 01 00 00 00 00 00 4D [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0E 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0E 00 CE 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F8 [11:24:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_GetShiftState done [11:24:31]FM_GetShiftState done [11:24:31]req_shift_opened done [11:24:31]requested_item shift.open_date is exist - process it [11:24:31]req_shift_open_date [11:24:31]req_shift_open_date done [11:24:31]produce_requested_data done [11:24:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67235,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:24:31]process_action_free close_receipt [11:24:31]json_value_free [11:24:31]json_value_free done [11:24:31]process_json_proto returns [11:24:31]Send response to host [11:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67235,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:24:31]free response buf [11:24:31]execute_script done [11:24:31]execute_script returns [11:24:31]free content buf [11:24:31]Sock 7.Close socket [11:24:31]Sock 7.Thread stoped [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [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:56]accept exits with 9 [11:33:56]New connection [11:33:56]New thread 3067174244 created [11:33:56]Thread 3067030884 joined [11:33:56]Waiting for new connection... [11:33:56] Sock 9.Parse request [11:33:56]Sock 9.Check first char [11:33:56]Sock 9.First char is OK [11:33:56]request: POST /json_proto HTTP/1.0 [11:33:56]Method: POST [11:33:56]URL: /json_proto [11:33:56]Method is POST - this is cgi request [11:33:56]url: /json_proto [11:33:56]query_string will be loaded in cgi processing [11:33:56]execute_cgi json_proto POST (null) [11:33:56]execute_cgi path=json_proto method=POST [11:33:56]POST find Content-Length [11:33:56]Host: 172.17.41.195:8080 [11:33:56]Content-Length: 816 [11:33:56]Content-Type: application/json [11:33:56] [11:33:56]POST finish read [11:33:56]Found Content-Length = 816 [11:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507196", "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" ] } } [11:33:56]execute_script... [11:33: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)507196", "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" ] } } [11:33:56]POST & json_proto [11:33:56]process_json_proto [11:33:56]json parsed OK: [11:33:56]protocol is kg_v1.0 [11:33:56]action value=close_receipt [11:33:56]process_action close_receipt [11:33:56]cmd_close_receipt [11:33:56]MH_GetDate [11:33:56]Write to MH i2c: F0 00 00 CF 02 C0 [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 09 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: F0 09 00 CF 02 00 A4 9D 44 66 FC 21 6F 64 A4 [11:33:56]GetLastDocTimeStamp 1715772266 [11:33:56]current date 1715772836 [11:33:56]FM_GetShiftState [11:33:56]SAM_PROTO_GetShiftState [11:33:56]wFMCommunicate request_size=4 [11:33:56]MH_SAM_APDU [11:33:56]CAPDU: 80 13 01 00 [11:33:56]Write to MH i2c: E2 08 00 D0 02 80 13 01 00 00 00 00 00 4F [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:56]Read from MH i2c: E2 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 0E 00 D0 02 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FA [11:33:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:33:56]wFMCommunicate OK [11:33:56]SAM_PROTO_GetShiftState done [11:33:56]FM_GetShiftState done [11:33:56]opened in 1715732471 [11:33:56]opened+sec_in_day 1715818871 [11:33:56]quantity*price = 50033 [11:33:56]sum+1 = 50034 [11:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 54 15.05.2024 11:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67236 ФПД: 110681549497381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T113356&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67236&fm=110681549497381&tin=02508201610067®Number=0000000000091845&sum=50033 [11:33:57]StoreToDocumentArchive [11:33:57]shift 356 fd 67236 [11:33:57]save to /storage/0356/doc_00067236 [11:33:57]save last doc name /storage/0356/doc_00067236 to /storage/kkm_last_doc_name [11:33:57]save OK [11:33:57]Clear old archive folders... [11:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:57]tlvbuf is 00B05280 [11:33:57]SAM_PROTO_ClearQueue [11:33:57]wFMCommunicate request_size=4 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 09 00 00 [11:33:57]Write to MH i2c: E2 08 00 DD 02 80 09 00 00 00 00 00 00 51 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:57]Read from MH i2c: E2 03 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [11:33:57]RAPDU: 90 00 [11:33:57]wFMCommunicate OK [11:33:57]SAM_PROTO_ClearQueue done [11:33:57]KKMCreateOFDPacket [11:33:57]OFDProtocolAddRootSTLVToBuf [11:33:57]FM_MakeSignedData [11:33:57]FM_MakeSignedData [11:33:57]SAM_PROTO_SignData [11:33:57]wFMCommunicate request_size=4 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 0D 01 02 [11:33:57]Write to MH i2c: E2 08 00 DE 02 80 0D 01 02 00 00 00 00 59 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [11:33:57]RAPDU: 90 00 [11:33:57]wFMCommunicate OK [11:33:57]wFMCommunicate request_size=255 [11:33:57]MH_SAM_APDU [11:33:57]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 36 00 00 00 F4 03 04 00 A4 9D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 06 01 00 35 04 06 00 64 [11:33:57]Write to MH i2c: E2 02 01 DF 02 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 36 00 00 00 F4 03 04 00 A4 9D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 06 01 00 35 04 06 00 64 00 00 BB [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [11:33:57]RAPDU: 90 00 [11:33:57]wFMCommunicate OK [11:33:57]wFMCommunicate request_size=10 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 0D 02 02 05 AA 0E 70 E4 25 [11:33:57]Write to MH i2c: E2 0D 00 E0 02 80 0D 02 02 05 00 AA 0E 70 E4 25 00 00 97 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [11:33:57]RAPDU: 90 00 [11:33:57]wFMCommunicate OK [11:33:57]wFMCommunicate request_size=4 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 0D 03 02 [11:33:57]Write to MH i2c: E2 08 00 E1 02 80 0D 03 02 00 00 00 00 5E [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 0B 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 0B 00 E1 02 00 FC 18 E4 65 A7 6E 57 53 90 00 7B [11:33:57]RAPDU: FC 18 E4 65 A7 6E 57 53 90 00 [11:33:57]wFMCommunicate OK [11:33:57]SAM_PROTO_SignData done [11:33:57]FM_MakeSignedData done [11:33:57]CreateOFDProtocolMessage [11:33:57]wFMCommunicate request_size=4 [11:33:57]MH_SAM_APDU [11:33:57]CAPDU: 80 11 00 00 [11:33:57]Write to MH i2c: E2 08 00 E2 02 80 11 00 00 00 00 00 00 5E [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:57]Read from MH i2c: E2 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 17 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: E2 17 00 E2 02 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:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:33:57]wFMCommunicate OK [11:33:57]CreateOFDProtocolMessage done [11:33:57]OFDSenderStorePacket 67236 [11:33:57]StoreOFDPacket docnum=67236 [11:33: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 0F 01 00 00 D2 98 07 01 C5 CA 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 36 00 00 00 F4 03 04 00 A4 9D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 06 01 00 35 04 06 00 64 AA 0E 70 E4 25 FC 18 E4 65 A7 6E 57 53 [11:33:57]CheckFolder [11:33:57]dirname=/storage/ofd_packets [11:33:57]CheckFolder done [11:33:57]ProducePacketName [11:33:57]name=ofd_packets/00067236 [11:33:57]NVStorageSaveData ofd_packets/00067236 [11:33:57]File name is /storage/ofd_packets/00067236 [11:33:57]Write 301 bytes [11:33:57]NVStorageSaveData done [11:33:57]OFDSenderStorePacket done [11:33:57]KKMCreateOFDPacket done [11:33:57]NVStorageSaveData kkm_last_timestamp [11:33:57]File name is /storage/kkm_last_timestamp [11:33:57]Write 4 bytes [11:33:57]NVStorageSaveData done [11:33:57]ExternCall_PrintAddStr [11:33:57]wPrintStart [11:33:57]Write to MH i2c: 01 00 00 E3 02 E5 [11:33:57]Write i2c OK [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: 01 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: 01 07 00 [11:33:57]MH_I2C_Read... [11:33:57]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [11:33:57]RasterBufferAndPrint [11:33:57]line Счет N : (1)507196 [11:33:57]line ИНН: 02508201610067 [11:33:57]line Контрольно-Кассовый Чек [11:33:57]line ПРОДАЖА [11:33:57]line ТРК (МРК, ГНК) : 33 [11:33:57]line Товар: 2710124130 [11:33:57]line Аи-92-К-5 [11:33:57]line 7.490 * 66.80 [11:33:57]line = 500.33 [11:33:57]line НДС 12% НСП 1% [11:33:57]line > о реализуемом товаре [11:33:57]line ИТОГО: 500.33 [11:33:57]line НСП 1% : 4.43 [11:33:57]line НДС 12% : 53.13 [11:33:57]line Наличными: 0.00 [11:33:57]line Безнал.: 500.33 [11:33:57]line Место: АЗС № 91 "Партнер Нефть" [11:33:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:33:57]line СНО: Общий режим [11:33:57]line Чек 54 15.05.2024 11:33 [11:33:57]line Смена: 356 ФФД: 1.0 [11:33:57]line ЗНМ: 0300000119 [11:33:57]line РНМ: 0000000000091845 [11:33:57]line Версия ККМ: 001 [11:33:57]line Платежная система: Бакай Банк [11:33:57]line ФМ: 0000000000871829 [11:33:57]line ФД: 67236 [11:33:57]line ФПД: 110681549497381 [11:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T113356&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67236&fm=110681549497381&tin=02508201610067®Number=0000000000091845&sum=50033 [11:33:58]OFD Sender: Processing packet 67236 [packets to send 35, broken 34] [11:33:58]ProducePacketName [11:33:58]name=ofd_packets/00067236 [11:33:58]OFD Sender: To server: pG, [11:33:58]CommunicateWithHost lk.salyk.kg:30040 [11:33:58]ConnectInit lk.salyk.kg [11:33:58]written 0, free lines is 4095 [11:33:58]Connected sock=10 [11:33: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 0F 01 00 00 D2 98 07 01 C5 CA 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 36 00 00 00 F4 03 04 00 A4 9D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A4 06 01 00 35 04 06 00 64 AA 0E 70 E4 25 FC 18 E4 65 A7 6E 57 53 [11:33: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 F8 4B 47 00 7D 6D 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 A4 06 01 00 F4 03 04 00 82 45 44 66 B6 04 01 00 00 D5 23 1D 3A 63 55 E4 C2 [11:33:58]CommunicateWithHost err = 0 [11:33:58]CheckOFDResponse [11:33:58]1017 (14) - 77093643461234 [11:33:58]1041 (16) - 0000000000871829 [11:33:58]1040 (4) - 67236 [11:33:58]1012 (4) - 15.05.2024 05:17 [11:33:58]1206 (1) - 0 [11:33:58]OFD Sender: Remove packet 67236 [11:33:58]ProducePacketName [11:33:58]name=ofd_packets/00067236 [11:33:58]NVStorageDeleteData [11:33:58]Write to MH i2c: 01 00 00 0C 03 0F [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 DD 0C FF [11:33:58]RasterBufferAndPrint [11:33:58]line [11:33:58]line [11:33:58]line [11:33:58]line [11:33:58]line [11:33:58]written 0, free lines is 3299 [11:33:58]MH_Cut [11:33:58]Write to MH i2c: D1 01 00 13 03 01 E8 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D1 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D1 01 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: D1 01 00 13 03 00 E7 [11:33:58]Write to MH i2c: 01 00 00 14 03 17 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:59]OFD Sender: No OFD packet to send [11:33:59]*** Cut start [11:33:59]*** Purtial cut [11:33:59]*** Stage 1: CUTSNS_PIN = 1 [11:33:59]Read from MH i2c: 01 [11:33:59]MH_I2C_Read... [11:33:59]*** Stop cut motor [11:33:59]*** Cut end [11:33:59]Read from MH i2c: 01 07 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [11:33:59]process_action close_receipt done [11:33:59]requested_data is exist [11:33:59]produce_requested_data [11:33:59]requested_item fm.sn is exist - process it [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 11 00 00 [11:33:59]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [11:33: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:33:59]wFMCommunicate OK [11:33:59]requested_item fd.num is exist - process it [11:33:59]SAM_PROTO_GetFieldsCounters [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 13 00 00 [11:33:59]Write to MH i2c: E2 08 00 16 03 80 13 00 00 00 00 00 00 95 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 62 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 62 00 16 03 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 A4 06 01 00 0E 04 04 00 64 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 6D [11:33: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 A4 06 01 00 0E 04 04 00 64 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:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_GetFieldsCounters done [11:33:59]requested_item shift.num is exist - process it [11:33:59]requested_item shift.opened is exist - process it [11:33:59]req_shift_opened [11:33:59]FM_GetShiftState [11:33:59]SAM_PROTO_GetShiftState [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 13 01 00 [11:33:59]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:00]Read from MH i2c: E2 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 0E 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 42 [11:34:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:34:00]wFMCommunicate OK [11:34:00]SAM_PROTO_GetShiftState done [11:34:00]FM_GetShiftState done [11:34:00]req_shift_opened done [11:34:00]requested_item shift.open_date is exist - process it [11:34:00]req_shift_open_date [11:34:00]req_shift_open_date done [11:34:00]produce_requested_data done [11:34:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:34:00]process_action_free close_receipt [11:34:00]json_value_free [11:34:00]json_value_free done [11:34:00]process_json_proto returns [11:34:00]Send response to host [11:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:34:00]free response buf [11:34:00]execute_script done [11:34:00]execute_script returns [11:34:00]free content buf [11:34:00]Sock 9.Close socket [11:34:00]Sock 9.Thread stoped [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:29]accept exits with 7 [11:35:29]New connection [11:35:29]New thread 3067030884 created [11:35:29]Thread 3067174244 joined [11:35:29]Waiting for new connection... [11:35:29] Sock 7.Parse request [11:35:29]Sock 7.Check first char [11:35:29]Sock 7.First char is OK [11:35:29]request: POST /json_proto HTTP/1.0 [11:35:29]Method: POST [11:35:29]URL: /json_proto [11:35:29]Method is POST - this is cgi request [11:35:29]url: /json_proto [11:35:29]query_string will be loaded in cgi processing [11:35:29]execute_cgi json_proto POST (null) [11:35:29]execute_cgi path=json_proto method=POST [11:35:29]POST find Content-Length [11:35:29]Host: 172.17.41.195:8080 [11:35:29]Content-Length: 1217 [11:35:29]Content-Type: application/json [11:35:29] [11:35:29]POST finish read [11:35:29]Found Content-Length = 1217 [11:35: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)507197\u000A15.05.2024 11:18\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\u000A4049902\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:29]execute_script... [11:35: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)507197\u000A15.05.2024 11:18\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\u000A4049902\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:29]POST & json_proto [11:35:29]process_json_proto [11:35:29]json parsed OK: [11:35:29]protocol is kg_v1.0 [11:35:29]action value=print_text [11:35:29]process_action print_text [11:35:29]cmd_print_text [11:35:29]ExternCall_PrintAddStr [11:35:29]wPrintStart [11:35:29]Write to MH i2c: 01 00 00 18 03 1B [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [11:35:29]RasterBufferAndPrint [11:35:29]line *****ТОВАРНЫЙ ЧЕК***** [11:35:29]line АЗС-91 [11:35:29]line Партнер нефть [11:35:29]line 02508201610067 [11:35:29]line Кассир : Арстанбеков Н. [11:35:29]line Счет N : (1)507197 [11:35:29]line 15.05.2024 11:18 [11:35:29]line ПРОДАЖА [11:35:29]line ТРК (МРК, ГНК): 11 [11:35:29]line Вид ГСМ : 2710194210 [11:35:29]line ДТ-К-5 [11:35:29]line 20.000 x 74.70 [11:35:29]line ИТОГ: 1494.00 [11:35:29]line Тип оплаты: Талоны: Топливные Талоны [11:35:29]line 4049902 [11:35:29]line ______________________ [11:35:29]line (подпись) [11:35:29]written 0, free lines is 4095 [11:35:29]Write to MH i2c: 01 00 00 2C 03 2F [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 2C 03 00 00 00 00 00 0E 0E 52 [11:35:29]RasterBufferAndPrint [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]line [11:35:29]written 0, free lines is 3599 [11:35:29]MH_Cut [11:35:29]Write to MH i2c: D1 01 00 33 03 01 08 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: D1 01 00 33 03 00 07 [11:35:29]Write to MH i2c: 01 00 00 34 03 37 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:29]*** Cut start [11:35:29]*** Purtial cut [11:35:29]*** CUTSNS_PIN = 0 [11:35:30]*** Stage 1: CUTSNS_PIN = 1 [11:35:31]Read from MH i2c: 01 [11:35:31]MH_I2C_Read... [11:35:31]*** Stop cut motor [11:35:31]*** Cut end [11:35:31]Read from MH i2c: 01 07 00 [11:35:31]MH_I2C_Read... [11:35:31]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 FF 0F 4C [11:35:31]process_action print_text done [11:35:31]requested_data is exist [11:35:31]produce_requested_data [11:35:31]requested_item fm.sn is exist - process it [11:35:31]wFMCommunicate request_size=4 [11:35:31]MH_SAM_APDU [11:35:31]CAPDU: 80 11 00 00 [11:35:31]Write to MH i2c: E2 08 00 35 03 80 11 00 00 00 00 00 00 B2 [11:35:31]Write i2c OK [11:35:31]MH_I2C_Read... [11:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 17 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 17 00 35 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [11:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:35:32]wFMCommunicate OK [11:35:32]requested_item fd.num is exist - process it [11:35:32]SAM_PROTO_GetFieldsCounters [11:35:32]wFMCommunicate request_size=4 [11:35:32]MH_SAM_APDU [11:35:32]CAPDU: 80 13 00 00 [11:35:32]Write to MH i2c: E2 08 00 36 03 80 13 00 00 00 00 00 00 B5 [11:35:32]Write i2c OK [11:35:32]MH_I2C_Read... [11:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 62 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 62 00 36 03 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 A4 06 01 00 0E 04 04 00 64 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 8D [11:35: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 A4 06 01 00 0E 04 04 00 64 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:35:32]wFMCommunicate OK [11:35:32]SAM_PROTO_GetFieldsCounters done [11:35:32]requested_item shift.num is exist - process it [11:35:32]requested_item shift.opened is exist - process it [11:35:32]req_shift_opened [11:35:32]FM_GetShiftState [11:35:32]SAM_PROTO_GetShiftState [11:35:32]wFMCommunicate request_size=4 [11:35:32]MH_SAM_APDU [11:35:32]CAPDU: 80 13 01 00 [11:35:32]Write to MH i2c: E2 08 00 37 03 80 13 01 00 00 00 00 00 B7 [11:35:32]Write i2c OK [11:35:32]MH_I2C_Read... [11:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:32]Read from MH i2c: E2 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 0E 00 [11:35:32]MH_I2C_Read... [11:35:32]Read from MH i2c: E2 0E 00 37 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 62 [11:35:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:35:32]wFMCommunicate OK [11:35:32]SAM_PROTO_GetShiftState done [11:35:32]FM_GetShiftState done [11:35:32]req_shift_opened done [11:35:32]requested_item shift.open_date is exist - process it [11:35:32]req_shift_open_date [11:35:32]req_shift_open_date done [11:35:32]produce_requested_data done [11:35:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:35:32]process_action_free print_text [11:35:32]json_value_free [11:35:32]json_value_free done [11:35:32]process_json_proto returns [11:35:32]Send response to host [11:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:35:32]free response buf [11:35:32]execute_script done [11:35:32]execute_script returns [11:35:32]free content buf [11:35:32]Sock 7.Close socket [11:35:32]Sock 7.Thread stoped [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:58]accept exits with 9 [11:37:58]New connection [11:37:58]New thread 3067174244 created [11:37:58]Thread 3067030884 joined [11:37:58]Waiting for new connection... [11:37:58] Sock 9.Parse request [11:37:58]Sock 9.Check first char [11:37:58]Sock 9.First char is OK [11:37:58]request: POST /json_proto HTTP/1.0 [11:37:58]Method: POST [11:37:58]URL: /json_proto [11:37:58]Method is POST - this is cgi request [11:37:58]url: /json_proto [11:37:58]query_string will be loaded in cgi processing [11:37:58]execute_cgi json_proto POST (null) [11:37:58]execute_cgi path=json_proto method=POST [11:37:58]POST find Content-Length [11:37:58]Host: 172.17.41.195:8080 [11:37:58]Content-Length: 1209 [11:37:58]Content-Type: application/json [11:37:58] [11:37:58]POST finish read [11:37:58]Found Content-Length = 1209 [11:37: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)507198\u000A15.05.2024 11:20\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 38.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2838.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" ] } } [11:37:58]execute_script... [11:37: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)507198\u000A15.05.2024 11:20\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 38.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2838.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" ] } } [11:37:58]POST & json_proto [11:37:58]process_json_proto [11:37:58]json parsed OK: [11:37:58]protocol is kg_v1.0 [11:37:58]action value=print_text [11:37:58]process_action print_text [11:37:58]cmd_print_text [11:37:58]ExternCall_PrintAddStr [11:37:58]wPrintStart [11:37:58]Write to MH i2c: 01 00 00 38 03 3B [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [11:37:58]RasterBufferAndPrint [11:37:58]line *****ТОВАРНЫЙ ЧЕК***** [11:37:58]line АЗС-91 [11:37:58]line Партнер нефть [11:37:58]line 02508201610067 [11:37:58]line Кассир : Арстанбеков Н. [11:37:58]line Счет N : (1)507198 [11:37:58]line 15.05.2024 11:20 [11:37:58]line ПРОДАЖА [11:37:58]line ТРК (МРК, ГНК): 31 [11:37:58]line Вид ГСМ : 2710194210 [11:37:58]line ДТ-К-5 [11:37:58]line 38.000 x 74.70 [11:37:58]line ИТОГ: 2838.60 [11:37:58]line Тип оплаты: Талоны: Топливная Карта [11:37:58]line 02750 [11:37:58]line ______________________ [11:37:58]line (подпись) [11:37:58]written 0, free lines is 4095 [11:37:58]Write to MH i2c: 01 00 00 4C 03 4F [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 11 0E 75 [11:37:58]RasterBufferAndPrint [11:37:58]line [11:37:58]line [11:37:58]line [11:37:58]line [11:37:58]line [11:37:58]written 0, free lines is 3602 [11:37:58]MH_Cut [11:37:58]Write to MH i2c: D1 01 00 53 03 01 28 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: D1 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: D1 01 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: D1 01 00 53 03 00 27 [11:37:58]Write to MH i2c: 01 00 00 54 03 57 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:59]OFD Sender: No OFD packet to send [11:37:59]*** Cut start [11:37:59]*** Purtial cut [11:37:59]*** Stage 1: CUTSNS_PIN = 1 [11:37:59]Read from MH i2c: 01 [11:37:59]MH_I2C_Read... [11:37:59]*** Stop cut motor [11:37:59]*** Cut end [11:37:59]Read from MH i2c: 01 07 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [11:37:59]process_action print_text done [11:37:59]requested_data is exist [11:37:59]produce_requested_data [11:37:59]requested_item fm.sn is exist - process it [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 11 00 00 [11:37:59]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 17 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [11:37: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:37:59]wFMCommunicate OK [11:37:59]requested_item fd.num is exist - process it [11:37:59]SAM_PROTO_GetFieldsCounters [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 13 00 00 [11:37:59]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 62 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 62 00 56 03 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 A4 06 01 00 0E 04 04 00 64 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 AD [11:37: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 A4 06 01 00 0E 04 04 00 64 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:37:59]wFMCommunicate OK [11:37:59]SAM_PROTO_GetFieldsCounters done [11:37:59]requested_item shift.num is exist - process it [11:37:59]requested_item shift.opened is exist - process it [11:37:59]req_shift_opened [11:37:59]FM_GetShiftState [11:37:59]SAM_PROTO_GetShiftState [11:37:59]wFMCommunicate request_size=4 [11:37:59]MH_SAM_APDU [11:37:59]CAPDU: 80 13 01 00 [11:37:59]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:59]Read from MH i2c: E2 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 0E 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 82 [11:37:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:37:59]wFMCommunicate OK [11:37:59]SAM_PROTO_GetShiftState done [11:37:59]FM_GetShiftState done [11:37:59]req_shift_opened done [11:37:59]requested_item shift.open_date is exist - process it [11:37:59]req_shift_open_date [11:37:59]req_shift_open_date done [11:37:59]produce_requested_data done [11:37:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:37:59]process_action_free print_text [11:37:59]json_value_free [11:37:59]json_value_free done [11:37:59]process_json_proto returns [11:37:59]Send response to host [11:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67236,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:37:59]free response buf [11:37:59]execute_script done [11:37:59]execute_script returns [11:37:59]free content buf [11:37:59]Sock 9.Close socket [11:37:59]Sock 9.Thread stoped [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:00]accept exits with 7 [11:44:00]New connection [11:44:00]New thread 3067030884 created [11:44:00]Thread 3067174244 joined [11:44:00]Waiting for new connection... [11:44:00] Sock 7.Parse request [11:44:00]Sock 7.Check first char [11:44:00]Sock 7.First char is OK [11:44:00]request: POST /json_proto HTTP/1.0 [11:44:00]Method: POST [11:44:00]URL: /json_proto [11:44:00]Method is POST - this is cgi request [11:44:00]url: /json_proto [11:44:00]query_string will be loaded in cgi processing [11:44:00]execute_cgi json_proto POST (null) [11:44:00]execute_cgi path=json_proto method=POST [11:44:00]POST find Content-Length [11:44:00]Host: 172.17.41.195:8080 [11:44:00]Content-Length: 800 [11:44:00]Content-Type: application/json [11:44:00] [11:44:00]POST finish read [11:44:00]Found Content-Length = 800 [11:44:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507199", "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:44:00]execute_script... [11:44: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)507199", "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:44:00]POST & json_proto [11:44:00]process_json_proto [11:44:00]json parsed OK: [11:44:00]protocol is kg_v1.0 [11:44:00]action value=close_receipt [11:44:00]process_action close_receipt [11:44:00]cmd_close_receipt [11:44:00]MH_GetDate [11:44:00]Write to MH i2c: F0 00 00 58 03 4A [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 09 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: F0 09 00 58 03 00 00 A0 44 66 FC 21 6F 64 8D [11:44:00]GetLastDocTimeStamp 1715772836 [11:44:00]current date 1715773440 [11:44:00]FM_GetShiftState [11:44:00]SAM_PROTO_GetShiftState [11:44:00]wFMCommunicate request_size=4 [11:44:00]MH_SAM_APDU [11:44:00]CAPDU: 80 13 01 00 [11:44:00]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [11:44:00]Write i2c OK [11:44:00]MH_I2C_Read... [11:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:00]Read from MH i2c: E2 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0E 00 [11:44:00]MH_I2C_Read... [11:44:00]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 84 [11:44:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:44:00]wFMCommunicate OK [11:44:00]SAM_PROTO_GetShiftState done [11:44:00]FM_GetShiftState done [11:44:00]opened in 1715732471 [11:44:00]opened+sec_in_day 1715818871 [11:44:00]quantity*price = 50033 [11:44:00]sum+1 = 50034 [11:44:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 55 15.05.2024 11:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67237 ФПД: 18029957956171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67237&fm=18029957956171&tin=02508201610067®Number=0000000000091845&sum=50033 [11:44:01]StoreToDocumentArchive [11:44:01]shift 356 fd 67237 [11:44:01]save to /storage/0356/doc_00067237 [11:44:01]save last doc name /storage/0356/doc_00067237 to /storage/kkm_last_doc_name [11:44:01]save OK [11:44:01]Clear old archive folders... [11:44:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:01]tlvbuf is 00B0E800 [11:44:01]SAM_PROTO_ClearQueue [11:44:01]wFMCommunicate request_size=4 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 09 00 00 [11:44:01]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:01]Read from MH i2c: E2 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [11:44:01]RAPDU: 90 00 [11:44:01]wFMCommunicate OK [11:44:01]SAM_PROTO_ClearQueue done [11:44:01]KKMCreateOFDPacket [11:44:01]OFDProtocolAddRootSTLVToBuf [11:44:01]FM_MakeSignedData [11:44:01]FM_MakeSignedData [11:44:01]SAM_PROTO_SignData [11:44:01]wFMCommunicate request_size=4 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 0D 01 02 [11:44:01]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:01]Read from MH i2c: E2 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [11:44:01]RAPDU: 90 00 [11:44:01]wFMCommunicate OK [11:44:01]wFMCommunicate request_size=255 [11:44:01]MH_SAM_APDU [11:44:01]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 37 00 00 00 F4 03 04 00 00 A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 06 01 00 35 04 06 00 10 [11:44:01]Write to MH i2c: E2 02 01 68 03 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 37 00 00 00 F4 03 04 00 00 A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 06 01 00 35 04 06 00 10 00 00 52 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:01]Read from MH i2c: E2 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [11:44:01]RAPDU: 90 00 [11:44:01]wFMCommunicate OK [11:44:01]wFMCommunicate request_size=10 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 0D 02 02 05 65 ED 3D 42 4B [11:44:01]Write to MH i2c: E2 0D 00 69 03 80 0D 02 02 05 00 65 ED 3D 42 4B 00 00 0C [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:01]Read from MH i2c: E2 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [11:44:01]RAPDU: 90 00 [11:44:01]wFMCommunicate OK [11:44:01]wFMCommunicate request_size=4 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 0D 03 02 [11:44:01]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:01]Read from MH i2c: E2 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 0B 00 [11:44:01]MH_I2C_Read... [11:44:01]Read from MH i2c: E2 0B 00 6A 03 00 AA 3C 12 18 0E AD 8B C6 90 00 05 [11:44:01]RAPDU: AA 3C 12 18 0E AD 8B C6 90 00 [11:44:01]wFMCommunicate OK [11:44:01]SAM_PROTO_SignData done [11:44:01]FM_MakeSignedData done [11:44:01]CreateOFDProtocolMessage [11:44:01]wFMCommunicate request_size=4 [11:44:01]MH_SAM_APDU [11:44:01]CAPDU: 80 11 00 00 [11:44:01]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [11:44:01]Write i2c OK [11:44:01]MH_I2C_Read... [11:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:02]Read from MH i2c: E2 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 17 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: E2 17 00 6B 03 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:44: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:44:02]wFMCommunicate OK [11:44:02]CreateOFDProtocolMessage done [11:44:02]OFDSenderStorePacket 67237 [11:44:02]StoreOFDPacket docnum=67237 [11:44: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 0F 01 00 00 F4 D4 07 01 79 12 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 37 00 00 00 F4 03 04 00 00 A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 06 01 00 35 04 06 00 10 65 ED 3D 42 4B AA 3C 12 18 0E AD 8B C6 [11:44:02]CheckFolder [11:44:02]dirname=/storage/ofd_packets [11:44:02]CheckFolder done [11:44:02]ProducePacketName [11:44:02]name=ofd_packets/00067237 [11:44:02]NVStorageSaveData ofd_packets/00067237 [11:44:02]File name is /storage/ofd_packets/00067237 [11:44:02]Write 301 bytes [11:44:02]NVStorageSaveData done [11:44:02]OFDSenderStorePacket done [11:44:02]KKMCreateOFDPacket done [11:44:02]NVStorageSaveData kkm_last_timestamp [11:44:02]File name is /storage/kkm_last_timestamp [11:44:02]Write 4 bytes [11:44:02]NVStorageSaveData done [11:44:02]ExternCall_PrintAddStr [11:44:02]wPrintStart [11:44:02]Write to MH i2c: 01 00 00 6C 03 6F [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [11:44:02]RasterBufferAndPrint [11:44:02]line Счет N : (1)507199 [11:44:02]line ИНН: 02508201610067 [11:44:02]line Контрольно-Кассовый Чек [11:44:02]line ПРОДАЖА [11:44:02]line ТРК (МРК, ГНК) : 33 [11:44:02]line Товар: 2710124130 [11:44:02]line Аи-92-К-5 [11:44:02]line 7.490 * 66.80 [11:44:02]line = 500.33 [11:44:02]line НДС 12% НСП 1% [11:44:02]line > о реализуемом товаре [11:44:02]line ИТОГО: 500.33 [11:44:02]line НСП 1% : 4.43 [11:44:02]line НДС 12% : 53.13 [11:44:02]line Наличными: 0.00 [11:44:02]line Безнал.: 500.33 [11:44:02]line Место: АЗС № 91 "Партнер Нефть" [11:44:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:44:02]line СНО: Общий режим [11:44:02]line Чек 55 15.05.2024 11:44 [11:44:02]line Смена: 356 ФФД: 1.0 [11:44:02]line ЗНМ: 0300000119 [11:44:02]line РНМ: 0000000000091845 [11:44:02]line Версия ККМ: 001 [11:44:02]line Платежная система: O! деньги [11:44:02]line ФМ: 0000000000871829 [11:44:02]line ФД: 67237 [11:44:02]line ФПД: 18029957956171 [11:44:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67237&fm=18029957956171&tin=02508201610067®Number=0000000000091845&sum=50033 [11:44:02]OFD Sender: Processing packet 67237 [packets to send 35, broken 34] [11:44:02]ProducePacketName [11:44:02]name=ofd_packets/00067237 [11:44:02]OFD Sender: To server: pG, [11:44:02]CommunicateWithHost lk.salyk.kg:30040 [11:44:02]ConnectInit lk.salyk.kg [11:44:02]written 0, free lines is 4095 [11:44:02]Connected sock=10 [11:44: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 0F 01 00 00 F4 D4 07 01 79 12 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 37 00 00 00 F4 03 04 00 00 A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 06 01 00 35 04 06 00 10 65 ED 3D 42 4B AA 3C 12 18 0E AD 8B C6 [11:44: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 2F 1E 47 00 51 5F 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 A5 06 01 00 F4 03 04 00 DE 47 44 66 B6 04 01 00 00 6B B4 E2 7E A2 9A 15 F0 [11:44:02]CommunicateWithHost err = 0 [11:44:02]CheckOFDResponse [11:44:02]1017 (14) - 77093643461234 [11:44:02]1041 (16) - 0000000000871829 [11:44:02]1040 (4) - 67237 [11:44:02]1012 (4) - 15.05.2024 05:27 [11:44:02]1206 (1) - 0 [11:44:02]OFD Sender: Remove packet 67237 [11:44:02]ProducePacketName [11:44:02]name=ofd_packets/00067237 [11:44:02]NVStorageDeleteData [11:44:02]Write to MH i2c: 01 00 00 95 03 98 [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 D7 0C 82 [11:44:02]RasterBufferAndPrint [11:44:02]line [11:44:02]line [11:44:02]line [11:44:02]line [11:44:02]line [11:44:02]written 0, free lines is 3296 [11:44:02]MH_Cut [11:44:02]Write to MH i2c: D1 01 00 9C 03 01 71 [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: D1 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: D1 01 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: D1 01 00 9C 03 00 70 [11:44:02]Write to MH i2c: 01 00 00 9D 03 A0 [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:03]OFD Sender: No OFD packet to send [11:44:03]*** Cut start [11:44:03]*** Purtial cut [11:44:03]*** CUTSNS_PIN = 0 [11:44:03]*** Stage 1: CUTSNS_PIN = 1 [11:44:05]Read from MH i2c: 01 [11:44:05]MH_I2C_Read... [11:44:05]*** Stop cut motor [11:44:05]*** Cut end [11:44:05]Read from MH i2c: 01 07 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 FF 0F B5 [11:44:05]process_action close_receipt done [11:44:05]requested_data is exist [11:44:05]produce_requested_data [11:44:05]requested_item fm.sn is exist - process it [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 11 00 00 [11:44:05]Write to MH i2c: E2 08 00 9E 03 80 11 00 00 00 00 00 00 1B [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 17 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 17 00 9E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [11:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:44:05]wFMCommunicate OK [11:44:05]requested_item fd.num is exist - process it [11:44:05]SAM_PROTO_GetFieldsCounters [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 13 00 00 [11:44:05]Write to MH i2c: E2 08 00 9F 03 80 13 00 00 00 00 00 00 1E [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 62 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 62 00 9F 03 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 A5 06 01 00 0E 04 04 00 64 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 FA [11:44: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 A5 06 01 00 0E 04 04 00 64 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:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_GetFieldsCounters done [11:44:05]requested_item shift.num is exist - process it [11:44:05]requested_item shift.opened is exist - process it [11:44:05]req_shift_opened [11:44:05]FM_GetShiftState [11:44:05]SAM_PROTO_GetShiftState [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 13 01 00 [11:44:05]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CB [11:44:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_GetShiftState done [11:44:05]FM_GetShiftState done [11:44:05]req_shift_opened done [11:44:05]requested_item shift.open_date is exist - process it [11:44:05]req_shift_open_date [11:44:05]req_shift_open_date done [11:44:05]produce_requested_data done [11:44:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67237,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:44:05]process_action_free close_receipt [11:44:05]json_value_free [11:44:05]json_value_free done [11:44:05]process_json_proto returns [11:44:05]Send response to host [11:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67237,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:44:05]free response buf [11:44:05]execute_script done [11:44:05]execute_script returns [11:44:05]free content buf [11:44:05]Sock 7.Close socket [11:44:05]Sock 7.Thread stoped [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:28]accept exits with 9 [11:44:28]New connection [11:44:28]New thread 3067174244 created [11:44:28]Thread 3067030884 joined [11:44:28]Waiting for new connection... [11:44:28] Sock 9.Parse request [11:44:28]Sock 9.Check first char [11:44:28]Sock 9.First char is OK [11:44:28]request: POST /json_proto HTTP/1.0 [11:44:28]Method: POST [11:44:28]URL: /json_proto [11:44:28]Method is POST - this is cgi request [11:44:28]url: /json_proto [11:44:28]query_string will be loaded in cgi processing [11:44:28]execute_cgi json_proto POST (null) [11:44:28]execute_cgi path=json_proto method=POST [11:44:28]POST find Content-Length [11:44:28]Host: 172.17.41.195:8080 [11:44:28]Content-Length: 796 [11:44:28]Content-Type: application/json [11:44:28] [11:44:28]POST finish read [11:44:28]Found Content-Length = 796 [11:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507200", "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" : 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:44:28]execute_script... [11:44: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)507200", "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" : 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:44:28]POST & json_proto [11:44:28]process_json_proto [11:44:28]json parsed OK: [11:44:28]protocol is kg_v1.0 [11:44:28]action value=close_receipt [11:44:28]process_action close_receipt [11:44:28]cmd_close_receipt [11:44:28]MH_GetDate [11:44:28]Write to MH i2c: F0 00 00 A1 03 93 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 09 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: F0 09 00 A1 03 00 1C A0 44 66 FC 21 6F 64 F2 [11:44:28]GetLastDocTimeStamp 1715773440 [11:44:28]current date 1715773468 [11:44:28]FM_GetShiftState [11:44:28]SAM_PROTO_GetShiftState [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 13 01 00 [11:44:28]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CD [11:44:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:44:28]wFMCommunicate OK [11:44:28]SAM_PROTO_GetShiftState done [11:44:28]FM_GetShiftState done [11:44:28]opened in 1715732471 [11:44:28]opened+sec_in_day 1715818871 [11:44:28]quantity*price = 150041 [11:44:28]sum+1 = 150042 [11:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 56 15.05.2024 11:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67238 ФПД: 113580372073119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67238&fm=113580372073119&tin=02508201610067®Number=0000000000091845&sum=150041 [11:44:29]StoreToDocumentArchive [11:44:29]shift 356 fd 67238 [11:44:29]save to /storage/0356/doc_00067238 [11:44:29]save last doc name /storage/0356/doc_00067238 to /storage/kkm_last_doc_name [11:44:29]save OK [11:44:29]Clear old archive folders... [11:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:44:29]tlvbuf is 00B0CF80 [11:44:29]SAM_PROTO_ClearQueue [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 09 00 00 [11:44:29]Write to MH i2c: E2 08 00 AF 03 80 09 00 00 00 00 00 00 24 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_ClearQueue done [11:44:29]KKMCreateOFDPacket [11:44:29]OFDProtocolAddRootSTLVToBuf [11:44:29]FM_MakeSignedData [11:44:29]FM_MakeSignedData [11:44:29]SAM_PROTO_SignData [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 0D 01 02 [11:44:29]Write to MH i2c: E2 08 00 B0 03 80 0D 01 02 00 00 00 00 2C [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [11:44:29]RAPDU: 90 00 [11:44:29]wFMCommunicate OK [11:44:29]wFMCommunicate request_size=255 [11:44:29]MH_SAM_APDU [11:44:29]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 38 00 00 00 F4 03 04 00 1D A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 06 01 00 35 04 06 00 [11:44:29]Write to MH i2c: E2 02 01 B1 03 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 38 00 00 00 F4 03 04 00 1D A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 06 01 00 35 04 06 00 00 00 54 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 03 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [11:44:30]RAPDU: 90 00 [11:44:30]wFMCommunicate OK [11:44:30]wFMCommunicate request_size=11 [11:44:30]MH_SAM_APDU [11:44:30]CAPDU: 80 0D 02 02 06 67 4C FD BB 1A 9F [11:44:30]Write to MH i2c: E2 0E 00 B2 03 80 0D 02 02 06 00 67 4C FD BB 1A 9F 00 00 5F [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 03 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [11:44:30]RAPDU: 90 00 [11:44:30]wFMCommunicate OK [11:44:30]wFMCommunicate request_size=4 [11:44:30]MH_SAM_APDU [11:44:30]CAPDU: 80 0D 03 02 [11:44:30]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 0B 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 0B 00 B3 03 00 3D E2 33 FF 3C AA F6 5C 90 00 BB [11:44:30]RAPDU: 3D E2 33 FF 3C AA F6 5C 90 00 [11:44:30]wFMCommunicate OK [11:44:30]SAM_PROTO_SignData done [11:44:30]FM_MakeSignedData done [11:44:30]CreateOFDProtocolMessage [11:44:30]wFMCommunicate request_size=4 [11:44:30]MH_SAM_APDU [11:44:30]CAPDU: 80 11 00 00 [11:44:30]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:30]Read from MH i2c: E2 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 17 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [11:44: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:44:30]wFMCommunicate OK [11:44:30]CreateOFDProtocolMessage done [11:44:30]OFDSenderStorePacket 67238 [11:44:30]StoreOFDPacket docnum=67238 [11:44: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 10 01 00 00 8F 19 08 01 B1 A0 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 38 00 00 00 F4 03 04 00 1D A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 06 01 00 35 04 06 00 67 4C FD BB 1A 9F 3D E2 33 FF 3C AA F6 5C [11:44:30]CheckFolder [11:44:30]dirname=/storage/ofd_packets [11:44:30]CheckFolder done [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00067238 [11:44:30]NVStorageSaveData ofd_packets/00067238 [11:44:30]File name is /storage/ofd_packets/00067238 [11:44:30]Write 302 bytes [11:44:30]NVStorageSaveData done [11:44:30]OFDSenderStorePacket done [11:44:30]KKMCreateOFDPacket done [11:44:30]NVStorageSaveData kkm_last_timestamp [11:44:30]File name is /storage/kkm_last_timestamp [11:44:30]Write 4 bytes [11:44:30]NVStorageSaveData done [11:44:30]ExternCall_PrintAddStr [11:44:30]wPrintStart [11:44:30]Write to MH i2c: 01 00 00 B5 03 B8 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [11:44:30]RasterBufferAndPrint [11:44:30]line Счет N : (1)507200 [11:44:30]line ИНН: 02508201610067 [11:44:30]line Контрольно-Кассовый Чек [11:44:30]line ПРОДАЖА [11:44:30]line ТРК (МРК, ГНК) : 22 [11:44:30]line Товар: 2710124130 [11:44:30]line Super-92-К-5 [11:44:30]line 22.130 * 67.80 [11:44:30]line = 1500.41 [11:44:30]line НДС 12% НСП 1% [11:44:30]line > о реализуемом товаре [11:44:30]line ИТОГО: 1500.41 [11:44:30]line НСП 1% : 13.28 [11:44:30]line НДС 12% : 159.34 [11:44:30]line Наличными: 0.00 [11:44:30]line Безнал.: 1500.41 [11:44:30]line Место: АЗС № 91 "Партнер Нефть" [11:44:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:44:30]line СНО: Общий режим [11:44:30]line Чек 56 15.05.2024 11:44 [11:44:30]line Смена: 356 ФФД: 1.0 [11:44:30]line ЗНМ: 0300000119 [11:44:30]line РНМ: 0000000000091845 [11:44:30]line Версия ККМ: 001 [11:44:30]line Платежная система: O! деньги [11:44:30]line ФМ: 0000000000871829 [11:44:30]line ФД: 67238 [11:44:30]line ФПД: 113580372073119 [11:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67238&fm=113580372073119&tin=02508201610067®Number=0000000000091845&sum=150041 [11:44:30]OFD Sender: Processing packet 67238 [packets to send 35, broken 34] [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00067238 [11:44:30]OFD Sender: To server: pG, [11:44:30]CommunicateWithHost lk.salyk.kg:30040 [11:44:30]ConnectInit lk.salyk.kg [11:44:30]written 0, free lines is 4095 [11:44:30]Connected sock=10 [11:44: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 10 01 00 00 8F 19 08 01 B1 A0 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 38 00 00 00 F4 03 04 00 1D A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 06 01 00 35 04 06 00 67 4C FD BB 1A 9F 3D E2 33 FF 3C AA F6 5C [11:44: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 F8 00 47 00 6E AA 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 A6 06 01 00 F4 03 04 00 FA 47 44 66 B6 04 01 00 00 C5 C6 A1 3C BB 66 46 19 [11:44:30]CommunicateWithHost err = 0 [11:44:30]CheckOFDResponse [11:44:30]1017 (14) - 77093643461234 [11:44:30]1041 (16) - 0000000000871829 [11:44:30]1040 (4) - 67238 [11:44:30]1012 (4) - 15.05.2024 05:28 [11:44:30]1206 (1) - 0 [11:44:30]OFD Sender: Remove packet 67238 [11:44:30]ProducePacketName [11:44:30]name=ofd_packets/00067238 [11:44:30]NVStorageDeleteData [11:44:30]Write to MH i2c: 01 00 00 DE 03 E1 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 D7 0C CB [11:44:30]RasterBufferAndPrint [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]line [11:44:30]written 0, free lines is 3295 [11:44:30]MH_Cut [11:44:30]Write to MH i2c: D1 01 00 E5 03 01 BA [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 [11:44:30]MH_I2C_Read... [11:44:30]Read from MH i2c: D1 01 00 E5 03 00 B9 [11:44:30]Write to MH i2c: 01 00 00 E6 03 E9 [11:44:30]Write i2c OK [11:44:30]MH_I2C_Read... [11:44:31]OFD Sender: No OFD packet to send [11:44:31]*** Cut start [11:44:31]*** Purtial cut [11:44:31]*** Stage 1: CUTSNS_PIN = 1 [11:44:32]Read from MH i2c: 01 [11:44:32]MH_I2C_Read... [11:44:32]*** Stop cut motor [11:44:32]*** Cut end [11:44:32]Read from MH i2c: 01 07 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [11:44:32]process_action close_receipt done [11:44:32]requested_data is exist [11:44:32]produce_requested_data [11:44:32]requested_item fm.sn is exist - process it [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 11 00 00 [11:44:32]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [11:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:44:32]wFMCommunicate OK [11:44:32]requested_item fd.num is exist - process it [11:44:32]SAM_PROTO_GetFieldsCounters [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 13 00 00 [11:44:32]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 62 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 62 00 E8 03 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 A6 06 01 00 0E 04 04 00 64 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 47 [11:44: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 A6 06 01 00 0E 04 04 00 64 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:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_GetFieldsCounters done [11:44:32]requested_item shift.num is exist - process it [11:44:32]requested_item shift.opened is exist - process it [11:44:32]req_shift_opened [11:44:32]FM_GetShiftState [11:44:32]SAM_PROTO_GetShiftState [11:44:32]wFMCommunicate request_size=4 [11:44:32]MH_SAM_APDU [11:44:32]CAPDU: 80 13 01 00 [11:44:32]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [11:44:32]Write i2c OK [11:44:32]MH_I2C_Read... [11:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:32]Read from MH i2c: E2 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 [11:44:32]MH_I2C_Read... [11:44:32]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 14 [11:44:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:44:32]wFMCommunicate OK [11:44:32]SAM_PROTO_GetShiftState done [11:44:32]FM_GetShiftState done [11:44:32]req_shift_opened done [11:44:32]requested_item shift.open_date is exist - process it [11:44:32]req_shift_open_date [11:44:32]req_shift_open_date done [11:44:32]produce_requested_data done [11:44:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67238,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:44:32]process_action_free close_receipt [11:44:32]json_value_free [11:44:32]json_value_free done [11:44:32]process_json_proto returns [11:44:32]Send response to host [11:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67238,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:44:32]free response buf [11:44:32]execute_script done [11:44:32]execute_script returns [11:44:32]free content buf [11:44:32]Sock 9.Close socket [11:44:32]Sock 9.Thread stoped [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:38]accept exits with 7 [11:46:38]New connection [11:46:38]New thread 3067030884 created [11:46:38]Thread 3067174244 joined [11:46:38]Waiting for new connection... [11:46:38] Sock 7.Parse request [11:46:38]Sock 7.Check first char [11:46:38]Sock 7.First char is OK [11:46:38]request: POST /json_proto HTTP/1.0 [11:46:38]Method: POST [11:46:38]URL: /json_proto [11:46:38]Method is POST - this is cgi request [11:46:38]url: /json_proto [11:46:38]query_string will be loaded in cgi processing [11:46:38]execute_cgi json_proto POST (null) [11:46:38]execute_cgi path=json_proto method=POST [11:46:38]POST find Content-Length [11:46:38]Host: 172.17.41.195:8080 [11:46:38]Content-Length: 801 [11:46:38]Content-Type: application/json [11:46:38] [11:46:38]POST finish read [11:46:38]Found Content-Length = 801 [11:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507201", "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" : 13.480, "sum" : 900.46, "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.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:38]execute_script... [11:46: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)507201", "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" : 13.480, "sum" : 900.46, "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.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:38]POST & json_proto [11:46:38]process_json_proto [11:46:38]json parsed OK: [11:46:38]protocol is kg_v1.0 [11:46:38]action value=close_receipt [11:46:38]process_action close_receipt [11:46:38]cmd_close_receipt [11:46:38]MH_GetDate [11:46:38]Write to MH i2c: F0 00 00 EA 03 DC [11:46:38]Write i2c OK [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 09 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 09 00 EA 03 00 9F A0 44 66 FC 21 6F 64 BE [11:46:38]GetLastDocTimeStamp 1715773469 [11:46:38]current date 1715773599 [11:46:38]FM_GetShiftState [11:46:38]SAM_PROTO_GetShiftState [11:46:38]wFMCommunicate request_size=4 [11:46:38]MH_SAM_APDU [11:46:38]CAPDU: 80 13 01 00 [11:46:38]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [11:46:38]Write i2c OK [11:46:38]MH_I2C_Read... [11:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:38]Read from MH i2c: E2 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 16 [11:46:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:46:38]wFMCommunicate OK [11:46:38]SAM_PROTO_GetShiftState done [11:46:38]FM_GetShiftState done [11:46:38]opened in 1715732471 [11:46:38]opened+sec_in_day 1715818871 [11:46:38]quantity*price = 90046 [11:46:38]sum+1 = 90047 [11:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.46 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.46 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 57 15.05.2024 11:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67239 ФПД: 108398051001462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67239&fm=108398051001462&tin=02508201610067®Number=0000000000091845&sum=90046 [11:46:39]StoreToDocumentArchive [11:46:39]shift 356 fd 67239 [11:46:39]save to /storage/0356/doc_00067239 [11:46:39]save last doc name /storage/0356/doc_00067239 to /storage/kkm_last_doc_name [11:46:39]save OK [11:46:39]Clear old archive folders... [11:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:39]tlvbuf is 00B39FF0 [11:46:39]SAM_PROTO_ClearQueue [11:46:39]wFMCommunicate request_size=4 [11:46:39]MH_SAM_APDU [11:46:39]CAPDU: 80 09 00 00 [11:46:39]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:39]Read from MH i2c: E2 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [11:46:39]RAPDU: 90 00 [11:46:39]wFMCommunicate OK [11:46:39]SAM_PROTO_ClearQueue done [11:46:39]KKMCreateOFDPacket [11:46:39]OFDProtocolAddRootSTLVToBuf [11:46:39]FM_MakeSignedData [11:46:39]FM_MakeSignedData [11:46:39]SAM_PROTO_SignData [11:46:39]wFMCommunicate request_size=4 [11:46:39]MH_SAM_APDU [11:46:39]CAPDU: 80 0D 01 02 [11:46:39]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:39]Read from MH i2c: E2 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [11:46:39]RAPDU: 90 00 [11:46:39]wFMCommunicate OK [11:46:39]wFMCommunicate request_size=255 [11:46:39]MH_SAM_APDU [11:46: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 A8 34 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BE 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9F A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 06 01 00 35 04 06 00 62 [11:46:39]Write to MH i2c: E2 02 01 FA 03 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 A8 34 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BE 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9F A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 06 01 00 35 04 06 00 62 00 00 22 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]wFMCommunicate request_size=10 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 0D 02 02 05 96 63 53 04 76 [11:46:40]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 96 63 53 04 76 00 00 48 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 0D 03 02 [11:46:40]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0B 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0B 00 FC 03 00 73 B4 FB D2 A1 E0 C6 86 90 00 3C [11:46:40]RAPDU: 73 B4 FB D2 A1 E0 C6 86 90 00 [11:46:40]wFMCommunicate OK [11:46:40]SAM_PROTO_SignData done [11:46:40]FM_MakeSignedData done [11:46:40]CreateOFDProtocolMessage [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 11 00 00 [11:46:40]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 17 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [11:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:46:40]wFMCommunicate OK [11:46:40]CreateOFDProtocolMessage done [11:46:40]OFDSenderStorePacket 67239 [11:46:40]StoreOFDPacket docnum=67239 [11:46: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 4D DF 07 01 25 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 A8 34 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BE 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9F A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 06 01 00 35 04 06 00 62 96 63 53 04 76 73 B4 FB D2 A1 E0 C6 86 [11:46:40]CheckFolder [11:46:40]dirname=/storage/ofd_packets [11:46:40]CheckFolder done [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00067239 [11:46:40]NVStorageSaveData ofd_packets/00067239 [11:46:40]File name is /storage/ofd_packets/00067239 [11:46:40]Write 301 bytes [11:46:40]NVStorageSaveData done [11:46:40]OFDSenderStorePacket done [11:46:40]KKMCreateOFDPacket done [11:46:40]NVStorageSaveData kkm_last_timestamp [11:46:40]File name is /storage/kkm_last_timestamp [11:46:40]Write 4 bytes [11:46:40]NVStorageSaveData done [11:46:40]ExternCall_PrintAddStr [11:46:40]wPrintStart [11:46:40]Write to MH i2c: 01 00 00 FE 03 01 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [11:46:40]RasterBufferAndPrint [11:46:40]line Счет N : (1)507201 [11:46:40]line ИНН: 02508201610067 [11:46:40]line Контрольно-Кассовый Чек [11:46:40]line ПРОДАЖА [11:46:40]line ТРК (МРК, ГНК) : 13 [11:46:40]line Товар: 2710124130 [11:46:40]line Аи-92-К-5 [11:46:40]line 13.480 * 66.80 [11:46:40]line = 900.46 [11:46:40]line НДС 12% НСП 1% [11:46:40]line > о реализуемом товаре [11:46:40]line ИТОГО: 900.46 [11:46:40]line НСП 1% : 7.97 [11:46:40]line НДС 12% : 95.62 [11:46:40]line Наличными: 0.00 [11:46:40]line Безнал.: 900.46 [11:46:40]line Место: АЗС № 91 "Партнер Нефть" [11:46:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:46:40]line СНО: Общий режим [11:46:40]line Чек 57 15.05.2024 11:46 [11:46:40]line Смена: 356 ФФД: 1.0 [11:46:40]line ЗНМ: 0300000119 [11:46:40]line РНМ: 0000000000091845 [11:46:40]line Версия ККМ: 001 [11:46:40]line Платежная система: O! деньги [11:46:40]line ФМ: 0000000000871829 [11:46:40]line ФД: 67239 [11:46:40]line ФПД: 108398051001462 [11:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T114639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67239&fm=108398051001462&tin=02508201610067®Number=0000000000091845&sum=90046 [11:46:40]OFD Sender: Processing packet 67239 [packets to send 35, broken 34] [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00067239 [11:46:40]OFD Sender: To server: pG, [11:46:40]CommunicateWithHost lk.salyk.kg:30040 [11:46:40]ConnectInit lk.salyk.kg [11:46:40]written 0, free lines is 4095 [11:46:40]Connected sock=10 [11:46: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 4D DF 07 01 25 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 A8 34 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BE 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BE 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9F A0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A7 06 01 00 35 04 06 00 62 96 63 53 04 76 73 B4 FB D2 A1 E0 C6 86 [11:46: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 CD DD 47 00 46 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 A7 06 01 00 F4 03 04 00 7C 48 44 66 B6 04 01 00 00 0F 88 93 BA B1 55 68 1C [11:46:40]CommunicateWithHost err = 0 [11:46:40]CheckOFDResponse [11:46:40]1017 (14) - 77093643461234 [11:46:40]1041 (16) - 0000000000871829 [11:46:40]1040 (4) - 67239 [11:46:40]1012 (4) - 15.05.2024 05:30 [11:46:40]1206 (1) - 0 [11:46:40]OFD Sender: Remove packet 67239 [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00067239 [11:46:40]NVStorageDeleteData [11:46:41]Write to MH i2c: 01 00 00 27 04 2B [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 D8 0C 16 [11:46:41]RasterBufferAndPrint [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]line [11:46:41]written 0, free lines is 3296 [11:46:41]MH_Cut [11:46:41]Write to MH i2c: D1 01 00 2E 04 01 04 [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 01 00 [11:46:41]MH_I2C_Read... [11:46:41]Read from MH i2c: D1 01 00 2E 04 00 03 [11:46:41]Write to MH i2c: 01 00 00 2F 04 33 [11:46:41]Write i2c OK [11:46:41]MH_I2C_Read... [11:46:41]OFD Sender: No OFD packet to send [11:46:41]*** Cut start [11:46:41]*** Purtial cut [11:46:41]*** CUTSNS_PIN = 0 [11:46:42]*** Stage 1: CUTSNS_PIN = 1 [11:46:43]Read from MH i2c: 01 [11:46:43]MH_I2C_Read... [11:46:43]*** Stop cut motor [11:46:43]*** Cut end [11:46:43]Read from MH i2c: 01 07 00 [11:46:43]MH_I2C_Read... [11:46:43]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 FF 0F 48 [11:46:43]process_action close_receipt done [11:46:43]requested_data is exist [11:46:43]produce_requested_data [11:46:43]requested_item fm.sn is exist - process it [11:46:43]wFMCommunicate request_size=4 [11:46:43]MH_SAM_APDU [11:46:43]CAPDU: 80 11 00 00 [11:46:43]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [11:46:43]Write i2c OK [11:46:43]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:44]Read from MH i2c: E2 17 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 17 00 30 04 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:46: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:46:44]wFMCommunicate OK [11:46:44]requested_item fd.num is exist - process it [11:46:44]SAM_PROTO_GetFieldsCounters [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 13 00 00 [11:46:44]Write to MH i2c: E2 08 00 31 04 80 13 00 00 00 00 00 00 B1 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 62 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 62 00 31 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 A7 06 01 00 0E 04 04 00 64 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 95 [11:46: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 A7 06 01 00 0E 04 04 00 64 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:46:44]wFMCommunicate OK [11:46:44]SAM_PROTO_GetFieldsCounters done [11:46:44]requested_item shift.num is exist - process it [11:46:44]requested_item shift.opened is exist - process it [11:46:44]req_shift_opened [11:46:44]FM_GetShiftState [11:46:44]SAM_PROTO_GetShiftState [11:46:44]wFMCommunicate request_size=4 [11:46:44]MH_SAM_APDU [11:46:44]CAPDU: 80 13 01 00 [11:46:44]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [11:46:44]Write i2c OK [11:46:44]MH_I2C_Read... [11:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:44]Read from MH i2c: E2 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 0E 00 [11:46:44]MH_I2C_Read... [11:46:44]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5E [11:46:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:46:44]wFMCommunicate OK [11:46:44]SAM_PROTO_GetShiftState done [11:46:44]FM_GetShiftState done [11:46:44]req_shift_opened done [11:46:44]requested_item shift.open_date is exist - process it [11:46:44]req_shift_open_date [11:46:44]req_shift_open_date done [11:46:44]produce_requested_data done [11:46:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67239,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:46:44]process_action_free close_receipt [11:46:44]json_value_free [11:46:44]json_value_free done [11:46:44]process_json_proto returns [11:46:44]Send response to host [11:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67239,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:46:44]free response buf [11:46:44]execute_script done [11:46:44]execute_script returns [11:46:44]free content buf [11:46:44]Sock 7.Close socket [11:46:44]Sock 7.Thread stoped [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:46:59]accept exits with 9 [11:46:59]New connection [11:46:59]New thread 3067174244 created [11:46:59]Thread 3067030884 joined [11:46:59]Waiting for new connection... [11:46:59] Sock 9.Parse request [11:46:59]Sock 9.Check first char [11:46:59]Sock 9.First char is OK [11:46:59]request: POST /json_proto HTTP/1.0 [11:46:59]Method: POST [11:46:59]URL: /json_proto [11:46:59]Method is POST - this is cgi request [11:46:59]url: /json_proto [11:46:59]query_string will be loaded in cgi processing [11:46:59]execute_cgi json_proto POST (null) [11:46:59]execute_cgi path=json_proto method=POST [11:46:59]POST find Content-Length [11:46:59]Host: 172.17.41.195:8080 [11:46:59]Content-Length: 1209 [11:46:59]Content-Type: application/json [11:46:59] [11:46:59]POST finish read [11:46:59]Found Content-Length = 1209 [11:46:59]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)507202\u000A15.05.2024 11:29\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" ] } } [11:46:59]execute_script... [11:46:59]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)507202\u000A15.05.2024 11:29\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" ] } } [11:46:59]POST & json_proto [11:46:59]process_json_proto [11:46:59]json parsed OK: [11:46:59]protocol is kg_v1.0 [11:46:59]action value=print_text [11:46:59]process_action print_text [11:46:59]cmd_print_text [11:46:59]ExternCall_PrintAddStr [11:46:59]wPrintStart [11:46:59]Write to MH i2c: 01 00 00 33 04 37 [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 07 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [11:46:59]RasterBufferAndPrint [11:46:59]line *****ТОВАРНЫЙ ЧЕК***** [11:46:59]line АЗС-91 [11:46:59]line Партнер нефть [11:46:59]line 02508201610067 [11:46:59]line Кассир : Арстанбеков Н. [11:46:59]line Счет N : (1)507202 [11:46:59]line 15.05.2024 11:29 [11:46:59]line ПРОДАЖА [11:46:59]line ТРК (МРК, ГНК): 31 [11:46:59]line Вид ГСМ : 2710194210 [11:46:59]line ДТ-К-5 [11:46:59]line 20.090 x 74.70 [11:46:59]line ИТОГ: 1500.72 [11:46:59]line Тип оплаты: Талоны: Топливная Карта [11:46:59]line 02750 [11:46:59]line ______________________ [11:46:59]line (подпись) [11:46:59]written 0, free lines is 4095 [11:46:59]Write to MH i2c: 01 00 00 47 04 4B [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 07 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 10 0E 70 [11:46:59]RasterBufferAndPrint [11:46:59]line [11:46:59]line [11:46:59]line [11:46:59]line [11:46:59]line [11:46:59]written 0, free lines is 3601 [11:46:59]MH_Cut [11:46:59]Write to MH i2c: D1 01 00 4E 04 01 24 [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: D1 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: D1 01 00 [11:46:59]MH_I2C_Read... [11:46:59]Read from MH i2c: D1 01 00 4E 04 00 23 [11:46:59]Write to MH i2c: 01 00 00 4F 04 53 [11:46:59]Write i2c OK [11:46:59]MH_I2C_Read... [11:47:00]*** Cut start [11:47:00]*** Purtial cut [11:47:00]*** Stage 1: CUTSNS_PIN = 1 [11:47:00]Read from MH i2c: 01 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: 01 07 00 [11:47:00]MH_I2C_Read... [11:47:00]*** Stop cut motor [11:47:00]*** Cut end [11:47:00]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 FF 0F 68 [11:47:00]process_action print_text done [11:47:00]requested_data is exist [11:47:00]produce_requested_data [11:47:00]requested_item fm.sn is exist - process it [11:47:00]wFMCommunicate request_size=4 [11:47:00]MH_SAM_APDU [11:47:00]CAPDU: 80 11 00 00 [11:47:00]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [11:47:00]Write i2c OK [11:47:00]MH_I2C_Read... [11:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:00]Read from MH i2c: E2 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 17 00 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [11:47: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:47:00]wFMCommunicate OK [11:47:00]requested_item fd.num is exist - process it [11:47:00]SAM_PROTO_GetFieldsCounters [11:47:00]wFMCommunicate request_size=4 [11:47:00]MH_SAM_APDU [11:47:00]CAPDU: 80 13 00 00 [11:47:00]Write to MH i2c: E2 08 00 51 04 80 13 00 00 00 00 00 00 D1 [11:47:00]Write i2c OK [11:47:00]MH_I2C_Read... [11:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:00]Read from MH i2c: E2 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 62 00 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 62 00 51 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 A7 06 01 00 0E 04 04 00 64 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 B5 [11:47: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 A7 06 01 00 0E 04 04 00 64 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:47:00]wFMCommunicate OK [11:47:00]SAM_PROTO_GetFieldsCounters done [11:47:00]requested_item shift.num is exist - process it [11:47:00]requested_item shift.opened is exist - process it [11:47:00]req_shift_opened [11:47:00]FM_GetShiftState [11:47:00]SAM_PROTO_GetShiftState [11:47:00]wFMCommunicate request_size=4 [11:47:00]MH_SAM_APDU [11:47:00]CAPDU: 80 13 01 00 [11:47:00]Write to MH i2c: E2 08 00 52 04 80 13 01 00 00 00 00 00 D3 [11:47:00]Write i2c OK [11:47:00]MH_I2C_Read... [11:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:00]Read from MH i2c: E2 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 0E 00 [11:47:00]MH_I2C_Read... [11:47:00]Read from MH i2c: E2 0E 00 52 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7E [11:47:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:47:00]wFMCommunicate OK [11:47:00]SAM_PROTO_GetShiftState done [11:47:00]FM_GetShiftState done [11:47:00]req_shift_opened done [11:47:00]requested_item shift.open_date is exist - process it [11:47:00]req_shift_open_date [11:47:00]req_shift_open_date done [11:47:00]produce_requested_data done [11:47:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67239,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:47:00]process_action_free print_text [11:47:00]json_value_free [11:47:00]json_value_free done [11:47:00]process_json_proto returns [11:47:00]Send response to host [11:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67239,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:47:00]free response buf [11:47:00]execute_script done [11:47:00]execute_script returns [11:47:00]free content buf [11:47:00]Sock 9.Close socket [11:47:00]Sock 9.Thread stoped [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]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:29]accept exits with 7 [11:58:29]New connection [11:58:29]New thread 3067030884 created [11:58:29]Thread 3067174244 joined [11:58:29]Waiting for new connection... [11:58:29] Sock 7.Parse request [11:58:29]Sock 7.Check first char [11:58:29]Sock 7.First char is OK [11:58:29]request: POST /json_proto HTTP/1.0 [11:58:29]Method: POST [11:58:29]URL: /json_proto [11:58:29]Method is POST - this is cgi request [11:58:29]url: /json_proto [11:58:29]query_string will be loaded in cgi processing [11:58:29]execute_cgi json_proto POST (null) [11:58:29]execute_cgi path=json_proto method=POST [11:58:29]POST find Content-Length [11:58:29]Host: 172.17.41.195:8080 [11:58:29]Content-Length: 812 [11:58:29]Content-Type: application/json [11:58:29] [11:58:29]POST finish read [11:58:29]Found Content-Length = 812 [11:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507203", "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" ] } } [11:58:29]execute_script... [11:58: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)507203", "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" ] } } [11:58:29]POST & json_proto [11:58:29]process_json_proto [11:58:29]json parsed OK: [11:58:29]protocol is kg_v1.0 [11:58:29]action value=close_receipt [11:58:29]process_action close_receipt [11:58:29]cmd_close_receipt [11:58:29]MH_GetDate [11:58:29]Write to MH i2c: F0 00 00 53 04 46 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: F0 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: F0 09 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: F0 09 00 53 04 00 66 A3 44 66 FC 21 6F 64 F2 [11:58:29]GetLastDocTimeStamp 1715773599 [11:58:29]current date 1715774310 [11:58:29]FM_GetShiftState [11:58:29]SAM_PROTO_GetShiftState [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 13 01 00 [11:58:29]Write to MH i2c: E2 08 00 54 04 80 13 01 00 00 00 00 00 D5 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:30]Read from MH i2c: E2 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: E2 0E 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: E2 0E 00 54 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 80 [11:58:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:58:30]wFMCommunicate OK [11:58:30]SAM_PROTO_GetShiftState done [11:58:30]FM_GetShiftState done [11:58:30]opened in 1715732471 [11:58:30]opened+sec_in_day 1715818871 [11:58:30]quantity*price = 100005 [11:58:30]sum+1 = 100006 [11:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 58 15.05.2024 11:58 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67240 ФПД: 219192375406577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T115830&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67240&fm=219192375406577&tin=02508201610067®Number=0000000000091845&sum=100005 [11:58:31]StoreToDocumentArchive [11:58:31]shift 356 fd 67240 [11:58:31]save to /storage/0356/doc_00067240 [11:58:31]save last doc name /storage/0356/doc_00067240 to /storage/kkm_last_doc_name [11:58:31]save OK [11:58:31]Clear old archive folders... [11:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:58:31]tlvbuf is 00B21080 [11:58:31]SAM_PROTO_ClearQueue [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 09 00 00 [11:58:31]Write to MH i2c: E2 08 00 61 04 80 09 00 00 00 00 00 00 D7 [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [11:58:31]RAPDU: 90 00 [11:58:31]wFMCommunicate OK [11:58:31]SAM_PROTO_ClearQueue done [11:58:31]KKMCreateOFDPacket [11:58:31]OFDProtocolAddRootSTLVToBuf [11:58:31]FM_MakeSignedData [11:58:31]FM_MakeSignedData [11:58:31]SAM_PROTO_SignData [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 0D 01 02 [11:58:31]Write to MH i2c: E2 08 00 62 04 80 0D 01 02 00 00 00 00 DF [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [11:58:31]RAPDU: 90 00 [11:58:31]wFMCommunicate OK [11:58:31]wFMCommunicate request_size=255 [11:58:31]MH_SAM_APDU [11:58:31]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 3A 00 00 00 F4 03 04 00 66 A3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 06 01 00 35 04 06 00 [11:58:31]Write to MH i2c: E2 02 01 63 04 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 3A 00 00 00 F4 03 04 00 66 A3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 06 01 00 35 04 06 00 00 00 27 [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [11:58:31]RAPDU: 90 00 [11:58:31]wFMCommunicate OK [11:58:31]wFMCommunicate request_size=11 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 0D 02 02 06 C7 5A B3 AC 6F F1 [11:58:31]Write to MH i2c: E2 0E 00 64 04 80 0D 02 02 06 00 C7 5A B3 AC 6F F1 00 00 CE [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [11:58:31]RAPDU: 90 00 [11:58:31]wFMCommunicate OK [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 0D 03 02 [11:58:31]Write to MH i2c: E2 08 00 65 04 80 0D 03 02 00 00 00 00 E4 [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 0B 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 0B 00 65 04 00 FD 47 B8 B1 78 2B EF D4 90 00 F8 [11:58:31]RAPDU: FD 47 B8 B1 78 2B EF D4 90 00 [11:58:31]wFMCommunicate OK [11:58:31]SAM_PROTO_SignData done [11:58:31]FM_MakeSignedData done [11:58:31]CreateOFDProtocolMessage [11:58:31]wFMCommunicate request_size=4 [11:58:31]MH_SAM_APDU [11:58:31]CAPDU: 80 11 00 00 [11:58:31]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:31]Read from MH i2c: E2 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 17 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [11:58: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:58:31]wFMCommunicate OK [11:58:31]CreateOFDProtocolMessage done [11:58:31]OFDSenderStorePacket 67240 [11:58:31]StoreOFDPacket docnum=67240 [11:58: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 10 01 00 00 17 3A 08 01 6B 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 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 3A 00 00 00 F4 03 04 00 66 A3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 06 01 00 35 04 06 00 C7 5A B3 AC 6F F1 FD 47 B8 B1 78 2B EF D4 [11:58:31]CheckFolder [11:58:31]dirname=/storage/ofd_packets [11:58:31]CheckFolder done [11:58:31]ProducePacketName [11:58:31]name=ofd_packets/00067240 [11:58:31]NVStorageSaveData ofd_packets/00067240 [11:58:31]File name is /storage/ofd_packets/00067240 [11:58:31]Write 302 bytes [11:58:31]NVStorageSaveData done [11:58:31]OFDSenderStorePacket done [11:58:31]KKMCreateOFDPacket done [11:58:31]NVStorageSaveData kkm_last_timestamp [11:58:31]File name is /storage/kkm_last_timestamp [11:58:31]Write 4 bytes [11:58:31]NVStorageSaveData done [11:58:31]ExternCall_PrintAddStr [11:58:31]wPrintStart [11:58:31]Write to MH i2c: 01 00 00 67 04 6B [11:58:31]Write i2c OK [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: 01 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: 01 07 00 [11:58:31]MH_I2C_Read... [11:58:31]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [11:58:31]RasterBufferAndPrint [11:58:31]line Счет N : (1)507203 [11:58:31]line ИНН: 02508201610067 [11:58:31]line Контрольно-Кассовый Чек [11:58:31]line ПРОДАЖА [11:58:31]line ТРК (МРК, ГНК) : 32 [11:58:31]line Товар: 2710124130 [11:58:31]line Super-92-К-5 [11:58:31]line 14.750 * 67.80 [11:58:31]line = 1000.05 [11:58:31]line НДС 12% НСП 1% [11:58:31]line > о реализуемом товаре [11:58:31]line ИТОГО: 1000.05 [11:58:31]line НСП 1% : 8.85 [11:58:31]line НДС 12% : 106.20 [11:58:31]line Наличными: 0.00 [11:58:31]line Безнал.: 1000.05 [11:58:31]line Место: АЗС № 91 "Партнер Нефть" [11:58:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:58:31]line СНО: Общий режим [11:58:31]line Чек 58 15.05.2024 11:58 [11:58:31]line Смена: 356 ФФД: 1.0 [11:58:31]line ЗНМ: 0300000119 [11:58:31]line РНМ: 0000000000091845 [11:58:31]line Версия ККМ: 001 [11:58:31]line Платежная система: Бакай Банк [11:58:31]line ФМ: 0000000000871829 [11:58:31]line ФД: 67240 [11:58:31]line ФПД: 219192375406577 [11:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T115830&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67240&fm=219192375406577&tin=02508201610067®Number=0000000000091845&sum=100005 [11:58:32]OFD Sender: Processing packet 67240 [packets to send 35, broken 34] [11:58:32]ProducePacketName [11:58:32]name=ofd_packets/00067240 [11:58:32]OFD Sender: To server: pG, [11:58:32]CommunicateWithHost lk.salyk.kg:30040 [11:58:32]ConnectInit lk.salyk.kg [11:58:32]written 0, free lines is 4095 [11:58:32]Connected sock=10 [11:58: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 10 01 00 00 17 3A 08 01 6B 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 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 3A 00 00 00 F4 03 04 00 66 A3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A8 06 01 00 35 04 06 00 C7 5A B3 AC 6F F1 FD 47 B8 B1 78 2B EF D4 [11:58: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 0A F2 47 00 D4 4B 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 A8 06 01 00 F4 03 04 00 43 4B 44 66 B6 04 01 00 00 18 9D 87 08 F6 7A 2D 61 [11:58:32]CommunicateWithHost err = 0 [11:58:32]CheckOFDResponse [11:58:32]1017 (14) - 77093643461234 [11:58:32]1041 (16) - 0000000000871829 [11:58:32]1040 (4) - 67240 [11:58:32]1012 (4) - 15.05.2024 05:42 [11:58:32]1206 (1) - 0 [11:58:32]OFD Sender: Remove packet 67240 [11:58:32]ProducePacketName [11:58:32]name=ofd_packets/00067240 [11:58:32]NVStorageDeleteData [11:58:32]Write to MH i2c: 01 00 00 90 04 94 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 EB 0C 92 [11:58:32]RasterBufferAndPrint [11:58:32]line [11:58:32]line [11:58:32]line [11:58:32]line [11:58:32]line [11:58:32]written 0, free lines is 3313 [11:58:32]MH_Cut [11:58:32]Write to MH i2c: D1 01 00 97 04 01 6D [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: D1 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: D1 01 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: D1 01 00 97 04 00 6C [11:58:32]Write to MH i2c: 01 00 00 98 04 9C [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]OFD Sender: No OFD packet to send [11:58:33]*** Cut start [11:58:33]*** Purtial cut [11:58:33]*** CUTSNS_PIN = 0 [11:58:33]*** Stage 1: CUTSNS_PIN = 1 [11:58:35]Read from MH i2c: 01 [11:58:35]MH_I2C_Read... [11:58:35]*** Stop cut motor [11:58:35]*** Cut end [11:58:35]Read from MH i2c: 01 07 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 FF 0F B1 [11:58:35]process_action close_receipt done [11:58:35]requested_data is exist [11:58:35]produce_requested_data [11:58:35]requested_item fm.sn is exist - process it [11:58:35]wFMCommunicate request_size=4 [11:58:35]MH_SAM_APDU [11:58:35]CAPDU: 80 11 00 00 [11:58:35]Write to MH i2c: E2 08 00 99 04 80 11 00 00 00 00 00 00 17 [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 17 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 17 00 99 04 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:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:58:35]wFMCommunicate OK [11:58:35]requested_item fd.num is exist - process it [11:58:35]SAM_PROTO_GetFieldsCounters [11:58:35]wFMCommunicate request_size=4 [11:58:35]MH_SAM_APDU [11:58:35]CAPDU: 80 13 00 00 [11:58:35]Write to MH i2c: E2 08 00 9A 04 80 13 00 00 00 00 00 00 1A [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 62 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 62 00 9A 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 A8 06 01 00 0E 04 04 00 64 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 02 [11:58: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 A8 06 01 00 0E 04 04 00 64 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 [11:58:35]wFMCommunicate OK [11:58:35]SAM_PROTO_GetFieldsCounters done [11:58:35]requested_item shift.num is exist - process it [11:58:35]requested_item shift.opened is exist - process it [11:58:35]req_shift_opened [11:58:35]FM_GetShiftState [11:58:35]SAM_PROTO_GetShiftState [11:58:35]wFMCommunicate request_size=4 [11:58:35]MH_SAM_APDU [11:58:35]CAPDU: 80 13 01 00 [11:58:35]Write to MH i2c: E2 08 00 9B 04 80 13 01 00 00 00 00 00 1C [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0E 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0E 00 9B 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [11:58:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [11:58:35]wFMCommunicate OK [11:58:35]SAM_PROTO_GetShiftState done [11:58:35]FM_GetShiftState done [11:58:35]req_shift_opened done [11:58:35]requested_item shift.open_date is exist - process it [11:58:35]req_shift_open_date [11:58:35]req_shift_open_date done [11:58:35]produce_requested_data done [11:58:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67240,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [11:58:35]process_action_free close_receipt [11:58:35]json_value_free [11:58:35]json_value_free done [11:58:35]process_json_proto returns [11:58:35]Send response to host [11:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67240,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [11:58:35]free response buf [11:58:35]execute_script done [11:58:35]execute_script returns [11:58:35]free content buf [11:58:35]Sock 7.Close socket [11:58:35]Sock 7.Thread stoped [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:42]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:30]accept exits with 9 [12:09:30]New connection [12:09:30]New thread 3067174244 created [12:09:30]Thread 3067030884 joined [12:09:30]Waiting for new connection... [12:09:30] Sock 9.Parse request [12:09:30]Sock 9.Check first char [12:09:30]Sock 9.First char is OK [12:09:30]request: POST /json_proto HTTP/1.0 [12:09:30]Method: POST [12:09:30]URL: /json_proto [12:09:30]Method is POST - this is cgi request [12:09:30]url: /json_proto [12:09:30]query_string will be loaded in cgi processing [12:09:30]execute_cgi json_proto POST (null) [12:09:30]execute_cgi path=json_proto method=POST [12:09:30]POST find Content-Length [12:09:30]Host: 172.17.41.195:8080 [12:09:30]Content-Length: 801 [12:09:30]Content-Type: application/json [12:09:30] [12:09:30]POST finish read [12:09:30]Found Content-Length = 801 [12:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507205", "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" : 127.180, "sum" : 9500.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" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:30]execute_script... [12:09: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)507205", "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" : 127.180, "sum" : 9500.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" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:30]POST & json_proto [12:09:30]process_json_proto [12:09:30]json parsed OK: [12:09:30]protocol is kg_v1.0 [12:09:30]action value=close_receipt [12:09:30]process_action close_receipt [12:09:30]cmd_close_receipt [12:09:30]MH_GetDate [12:09:30]Write to MH i2c: F0 00 00 9C 04 8F [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: F0 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: F0 09 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: F0 09 00 9C 04 00 FB A5 44 66 FC 21 6F 64 D2 [12:09:30]GetLastDocTimeStamp 1715774310 [12:09:30]current date 1715774971 [12:09:30]FM_GetShiftState [12:09:30]SAM_PROTO_GetShiftState [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 13 01 00 [12:09:30]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [12:09:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_GetShiftState done [12:09:30]FM_GetShiftState done [12:09:30]opened in 1715732471 [12:09:30]opened+sec_in_day 1715818871 [12:09:30]quantity*price = 950034 [12:09:30]sum+1 = 950036 [12:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.35 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 0.00 Безнал.: 9500.35 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 59 15.05.2024 12:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67241 ФПД: 108606952029436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T120931&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67241&fm=108606952029436&tin=02508201610067®Number=0000000000091845&sum=950035 [12:09:31]StoreToDocumentArchive [12:09:31]shift 356 fd 67241 [12:09:31]save to /storage/0356/doc_00067241 [12:09:31]save last doc name /storage/0356/doc_00067241 to /storage/kkm_last_doc_name [12:09:31]save OK [12:09:31]Clear old archive folders... [12:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:31]tlvbuf is 00B09A10 [12:09:31]SAM_PROTO_ClearQueue [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 09 00 00 [12:09:31]Write to MH i2c: E2 08 00 AA 04 80 09 00 00 00 00 00 00 20 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:32]Read from MH i2c: E2 03 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 AA 04 00 90 00 22 [12:09:32]RAPDU: 90 00 [12:09:32]wFMCommunicate OK [12:09:32]SAM_PROTO_ClearQueue done [12:09:32]KKMCreateOFDPacket [12:09:32]OFDProtocolAddRootSTLVToBuf [12:09:32]FM_MakeSignedData [12:09:32]FM_MakeSignedData [12:09:32]SAM_PROTO_SignData [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 0D 01 02 [12:09:32]Write to MH i2c: E2 08 00 AB 04 80 0D 01 02 00 00 00 00 28 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 AB 04 00 90 00 23 [12:09:32]RAPDU: 90 00 [12:09:32]wFMCommunicate OK [12:09:32]wFMCommunicate request_size=255 [12:09:32]MH_SAM_APDU [12:09: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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FB A5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 06 01 00 35 04 06 00 62 C7 06 CB [12:09:32]Write to MH i2c: E2 02 01 AC 04 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FB A5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 06 01 00 35 04 06 00 62 C7 06 CB 00 00 A1 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [12:09:32]RAPDU: 90 00 [12:09:32]wFMCommunicate OK [12:09:32]wFMCommunicate request_size=7 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 0D 02 02 02 BC FC [12:09:32]Write to MH i2c: E2 0A 00 AD 04 80 0D 02 02 02 00 BC FC 00 00 E7 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [12:09:32]RAPDU: 90 00 [12:09:32]wFMCommunicate OK [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 0D 03 02 [12:09:32]Write to MH i2c: E2 08 00 AE 04 80 0D 03 02 00 00 00 00 2D [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 0B 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 0B 00 AE 04 00 5E 93 58 D9 35 CA C3 AC 90 00 BE [12:09:32]RAPDU: 5E 93 58 D9 35 CA C3 AC 90 00 [12:09:32]wFMCommunicate OK [12:09:32]SAM_PROTO_SignData done [12:09:32]FM_MakeSignedData done [12:09:32]CreateOFDProtocolMessage [12:09:32]wFMCommunicate request_size=4 [12:09:32]MH_SAM_APDU [12:09:32]CAPDU: 80 11 00 00 [12:09:32]Write to MH i2c: E2 08 00 AF 04 80 11 00 00 00 00 00 00 2D [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:32]Read from MH i2c: E2 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 17 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: E2 17 00 AF 04 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:09:32]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:32]wFMCommunicate OK [12:09:32]CreateOFDProtocolMessage done [12:09:32]OFDSenderStorePacket 67241 [12:09:32]StoreOFDPacket docnum=67241 [12:09: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 33 F4 04 01 76 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FB A5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 06 01 00 35 04 06 00 62 C7 06 CB BC FC 5E 93 58 D9 35 CA C3 AC [12:09:32]CheckFolder [12:09:32]dirname=/storage/ofd_packets [12:09:32]CheckFolder done [12:09:32]ProducePacketName [12:09:32]name=ofd_packets/00067241 [12:09:32]NVStorageSaveData ofd_packets/00067241 [12:09:32]File name is /storage/ofd_packets/00067241 [12:09:32]Write 298 bytes [12:09:32]NVStorageSaveData done [12:09:32]OFDSenderStorePacket done [12:09:32]KKMCreateOFDPacket done [12:09:32]NVStorageSaveData kkm_last_timestamp [12:09:32]File name is /storage/kkm_last_timestamp [12:09:32]Write 4 bytes [12:09:32]NVStorageSaveData done [12:09:32]ExternCall_PrintAddStr [12:09:32]wPrintStart [12:09:32]Write to MH i2c: 01 00 00 B0 04 B4 [12:09:32]Write i2c OK [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: 01 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: 01 07 00 [12:09:32]MH_I2C_Read... [12:09:32]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [12:09:32]RasterBufferAndPrint [12:09:32]line Счет N : (1)507205 [12:09:32]line ИНН: 02508201610067 [12:09:32]line Контрольно-Кассовый Чек [12:09:32]line ПРОДАЖА [12:09:32]line ТРК (МРК, ГНК) : 21 [12:09:32]line Товар: 2710194210 [12:09:32]line ДТ-К-5 [12:09:32]line 127.180 * 74.70 [12:09:32]line = 9500.35 [12:09:32]line НДС 12% НСП 1% [12:09:32]line > о реализуемом товаре [12:09:32]line ИТОГО: 9500.35 [12:09:32]line НСП 1% : 84.07 [12:09:32]line НДС 12% : 1008.89 [12:09:32]line Наличными: 0.00 [12:09:32]line Безнал.: 9500.35 [12:09:32]line Место: АЗС № 91 "Партнер Нефть" [12:09:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:09:32]line СНО: Общий режим [12:09:32]line Чек 59 15.05.2024 12:09 [12:09:32]line Смена: 356 ФФД: 1.0 [12:09:32]line ЗНМ: 0300000119 [12:09:32]line РНМ: 0000000000091845 [12:09:32]line Версия ККМ: 001 [12:09:32]line Платежная система: O! деньги [12:09:32]line ФМ: 0000000000871829 [12:09:32]line ФД: 67241 [12:09:32]line ФПД: 108606952029436 [12:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T120931&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67241&fm=108606952029436&tin=02508201610067®Number=0000000000091845&sum=950035 [12:09:32]OFD Sender: Processing packet 67241 [packets to send 35, broken 34] [12:09:32]ProducePacketName [12:09:32]name=ofd_packets/00067241 [12:09:32]OFD Sender: To server: pG, [12:09:32]CommunicateWithHost lk.salyk.kg:30040 [12:09:32]ConnectInit lk.salyk.kg [12:09:32]written 0, free lines is 4095 [12:09:32]Connected sock=10 [12:09: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 33 F4 04 01 76 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 FB A5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A9 06 01 00 35 04 06 00 62 C7 06 CB BC FC 5E 93 58 D9 35 CA C3 AC [12:09: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 36 58 47 00 A3 88 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 A9 06 01 00 F4 03 04 00 D8 4D 44 66 B6 04 01 00 00 8B AB B4 17 A7 C3 06 5F [12:09:33]CommunicateWithHost err = 0 [12:09:33]CheckOFDResponse [12:09:33]1017 (14) - 77093643461234 [12:09:33]1041 (16) - 0000000000871829 [12:09:33]1040 (4) - 67241 [12:09:33]1012 (4) - 15.05.2024 05:53 [12:09:33]1206 (1) - 0 [12:09:33]OFD Sender: Remove packet 67241 [12:09:33]ProducePacketName [12:09:33]name=ofd_packets/00067241 [12:09:33]NVStorageDeleteData [12:09:33]Write to MH i2c: 01 00 00 D9 04 DD [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: 01 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: 01 07 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 E6 0C D6 [12:09:33]RasterBufferAndPrint [12:09:33]line [12:09:33]line [12:09:33]line [12:09:33]line [12:09:33]line [12:09:33]written 0, free lines is 3310 [12:09:33]MH_Cut [12:09:33]Write to MH i2c: D1 01 00 E0 04 01 B6 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: D1 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: D1 01 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: D1 01 00 E0 04 00 B5 [12:09:33]Write to MH i2c: 01 00 00 E1 04 E5 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]OFD Sender: No OFD packet to send [12:09:34]*** Cut start [12:09:34]*** Purtial cut [12:09:34]*** Stage 1: CUTSNS_PIN = 1 [12:09:34]Read from MH i2c: 01 [12:09:34]MH_I2C_Read... [12:09:34]*** Stop cut motor [12:09:34]*** Cut end [12:09:34]Read from MH i2c: 01 07 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 FF 0F FA [12:09:34]process_action close_receipt done [12:09:34]requested_data is exist [12:09:34]produce_requested_data [12:09:34]requested_item fm.sn is exist - process it [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 11 00 00 [12:09:34]Write to MH i2c: E2 08 00 E2 04 80 11 00 00 00 00 00 00 60 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 E2 04 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:09:34]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:34]wFMCommunicate OK [12:09:34]requested_item fd.num is exist - process it [12:09:34]SAM_PROTO_GetFieldsCounters [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 13 00 00 [12:09:34]Write to MH i2c: E2 08 00 E3 04 80 13 00 00 00 00 00 00 63 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 62 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 62 00 E3 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 A9 06 01 00 0E 04 04 00 64 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 4F [12:09: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 A9 06 01 00 0E 04 04 00 64 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:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_GetFieldsCounters done [12:09:34]requested_item shift.num is exist - process it [12:09:34]requested_item shift.opened is exist - process it [12:09:34]req_shift_opened [12:09:34]FM_GetShiftState [12:09:34]SAM_PROTO_GetShiftState [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 13 01 00 [12:09:34]Write to MH i2c: E2 08 00 E4 04 80 13 01 00 00 00 00 00 65 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0E 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0E 00 E4 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 10 [12:09:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_GetShiftState done [12:09:34]FM_GetShiftState done [12:09:34]req_shift_opened done [12:09:34]requested_item shift.open_date is exist - process it [12:09:34]req_shift_open_date [12:09:34]req_shift_open_date done [12:09:34]produce_requested_data done [12:09:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67241,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:09:34]process_action_free close_receipt [12:09:34]json_value_free [12:09:34]json_value_free done [12:09:34]process_json_proto returns [12:09:34]Send response to host [12:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67241,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:09:34]free response buf [12:09:34]execute_script done [12:09:34]execute_script returns [12:09:34]free content buf [12:09:34]Sock 9.Close socket [12:09:34]Sock 9.Thread stoped [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]accept exits with 7 [12:10:58]New connection [12:10:58]New thread 3067030884 created [12:10:58]Thread 3067174244 joined [12:10:58]Waiting for new connection... [12:10:58] Sock 7.Parse request [12:10:58]Sock 7.Check first char [12:10:58]Sock 7.First char is OK [12:10:58]request: POST /json_proto HTTP/1.0 [12:10:58]Method: POST [12:10:58]URL: /json_proto [12:10:58]Method is POST - this is cgi request [12:10:58]url: /json_proto [12:10:58]query_string will be loaded in cgi processing [12:10:58]execute_cgi json_proto POST (null) [12:10:58]execute_cgi path=json_proto method=POST [12:10:58]POST find Content-Length [12:10:58]Host: 172.17.41.195:8080 [12:10:58]Content-Length: 801 [12:10:58]Content-Type: application/json [12:10:58] [12:10:58]POST finish read [12:10:58]Found Content-Length = 801 [12:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507204", "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" : 127.180, "sum" : 9500.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" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:58]execute_script... [12:10: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)507204", "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" : 127.180, "sum" : 9500.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" : 9500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:58]POST & json_proto [12:10:58]process_json_proto [12:10:58]json parsed OK: [12:10:58]protocol is kg_v1.0 [12:10:58]action value=close_receipt [12:10:58]process_action close_receipt [12:10:58]cmd_close_receipt [12:10:58]MH_GetDate [12:10:58]Write to MH i2c: F0 00 00 E5 04 D8 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 09 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: F0 09 00 E5 04 00 53 A6 44 66 FC 21 6F 64 74 [12:10:58]GetLastDocTimeStamp 1715774971 [12:10:58]current date 1715775059 [12:10:58]FM_GetShiftState [12:10:58]SAM_PROTO_GetShiftState [12:10:58]wFMCommunicate request_size=4 [12:10:58]MH_SAM_APDU [12:10:58]CAPDU: 80 13 01 00 [12:10:58]Write to MH i2c: E2 08 00 E6 04 80 13 01 00 00 00 00 00 67 [12:10:58]Write i2c OK [12:10:58]MH_I2C_Read... [12:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:58]Read from MH i2c: E2 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0E 00 [12:10:58]MH_I2C_Read... [12:10:58]Read from MH i2c: E2 0E 00 E6 04 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [12:10:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:10:58]wFMCommunicate OK [12:10:58]SAM_PROTO_GetShiftState done [12:10:58]FM_GetShiftState done [12:10:58]opened in 1715732471 [12:10:58]opened+sec_in_day 1715818871 [12:10:58]quantity*price = 950034 [12:10:58]sum+1 = 950036 [12:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.35 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 0.00 Безнал.: 9500.35 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 60 15.05.2024 12:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67242 ФПД: 74489252669254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T121059&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67242&fm=74489252669254&tin=02508201610067®Number=0000000000091845&sum=950035 [12:10:59]StoreToDocumentArchive [12:10:59]shift 356 fd 67242 [12:10:59]save to /storage/0356/doc_00067242 [12:10:59]save last doc name /storage/0356/doc_00067242 to /storage/kkm_last_doc_name [12:10:59]save OK [12:10:59]Clear old archive folders... [12:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:10:59]tlvbuf is 00B3AC00 [12:10:59]SAM_PROTO_ClearQueue [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 09 00 00 [12:10:59]Write to MH i2c: E2 08 00 F3 04 80 09 00 00 00 00 00 00 69 [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 03 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 03 00 F3 04 00 90 00 6B [12:10:59]RAPDU: 90 00 [12:10:59]wFMCommunicate OK [12:10:59]SAM_PROTO_ClearQueue done [12:10:59]KKMCreateOFDPacket [12:10:59]OFDProtocolAddRootSTLVToBuf [12:10:59]FM_MakeSignedData [12:10:59]FM_MakeSignedData [12:10:59]SAM_PROTO_SignData [12:10:59]wFMCommunicate request_size=4 [12:10:59]MH_SAM_APDU [12:10:59]CAPDU: 80 0D 01 02 [12:10:59]Write to MH i2c: E2 08 00 F4 04 80 0D 01 02 00 00 00 00 71 [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:59]Read from MH i2c: E2 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 03 00 [12:10:59]MH_I2C_Read... [12:10:59]Read from MH i2c: E2 03 00 F4 04 00 90 00 6C [12:10:59]RAPDU: 90 00 [12:10:59]wFMCommunicate OK [12:10:59]wFMCommunicate request_size=255 [12:10:59]MH_SAM_APDU [12:10:59]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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 A6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 06 01 00 35 04 06 00 43 BF 61 71 [12:10:59]Write to MH i2c: E2 02 01 F5 04 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 A6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 06 01 00 35 04 06 00 43 BF 61 71 00 00 1F [12:10:59]Write i2c OK [12:10:59]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]wFMCommunicate request_size=7 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 02 02 02 E7 46 [12:11:00]Write to MH i2c: E2 0A 00 F6 04 80 0D 02 02 02 00 E7 46 00 00 A5 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [12:11:00]RAPDU: 90 00 [12:11:00]wFMCommunicate OK [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 0D 03 02 [12:11:00]Write to MH i2c: E2 08 00 F7 04 80 0D 03 02 00 00 00 00 76 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0B 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0B 00 F7 04 00 EB D3 E9 09 F7 9D 2A E4 90 00 C9 [12:11:00]RAPDU: EB D3 E9 09 F7 9D 2A E4 90 00 [12:11:00]wFMCommunicate OK [12:11:00]SAM_PROTO_SignData done [12:11:00]FM_MakeSignedData done [12:11:00]CreateOFDProtocolMessage [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 11 00 00 [12:11:00]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 17 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 17 00 F8 04 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:11: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:11:00]wFMCommunicate OK [12:11:00]CreateOFDProtocolMessage done [12:11:00]OFDSenderStorePacket 67242 [12:11:00]StoreOFDPacket docnum=67242 [12:11: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 0C 01 00 00 C3 79 04 01 92 4C 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 A6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 06 01 00 35 04 06 00 43 BF 61 71 E7 46 EB D3 E9 09 F7 9D 2A E4 [12:11:00]CheckFolder [12:11:00]dirname=/storage/ofd_packets [12:11:00]CheckFolder done [12:11:00]ProducePacketName [12:11:00]name=ofd_packets/00067242 [12:11:00]NVStorageSaveData ofd_packets/00067242 [12:11:00]File name is /storage/ofd_packets/00067242 [12:11:00]Write 298 bytes [12:11:00]NVStorageSaveData done [12:11:00]OFDSenderStorePacket done [12:11:00]KKMCreateOFDPacket done [12:11:00]NVStorageSaveData kkm_last_timestamp [12:11:00]File name is /storage/kkm_last_timestamp [12:11:00]Write 4 bytes [12:11:00]NVStorageSaveData done [12:11:00]ExternCall_PrintAddStr [12:11:00]wPrintStart [12:11:00]Write to MH i2c: 01 00 00 F9 04 FD [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 FF 0F 12 [12:11:00]RasterBufferAndPrint [12:11:00]line Счет N : (1)507204 [12:11:00]line ИНН: 02508201610067 [12:11:00]line Контрольно-Кассовый Чек [12:11:00]line ПРОДАЖА [12:11:00]line ТРК (МРК, ГНК) : 11 [12:11:00]line Товар: 2710194210 [12:11:00]line ДТ-К-5 [12:11:00]line 127.180 * 74.70 [12:11:00]line = 9500.35 [12:11:00]line НДС 12% НСП 1% [12:11:00]line > о реализуемом товаре [12:11:00]line ИТОГО: 9500.35 [12:11:00]line НСП 1% : 84.07 [12:11:00]line НДС 12% : 1008.89 [12:11:00]line Наличными: 0.00 [12:11:00]line Безнал.: 9500.35 [12:11:00]line Место: АЗС № 91 "Партнер Нефть" [12:11:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:11:00]line СНО: Общий режим [12:11:00]line Чек 60 15.05.2024 12:10 [12:11:00]line Смена: 356 ФФД: 1.0 [12:11:00]line ЗНМ: 0300000119 [12:11:00]line РНМ: 0000000000091845 [12:11:00]line Версия ККМ: 001 [12:11:00]line Платежная система: O! деньги [12:11:00]line ФМ: 0000000000871829 [12:11:00]line ФД: 67242 [12:11:00]line ФПД: 74489252669254 [12:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T121059&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67242&fm=74489252669254&tin=02508201610067®Number=0000000000091845&sum=950035 [12:11:00]OFD Sender: Processing packet 67242 [packets to send 35, broken 34] [12:11:00]ProducePacketName [12:11:00]name=ofd_packets/00067242 [12:11:00]OFD Sender: To server: pG, [12:11:00]CommunicateWithHost lk.salyk.kg:30040 [12:11:00]ConnectInit lk.salyk.kg [12:11:00]written 0, free lines is 4095 [12:11:00]Connected sock=10 [12:11: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 0C 01 00 00 C3 79 04 01 92 4C 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 A6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AA 06 01 00 35 04 06 00 43 BF 61 71 E7 46 EB D3 E9 09 F7 9D 2A E4 [12:11: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 62 8D 47 00 64 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 AA 06 01 00 F4 03 04 00 30 4E 44 66 B6 04 01 00 00 73 5B 72 11 C8 88 9B D3 [12:11:00]CommunicateWithHost err = 0 [12:11:00]CheckOFDResponse [12:11:00]1017 (14) - 77093643461234 [12:11:00]1041 (16) - 0000000000871829 [12:11:00]1040 (4) - 67242 [12:11:00]1012 (4) - 15.05.2024 05:54 [12:11:00]1206 (1) - 0 [12:11:00]OFD Sender: Remove packet 67242 [12:11:00]ProducePacketName [12:11:00]name=ofd_packets/00067242 [12:11:00]NVStorageDeleteData [12:11:01]Write to MH i2c: 01 00 00 22 05 27 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 D7 0C 11 [12:11:01]RasterBufferAndPrint [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]line [12:11:01]written 0, free lines is 3292 [12:11:01]MH_Cut [12:11:01]Write to MH i2c: D1 01 00 29 05 01 00 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 01 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: D1 01 00 29 05 00 FF [12:11:01]Write to MH i2c: 01 00 00 2A 05 2F [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]OFD Sender: No OFD packet to send [12:11:01]*** Cut start [12:11:01]*** Purtial cut [12:11:01]*** CUTSNS_PIN = 0 [12:11:02]*** Stage 1: CUTSNS_PIN = 1 [12:11:03]Read from MH i2c: 01 [12:11:03]MH_I2C_Read... [12:11:03]*** Stop cut motor [12:11:03]*** Cut end [12:11:03]Read from MH i2c: 01 07 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [12:11:03]process_action close_receipt done [12:11:03]requested_data is exist [12:11:03]produce_requested_data [12:11:03]requested_item fm.sn is exist - process it [12:11:03]wFMCommunicate request_size=4 [12:11:03]MH_SAM_APDU [12:11:03]CAPDU: 80 11 00 00 [12:11:03]Write to MH i2c: E2 08 00 2B 05 80 11 00 00 00 00 00 00 AA [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:03]Read from MH i2c: E2 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 17 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 17 00 2B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [12:11: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:11:03]wFMCommunicate OK [12:11:03]requested_item fd.num is exist - process it [12:11:03]SAM_PROTO_GetFieldsCounters [12:11:03]wFMCommunicate request_size=4 [12:11:03]MH_SAM_APDU [12:11:03]CAPDU: 80 13 00 00 [12:11:03]Write to MH i2c: E2 08 00 2C 05 80 13 00 00 00 00 00 00 AD [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 62 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 62 00 2C 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 AA 06 01 00 0E 04 04 00 64 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 9D [12:11: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 AA 06 01 00 0E 04 04 00 64 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:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_GetFieldsCounters done [12:11:04]requested_item shift.num is exist - process it [12:11:04]requested_item shift.opened is exist - process it [12:11:04]req_shift_opened [12:11:04]FM_GetShiftState [12:11:04]SAM_PROTO_GetShiftState [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 13 01 00 [12:11:04]Write to MH i2c: E2 08 00 2D 05 80 13 01 00 00 00 00 00 AF [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0E 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0E 00 2D 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5A [12:11:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_GetShiftState done [12:11:04]FM_GetShiftState done [12:11:04]req_shift_opened done [12:11:04]requested_item shift.open_date is exist - process it [12:11:04]req_shift_open_date [12:11:04]req_shift_open_date done [12:11:04]produce_requested_data done [12:11:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:11:04]process_action_free close_receipt [12:11:04]json_value_free [12:11:04]json_value_free done [12:11:04]process_json_proto returns [12:11:04]Send response to host [12:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:11:04]free response buf [12:11:04]execute_script done [12:11:04]execute_script returns [12:11:04]free content buf [12:11:04]Sock 7.Close socket [12:11:04]Sock 7.Thread stoped [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]accept exits with 9 [12:16:31]New connection [12:16:31]New thread 3067174244 created [12:16:31]Thread 3067030884 joined [12:16:31]Waiting for new connection... [12:16:31] Sock 9.Parse request [12:16:31]Sock 9.Check first char [12:16:31]Sock 9.First char is OK [12:16:31]request: POST /json_proto HTTP/1.0 [12:16:31]Method: POST [12:16:31]URL: /json_proto [12:16:31]Method is POST - this is cgi request [12:16:31]url: /json_proto [12:16:31]query_string will be loaded in cgi processing [12:16:31]execute_cgi json_proto POST (null) [12:16:31]execute_cgi path=json_proto method=POST [12:16:31]POST find Content-Length [12:16:31]Host: 172.17.41.195:8080 [12:16:31]Content-Length: 1209 [12:16:31]Content-Type: application/json [12:16:31] [12:16:31]POST finish read [12:16:31]Found Content-Length = 1209 [12:16: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)507207\u000A15.05.2024 11:59\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 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" ] } } [12:16:31]execute_script... [12:16: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)507207\u000A15.05.2024 11:59\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 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" ] } } [12:16:31]POST & json_proto [12:16:31]process_json_proto [12:16:31]json parsed OK: [12:16:31]protocol is kg_v1.0 [12:16:31]action value=print_text [12:16:31]process_action print_text [12:16:31]cmd_print_text [12:16:31]ExternCall_PrintAddStr [12:16:31]wPrintStart [12:16:31]Write to MH i2c: 01 00 00 2E 05 33 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 FF 0F 48 [12:16:31]RasterBufferAndPrint [12:16:31]line *****ТОВАРНЫЙ ЧЕК***** [12:16:31]line АЗС-91 [12:16:31]line Партнер нефть [12:16:31]line 02508201610067 [12:16:31]line Кассир : Арстанбеков Н. [12:16:31]line Счет N : (1)507207 [12:16:31]line 15.05.2024 11:59 [12:16:31]line ПРОДАЖА [12:16:31]line ТРК (МРК, ГНК): 31 [12:16:31]line Вид ГСМ : 2710194210 [12:16:31]line ДТ-К-5 [12:16:31]line 13.390 x 74.70 [12:16:31]line ИТОГ: 1000.23 [12:16:31]line Тип оплаты: Талоны: Топливная Карта [12:16:31]line 02750 [12:16:31]line ______________________ [12:16:31]line (подпись) [12:16:31]written 0, free lines is 4095 [12:16:31]OFD Sender: No OFD packet to send [12:16:31]Write to MH i2c: 01 00 00 42 05 47 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 0F 0E 6B [12:16:31]RasterBufferAndPrint [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]line [12:16:31]written 0, free lines is 3601 [12:16:31]MH_Cut [12:16:31]Write to MH i2c: D1 01 00 49 05 01 20 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 01 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: D1 01 00 49 05 00 1F [12:16:31]Write to MH i2c: 01 00 00 4A 05 4F [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:32]*** Cut start [12:16:32]*** Purtial cut [12:16:32]*** Stage 1: CUTSNS_PIN = 1 [12:16:32]Read from MH i2c: 01 [12:16:32]MH_I2C_Read... [12:16:32]*** Stop cut motor [12:16:32]*** Cut end [12:16:32]Read from MH i2c: 01 07 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [12:16:32]process_action print_text done [12:16:32]requested_data is exist [12:16:32]produce_requested_data [12:16:32]requested_item fm.sn is exist - process it [12:16:32]wFMCommunicate request_size=4 [12:16:32]MH_SAM_APDU [12:16:32]CAPDU: 80 11 00 00 [12:16:32]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 17 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 17 00 4B 05 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:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:16:32]wFMCommunicate OK [12:16:32]requested_item fd.num is exist - process it [12:16:32]SAM_PROTO_GetFieldsCounters [12:16:32]wFMCommunicate request_size=4 [12:16:32]MH_SAM_APDU [12:16:32]CAPDU: 80 13 00 00 [12:16:32]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 62 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 62 00 4C 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 AA 06 01 00 0E 04 04 00 64 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 BD [12:16: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 AA 06 01 00 0E 04 04 00 64 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:16:32]wFMCommunicate OK [12:16:32]SAM_PROTO_GetFieldsCounters done [12:16:32]requested_item shift.num is exist - process it [12:16:32]requested_item shift.opened is exist - process it [12:16:32]req_shift_opened [12:16:32]FM_GetShiftState [12:16:32]SAM_PROTO_GetShiftState [12:16:32]wFMCommunicate request_size=4 [12:16:32]MH_SAM_APDU [12:16:32]CAPDU: 80 13 01 00 [12:16:32]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0E 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7A [12:16:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:16:32]wFMCommunicate OK [12:16:32]SAM_PROTO_GetShiftState done [12:16:32]FM_GetShiftState done [12:16:32]req_shift_opened done [12:16:32]requested_item shift.open_date is exist - process it [12:16:32]req_shift_open_date [12:16:32]req_shift_open_date done [12:16:32]produce_requested_data done [12:16:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:16:32]process_action_free print_text [12:16:32]json_value_free [12:16:32]json_value_free done [12:16:32]process_json_proto returns [12:16:32]Send response to host [12:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:16:32]free response buf [12:16:32]execute_script done [12:16:32]execute_script returns [12:16:32]free content buf [12:16:32]Sock 9.Close socket [12:16:32]Sock 9.Thread stoped [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]accept exits with 7 [12:18:41]New connection [12:18:41]New thread 3067030884 created [12:18:41]Thread 3067174244 joined [12:18:41]Waiting for new connection... [12:18:41] Sock 7.Parse request [12:18:41]Sock 7.Check first char [12:18:41]Sock 7.First char is OK [12:18:41]request: POST /json_proto HTTP/1.0 [12:18:41]Method: POST [12:18:41]URL: /json_proto [12:18:41]Method is POST - this is cgi request [12:18:41]url: /json_proto [12:18:41]query_string will be loaded in cgi processing [12:18:41]execute_cgi json_proto POST (null) [12:18:41]execute_cgi path=json_proto method=POST [12:18:41]POST find Content-Length [12:18:41]Host: 172.17.41.195:8080 [12:18:41]Content-Length: 1209 [12:18:41]Content-Type: application/json [12:18:41] [12:18:41]POST finish read [12:18:41]Found Content-Length = 1209 [12:18: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)507208\u000A15.05.2024 12:01\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.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.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:18:41]execute_script... [12:18: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)507208\u000A15.05.2024 12:01\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.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.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:18:41]POST & json_proto [12:18:41]process_json_proto [12:18:41]json parsed OK: [12:18:41]protocol is kg_v1.0 [12:18:41]action value=print_text [12:18:41]process_action print_text [12:18:41]cmd_print_text [12:18:41]ExternCall_PrintAddStr [12:18:41]wPrintStart [12:18:41]Write to MH i2c: 01 00 00 4E 05 53 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [12:18:41]RasterBufferAndPrint [12:18:41]line *****ТОВАРНЫЙ ЧЕК***** [12:18:41]line АЗС-91 [12:18:41]line Партнер нефть [12:18:41]line 02508201610067 [12:18:41]line Кассир : Арстанбеков Н. [12:18:41]line Счет N : (1)507208 [12:18:41]line 15.05.2024 12:01 [12:18:41]line ПРОДАЖА [12:18:41]line ТРК (МРК, ГНК): 21 [12:18:41]line Вид ГСМ : 2710194210 [12:18:41]line ДТ-К-5 [12:18:41]line 30.000 x 74.70 [12:18:41]line ИТОГ: 2241.00 [12:18:41]line Тип оплаты: Талоны: Топливная Карта [12:18:41]line 02750 [12:18:41]line ______________________ [12:18:41]line (подпись) [12:18:41]written 0, free lines is 4095 [12:18:41]Write to MH i2c: 01 00 00 62 05 67 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 10 0E 8C [12:18:41]RasterBufferAndPrint [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]written 0, free lines is 3601 [12:18:41]MH_Cut [12:18:41]Write to MH i2c: D1 01 00 69 05 01 40 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: D1 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: D1 01 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: D1 01 00 69 05 00 3F [12:18:41]Write to MH i2c: 01 00 00 6A 05 6F [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]OFD Sender: No OFD packet to send [12:18:41]*** Cut start [12:18:41]*** Purtial cut [12:18:41]*** CUTSNS_PIN = 0 [12:18:42]*** Stage 1: CUTSNS_PIN = 1 [12:18:43]Read from MH i2c: 01 [12:18:43]MH_I2C_Read... [12:18:43]*** Stop cut motor [12:18:43]*** Cut end [12:18:43]Read from MH i2c: 01 07 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [12:18:43]process_action print_text done [12:18:43]requested_data is exist [12:18:43]produce_requested_data [12:18:43]requested_item fm.sn is exist - process it [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 11 00 00 [12:18:43]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [12:18:43]Write i2c OK [12:18:43]MH_I2C_Read... [12:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:43]Read from MH i2c: E2 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 [12:18:43]MH_I2C_Read... [12:18:43]Read from MH i2c: E2 17 00 6B 05 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:18:43]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:43]wFMCommunicate OK [12:18:43]requested_item fd.num is exist - process it [12:18:43]SAM_PROTO_GetFieldsCounters [12:18:43]wFMCommunicate request_size=4 [12:18:43]MH_SAM_APDU [12:18:43]CAPDU: 80 13 00 00 [12:18:43]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 62 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 62 00 6C 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 AA 06 01 00 0E 04 04 00 64 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 DD [12:18: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 AA 06 01 00 0E 04 04 00 64 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:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetFieldsCounters done [12:18:44]requested_item shift.num is exist - process it [12:18:44]requested_item shift.opened is exist - process it [12:18:44]req_shift_opened [12:18:44]FM_GetShiftState [12:18:44]SAM_PROTO_GetShiftState [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 01 00 [12:18:44]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:44]Read from MH i2c: E2 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9A [12:18:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:18:44]wFMCommunicate OK [12:18:44]SAM_PROTO_GetShiftState done [12:18:44]FM_GetShiftState done [12:18:44]req_shift_opened done [12:18:44]requested_item shift.open_date is exist - process it [12:18:44]req_shift_open_date [12:18:44]req_shift_open_date done [12:18:44]produce_requested_data done [12:18:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:18:44]process_action_free print_text [12:18:44]json_value_free [12:18:44]json_value_free done [12:18:44]process_json_proto returns [12:18:44]Send response to host [12:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67242,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:18:44]free response buf [12:18:44]execute_script done [12:18:44]execute_script returns [12:18:44]free content buf [12:18:44]Sock 7.Close socket [12:18:44]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [12:19:33]New connection [12:19:33]New thread 3067174244 created [12:19:33]Thread 3067030884 joined [12:19:33]Waiting for new connection... [12:19:33] Sock 9.Parse request [12:19:33]Sock 9.Check first char [12:19:33]Sock 9.First char is OK [12:19:33]request: POST /json_proto HTTP/1.0 [12:19:33]Method: POST [12:19:33]URL: /json_proto [12:19:33]Method is POST - this is cgi request [12:19:33]url: /json_proto [12:19:33]query_string will be loaded in cgi processing [12:19:33]execute_cgi json_proto POST (null) [12:19:33]execute_cgi path=json_proto method=POST [12:19:33]POST find Content-Length [12:19:33]Host: 172.17.41.195:8080 [12:19:33]Content-Length: 816 [12:19:33]Content-Type: application/json [12:19:33] [12:19:33]POST finish read [12:19:33]Found Content-Length = 816 [12:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507206", "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" : 71.500, "sum" : 5341.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" : 5341.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]execute_script... [12:19: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)507206", "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" : 71.500, "sum" : 5341.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" : 5341.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:33]POST & json_proto [12:19:33]process_json_proto [12:19:33]json parsed OK: [12:19:33]protocol is kg_v1.0 [12:19:33]action value=close_receipt [12:19:33]process_action close_receipt [12:19:33]cmd_close_receipt [12:19:33]MH_GetDate [12:19:33]Write to MH i2c: F0 00 00 6E 05 62 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 09 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: F0 09 00 6E 05 00 55 A8 44 66 FC 21 6F 64 02 [12:19:33]GetLastDocTimeStamp 1715775059 [12:19:33]current date 1715775573 [12:19:33]FM_GetShiftState [12:19:33]SAM_PROTO_GetShiftState [12:19:33]wFMCommunicate request_size=4 [12:19:33]MH_SAM_APDU [12:19:33]CAPDU: 80 13 01 00 [12:19:33]Write to MH i2c: E2 08 00 6F 05 80 13 01 00 00 00 00 00 F1 [12:19:33]Write i2c OK [12:19:33]MH_I2C_Read... [12:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:33]Read from MH i2c: E2 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 [12:19:33]MH_I2C_Read... [12:19:33]Read from MH i2c: E2 0E 00 6F 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9C [12:19:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:19:33]wFMCommunicate OK [12:19:33]SAM_PROTO_GetShiftState done [12:19:33]FM_GetShiftState done [12:19:33]opened in 1715732471 [12:19:33]opened+sec_in_day 1715818871 [12:19:33]quantity*price = 534105 [12:19:33]sum+1 = 534106 [12:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5341.05 НСП 1% : 47.27 НДС 12% : 567.19 Наличными: 0.00 Безнал.: 5341.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 61 15.05.2024 12:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67243 ФПД: 193278255194109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T121933&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67243&fm=193278255194109&tin=02508201610067®Number=0000000000091845&sum=534105 [12:19:34]StoreToDocumentArchive [12:19:34]shift 356 fd 67243 [12:19:34]save to /storage/0356/doc_00067243 [12:19:34]save last doc name /storage/0356/doc_00067243 to /storage/kkm_last_doc_name [12:19:34]save OK [12:19:34]Clear old archive folders... [12:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:34]tlvbuf is 00B214F0 [12:19:34]SAM_PROTO_ClearQueue [12:19:34]wFMCommunicate request_size=4 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 09 00 00 [12:19:34]Write to MH i2c: E2 08 00 7C 05 80 09 00 00 00 00 00 00 F3 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:34]Read from MH i2c: E2 03 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [12:19:34]RAPDU: 90 00 [12:19:34]wFMCommunicate OK [12:19:34]SAM_PROTO_ClearQueue done [12:19:34]KKMCreateOFDPacket [12:19:34]OFDProtocolAddRootSTLVToBuf [12:19:34]FM_MakeSignedData [12:19:34]FM_MakeSignedData [12:19:34]SAM_PROTO_SignData [12:19:34]wFMCommunicate request_size=4 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 0D 01 02 [12:19:34]Write to MH i2c: E2 08 00 7D 05 80 0D 01 02 00 00 00 00 FB [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [12:19:34]RAPDU: 90 00 [12:19:34]wFMCommunicate OK [12:19:34]wFMCommunicate request_size=255 [12:19:34]MH_SAM_APDU [12:19:34]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 4C 17 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 59 26 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 26 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F DD 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 26 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 06 01 00 35 04 06 00 AF C9 19 BE [12:19:34]Write to MH i2c: E2 02 01 7E 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 4C 17 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 59 26 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 26 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F DD 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 26 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 06 01 00 35 04 06 00 AF C9 19 BE 00 00 E0 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 7E 05 00 90 00 F7 [12:19:34]RAPDU: 90 00 [12:19:34]wFMCommunicate OK [12:19:34]wFMCommunicate request_size=7 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 0D 02 02 02 5F FD [12:19:34]Write to MH i2c: E2 0A 00 7F 05 80 0D 02 02 02 00 5F FD 00 00 5E [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [12:19:34]RAPDU: 90 00 [12:19:34]wFMCommunicate OK [12:19:34]wFMCommunicate request_size=4 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 0D 03 02 [12:19:34]Write to MH i2c: E2 08 00 80 05 80 0D 03 02 00 00 00 00 00 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 0B 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 0B 00 80 05 00 7D 55 72 14 CE EF 57 FA 90 00 67 [12:19:34]RAPDU: 7D 55 72 14 CE EF 57 FA 90 00 [12:19:34]wFMCommunicate OK [12:19:34]SAM_PROTO_SignData done [12:19:34]FM_MakeSignedData done [12:19:34]CreateOFDProtocolMessage [12:19:34]wFMCommunicate request_size=4 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 11 00 00 [12:19:34]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 17 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 17 00 81 05 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:19:34]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:34]wFMCommunicate OK [12:19:34]CreateOFDProtocolMessage done [12:19:34]OFDSenderStorePacket 67243 [12:19:34]StoreOFDPacket docnum=67243 [12:19: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 0C 01 00 00 DC 09 04 01 DF D9 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 4C 17 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 59 26 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 26 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F DD 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 26 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 06 01 00 35 04 06 00 AF C9 19 BE 5F FD 7D 55 72 14 CE EF 57 FA [12:19:34]CheckFolder [12:19:34]dirname=/storage/ofd_packets [12:19:34]CheckFolder done [12:19:34]ProducePacketName [12:19:34]name=ofd_packets/00067243 [12:19:34]NVStorageSaveData ofd_packets/00067243 [12:19:34]File name is /storage/ofd_packets/00067243 [12:19:34]Write 298 bytes [12:19:34]NVStorageSaveData done [12:19:34]OFDSenderStorePacket done [12:19:34]KKMCreateOFDPacket done [12:19:34]NVStorageSaveData kkm_last_timestamp [12:19:34]File name is /storage/kkm_last_timestamp [12:19:34]Write 4 bytes [12:19:34]NVStorageSaveData done [12:19:34]ExternCall_PrintAddStr [12:19:34]wPrintStart [12:19:34]Write to MH i2c: 01 00 00 82 05 87 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [12:19:34]RasterBufferAndPrint [12:19:34]line Счет N : (1)507206 [12:19:34]line ИНН: 02508201610067 [12:19:34]line Контрольно-Кассовый Чек [12:19:34]line ПРОДАЖА [12:19:34]line ТРК (МРК, ГНК) : 41 [12:19:34]line Товар: 2710194210 [12:19:34]line ДТ-К-5 [12:19:34]line 71.500 * 74.70 [12:19:34]line = 5341.05 [12:19:34]line НДС 12% НСП 1% [12:19:34]line > о реализуемом товаре [12:19:34]line ИТОГО: 5341.05 [12:19:34]line НСП 1% : 47.27 [12:19:34]line НДС 12% : 567.19 [12:19:34]line Наличными: 0.00 [12:19:34]line Безнал.: 5341.05 [12:19:34]line Место: АЗС № 91 "Партнер Нефть" [12:19:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:19:34]line СНО: Общий режим [12:19:34]line Чек 61 15.05.2024 12:19 [12:19:34]line Смена: 356 ФФД: 1.0 [12:19:34]line ЗНМ: 0300000119 [12:19:34]line РНМ: 0000000000091845 [12:19:34]line Версия ККМ: 001 [12:19:34]line Платежная система: Бакай Банк [12:19:34]line ФМ: 0000000000871829 [12:19:34]line ФД: 67243 [12:19:34]line ФПД: 193278255194109 [12:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T121933&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67243&fm=193278255194109&tin=02508201610067®Number=0000000000091845&sum=534105 [12:19:35]OFD Sender: Processing packet 67243 [packets to send 35, broken 34] [12:19:35]ProducePacketName [12:19:35]name=ofd_packets/00067243 [12:19:35]OFD Sender: To server: pG, [12:19:35]CommunicateWithHost lk.salyk.kg:30040 [12:19:35]ConnectInit lk.salyk.kg [12:19:35]written 0, free lines is 4095 [12:19:35]Connected sock=10 [12:19: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 DC 09 04 01 DF D9 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 4C 17 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 59 26 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 26 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F DD 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 26 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 55 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AB 06 01 00 35 04 06 00 AF C9 19 BE 5F FD 7D 55 72 14 CE EF 57 FA [12:19: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 1E 01 47 00 A7 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 AB 06 01 00 F4 03 04 00 33 50 44 66 B6 04 01 00 00 C4 94 FC 5A 31 60 0D 10 [12:19:35]CommunicateWithHost err = 0 [12:19:35]CheckOFDResponse [12:19:35]1017 (14) - 77093643461234 [12:19:35]1041 (16) - 0000000000871829 [12:19:35]1040 (4) - 67243 [12:19:35]1012 (4) - 15.05.2024 06:03 [12:19:35]1206 (1) - 0 [12:19:35]OFD Sender: Remove packet 67243 [12:19:35]ProducePacketName [12:19:35]name=ofd_packets/00067243 [12:19:35]NVStorageDeleteData [12:19:35]Write to MH i2c: 01 00 00 AB 05 B0 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 E2 0C A5 [12:19:35]RasterBufferAndPrint [12:19:35]line [12:19:35]line [12:19:35]line [12:19:35]line [12:19:35]line [12:19:35]written 0, free lines is 3303 [12:19:35]MH_Cut [12:19:35]Write to MH i2c: D1 01 00 B2 05 01 89 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: D1 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: D1 01 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: D1 01 00 B2 05 00 88 [12:19:35]Write to MH i2c: 01 00 00 B3 05 B8 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:36]OFD Sender: No OFD packet to send [12:19:36]*** Cut start [12:19:36]*** Purtial cut [12:19:36]*** Stage 1: CUTSNS_PIN = 1 [12:19:36]Read from MH i2c: 01 [12:19:36]MH_I2C_Read... [12:19:36]*** Stop cut motor [12:19:36]*** Cut end [12:19:36]Read from MH i2c: 01 07 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [12:19:36]process_action close_receipt done [12:19:36]requested_data is exist [12:19:36]produce_requested_data [12:19:36]requested_item fm.sn is exist - process it [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 11 00 00 [12:19:36]Write to MH i2c: E2 08 00 B4 05 80 11 00 00 00 00 00 00 33 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 17 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 17 00 B4 05 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:19:36]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:36]wFMCommunicate OK [12:19:36]requested_item fd.num is exist - process it [12:19:36]SAM_PROTO_GetFieldsCounters [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 13 00 00 [12:19:36]Write to MH i2c: E2 08 00 B5 05 80 13 00 00 00 00 00 00 36 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 62 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 62 00 B5 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 AB 06 01 00 0E 04 04 00 64 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 2A [12:19: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 AB 06 01 00 0E 04 04 00 64 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:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_GetFieldsCounters done [12:19:37]requested_item shift.num is exist - process it [12:19:37]requested_item shift.opened is exist - process it [12:19:37]req_shift_opened [12:19:37]FM_GetShiftState [12:19:37]SAM_PROTO_GetShiftState [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 13 01 00 [12:19:37]Write to MH i2c: E2 08 00 B6 05 80 13 01 00 00 00 00 00 38 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0E 00 B6 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E3 [12:19:37]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_GetShiftState done [12:19:37]FM_GetShiftState done [12:19:37]req_shift_opened done [12:19:37]requested_item shift.open_date is exist - process it [12:19:37]req_shift_open_date [12:19:37]req_shift_open_date done [12:19:37]produce_requested_data done [12:19:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67243,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:19:37]process_action_free close_receipt [12:19:37]json_value_free [12:19:37]json_value_free done [12:19:37]process_json_proto returns [12:19:37]Send response to host [12:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67243,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:19:37]free response buf [12:19:37]execute_script done [12:19:37]execute_script returns [12:19:37]free content buf [12:19:37]Sock 9.Close socket [12:19:37]Sock 9.Thread stoped [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:16]accept exits with 7 [12:20:16]New connection [12:20:16]New thread 3067030884 created [12:20:16]Thread 3067174244 joined [12:20:16]Waiting for new connection... [12:20:16] Sock 7.Parse request [12:20:16]Sock 7.Check first char [12:20:16]Sock 7.First char is OK [12:20:16]request: POST /json_proto HTTP/1.0 [12:20:16]Method: POST [12:20:16]URL: /json_proto [12:20:16]Method is POST - this is cgi request [12:20:16]url: /json_proto [12:20:16]query_string will be loaded in cgi processing [12:20:16]execute_cgi json_proto POST (null) [12:20:16]execute_cgi path=json_proto method=POST [12:20:16]POST find Content-Length [12:20:16]Host: 172.17.41.195:8080 [12:20:16]Content-Length: 800 [12:20:16]Content-Type: application/json [12:20:16] [12:20:16]POST finish read [12:20:16]Found Content-Length = 800 [12:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507210", "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" ] } } [12:20:16]execute_script... [12:20: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)507210", "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" ] } } [12:20:16]POST & json_proto [12:20:16]process_json_proto [12:20:16]json parsed OK: [12:20:16]protocol is kg_v1.0 [12:20:16]action value=close_receipt [12:20:16]process_action close_receipt [12:20:16]cmd_close_receipt [12:20:16]MH_GetDate [12:20:16]Write to MH i2c: F0 00 00 B7 05 AB [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: F0 09 00 B7 05 00 80 A8 44 66 FC 21 6F 64 76 [12:20:16]GetLastDocTimeStamp 1715775573 [12:20:16]current date 1715775616 [12:20:16]FM_GetShiftState [12:20:16]SAM_PROTO_GetShiftState [12:20:16]wFMCommunicate request_size=4 [12:20:16]MH_SAM_APDU [12:20:16]CAPDU: 80 13 01 00 [12:20:16]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [12:20:16]Write i2c OK [12:20:16]MH_I2C_Read... [12:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:16]Read from MH i2c: E2 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 [12:20:16]MH_I2C_Read... [12:20:16]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E5 [12:20:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:20:16]wFMCommunicate OK [12:20:16]SAM_PROTO_GetShiftState done [12:20:16]FM_GetShiftState done [12:20:16]opened in 1715732471 [12:20:16]opened+sec_in_day 1715818871 [12:20:16]quantity*price = 150072 [12:20:16]sum+1 = 150073 [12:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 62 15.05.2024 12:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67244 ФПД: 252001301979124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122016&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67244&fm=252001301979124&tin=02508201610067®Number=0000000000091845&sum=150072 [12:20:17]StoreToDocumentArchive [12:20:17]shift 356 fd 67244 [12:20:17]save to /storage/0356/doc_00067244 [12:20:17]save last doc name /storage/0356/doc_00067244 to /storage/kkm_last_doc_name [12:20:17]save OK [12:20:17]Clear old archive folders... [12:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:17]tlvbuf is 00B26F60 [12:20:17]SAM_PROTO_ClearQueue [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 09 00 00 [12:20:17]Write to MH i2c: E2 08 00 C5 05 80 09 00 00 00 00 00 00 3C [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]SAM_PROTO_ClearQueue done [12:20:17]KKMCreateOFDPacket [12:20:17]OFDProtocolAddRootSTLVToBuf [12:20:17]FM_MakeSignedData [12:20:17]FM_MakeSignedData [12:20:17]SAM_PROTO_SignData [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 01 02 [12:20:17]Write to MH i2c: E2 08 00 C6 05 80 0D 01 02 00 00 00 00 44 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=255 [12:20:17]MH_SAM_APDU [12:20: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 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 3E 00 00 00 F4 03 04 00 80 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 06 01 00 35 04 06 00 E5 31 A0 16 [12:20:17]Write to MH i2c: E2 02 01 C7 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 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 3E 00 00 00 F4 03 04 00 80 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 06 01 00 35 04 06 00 E5 31 A0 16 00 00 ED [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=7 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 02 02 02 5F F4 [12:20:17]Write to MH i2c: E2 0A 00 C8 05 80 0D 02 02 02 00 5F F4 00 00 9E [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [12:20:17]RAPDU: 90 00 [12:20:17]wFMCommunicate OK [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 0D 03 02 [12:20:17]Write to MH i2c: E2 08 00 C9 05 80 0D 03 02 00 00 00 00 49 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 0B 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 0B 00 C9 05 00 CA 9B CA 94 70 CD 80 36 90 00 00 [12:20:17]RAPDU: CA 9B CA 94 70 CD 80 36 90 00 [12:20:17]wFMCommunicate OK [12:20:17]SAM_PROTO_SignData done [12:20:17]FM_MakeSignedData done [12:20:17]CreateOFDProtocolMessage [12:20:17]wFMCommunicate request_size=4 [12:20:17]MH_SAM_APDU [12:20:17]CAPDU: 80 11 00 00 [12:20:17]Write to MH i2c: E2 08 00 CA 05 80 11 00 00 00 00 00 00 49 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:17]Read from MH i2c: E2 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 17 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: E2 17 00 CA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [12:20: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:20:17]wFMCommunicate OK [12:20:17]CreateOFDProtocolMessage done [12:20:17]OFDSenderStorePacket 67244 [12:20:17]StoreOFDPacket docnum=67244 [12:20: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 3A 7A 04 01 78 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 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 3E 00 00 00 F4 03 04 00 80 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 06 01 00 35 04 06 00 E5 31 A0 16 5F F4 CA 9B CA 94 70 CD 80 36 [12:20:17]CheckFolder [12:20:17]dirname=/storage/ofd_packets [12:20:17]CheckFolder done [12:20:17]ProducePacketName [12:20:17]name=ofd_packets/00067244 [12:20:17]NVStorageSaveData ofd_packets/00067244 [12:20:17]File name is /storage/ofd_packets/00067244 [12:20:17]Write 298 bytes [12:20:17]NVStorageSaveData done [12:20:17]OFDSenderStorePacket done [12:20:17]KKMCreateOFDPacket done [12:20:17]NVStorageSaveData kkm_last_timestamp [12:20:17]File name is /storage/kkm_last_timestamp [12:20:17]Write 4 bytes [12:20:17]NVStorageSaveData done [12:20:17]ExternCall_PrintAddStr [12:20:17]wPrintStart [12:20:17]Write to MH i2c: 01 00 00 CB 05 D0 [12:20:17]Write i2c OK [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: 01 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: 01 07 00 [12:20:17]MH_I2C_Read... [12:20:17]Read from MH i2c: 01 07 00 CB 05 00 00 00 00 00 FF 0F E5 [12:20:17]RasterBufferAndPrint [12:20:17]line Счет N : (1)507210 [12:20:17]line ИНН: 02508201610067 [12:20:17]line Контрольно-Кассовый Чек [12:20:17]line ПРОДАЖА [12:20:17]line ТРК (МРК, ГНК) : 31 [12:20:17]line Товар: 2710194210 [12:20:17]line ДТ-К-5 [12:20:17]line 20.090 * 74.70 [12:20:17]line = 1500.72 [12:20:17]line НДС 12% НСП 1% [12:20:17]line > о реализуемом товаре [12:20:17]line ИТОГО: 1500.72 [12:20:17]line НСП 1% : 13.28 [12:20:17]line НДС 12% : 159.37 [12:20:17]line Наличными: 0.00 [12:20:17]line Безнал.: 1500.72 [12:20:17]line Место: АЗС № 91 "Партнер Нефть" [12:20:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:20:17]line СНО: Общий режим [12:20:17]line Чек 62 15.05.2024 12:20 [12:20:17]line Смена: 356 ФФД: 1.0 [12:20:17]line ЗНМ: 0300000119 [12:20:17]line РНМ: 0000000000091845 [12:20:17]line Версия ККМ: 001 [12:20:17]line Платежная система: O! деньги [12:20:17]line ФМ: 0000000000871829 [12:20:17]line ФД: 67244 [12:20:17]line ФПД: 252001301979124 [12:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122016&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67244&fm=252001301979124&tin=02508201610067®Number=0000000000091845&sum=150072 [12:20:18]OFD Sender: Processing packet 67244 [packets to send 35, broken 34] [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00067244 [12:20:18]OFD Sender: To server: pG, [12:20:18]CommunicateWithHost lk.salyk.kg:30040 [12:20:18]ConnectInit lk.salyk.kg [12:20:18]written 0, free lines is 4095 [12:20:18]Connected sock=10 [12:20: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 3A 7A 04 01 78 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 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 3E 00 00 00 F4 03 04 00 80 A8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AC 06 01 00 35 04 06 00 E5 31 A0 16 5F F4 CA 9B CA 94 70 CD 80 36 [12:20: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 6C 23 47 00 83 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 AC 06 01 00 F4 03 04 00 5E 50 44 66 B6 04 01 00 00 FD 29 89 85 3B 7A FD 89 [12:20:18]CommunicateWithHost err = 0 [12:20:18]CheckOFDResponse [12:20:18]1017 (14) - 77093643461234 [12:20:18]1041 (16) - 0000000000871829 [12:20:18]1040 (4) - 67244 [12:20:18]1012 (4) - 15.05.2024 06:04 [12:20:18]1206 (1) - 0 [12:20:18]OFD Sender: Remove packet 67244 [12:20:18]ProducePacketName [12:20:18]name=ofd_packets/00067244 [12:20:18]NVStorageDeleteData [12:20:18]Write to MH i2c: 01 00 00 F4 05 F9 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 EB 0C F7 [12:20:18]RasterBufferAndPrint [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]line [12:20:18]written 0, free lines is 3313 [12:20:18]MH_Cut [12:20:18]Write to MH i2c: D1 01 00 FB 05 01 D2 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 [12:20:18]MH_I2C_Read... [12:20:18]Read from MH i2c: D1 01 00 FB 05 00 D1 [12:20:18]Write to MH i2c: 01 00 00 FC 05 01 [12:20:18]Write i2c OK [12:20:18]MH_I2C_Read... [12:20:19]OFD Sender: No OFD packet to send [12:20:19]*** Cut start [12:20:19]*** Purtial cut [12:20:19]*** CUTSNS_PIN = 0 [12:20:19]*** Stage 1: CUTSNS_PIN = 1 [12:20:21]Read from MH i2c: 01 [12:20:21]MH_I2C_Read... [12:20:21]*** Stop cut motor [12:20:21]*** Cut end [12:20:21]Read from MH i2c: 01 07 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [12:20:21]process_action close_receipt done [12:20:21]requested_data is exist [12:20:21]produce_requested_data [12:20:21]requested_item fm.sn is exist - process it [12:20:21]wFMCommunicate request_size=4 [12:20:21]MH_SAM_APDU [12:20:21]CAPDU: 80 11 00 00 [12:20:21]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:21]Read from MH i2c: E2 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 17 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 17 00 FD 05 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:20: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:20:21]wFMCommunicate OK [12:20:21]requested_item fd.num is exist - process it [12:20:21]SAM_PROTO_GetFieldsCounters [12:20:21]wFMCommunicate request_size=4 [12:20:21]MH_SAM_APDU [12:20:21]CAPDU: 80 13 00 00 [12:20:21]Write to MH i2c: E2 08 00 FE 05 80 13 00 00 00 00 00 00 7F [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:21]Read from MH i2c: E2 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 62 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 62 00 FE 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 AC 06 01 00 0E 04 04 00 64 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 77 [12:20: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 AC 06 01 00 0E 04 04 00 64 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:20:21]wFMCommunicate OK [12:20:21]SAM_PROTO_GetFieldsCounters done [12:20:21]requested_item shift.num is exist - process it [12:20:21]requested_item shift.opened is exist - process it [12:20:21]req_shift_opened [12:20:21]FM_GetShiftState [12:20:21]SAM_PROTO_GetShiftState [12:20:21]wFMCommunicate request_size=4 [12:20:21]MH_SAM_APDU [12:20:21]CAPDU: 80 13 01 00 [12:20:21]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:21]Read from MH i2c: E2 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 0E 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2C [12:20:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:20:21]wFMCommunicate OK [12:20:21]SAM_PROTO_GetShiftState done [12:20:21]FM_GetShiftState done [12:20:21]req_shift_opened done [12:20:21]requested_item shift.open_date is exist - process it [12:20:21]req_shift_open_date [12:20:21]req_shift_open_date done [12:20:21]produce_requested_data done [12:20:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:20:21]process_action_free close_receipt [12:20:21]json_value_free [12:20:21]json_value_free done [12:20:21]process_json_proto returns [12:20:21]Send response to host [12:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:20:21]free response buf [12:20:21]execute_script done [12:20:21]execute_script returns [12:20:21]free content buf [12:20:21]Sock 7.Close socket [12:20:21]Sock 7.Thread stoped [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:55]accept exits with 9 [12:20:55]New connection [12:20:55]New thread 3067174244 created [12:20:55]Thread 3067030884 joined [12:20:55]Waiting for new connection... [12:20:55] Sock 9.Parse request [12:20:55]Sock 9.Check first char [12:20:55]Sock 9.First char is OK [12:20:55]request: POST /json_proto HTTP/1.0 [12:20:55]Method: POST [12:20:55]URL: /json_proto [12:20:55]Method is POST - this is cgi request [12:20:55]url: /json_proto [12:20:55]query_string will be loaded in cgi processing [12:20:55]execute_cgi json_proto POST (null) [12:20:55]execute_cgi path=json_proto method=POST [12:20:55]POST find Content-Length [12:20:55]Host: 172.17.41.195:8080 [12:20:55]Content-Length: 215 [12:20:55]Content-Type: application/json [12:20:55] [12:20:55]POST finish read [12:20:55]Found Content-Length = 215 [12:20:55]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:20:55]execute_script... [12:20:55]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:20:55]POST & json_proto [12:20:55]process_json_proto [12:20:55]json parsed OK: [12:20:55]protocol is kg_v1.0 [12:20:55]action value=get_value [12:20:55]process_action get_value [12:20:55]cmd_get_value [12:20:55]process_action get_value done [12:20:55]requested_data is exist [12:20:55]produce_requested_data [12:20:55]requested_item kkm.sn is exist - process it [12:20:55]requested_item kkm.ver is exist - process it [12:20:55]requested_item fm.sn is exist - process it [12:20:55]wFMCommunicate request_size=4 [12:20:55]MH_SAM_APDU [12:20:55]CAPDU: 80 11 00 00 [12:20:55]Write to MH i2c: E2 08 00 00 06 80 11 00 00 00 00 00 00 80 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:55]Read from MH i2c: E2 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 17 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 17 00 00 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [12:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:20:55]wFMCommunicate OK [12:20:55]requested_item fd.num is exist - process it [12:20:55]SAM_PROTO_GetFieldsCounters [12:20:55]wFMCommunicate request_size=4 [12:20:55]MH_SAM_APDU [12:20:55]CAPDU: 80 13 00 00 [12:20:55]Write to MH i2c: E2 08 00 01 06 80 13 00 00 00 00 00 00 83 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:55]Read from MH i2c: E2 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 62 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 62 00 01 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 AC 06 01 00 0E 04 04 00 64 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 7B [12: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 AC 06 01 00 0E 04 04 00 64 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:20:55]wFMCommunicate OK [12:20:55]SAM_PROTO_GetFieldsCounters done [12:20:55]requested_item shift.num is exist - process it [12:20:55]requested_item shift.opened is exist - process it [12:20:55]req_shift_opened [12:20:55]FM_GetShiftState [12:20:55]SAM_PROTO_GetShiftState [12:20:55]wFMCommunicate request_size=4 [12:20:55]MH_SAM_APDU [12:20:55]CAPDU: 80 13 01 00 [12:20:55]Write to MH i2c: E2 08 00 02 06 80 13 01 00 00 00 00 00 85 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:55]Read from MH i2c: E2 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 0E 00 [12:20:55]MH_I2C_Read... [12:20:55]Read from MH i2c: E2 0E 00 02 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 30 [12:20:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:20:55]wFMCommunicate OK [12:20:55]SAM_PROTO_GetShiftState done [12:20:55]FM_GetShiftState done [12:20:55]req_shift_opened done [12:20:55]requested_item shift.open_date is exist - process it [12:20:55]req_shift_open_date [12:20:55]req_shift_open_date done [12:20:55]produce_requested_data done [12:20:55]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:20:55]process_action_free get_value [12:20:55]json_value_free [12:20:55]json_value_free done [12:20:55]process_json_proto returns [12:20:55]Send response to host [12:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:20:55]free response buf [12:20:55]execute_script done [12:20:55]execute_script returns [12:20:55]free content buf [12:20:55]Sock 9.Close socket [12:20:55]Sock 9.Thread stoped [12:20:55]accept exits with 7 [12:20:55]New connection [12:20:55]New thread 3067030884 created [12:20:55]Thread 3067174244 joined [12:20:55]Waiting for new connection... [12:20:55] Sock 7.Parse request [12:20:55]Sock 7.Check first char [12:20:55]Sock 7.First char is OK [12:20:55]request: POST /json_proto HTTP/1.0 [12:20:55]Method: POST [12:20:55]URL: /json_proto [12:20:55]Method is POST - this is cgi request [12:20:55]url: /json_proto [12:20:55]query_string will be loaded in cgi processing [12:20:55]execute_cgi json_proto POST (null) [12:20:55]execute_cgi path=json_proto method=POST [12:20:55]POST find Content-Length [12:20:55]Host: 172.17.41.195:8080 [12:20:55]Content-Length: 331 [12:20:55]Content-Type: application/json [12:20:55] [12:20:55]POST finish read [12:20:55]Found Content-Length = 331 [12:20:55]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:20:55]execute_script... [12:20:55]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:20:55]POST & json_proto [12:20:55]process_json_proto [12:20:55]json parsed OK: [12:20:55]protocol is kg_v1.0 [12:20:55]action value=get_value [12:20:55]process_action get_value [12:20:55]cmd_get_value [12:20:55]process_action get_value done [12:20:55]requested_data is exist [12:20:55]produce_requested_data [12:20:55]requested_item fm.sale.total is exist - process it [12:20:55]SAM_PROTO_GetFMData [12:20:55]wFMCommunicate request_size=4 [12:20:55]MH_SAM_APDU [12:20:55]CAPDU: 80 13 03 00 [12:20:55]Write to MH i2c: E2 08 00 03 06 80 13 03 00 00 00 00 00 88 [12:20:55]Write i2c OK [12:20:55]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 03 06 00 C6 04 85 04 C2 04 6E 04 04 00 E4 03 01 00 69 04 A3 00 6F 04 04 00 3E 03 01 00 B1 04 05 00 16 E9 7A 19 03 70 04 05 00 A8 A3 E3 BE 02 72 04 04 00 6E 45 97 5A 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 E8 61 46 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 C9 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 1D [12:20:56]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E4 03 01 00 69 04 A3 00 6F 04 04 00 3E 03 01 00 B1 04 05 00 16 E9 7A 19 03 70 04 05 00 A8 A3 E3 BE 02 72 04 04 00 6E 45 97 5A 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 E8 61 46 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 C9 05 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [12:20:56]wFMCommunicate OK [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 17 00 00 [12:20:56]Write to MH i2c: E2 08 00 04 06 80 17 00 00 00 00 00 00 8A [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 04 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 A1 [12:20:56]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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:20:56]wFMCommunicate OK [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 17 00 00 [12:20:56]Write to MH i2c: E2 08 00 05 06 80 17 00 00 00 00 00 00 8B [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 05 06 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 B2 [12:20:56]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:20:56]wFMCommunicate OK [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 17 00 00 [12:20:56]Write to MH i2c: E2 08 00 06 06 80 17 00 00 00 00 00 00 8C [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 FD 00 06 06 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [12:20:56]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:20:56]wFMCommunicate OK [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 17 00 00 [12:20:56]Write to MH i2c: E2 08 00 07 06 80 17 00 00 00 00 00 00 8D [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 E3 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 E3 00 07 06 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6C [12:20:57]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:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetFMData done [12:20:57]requested_item fm.sale_refund.total is exist - process it [12:20:57]requested_item fm.buy.total is exist - process it [12:20:57]requested_item shift.sale.total is exist - process it [12:20:57]SAM_PROTO_GetShiftData [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 13 02 00 [12:20:57]Write to MH i2c: E2 08 00 08 06 80 13 02 00 00 00 00 00 8C [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 FD 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 FD 00 08 06 00 B8 04 AA 04 B4 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 78 30 6B 70 04 03 00 CC 3D 1E 72 04 03 00 AC F2 4C 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 5A 62 0B 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 DB F2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 96 [12:20:57]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 78 30 6B 70 04 03 00 CC 3D 1E 72 04 03 00 AC F2 4C 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 5A 62 0B 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 DB F2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 17 00 00 [12:20:57]Write to MH i2c: E2 08 00 09 06 80 17 00 00 00 00 00 00 8F [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 FD 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 FD 00 09 06 00 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [12:20:57]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:20:57]wFMCommunicate OK [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 17 00 00 [12:20:57]Write to MH i2c: E2 08 00 0A 06 80 17 00 00 00 00 00 00 90 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 FD 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 FD 00 0A 06 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [12:20:58]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 17 00 00 [12:20:58]Write to MH i2c: E2 08 00 0B 06 80 17 00 00 00 00 00 00 91 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 FD 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 FD 00 0B 06 00 03 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 90 00 1A [12:20:58]RAPDU: 03 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 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 17 00 00 [12:20:58]Write to MH i2c: E2 08 00 0C 06 80 17 00 00 00 00 00 00 92 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 D5 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 D5 00 0C 06 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [12:20:58]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:58]wFMCommunicate OK [12:20:58]SAM_PROTO_GetShiftData done [12:20:58]requested_item shift.sale.total_cash is exist - process it [12:20:58]requested_item shift.sale_refund.total is exist - process it [12:20:58]requested_item shift.sale_refund.total_cash is exist - process it [12:20:58]requested_item shift.buy.total is exist - process it [12:20:58]requested_item shift.buy.total_cash is exist - process it [12:20:58]produce_requested_data done [12:20:58]produce_requested_data return {"fm.sale.total":133123873.50,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":70247.60,"shift.sale.total_cash":19819.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:20:58]process_action_free get_value [12:20:58]json_value_free [12:20:58]json_value_free done [12:20:58]process_json_proto returns [12:20:58]Send response to host [12:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133123873.50,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":70247.60,"shift.sale.total_cash":19819.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:20:58]free response buf [12:20:58]execute_script done [12:20:58]execute_script returns [12:20:58]free content buf [12:20:58]Sock 7.Close socket [12:20:58]Sock 7.Thread stoped [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:05]accept exits with 9 [12:21:05]New connection [12:21:05]New thread 3067174244 created [12:21:05]Thread 3067030884 joined [12:21:05]Waiting for new connection... [12:21:05] Sock 9.Parse request [12:21:05]Sock 9.Check first char [12:21:05]Sock 9.First char is OK [12:21:05]request: POST /json_proto HTTP/1.0 [12:21:05]Method: POST [12:21:05]URL: /json_proto [12:21:05]Method is POST - this is cgi request [12:21:05]url: /json_proto [12:21:05]query_string will be loaded in cgi processing [12:21:05]execute_cgi json_proto POST (null) [12:21:05]execute_cgi path=json_proto method=POST [12:21:05]POST find Content-Length [12:21:05]Host: 172.17.41.195:8080 [12:21:05]Content-Length: 1212 [12:21:05]Content-Type: application/json [12:21:05] [12:21:05]POST finish read [12:21:05]Found Content-Length = 1212 [12:21: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)507209\u000A15.05.2024 12:03\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.310 x 66.80\u000A\u0418\u0422\u041E\u0413: 2024.71\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\u000A90816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:05]execute_script... [12:21: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)507209\u000A15.05.2024 12:03\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.310 x 66.80\u000A\u0418\u0422\u041E\u0413: 2024.71\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\u000A90816\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:05]POST & json_proto [12:21:05]process_json_proto [12:21:05]json parsed OK: [12:21:05]protocol is kg_v1.0 [12:21:05]action value=print_text [12:21:05]process_action print_text [12:21:05]cmd_print_text [12:21:05]ExternCall_PrintAddStr [12:21:05]wPrintStart [12:21:05]Write to MH i2c: 01 00 00 0D 06 13 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [12:21:05]RasterBufferAndPrint [12:21:05]line *****ТОВАРНЫЙ ЧЕК***** [12:21:05]line АЗС-91 [12:21:05]line Партнер нефть [12:21:05]line 02508201610067 [12:21:05]line Кассир : Арстанбеков Н. [12:21:05]line Счет N : (1)507209 [12:21:05]line 15.05.2024 12:03 [12:21:05]line ПРОДАЖА [12:21:05]line ТРК (МРК, ГНК): 13 [12:21:05]line Вид ГСМ : 2710124130 [12:21:05]line Аи-92-К-5 [12:21:05]line 30.310 x 66.80 [12:21:05]line ИТОГ: 2024.71 [12:21:05]line Тип оплаты: Талоны: Топливная Карта [12:21:05]line 90816 [12:21:05]line ______________________ [12:21:05]line (подпись) [12:21:05]written 0, free lines is 4095 [12:21:05]Write to MH i2c: 01 00 00 21 06 27 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 12 0E 4E [12:21:05]RasterBufferAndPrint [12:21:05]line [12:21:05]line [12:21:05]line [12:21:05]line [12:21:05]line [12:21:05]written 0, free lines is 3605 [12:21:05]MH_Cut [12:21:05]Write to MH i2c: D1 01 00 28 06 01 00 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: D1 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: D1 01 00 [12:21:05]MH_I2C_Read... [12:21:05]Read from MH i2c: D1 01 00 28 06 00 FF [12:21:05]Write to MH i2c: 01 00 00 29 06 2F [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:05]*** Cut start [12:21:05]*** Purtial cut [12:21:05]*** Stage 1: CUTSNS_PIN = 1 [12:21:06]Read from MH i2c: 01 [12:21:06]MH_I2C_Read... [12:21:06]*** Stop cut motor [12:21:06]*** Cut end [12:21:06]Read from MH i2c: 01 07 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [12:21:06]process_action print_text done [12:21:06]requested_data is exist [12:21:06]produce_requested_data [12:21:06]requested_item fm.sn is exist - process it [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 11 00 00 [12:21:06]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 17 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [12:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:21:06]wFMCommunicate OK [12:21:06]requested_item fd.num is exist - process it [12:21:06]SAM_PROTO_GetFieldsCounters [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 13 00 00 [12:21:06]Write to MH i2c: E2 08 00 2B 06 80 13 00 00 00 00 00 00 AD [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 62 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 62 00 2B 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 AC 06 01 00 0E 04 04 00 64 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 A5 [12:21: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 AC 06 01 00 0E 04 04 00 64 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:21:06]wFMCommunicate OK [12:21:06]SAM_PROTO_GetFieldsCounters done [12:21:06]requested_item shift.num is exist - process it [12:21:06]requested_item shift.opened is exist - process it [12:21:06]req_shift_opened [12:21:06]FM_GetShiftState [12:21:06]SAM_PROTO_GetShiftState [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 13 01 00 [12:21:06]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 0E 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5A [12:21:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:21:06]wFMCommunicate OK [12:21:06]SAM_PROTO_GetShiftState done [12:21:06]FM_GetShiftState done [12:21:06]req_shift_opened done [12:21:06]requested_item shift.open_date is exist - process it [12:21:06]req_shift_open_date [12:21:06]req_shift_open_date done [12:21:06]produce_requested_data done [12:21:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:21:06]process_action_free print_text [12:21:06]json_value_free [12:21:06]json_value_free done [12:21:06]process_json_proto returns [12:21:06]Send response to host [12:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:21:06]free response buf [12:21:06]execute_script done [12:21:06]execute_script returns [12:21:06]free content buf [12:21:06]Sock 9.Close socket [12:21:06]Sock 9.Thread stoped [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:33]accept exits with 7 [12:21:33]New connection [12:21:33]New thread 3067030884 created [12:21:33]Thread 3067174244 joined [12:21:33]Waiting for new connection... [12:21:33] Sock 7.Parse request [12:21:33]Sock 7.Check first char [12:21:33]Sock 7.First char is OK [12:21:33]request: POST /json_proto HTTP/1.0 [12:21:33]Method: POST [12:21:33]URL: /json_proto [12:21:33]Method is POST - this is cgi request [12:21:33]url: /json_proto [12:21:33]query_string will be loaded in cgi processing [12:21:33]execute_cgi json_proto POST (null) [12:21:33]execute_cgi path=json_proto method=POST [12:21:33]POST find Content-Length [12:21:33]Host: 172.17.41.195:8080 [12:21:33]Content-Length: 1207 [12:21:33]Content-Type: application/json [12:21:33] [12:21:33]POST finish read [12:21:33]Found Content-Length = 1207 [12:21: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)507211\u000A15.05.2024 12:04\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 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" ] } } [12:21:33]execute_script... [12:21: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)507211\u000A15.05.2024 12:04\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 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" ] } } [12:21:33]POST & json_proto [12:21:33]process_json_proto [12:21:33]json parsed OK: [12:21:33]protocol is kg_v1.0 [12:21:33]action value=print_text [12:21:33]process_action print_text [12:21:33]cmd_print_text [12:21:33]ExternCall_PrintAddStr [12:21:33]wPrintStart [12:21:33]Write to MH i2c: 01 00 00 2D 06 33 [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [12:21:33]RasterBufferAndPrint [12:21:33]line *****ТОВАРНЫЙ ЧЕК***** [12:21:33]line АЗС-91 [12:21:33]line Партнер нефть [12:21:33]line 02508201610067 [12:21:33]line Кассир : Арстанбеков Н. [12:21:33]line Счет N : (1)507211 [12:21:33]line 15.05.2024 12:04 [12:21:33]line ПРОДАЖА [12:21:33]line ТРК (МРК, ГНК): 21 [12:21:33]line Вид ГСМ : 2710194210 [12:21:33]line ДТ-К-5 [12:21:33]line 6.700 x 74.70 [12:21:33]line ИТОГ: 500.49 [12:21:33]line Тип оплаты: Талоны: Топливная Карта [12:21:33]line 02750 [12:21:33]line ______________________ [12:21:33]line (подпись) [12:21:33]written 0, free lines is 4095 [12:21:33]Write to MH i2c: 01 00 00 41 06 47 [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 0E 0E 6A [12:21:33]RasterBufferAndPrint [12:21:33]line [12:21:33]line [12:21:33]line [12:21:33]line [12:21:33]line [12:21:33]written 0, free lines is 3600 [12:21:33]MH_Cut [12:21:33]Write to MH i2c: D1 01 00 48 06 01 20 [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: D1 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: D1 01 00 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: D1 01 00 48 06 00 1F [12:21:33]Write to MH i2c: 01 00 00 49 06 4F [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:34]OFD Sender: No OFD packet to send [12:21:34]*** Cut start [12:21:34]*** Purtial cut [12:21:34]*** CUTSNS_PIN = 0 [12:21:34]*** Stage 1: CUTSNS_PIN = 1 [12:21:36]Read from MH i2c: 01 [12:21:36]MH_I2C_Read... [12:21:36]*** Stop cut motor [12:21:36]*** Cut end [12:21:36]Read from MH i2c: 01 07 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 FF 0F 64 [12:21:36]process_action print_text done [12:21:36]requested_data is exist [12:21:36]produce_requested_data [12:21:36]requested_item fm.sn is exist - process it [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 11 00 00 [12:21:36]Write to MH i2c: E2 08 00 4A 06 80 11 00 00 00 00 00 00 CA [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 17 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 17 00 4A 06 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:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:21:36]wFMCommunicate OK [12:21:36]requested_item fd.num is exist - process it [12:21:36]SAM_PROTO_GetFieldsCounters [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 13 00 00 [12:21:36]Write to MH i2c: E2 08 00 4B 06 80 13 00 00 00 00 00 00 CD [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 62 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 62 00 4B 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 AC 06 01 00 0E 04 04 00 64 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 C5 [12:21: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 AC 06 01 00 0E 04 04 00 64 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:21:36]wFMCommunicate OK [12:21:36]SAM_PROTO_GetFieldsCounters done [12:21:36]requested_item shift.num is exist - process it [12:21:36]requested_item shift.opened is exist - process it [12:21:36]req_shift_opened [12:21:36]FM_GetShiftState [12:21:36]SAM_PROTO_GetShiftState [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 13 01 00 [12:21:36]Write to MH i2c: E2 08 00 4C 06 80 13 01 00 00 00 00 00 CF [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 0E 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 0E 00 4C 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7A [12:21:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:21:36]wFMCommunicate OK [12:21:36]SAM_PROTO_GetShiftState done [12:21:36]FM_GetShiftState done [12:21:36]req_shift_opened done [12:21:36]requested_item shift.open_date is exist - process it [12:21:36]req_shift_open_date [12:21:36]req_shift_open_date done [12:21:36]produce_requested_data done [12:21:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:21:36]process_action_free print_text [12:21:36]json_value_free [12:21:36]json_value_free done [12:21:36]process_json_proto returns [12:21:36]Send response to host [12:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67244,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:21:36]free response buf [12:21:36]execute_script done [12:21:36]execute_script returns [12:21:36]free content buf [12:21:36]Sock 7.Close socket [12:21:36]Sock 7.Thread stoped [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:35]accept exits with 9 [12:25:35]New connection [12:25:35]New thread 3067174244 created [12:25:35]Thread 3067030884 joined [12:25:35]Waiting for new connection... [12:25:35] Sock 9.Parse request [12:25:35]Sock 9.Check first char [12:25:35]Sock 9.First char is OK [12:25:35]request: POST /json_proto HTTP/1.0 [12:25:35]Method: POST [12:25:35]URL: /json_proto [12:25:35]Method is POST - this is cgi request [12:25:35]url: /json_proto [12:25:35]query_string will be loaded in cgi processing [12:25:35]execute_cgi json_proto POST (null) [12:25:35]execute_cgi path=json_proto method=POST [12:25:35]POST find Content-Length [12:25:35]Host: 172.17.41.195:8080 [12:25:35]Content-Length: 803 [12:25:35]Content-Type: application/json [12:25:35] [12:25:35]POST finish read [12:25:35]Found Content-Length = 803 [12:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507212", "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" ] } } [12:25:35]execute_script... [12:25: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)507212", "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" ] } } [12:25:35]POST & json_proto [12:25:35]process_json_proto [12:25:35]json parsed OK: [12:25:35]protocol is kg_v1.0 [12:25:35]action value=close_receipt [12:25:35]process_action close_receipt [12:25:35]cmd_close_receipt [12:25:35]MH_GetDate [12:25:35]Write to MH i2c: F0 00 00 4D 06 42 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: F0 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: F0 09 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: F0 09 00 4D 06 00 BF A9 44 66 FC 21 6F 64 4D [12:25:35]GetLastDocTimeStamp 1715775616 [12:25:35]current date 1715775935 [12:25:35]FM_GetShiftState [12:25:35]SAM_PROTO_GetShiftState [12:25:35]wFMCommunicate request_size=4 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 13 01 00 [12:25:35]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:35]Read from MH i2c: E2 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 0E 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7C [12:25:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:25:35]wFMCommunicate OK [12:25:35]SAM_PROTO_GetShiftState done [12:25:35]FM_GetShiftState done [12:25:35]opened in 1715732471 [12:25:35]opened+sec_in_day 1715818871 [12:25:35]quantity*price = 100066 [12:25:35]sum+1 = 100067 [12:25: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 СНО: Общий режим Чек 63 15.05.2024 12:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67245 ФПД: 73969232749952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122535&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67245&fm=73969232749952&tin=02508201610067®Number=0000000000091845&sum=100066 [12:25:36]StoreToDocumentArchive [12:25:36]shift 356 fd 67245 [12:25:36]save to /storage/0356/doc_00067245 [12:25:36]save last doc name /storage/0356/doc_00067245 to /storage/kkm_last_doc_name [12:25:36]save OK [12:25:36]Clear old archive folders... [12:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:36]tlvbuf is 00B0A440 [12:25:36]SAM_PROTO_ClearQueue [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 09 00 00 [12:25:36]Write to MH i2c: E2 08 00 5B 06 80 09 00 00 00 00 00 00 D3 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_ClearQueue done [12:25:36]KKMCreateOFDPacket [12:25:36]OFDProtocolAddRootSTLVToBuf [12:25:36]FM_MakeSignedData [12:25:36]FM_MakeSignedData [12:25:36]SAM_PROTO_SignData [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 01 02 [12:25:36]Write to MH i2c: E2 08 00 5C 06 80 0D 01 02 00 00 00 00 DB [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=255 [12:25:36]MH_SAM_APDU [12:25: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 3F 00 00 00 F4 03 04 00 BF A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 06 01 00 35 04 06 00 43 [12:25:36]Write to MH i2c: E2 02 01 5D 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 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 3F 00 00 00 F4 03 04 00 BF A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 06 01 00 35 04 06 00 43 00 00 E5 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=10 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 02 02 05 46 4D D7 A5 80 [12:25:36]Write to MH i2c: E2 0D 00 5E 06 80 0D 02 02 05 00 46 4D D7 A5 80 00 00 77 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 03 02 [12:25:36]Write to MH i2c: E2 08 00 5F 06 80 0D 03 02 00 00 00 00 E0 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 5F 06 00 63 CD 33 5E 84 6A 18 47 90 00 EF [12:25:36]RAPDU: 63 CD 33 5E 84 6A 18 47 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_SignData done [12:25:36]FM_MakeSignedData done [12:25:36]CreateOFDProtocolMessage [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 11 00 00 [12:25:36]Write to MH i2c: E2 08 00 60 06 80 11 00 00 00 00 00 00 E0 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 60 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [12:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:25:36]wFMCommunicate OK [12:25:36]CreateOFDProtocolMessage done [12:25:36]OFDSenderStorePacket 67245 [12:25:36]StoreOFDPacket docnum=67245 [12:25:36]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 EF 56 07 01 3F 25 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 3F 00 00 00 F4 03 04 00 BF A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 06 01 00 35 04 06 00 43 46 4D D7 A5 80 63 CD 33 5E 84 6A 18 47 [12:25:36]CheckFolder [12:25:36]dirname=/storage/ofd_packets [12:25:36]CheckFolder done [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00067245 [12:25:36]NVStorageSaveData ofd_packets/00067245 [12:25:36]File name is /storage/ofd_packets/00067245 [12:25:36]Write 301 bytes [12:25:36]NVStorageSaveData done [12:25:36]OFDSenderStorePacket done [12:25:36]KKMCreateOFDPacket done [12:25:36]NVStorageSaveData kkm_last_timestamp [12:25:36]File name is /storage/kkm_last_timestamp [12:25:36]Write 4 bytes [12:25:36]NVStorageSaveData done [12:25:36]ExternCall_PrintAddStr [12:25:36]wPrintStart [12:25:36]Write to MH i2c: 01 00 00 61 06 67 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [12:25:36]RasterBufferAndPrint [12:25:36]line Счет N : (1)507212 [12:25:36]line ИНН: 02508201610067 [12:25:36]line Контрольно-Кассовый Чек [12:25:36]line ПРОДАЖА [12:25:36]line ТРК (МРК, ГНК) : 43 [12:25:36]line Товар: 2710124130 [12:25:36]line Аи-92-К-5 [12:25:36]line 14.980 * 66.80 [12:25:36]line = 1000.66 [12:25:36]line НДС 12% НСП 1% [12:25:36]line > о реализуемом товаре [12:25:36]line ИТОГО: 1000.66 [12:25:36]line НСП 1% : 8.85 [12:25:36]line НДС 12% : 106.26 [12:25:36]line Наличными: 0.00 [12:25:36]line Безнал.: 1000.66 [12:25:36]line Место: АЗС № 91 "Партнер Нефть" [12:25:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:25:36]line СНО: Общий режим [12:25:36]line Чек 63 15.05.2024 12:25 [12:25:36]line Смена: 356 ФФД: 1.0 [12:25:36]line ЗНМ: 0300000119 [12:25:36]line РНМ: 0000000000091845 [12:25:36]line Версия ККМ: 001 [12:25:36]line Платежная система: O! деньги [12:25:36]line ФМ: 0000000000871829 [12:25:36]line ФД: 67245 [12:25:36]line ФПД: 73969232749952 [12:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122535&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67245&fm=73969232749952&tin=02508201610067®Number=0000000000091845&sum=100066 [12:25:37]OFD Sender: Processing packet 67245 [packets to send 35, broken 34] [12:25:37]ProducePacketName [12:25:37]name=ofd_packets/00067245 [12:25:37]OFD Sender: To server: pG, [12:25:37]CommunicateWithHost lk.salyk.kg:30040 [12:25:37]ConnectInit lk.salyk.kg [12:25:37]written 0, free lines is 4095 [12:25:37]Connected sock=10 [12:25: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 EF 56 07 01 3F 25 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 3F 00 00 00 F4 03 04 00 BF A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AD 06 01 00 35 04 06 00 43 46 4D D7 A5 80 63 CD 33 5E 84 6A 18 47 [12:25: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 53 0B 47 00 91 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 AD 06 01 00 F4 03 04 00 9D 51 44 66 B6 04 01 00 00 AA 9D 45 1F 46 EF 27 24 [12:25:37]CommunicateWithHost err = 0 [12:25:37]CheckOFDResponse [12:25:37]1017 (14) - 77093643461234 [12:25:37]1041 (16) - 0000000000871829 [12:25:37]1040 (4) - 67245 [12:25:37]1012 (4) - 15.05.2024 06:09 [12:25:37]1206 (1) - 0 [12:25:37]OFD Sender: Remove packet 67245 [12:25:37]ProducePacketName [12:25:37]name=ofd_packets/00067245 [12:25:37]NVStorageDeleteData [12:25:37]Write to MH i2c: 01 00 00 8A 06 90 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 07 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 05 0D A9 [12:25:37]RasterBufferAndPrint [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]line [12:25:37]written 0, free lines is 3339 [12:25:37]MH_Cut [12:25:37]Write to MH i2c: D1 01 00 91 06 01 69 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 01 00 [12:25:37]MH_I2C_Read... [12:25:37]Read from MH i2c: D1 01 00 91 06 00 68 [12:25:37]Write to MH i2c: 01 00 00 92 06 98 [12:25:37]Write i2c OK [12:25:37]MH_I2C_Read... [12:25:38]OFD Sender: No OFD packet to send [12:25:38]*** Cut start [12:25:38]*** Purtial cut [12:25:38]*** Stage 1: CUTSNS_PIN = 1 [12:25:38]Read from MH i2c: 01 [12:25:38]MH_I2C_Read... [12:25:38]*** Stop cut motor [12:25:38]*** Cut end [12:25:38]Read from MH i2c: 01 07 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: 01 07 00 92 06 00 00 00 00 00 FF 0F AD [12:25:38]process_action close_receipt done [12:25:38]requested_data is exist [12:25:38]produce_requested_data [12:25:38]requested_item fm.sn is exist - process it [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 11 00 00 [12:25:38]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [12:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:25:38]wFMCommunicate OK [12:25:38]requested_item fd.num is exist - process it [12:25:38]SAM_PROTO_GetFieldsCounters [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 00 00 [12:25:38]Write to MH i2c: E2 08 00 94 06 80 13 00 00 00 00 00 00 16 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:39]Read from MH i2c: E2 [12:25:39]MH_I2C_Read... [12:25:39]Read from MH i2c: E2 62 00 [12:25:39]MH_I2C_Read... [12:25:39]Read from MH i2c: E2 62 00 94 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 AD 06 01 00 0E 04 04 00 64 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 [12:25: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 AD 06 01 00 0E 04 04 00 64 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:25:39]wFMCommunicate OK [12:25:39]SAM_PROTO_GetFieldsCounters done [12:25:39]requested_item shift.num is exist - process it [12:25:39]requested_item shift.opened is exist - process it [12:25:39]req_shift_opened [12:25:39]FM_GetShiftState [12:25:39]SAM_PROTO_GetShiftState [12:25:39]wFMCommunicate request_size=4 [12:25:39]MH_SAM_APDU [12:25:39]CAPDU: 80 13 01 00 [12:25:39]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [12:25:39]Write i2c OK [12:25:39]MH_I2C_Read... [12:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:39]Read from MH i2c: E2 [12:25:39]MH_I2C_Read... [12:25:39]Read from MH i2c: E2 0E 00 [12:25:39]MH_I2C_Read... [12:25:39]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C3 [12:25:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:25:39]wFMCommunicate OK [12:25:39]SAM_PROTO_GetShiftState done [12:25:39]FM_GetShiftState done [12:25:39]req_shift_opened done [12:25:39]requested_item shift.open_date is exist - process it [12:25:39]req_shift_open_date [12:25:39]req_shift_open_date done [12:25:39]produce_requested_data done [12:25:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67245,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:25:39]process_action_free close_receipt [12:25:39]json_value_free [12:25:39]json_value_free done [12:25:39]process_json_proto returns [12:25:39]Send response to host [12:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67245,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:25:39]free response buf [12:25:39]execute_script done [12:25:39]execute_script returns [12:25:39]free content buf [12:25:39]Sock 9.Close socket [12:25:39]Sock 9.Thread stoped [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:32]accept exits with 7 [12:26:32]New connection [12:26:32]New thread 3067030884 created [12:26:32]Thread 3067174244 joined [12:26:32]Waiting for new connection... [12:26:32] Sock 7.Parse request [12:26:32]Sock 7.Check first char [12:26:32]Sock 7.First char is OK [12:26:32]request: POST /json_proto HTTP/1.0 [12:26:32]Method: POST [12:26:32]URL: /json_proto [12:26:32]Method is POST - this is cgi request [12:26:32]url: /json_proto [12:26:32]query_string will be loaded in cgi processing [12:26:32]execute_cgi json_proto POST (null) [12:26:32]execute_cgi path=json_proto method=POST [12:26:32]POST find Content-Length [12:26:32]Host: 172.17.41.195:8080 [12:26:32]Content-Length: 803 [12:26:32]Content-Type: application/json [12:26:32] [12:26:32]POST finish read [12:26:32]Found Content-Length = 803 [12:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507213", "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" ] } } [12:26:32]execute_script... [12:26:32]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)507213", "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" ] } } [12:26:32]POST & json_proto [12:26:32]process_json_proto [12:26:32]json parsed OK: [12:26:32]protocol is kg_v1.0 [12:26:32]action value=close_receipt [12:26:32]process_action close_receipt [12:26:32]cmd_close_receipt [12:26:32]MH_GetDate [12:26:32]Write to MH i2c: F0 00 00 96 06 8B [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 09 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 09 00 96 06 00 F9 A9 44 66 FC 21 6F 64 D0 [12:26:32]GetLastDocTimeStamp 1715775935 [12:26:32]current date 1715775993 [12:26:32]FM_GetShiftState [12:26:32]SAM_PROTO_GetShiftState [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 13 01 00 [12:26:32]Write to MH i2c: E2 08 00 97 06 80 13 01 00 00 00 00 00 1A [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 97 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C5 [12:26:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetShiftState done [12:26:32]FM_GetShiftState done [12:26:32]opened in 1715732471 [12:26:32]opened+sec_in_day 1715818871 [12:26:32]quantity*price = 100066 [12:26:32]sum+1 = 100067 [12:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 64 15.05.2024 12:26 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67246 ФПД: 58088013931662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67246&fm=58088013931662&tin=02508201610067®Number=0000000000091845&sum=100066 [12:26:33]StoreToDocumentArchive [12:26:33]shift 356 fd 67246 [12:26:33]save to /storage/0356/doc_00067246 [12:26:33]save last doc name /storage/0356/doc_00067246 to /storage/kkm_last_doc_name [12:26:33]save OK [12:26:33]Clear old archive folders... [12:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:33]tlvbuf is 00B086D0 [12:26:33]SAM_PROTO_ClearQueue [12:26:33]wFMCommunicate request_size=4 [12:26:33]MH_SAM_APDU [12:26:33]CAPDU: 80 09 00 00 [12:26:33]Write to MH i2c: E2 08 00 A4 06 80 09 00 00 00 00 00 00 1C [12:26:33]Write i2c OK [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 [12:26:33]MH_I2C_Read... [12:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:33]Read from MH i2c: E2 03 00 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 03 00 A4 06 00 90 00 1E [12:26:33]RAPDU: 90 00 [12:26:33]wFMCommunicate OK [12:26:33]SAM_PROTO_ClearQueue done [12:26:33]KKMCreateOFDPacket [12:26:33]OFDProtocolAddRootSTLVToBuf [12:26:33]FM_MakeSignedData [12:26:33]FM_MakeSignedData [12:26:33]SAM_PROTO_SignData [12:26:33]wFMCommunicate request_size=4 [12:26:33]MH_SAM_APDU [12:26:33]CAPDU: 80 0D 01 02 [12:26:33]Write to MH i2c: E2 08 00 A5 06 80 0D 01 02 00 00 00 00 24 [12:26:33]Write i2c OK [12:26:33]MH_I2C_Read... [12:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:33]Read from MH i2c: E2 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 03 00 [12:26:33]MH_I2C_Read... [12:26:33]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [12:26:33]RAPDU: 90 00 [12:26:33]wFMCommunicate OK [12:26:33]wFMCommunicate request_size=255 [12:26:33]MH_SAM_APDU [12:26: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 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 40 00 00 00 F4 03 04 00 F9 A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 06 01 00 35 04 06 00 34 [12:26:33]Write to MH i2c: E2 02 01 A6 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 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 40 00 00 00 F4 03 04 00 F9 A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 06 01 00 35 04 06 00 34 00 00 5B [12:26:33]Write i2c OK [12:26:33]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=10 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 02 02 05 D4 AB 6F A4 8E [12:26:34]Write to MH i2c: E2 0D 00 A7 06 80 0D 02 02 05 00 D4 AB 6F A4 8E 00 00 51 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 03 02 [12:26:34]Write to MH i2c: E2 08 00 A8 06 80 0D 03 02 00 00 00 00 29 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0B 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0B 00 A8 06 00 CF 39 9E 05 11 6A 9D C1 90 00 AE [12:26:34]RAPDU: CF 39 9E 05 11 6A 9D C1 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_SignData done [12:26:34]FM_MakeSignedData done [12:26:34]CreateOFDProtocolMessage [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 11 00 00 [12:26:34]Write to MH i2c: E2 08 00 A9 06 80 11 00 00 00 00 00 00 29 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 A9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [12:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:26:34]wFMCommunicate OK [12:26:34]CreateOFDProtocolMessage done [12:26:34]OFDSenderStorePacket 67246 [12:26:34]StoreOFDPacket docnum=67246 [12:26: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 0F 01 00 00 3C 7A 07 01 5B 32 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 40 00 00 00 F4 03 04 00 F9 A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 06 01 00 35 04 06 00 34 D4 AB 6F A4 8E CF 39 9E 05 11 6A 9D C1 [12:26:34]CheckFolder [12:26:34]dirname=/storage/ofd_packets [12:26:34]CheckFolder done [12:26:34]ProducePacketName [12:26:34]name=ofd_packets/00067246 [12:26:34]NVStorageSaveData ofd_packets/00067246 [12:26:34]File name is /storage/ofd_packets/00067246 [12:26:34]Write 301 bytes [12:26:34]NVStorageSaveData done [12:26:34]OFDSenderStorePacket done [12:26:34]KKMCreateOFDPacket done [12:26:34]NVStorageSaveData kkm_last_timestamp [12:26:34]File name is /storage/kkm_last_timestamp [12:26:34]Write 4 bytes [12:26:34]NVStorageSaveData done [12:26:34]ExternCall_PrintAddStr [12:26:34]wPrintStart [12:26:34]Write to MH i2c: 01 00 00 AA 06 B0 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 07 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [12:26:34]RasterBufferAndPrint [12:26:34]line Счет N : (1)507213 [12:26:34]line ИНН: 02508201610067 [12:26:34]line Контрольно-Кассовый Чек [12:26:34]line ПРОДАЖА [12:26:34]line ТРК (МРК, ГНК) : 33 [12:26:34]line Товар: 2710124130 [12:26:34]line Аи-92-К-5 [12:26:34]line 14.980 * 66.80 [12:26:34]line = 1000.66 [12:26:34]line НДС 12% НСП 1% [12:26:34]line > о реализуемом товаре [12:26:34]line ИТОГО: 1000.66 [12:26:34]line НСП 1% : 8.85 [12:26:34]line НДС 12% : 106.26 [12:26:34]line Наличными: 0.00 [12:26:34]line Безнал.: 1000.66 [12:26:34]line Место: АЗС № 91 "Партнер Нефть" [12:26:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:26:34]line СНО: Общий режим [12:26:34]line Чек 64 15.05.2024 12:26 [12:26:34]line Смена: 356 ФФД: 1.0 [12:26:34]line ЗНМ: 0300000119 [12:26:34]line РНМ: 0000000000091845 [12:26:34]line Версия ККМ: 001 [12:26:34]line Платежная система: O! деньги [12:26:34]line ФМ: 0000000000871829 [12:26:34]line ФД: 67246 [12:26:34]line ФПД: 58088013931662 [12:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67246&fm=58088013931662&tin=02508201610067®Number=0000000000091845&sum=100066 [12:26:34]OFD Sender: Processing packet 67246 [packets to send 35, broken 34] [12:26:34]ProducePacketName [12:26:34]name=ofd_packets/00067246 [12:26:34]OFD Sender: To server: pG, [12:26:34]CommunicateWithHost lk.salyk.kg:30040 [12:26:34]ConnectInit lk.salyk.kg [12:26:34]written 0, free lines is 4095 [12:26:34]Connected sock=10 [12:26:34]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 3C 7A 07 01 5B 32 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 40 00 00 00 F4 03 04 00 F9 A9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 06 01 00 35 04 06 00 34 D4 AB 6F A4 8E CF 39 9E 05 11 6A 9D C1 [12:26: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 54 C6 47 00 42 91 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 AE 06 01 00 F4 03 04 00 D6 51 44 66 B6 04 01 00 00 01 32 AD 56 1A 49 78 89 [12:26:34]CommunicateWithHost err = 0 [12:26:34]CheckOFDResponse [12:26:34]1017 (14) - 77093643461234 [12:26:34]1041 (16) - 0000000000871829 [12:26:34]1040 (4) - 67246 [12:26:34]1012 (4) - 15.05.2024 06:10 [12:26:34]1206 (1) - 0 [12:26:34]OFD Sender: Remove packet 67246 [12:26:34]ProducePacketName [12:26:34]name=ofd_packets/00067246 [12:26:34]NVStorageDeleteData [12:26:35]Write to MH i2c: 01 00 00 D3 06 D9 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 DF 0C CB [12:26:35]RasterBufferAndPrint [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]written 0, free lines is 3301 [12:26:35]MH_Cut [12:26:35]Write to MH i2c: D1 01 00 DA 06 01 B2 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 01 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 01 00 DA 06 00 B1 [12:26:35]Write to MH i2c: 01 00 00 DB 06 E1 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]OFD Sender: No OFD packet to send [12:26:35]*** Cut start [12:26:35]*** Purtial cut [12:26:35]*** CUTSNS_PIN = 0 [12:26:36]*** Stage 1: CUTSNS_PIN = 1 [12:26:37]Read from MH i2c: 01 [12:26:37]MH_I2C_Read... [12:26:37]*** Stop cut motor [12:26:37]*** Cut end [12:26:37]Read from MH i2c: 01 07 00 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [12:26:37]process_action close_receipt done [12:26:37]requested_data is exist [12:26:37]produce_requested_data [12:26:37]requested_item fm.sn is exist - process it [12:26:37]wFMCommunicate request_size=4 [12:26:37]MH_SAM_APDU [12:26:37]CAPDU: 80 11 00 00 [12:26:37]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [12:26:37]Write i2c OK [12:26:37]MH_I2C_Read... [12:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:37]Read from MH i2c: E2 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 17 00 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [12:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:26:37]wFMCommunicate OK [12:26:37]requested_item fd.num is exist - process it [12:26:37]SAM_PROTO_GetFieldsCounters [12:26:37]wFMCommunicate request_size=4 [12:26:37]MH_SAM_APDU [12:26:37]CAPDU: 80 13 00 00 [12:26:37]Write to MH i2c: E2 08 00 DD 06 80 13 00 00 00 00 00 00 5F [12:26:37]Write i2c OK [12:26:37]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 62 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 62 00 DD 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 AE 06 01 00 0E 04 04 00 64 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 5F [12:26: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 AE 06 01 00 0E 04 04 00 64 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:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_GetFieldsCounters done [12:26:38]requested_item shift.num is exist - process it [12:26:38]requested_item shift.opened is exist - process it [12:26:38]req_shift_opened [12:26:38]FM_GetShiftState [12:26:38]SAM_PROTO_GetShiftState [12:26:38]wFMCommunicate request_size=4 [12:26:38]MH_SAM_APDU [12:26:38]CAPDU: 80 13 01 00 [12:26:38]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [12:26:38]Write i2c OK [12:26:38]MH_I2C_Read... [12:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:38]Read from MH i2c: E2 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0E 00 [12:26:38]MH_I2C_Read... [12:26:38]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0C [12:26:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:26:38]wFMCommunicate OK [12:26:38]SAM_PROTO_GetShiftState done [12:26:38]FM_GetShiftState done [12:26:38]req_shift_opened done [12:26:38]requested_item shift.open_date is exist - process it [12:26:38]req_shift_open_date [12:26:38]req_shift_open_date done [12:26:38]produce_requested_data done [12:26:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67246,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:26:38]process_action_free close_receipt [12:26:38]json_value_free [12:26:38]json_value_free done [12:26:38]process_json_proto returns [12:26:38]Send response to host [12:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67246,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:26:38]free response buf [12:26:38]execute_script done [12:26:38]execute_script returns [12:26:38]free content buf [12:26:38]Sock 7.Close socket [12:26:38]Sock 7.Thread stoped [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:26]accept exits with 9 [12:27:26]New connection [12:27:26]New thread 3067174244 created [12:27:26]Thread 3067030884 joined [12:27:26]Waiting for new connection... [12:27:26] Sock 9.Parse request [12:27:26]Sock 9.Check first char [12:27:26]Sock 9.First char is OK [12:27:26]request: POST /json_proto HTTP/1.0 [12:27:26]Method: POST [12:27:26]URL: /json_proto [12:27:26]Method is POST - this is cgi request [12:27:26]url: /json_proto [12:27:26]query_string will be loaded in cgi processing [12:27:26]execute_cgi json_proto POST (null) [12:27:26]execute_cgi path=json_proto method=POST [12:27:26]POST find Content-Length [12:27:26]Host: 172.17.41.195:8080 [12:27:26]Content-Length: 800 [12:27:26]Content-Type: application/json [12:27:26] [12:27:26]POST finish read [12:27:26]Found Content-Length = 800 [12:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507214", "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" ] } } [12:27:26]execute_script... [12:27: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)507214", "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" ] } } [12:27:26]POST & json_proto [12:27:26]process_json_proto [12:27:26]json parsed OK: [12:27:26]protocol is kg_v1.0 [12:27:26]action value=close_receipt [12:27:26]process_action close_receipt [12:27:26]cmd_close_receipt [12:27:26]MH_GetDate [12:27:26]Write to MH i2c: F0 00 00 DF 06 D4 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: F0 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: F0 09 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: F0 09 00 DF 06 00 2F AA 44 66 FC 21 6F 64 50 [12:27:26]GetLastDocTimeStamp 1715775993 [12:27:26]current date 1715776047 [12:27:26]FM_GetShiftState [12:27:26]SAM_PROTO_GetShiftState [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 13 01 00 [12:27:26]Write to MH i2c: E2 08 00 E0 06 80 13 01 00 00 00 00 00 63 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0E 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0E 00 E0 06 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0E [12:27:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:27:26]wFMCommunicate OK [12:27:26]SAM_PROTO_GetShiftState done [12:27:26]FM_GetShiftState done [12:27:26]opened in 1715732471 [12:27:26]opened+sec_in_day 1715818871 [12:27:26]quantity*price = 200046 [12:27:26]sum+1 = 200048 [12:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 65 15.05.2024 12:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67247 ФПД: 19903800869784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67247&fm=19903800869784&tin=02508201610067®Number=0000000000091845&sum=200047 [12:27:27]StoreToDocumentArchive [12:27:27]shift 356 fd 67247 [12:27:27]save to /storage/0356/doc_00067247 [12:27:27]save last doc name /storage/0356/doc_00067247 to /storage/kkm_last_doc_name [12:27:27]save OK [12:27:27]Clear old archive folders... [12:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:27]tlvbuf is 00B3F850 [12:27:27]SAM_PROTO_ClearQueue [12:27:27]wFMCommunicate request_size=4 [12:27:27]MH_SAM_APDU [12:27:27]CAPDU: 80 09 00 00 [12:27:27]Write to MH i2c: E2 08 00 ED 06 80 09 00 00 00 00 00 00 65 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 [12:27:27]MH_I2C_Read... [12:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:27]Read from MH i2c: E2 03 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [12:27:27]RAPDU: 90 00 [12:27:27]wFMCommunicate OK [12:27:27]SAM_PROTO_ClearQueue done [12:27:27]KKMCreateOFDPacket [12:27:27]OFDProtocolAddRootSTLVToBuf [12:27:27]FM_MakeSignedData [12:27:27]FM_MakeSignedData [12:27:27]SAM_PROTO_SignData [12:27:27]wFMCommunicate request_size=4 [12:27:27]MH_SAM_APDU [12:27:27]CAPDU: 80 0D 01 02 [12:27:27]Write to MH i2c: E2 08 00 EE 06 80 0D 01 02 00 00 00 00 6D [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:27]Read from MH i2c: E2 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 03 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [12:27:27]RAPDU: 90 00 [12:27:27]wFMCommunicate OK [12:27:27]wFMCommunicate request_size=255 [12:27:27]MH_SAM_APDU [12:27: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 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 41 00 00 00 F4 03 04 00 2F AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 06 01 00 35 04 06 00 12 1A 36 FB [12:27:27]Write to MH i2c: E2 02 01 EF 06 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 41 00 00 00 F4 03 04 00 2F AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 06 01 00 35 04 06 00 12 1A 36 FB 00 00 15 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 03 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 03 00 EF 06 00 90 00 69 [12:27:28]RAPDU: 90 00 [12:27:28]wFMCommunicate OK [12:27:28]wFMCommunicate request_size=7 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 0D 02 02 02 03 98 [12:27:28]Write to MH i2c: E2 0A 00 F0 06 80 0D 02 02 02 00 03 98 00 00 0F [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 03 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [12:27:28]RAPDU: 90 00 [12:27:28]wFMCommunicate OK [12:27:28]wFMCommunicate request_size=4 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 0D 03 02 [12:27:28]Write to MH i2c: E2 08 00 F1 06 80 0D 03 02 00 00 00 00 72 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 0B 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 0B 00 F1 06 00 91 BF AA 79 D4 7B 0F 4F 90 00 93 [12:27:28]RAPDU: 91 BF AA 79 D4 7B 0F 4F 90 00 [12:27:28]wFMCommunicate OK [12:27:28]SAM_PROTO_SignData done [12:27:28]FM_MakeSignedData done [12:27:28]CreateOFDProtocolMessage [12:27:28]wFMCommunicate request_size=4 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 11 00 00 [12:27:28]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 17 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [12:27:28]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:28]wFMCommunicate OK [12:27:28]CreateOFDProtocolMessage done [12:27:28]OFDSenderStorePacket 67247 [12:27:28]StoreOFDPacket docnum=67247 [12:27: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 56 DA 04 01 37 C0 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 41 00 00 00 F4 03 04 00 2F AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 06 01 00 35 04 06 00 12 1A 36 FB 03 98 91 BF AA 79 D4 7B 0F 4F [12:27:28]CheckFolder [12:27:28]dirname=/storage/ofd_packets [12:27:28]CheckFolder done [12:27:28]ProducePacketName [12:27:28]name=ofd_packets/00067247 [12:27:28]NVStorageSaveData ofd_packets/00067247 [12:27:28]File name is /storage/ofd_packets/00067247 [12:27:28]Write 298 bytes [12:27:28]NVStorageSaveData done [12:27:28]OFDSenderStorePacket done [12:27:28]KKMCreateOFDPacket done [12:27:28]NVStorageSaveData kkm_last_timestamp [12:27:28]File name is /storage/kkm_last_timestamp [12:27:28]Write 4 bytes [12:27:28]NVStorageSaveData done [12:27:28]ExternCall_PrintAddStr [12:27:28]wPrintStart [12:27:28]Write to MH i2c: 01 00 00 F3 06 F9 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 07 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 FF 0F 0E [12:27:28]RasterBufferAndPrint [12:27:28]line Счет N : (1)507214 [12:27:28]line ИНН: 02508201610067 [12:27:28]line Контрольно-Кассовый Чек [12:27:28]line ПРОДАЖА [12:27:28]line ТРК (МРК, ГНК) : 21 [12:27:28]line Товар: 2710194210 [12:27:28]line ДТ-К-5 [12:27:28]line 26.780 * 74.70 [12:27:28]line = 2000.47 [12:27:28]line НДС 12% НСП 1% [12:27:28]line > о реализуемом товаре [12:27:28]line ИТОГО: 2000.47 [12:27:28]line НСП 1% : 17.70 [12:27:28]line НДС 12% : 212.44 [12:27:28]line Наличными: 0.00 [12:27:28]line Безнал.: 2000.47 [12:27:28]line Место: АЗС № 91 "Партнер Нефть" [12:27:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:27:28]line СНО: Общий режим [12:27:28]line Чек 65 15.05.2024 12:27 [12:27:28]line Смена: 356 ФФД: 1.0 [12:27:28]line ЗНМ: 0300000119 [12:27:28]line РНМ: 0000000000091845 [12:27:28]line Версия ККМ: 001 [12:27:28]line Платежная система: O! деньги [12:27:28]line ФМ: 0000000000871829 [12:27:28]line ФД: 67247 [12:27:28]line ФПД: 19903800869784 [12:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T122727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67247&fm=19903800869784&tin=02508201610067®Number=0000000000091845&sum=200047 [12:27:28]OFD Sender: Processing packet 67247 [packets to send 35, broken 34] [12:27:28]ProducePacketName [12:27:28]name=ofd_packets/00067247 [12:27:28]OFD Sender: To server: pG, [12:27:28]CommunicateWithHost lk.salyk.kg:30040 [12:27:28]ConnectInit lk.salyk.kg [12:27:28]written 0, free lines is 4095 [12:27:28]Connected sock=10 [12:27: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 56 DA 04 01 37 C0 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 41 00 00 00 F4 03 04 00 2F AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AF 06 01 00 35 04 06 00 12 1A 36 FB 03 98 91 BF AA 79 D4 7B 0F 4F [12:27: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 AB E1 47 00 A1 BC 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 AF 06 01 00 F4 03 04 00 0C 52 44 66 B6 04 01 00 00 71 60 F5 2B 63 34 0E 15 [12:27:28]CommunicateWithHost err = 0 [12:27:28]CheckOFDResponse [12:27:28]1017 (14) - 77093643461234 [12:27:28]1041 (16) - 0000000000871829 [12:27:28]1040 (4) - 67247 [12:27:28]1012 (4) - 15.05.2024 06:11 [12:27:28]1206 (1) - 0 [12:27:28]OFD Sender: Remove packet 67247 [12:27:28]ProducePacketName [12:27:28]name=ofd_packets/00067247 [12:27:28]NVStorageDeleteData [12:27:28]Write to MH i2c: 01 00 00 1C 07 23 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 07 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 EA 0C 20 [12:27:28]RasterBufferAndPrint [12:27:28]line [12:27:28]line [12:27:28]line [12:27:28]line [12:27:28]line [12:27:28]written 0, free lines is 3312 [12:27:29]MH_Cut [12:27:29]Write to MH i2c: D1 01 00 23 07 01 FC [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: D1 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: D1 01 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: D1 01 00 23 07 00 FB [12:27:29]Write to MH i2c: 01 00 00 24 07 2B [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]OFD Sender: No OFD packet to send [12:27:29]*** Cut start [12:27:29]*** Purtial cut [12:27:29]*** Stage 1: CUTSNS_PIN = 1 [12:27:30]Read from MH i2c: 01 [12:27:30]MH_I2C_Read... [12:27:30]*** Stop cut motor [12:27:30]*** Cut end [12:27:30]Read from MH i2c: 01 07 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: 01 07 00 24 07 00 00 00 00 00 FF 0F 40 [12:27:30]process_action close_receipt done [12:27:30]requested_data is exist [12:27:30]produce_requested_data [12:27:30]requested_item fm.sn is exist - process it [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 11 00 00 [12:27:30]Write to MH i2c: E2 08 00 25 07 80 11 00 00 00 00 00 00 A6 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 17 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 17 00 25 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [12:27:30]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:30]wFMCommunicate OK [12:27:30]requested_item fd.num is exist - process it [12:27:30]SAM_PROTO_GetFieldsCounters [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 13 00 00 [12:27:30]Write to MH i2c: E2 08 00 26 07 80 13 00 00 00 00 00 00 A9 [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 62 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 62 00 26 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 AF 06 01 00 0E 04 04 00 64 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 AD [12:27: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 AF 06 01 00 0E 04 04 00 64 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:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_GetFieldsCounters done [12:27:30]requested_item shift.num is exist - process it [12:27:30]requested_item shift.opened is exist - process it [12:27:30]req_shift_opened [12:27:30]FM_GetShiftState [12:27:30]SAM_PROTO_GetShiftState [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 13 01 00 [12:27:30]Write to MH i2c: E2 08 00 27 07 80 13 01 00 00 00 00 00 AB [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 27 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 56 [12:27:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_GetShiftState done [12:27:30]FM_GetShiftState done [12:27:30]req_shift_opened done [12:27:30]requested_item shift.open_date is exist - process it [12:27:30]req_shift_open_date [12:27:30]req_shift_open_date done [12:27:30]produce_requested_data done [12:27:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67247,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:27:30]process_action_free close_receipt [12:27:30]json_value_free [12:27:30]json_value_free done [12:27:30]process_json_proto returns [12:27:30]Send response to host [12:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67247,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:27:30]free response buf [12:27:30]execute_script done [12:27:30]execute_script returns [12:27:30]free content buf [12:27:30]Sock 9.Close socket [12:27:30]Sock 9.Thread stoped [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [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:21]accept exits with 7 [12:30:21]New connection [12:30:21]New thread 3067030884 created [12:30:21]Thread 3067174244 joined [12:30:21]Waiting for new connection... [12:30:21] Sock 7.Parse request [12:30:21]Sock 7.Check first char [12:30:21]Sock 7.First char is OK [12:30:21]request: POST /json_proto HTTP/1.0 [12:30:21]Method: POST [12:30:21]URL: /json_proto [12:30:21]Method is POST - this is cgi request [12:30:21]url: /json_proto [12:30:21]query_string will be loaded in cgi processing [12:30:21]execute_cgi json_proto POST (null) [12:30:21]execute_cgi path=json_proto method=POST [12:30:21]POST find Content-Length [12:30:21]Host: 172.17.41.195:8080 [12:30:21]Content-Length: 796 [12:30:21]Content-Type: application/json [12:30:21] [12:30:21]POST finish read [12:30:21]Found Content-Length = 796 [12:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507217", "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" ] } } [12:30:21]execute_script... [12:30: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)507217", "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" ] } } [12:30:21]POST & json_proto [12:30:21]process_json_proto [12:30:21]json parsed OK: [12:30:21]protocol is kg_v1.0 [12:30:21]action value=close_receipt [12:30:21]process_action close_receipt [12:30:21]cmd_close_receipt [12:30:21]MH_GetDate [12:30:21]Write to MH i2c: F0 00 00 28 07 1E [12:30:21]Write i2c OK [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: F0 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: F0 09 00 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: F0 09 00 28 07 00 DE AA 44 66 FC 21 6F 64 49 [12:30:21]GetLastDocTimeStamp 1715776047 [12:30:21]current date 1715776222 [12:30:21]FM_GetShiftState [12:30:21]SAM_PROTO_GetShiftState [12:30:21]wFMCommunicate request_size=4 [12:30:21]MH_SAM_APDU [12:30:21]CAPDU: 80 13 01 00 [12:30:21]Write to MH i2c: E2 08 00 29 07 80 13 01 00 00 00 00 00 AD [12:30:21]Write i2c OK [12:30:21]MH_I2C_Read... [12:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:21]Read from MH i2c: E2 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 0E 00 [12:30:21]MH_I2C_Read... [12:30:21]Read from MH i2c: E2 0E 00 29 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 58 [12:30:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:30:21]wFMCommunicate OK [12:30:21]SAM_PROTO_GetShiftState done [12:30:21]FM_GetShiftState done [12:30:21]opened in 1715732471 [12:30:21]opened+sec_in_day 1715818871 [12:30:21]quantity*price = 200010 [12:30:21]sum+1 = 200011 [12:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 66 15.05.2024 12:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67248 ФПД: 20050817438485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123022&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67248&fm=20050817438485&tin=02508201610067®Number=0000000000091845&sum=200010 [12:30:22]StoreToDocumentArchive [12:30:22]shift 356 fd 67248 [12:30:22]save to /storage/0356/doc_00067248 [12:30:22]save last doc name /storage/0356/doc_00067248 to /storage/kkm_last_doc_name [12:30:22]save OK [12:30:22]Clear old archive folders... [12:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:30:22]tlvbuf is 00B09910 [12:30:22]SAM_PROTO_ClearQueue [12:30:22]wFMCommunicate request_size=4 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 09 00 00 [12:30:22]Write to MH i2c: E2 08 00 36 07 80 09 00 00 00 00 00 00 AF [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:22]Read from MH i2c: E2 03 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [12:30:22]RAPDU: 90 00 [12:30:22]wFMCommunicate OK [12:30:22]SAM_PROTO_ClearQueue done [12:30:22]KKMCreateOFDPacket [12:30:22]OFDProtocolAddRootSTLVToBuf [12:30:22]FM_MakeSignedData [12:30:22]FM_MakeSignedData [12:30:22]SAM_PROTO_SignData [12:30:22]wFMCommunicate request_size=4 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 0D 01 02 [12:30:22]Write to MH i2c: E2 08 00 37 07 80 0D 01 02 00 00 00 00 B7 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [12:30:22]RAPDU: 90 00 [12:30:22]wFMCommunicate OK [12:30:22]wFMCommunicate request_size=255 [12:30:22]MH_SAM_APDU [12:30:22]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 42 00 00 00 F4 03 04 00 DE AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 06 01 00 35 04 06 00 [12:30:22]Write to MH i2c: E2 02 01 38 07 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 42 00 00 00 F4 03 04 00 DE AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 06 01 00 35 04 06 00 00 00 0D [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:22]Read from MH i2c: E2 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 [12:30:22]MH_I2C_Read... [12:30:22]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [12:30:22]RAPDU: 90 00 [12:30:22]wFMCommunicate OK [12:30:22]wFMCommunicate request_size=11 [12:30:22]MH_SAM_APDU [12:30:22]CAPDU: 80 0D 02 02 06 12 3C 71 D9 D3 15 [12:30:22]Write to MH i2c: E2 0E 00 39 07 80 0D 02 02 06 00 12 3C 71 D9 D3 15 00 00 46 [12:30:22]Write i2c OK [12:30:22]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [12:30:23]RAPDU: 90 00 [12:30:23]wFMCommunicate OK [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 0D 03 02 [12:30:23]Write to MH i2c: E2 08 00 3A 07 80 0D 03 02 00 00 00 00 BC [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 0B 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 0B 00 3A 07 00 70 62 E7 68 51 19 C5 35 90 00 42 [12:30:23]RAPDU: 70 62 E7 68 51 19 C5 35 90 00 [12:30:23]wFMCommunicate OK [12:30:23]SAM_PROTO_SignData done [12:30:23]FM_MakeSignedData done [12:30:23]CreateOFDProtocolMessage [12:30:23]wFMCommunicate request_size=4 [12:30:23]MH_SAM_APDU [12:30:23]CAPDU: 80 11 00 00 [12:30:23]Write to MH i2c: E2 08 00 3B 07 80 11 00 00 00 00 00 00 BC [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:23]Read from MH i2c: E2 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 17 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: E2 17 00 3B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [12:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:30:23]wFMCommunicate OK [12:30:23]CreateOFDProtocolMessage done [12:30:23]OFDSenderStorePacket 67248 [12:30:23]StoreOFDPacket docnum=67248 [12:30: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 10 01 00 00 DA 67 08 01 C2 83 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 42 00 00 00 F4 03 04 00 DE AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 06 01 00 35 04 06 00 12 3C 71 D9 D3 15 70 62 E7 68 51 19 C5 35 [12:30:23]CheckFolder [12:30:23]dirname=/storage/ofd_packets [12:30:23]CheckFolder done [12:30:23]ProducePacketName [12:30:23]name=ofd_packets/00067248 [12:30:23]NVStorageSaveData ofd_packets/00067248 [12:30:23]File name is /storage/ofd_packets/00067248 [12:30:23]Write 302 bytes [12:30:23]NVStorageSaveData done [12:30:23]OFDSenderStorePacket done [12:30:23]KKMCreateOFDPacket done [12:30:23]NVStorageSaveData kkm_last_timestamp [12:30:23]File name is /storage/kkm_last_timestamp [12:30:23]Write 4 bytes [12:30:23]NVStorageSaveData done [12:30:23]ExternCall_PrintAddStr [12:30:23]wPrintStart [12:30:23]Write to MH i2c: 01 00 00 3C 07 43 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 3C 07 00 00 00 00 00 FF 0F 58 [12:30:23]RasterBufferAndPrint [12:30:23]line Счет N : (1)507217 [12:30:23]line ИНН: 02508201610067 [12:30:23]line Контрольно-Кассовый Чек [12:30:23]line ПРОДАЖА [12:30:23]line ТРК (МРК, ГНК) : 32 [12:30:23]line Товар: 2710124130 [12:30:23]line Super-92-К-5 [12:30:23]line 29.500 * 67.80 [12:30:23]line = 2000.10 [12:30:23]line НДС 12% НСП 1% [12:30:23]line > о реализуемом товаре [12:30:23]line ИТОГО: 2000.10 [12:30:23]line НСП 1% : 17.70 [12:30:23]line НДС 12% : 212.40 [12:30:23]line Наличными: 0.00 [12:30:23]line Безнал.: 2000.10 [12:30:23]line Место: АЗС № 91 "Партнер Нефть" [12:30:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:30:23]line СНО: Общий режим [12:30:23]line Чек 66 15.05.2024 12:30 [12:30:23]line Смена: 356 ФФД: 1.0 [12:30:23]line ЗНМ: 0300000119 [12:30:23]line РНМ: 0000000000091845 [12:30:23]line Версия ККМ: 001 [12:30:23]line Платежная система: O! деньги [12:30:23]line ФМ: 0000000000871829 [12:30:23]line ФД: 67248 [12:30:23]line ФПД: 20050817438485 [12:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123022&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67248&fm=20050817438485&tin=02508201610067®Number=0000000000091845&sum=200010 [12:30:23]written 0, free lines is 4095 [12:30:23]OFD Sender: Processing packet 67248 [packets to send 35, broken 34] [12:30:23]ProducePacketName [12:30:23]name=ofd_packets/00067248 [12:30:23]OFD Sender: To server: pG, [12:30:23]CommunicateWithHost lk.salyk.kg:30040 [12:30:23]ConnectInit lk.salyk.kg [12:30:23]Connected sock=10 [12:30: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 10 01 00 00 DA 67 08 01 C2 83 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 42 00 00 00 F4 03 04 00 DE AA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B0 06 01 00 35 04 06 00 12 3C 71 D9 D3 15 70 62 E7 68 51 19 C5 35 [12:30: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 DA 1E 47 00 FD DB 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 B0 06 01 00 F4 03 04 00 BB 52 44 66 B6 04 01 00 00 8F 03 30 A7 BF AB 48 92 [12:30:23]CommunicateWithHost err = 0 [12:30:23]CheckOFDResponse [12:30:23]1017 (14) - 77093643461234 [12:30:23]1041 (16) - 0000000000871829 [12:30:23]1040 (4) - 67248 [12:30:23]1012 (4) - 15.05.2024 06:14 [12:30:23]1206 (1) - 0 [12:30:23]OFD Sender: Remove packet 67248 [12:30:23]ProducePacketName [12:30:23]name=ofd_packets/00067248 [12:30:23]NVStorageDeleteData [12:30:23]Write to MH i2c: 01 00 00 65 07 6C [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 E3 0C 62 [12:30:23]RasterBufferAndPrint [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]line [12:30:23]written 0, free lines is 3308 [12:30:23]MH_Cut [12:30:23]Write to MH i2c: D1 01 00 6C 07 01 45 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 01 00 [12:30:23]MH_I2C_Read... [12:30:23]Read from MH i2c: D1 01 00 6C 07 00 44 [12:30:23]Write to MH i2c: 01 00 00 6D 07 74 [12:30:23]Write i2c OK [12:30:23]MH_I2C_Read... [12:30:24]OFD Sender: No OFD packet to send [12:30:24]*** Cut start [12:30:24]*** Purtial cut [12:30:24]*** CUTSNS_PIN = 0 [12:30:24]*** Stage 1: CUTSNS_PIN = 1 [12:30:26]Read from MH i2c: 01 [12:30:26]MH_I2C_Read... [12:30:26]*** Stop cut motor [12:30:26]*** Cut end [12:30:26]Read from MH i2c: 01 07 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [12:30:26]process_action close_receipt done [12:30:26]requested_data is exist [12:30:26]produce_requested_data [12:30:26]requested_item fm.sn is exist - process it [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 11 00 00 [12:30:26]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [12:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:30:26]wFMCommunicate OK [12:30:26]requested_item fd.num is exist - process it [12:30:26]SAM_PROTO_GetFieldsCounters [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 13 00 00 [12:30:26]Write to MH i2c: E2 08 00 6F 07 80 13 00 00 00 00 00 00 F2 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 62 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 62 00 6F 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 B0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [12:30: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 B0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_GetFieldsCounters done [12:30:26]requested_item shift.num is exist - process it [12:30:26]requested_item shift.opened is exist - process it [12:30:26]req_shift_opened [12:30:26]FM_GetShiftState [12:30:26]SAM_PROTO_GetShiftState [12:30:26]wFMCommunicate request_size=4 [12:30:26]MH_SAM_APDU [12:30:26]CAPDU: 80 13 01 00 [12:30:26]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [12:30:26]Write i2c OK [12:30:26]MH_I2C_Read... [12:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:26]Read from MH i2c: E2 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0E 00 [12:30:26]MH_I2C_Read... [12:30:26]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9F [12:30:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:30:26]wFMCommunicate OK [12:30:26]SAM_PROTO_GetShiftState done [12:30:26]FM_GetShiftState done [12:30:26]req_shift_opened done [12:30:26]requested_item shift.open_date is exist - process it [12:30:26]req_shift_open_date [12:30:26]req_shift_open_date done [12:30:26]produce_requested_data done [12:30:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67248,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:30:26]process_action_free close_receipt [12:30:26]json_value_free [12:30:26]json_value_free done [12:30:26]process_json_proto returns [12:30:26]Send response to host [12:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67248,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:30:26]free response buf [12:30:26]execute_script done [12:30:26]execute_script returns [12:30:26]free content buf [12:30:26]Sock 7.Close socket [12:30:26]Sock 7.Thread stoped [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:18]accept exits with 9 [12:31:18]New connection [12:31:18]New thread 3067174244 created [12:31:18]Thread 3067030884 joined [12:31:18]Waiting for new connection... [12:31:18] Sock 9.Parse request [12:31:18]Sock 9.Check first char [12:31:18]Sock 9.First char is OK [12:31:18]request: POST /json_proto HTTP/1.0 [12:31:18]Method: POST [12:31:18]URL: /json_proto [12:31:18]Method is POST - this is cgi request [12:31:18]url: /json_proto [12:31:18]query_string will be loaded in cgi processing [12:31:18]execute_cgi json_proto POST (null) [12:31:18]execute_cgi path=json_proto method=POST [12:31:18]POST find Content-Length [12:31:18]Host: 172.17.41.195:8080 [12:31:18]Content-Length: 1208 [12:31:18]Content-Type: application/json [12:31:18] [12:31:18]POST finish read [12:31:18]Found Content-Length = 1208 [12:31:18]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)507218\u000A15.05.2024 12:13\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 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" ] } } [12:31:18]execute_script... [12:31:18]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)507218\u000A15.05.2024 12:13\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 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" ] } } [12:31:18]POST & json_proto [12:31:18]process_json_proto [12:31:18]json parsed OK: [12:31:18]protocol is kg_v1.0 [12:31:18]action value=print_text [12:31:18]process_action print_text [12:31:18]cmd_print_text [12:31:18]ExternCall_PrintAddStr [12:31:18]wPrintStart [12:31:18]Write to MH i2c: 01 00 00 71 07 78 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 07 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FF 0F 8D [12:31:18]RasterBufferAndPrint [12:31:18]line *****ТОВАРНЫЙ ЧЕК***** [12:31:18]line АЗС-91 [12:31:18]line Партнер нефть [12:31:18]line 02508201610067 [12:31:18]line Кассир : Арстанбеков Н. [12:31:18]line Счет N : (1)507218 [12:31:18]line 15.05.2024 12:13 [12:31:18]line ПРОДАЖА [12:31:18]line ТРК (МРК, ГНК): 41 [12:31:18]line Вид ГСМ : 2710194210 [12:31:18]line ДТ-К-5 [12:31:18]line 10.000 x 74.70 [12:31:18]line ИТОГ: 747.00 [12:31:18]line Тип оплаты: Талоны: Топливная Карта [12:31:18]line 02750 [12:31:18]line ______________________ [12:31:18]line (подпись) [12:31:18]written 0, free lines is 4095 [12:31:18]Write to MH i2c: 01 00 00 85 07 8C [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 07 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 0E 0E AF [12:31:18]RasterBufferAndPrint [12:31:18]line [12:31:18]line [12:31:18]line [12:31:18]line [12:31:18]line [12:31:18]written 0, free lines is 3600 [12:31:18]MH_Cut [12:31:18]Write to MH i2c: D1 01 00 8C 07 01 65 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: D1 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: D1 01 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: D1 01 00 8C 07 00 64 [12:31:18]Write to MH i2c: 01 00 00 8D 07 94 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:19]OFD Sender: No OFD packet to send [12:31:19]*** Cut start [12:31:19]*** Purtial cut [12:31:19]*** Stage 1: CUTSNS_PIN = 1 [12:31:19]Read from MH i2c: 01 [12:31:19]MH_I2C_Read... [12:31:19]*** Stop cut motor [12:31:19]*** Cut end [12:31:19]Read from MH i2c: 01 07 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [12:31:19]process_action print_text done [12:31:19]requested_data is exist [12:31:19]produce_requested_data [12:31:19]requested_item fm.sn is exist - process it [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 11 00 00 [12:31:19]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:19]Read from MH i2c: E2 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 17 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [12:31: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:31:19]wFMCommunicate OK [12:31:19]requested_item fd.num is exist - process it [12:31:19]SAM_PROTO_GetFieldsCounters [12:31:19]wFMCommunicate request_size=4 [12:31:19]MH_SAM_APDU [12:31:19]CAPDU: 80 13 00 00 [12:31:19]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 62 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 62 00 8F 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 B0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:31: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 B0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_GetFieldsCounters done [12:31:20]requested_item shift.num is exist - process it [12:31:20]requested_item shift.opened is exist - process it [12:31:20]req_shift_opened [12:31:20]FM_GetShiftState [12:31:20]SAM_PROTO_GetShiftState [12:31:20]wFMCommunicate request_size=4 [12:31:20]MH_SAM_APDU [12:31:20]CAPDU: 80 13 01 00 [12:31:20]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:20]Read from MH i2c: E2 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BF [12:31:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:31:20]wFMCommunicate OK [12:31:20]SAM_PROTO_GetShiftState done [12:31:20]FM_GetShiftState done [12:31:20]req_shift_opened done [12:31:20]requested_item shift.open_date is exist - process it [12:31:20]req_shift_open_date [12:31:20]req_shift_open_date done [12:31:20]produce_requested_data done [12:31:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67248,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:31:20]process_action_free print_text [12:31:20]json_value_free [12:31:20]json_value_free done [12:31:20]process_json_proto returns [12:31:20]Send response to host [12:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67248,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:31:20]free response buf [12:31:20]execute_script done [12:31:20]execute_script returns [12:31:20]free content buf [12:31:20]Sock 9.Close socket [12:31:20]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:43]accept exits with 7 [12:32:43]New connection [12:32:43]New thread 3067030884 created [12:32:43]Thread 3067174244 joined [12:32:43]Waiting for new connection... [12:32:43] Sock 7.Parse request [12:32:43]Sock 7.Check first char [12:32:43]Sock 7.First char is OK [12:32:43]request: POST /json_proto HTTP/1.0 [12:32:43]Method: POST [12:32:43]URL: /json_proto [12:32:43]Method is POST - this is cgi request [12:32:43]url: /json_proto [12:32:43]query_string will be loaded in cgi processing [12:32:43]execute_cgi json_proto POST (null) [12:32:43]execute_cgi path=json_proto method=POST [12:32:43]POST find Content-Length [12:32:43]Host: 172.17.41.195:8080 [12:32:43]Content-Length: 793 [12:32:43]Content-Type: application/json [12:32:43] [12:32:43]POST finish read [12:32:43]Found Content-Length = 793 [12:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507219", "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" : 8.850, "sum" : 600.03, "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:43]execute_script... [12:32: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)507219", "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" : 8.850, "sum" : 600.03, "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:43]POST & json_proto [12:32:43]process_json_proto [12:32:43]json parsed OK: [12:32:43]protocol is kg_v1.0 [12:32:43]action value=close_receipt [12:32:43]process_action close_receipt [12:32:43]cmd_close_receipt [12:32:43]MH_GetDate [12:32:43]Write to MH i2c: F0 00 00 91 07 87 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 09 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: F0 09 00 91 07 00 6C AB 44 66 FC 21 6F 64 41 [12:32:43]GetLastDocTimeStamp 1715776222 [12:32:43]current date 1715776364 [12:32:43]FM_GetShiftState [12:32:43]SAM_PROTO_GetShiftState [12:32:43]wFMCommunicate request_size=4 [12:32:43]MH_SAM_APDU [12:32:43]CAPDU: 80 13 01 00 [12:32:43]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:43]Read from MH i2c: E2 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 0E 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C1 [12:32:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:32:43]wFMCommunicate OK [12:32:43]SAM_PROTO_GetShiftState done [12:32:43]FM_GetShiftState done [12:32:43]opened in 1715732471 [12:32:43]opened+sec_in_day 1715818871 [12:32:43]quantity*price = 60003 [12:32:43]sum+1 = 60004 [12:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 67 15.05.2024 12:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67249 ФПД: 26338285217944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123244&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67249&fm=26338285217944&tin=02508201610067®Number=0000000000091845&sum=60003 [12:32:44]StoreToDocumentArchive [12:32:44]shift 356 fd 67249 [12:32:44]save to /storage/0356/doc_00067249 [12:32:44]save last doc name /storage/0356/doc_00067249 to /storage/kkm_last_doc_name [12:32:44]save OK [12:32:44]Clear old archive folders... [12:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:32:44]tlvbuf is 00B0A350 [12:32:44]SAM_PROTO_ClearQueue [12:32:44]wFMCommunicate request_size=4 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 09 00 00 [12:32:44]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:44]Read from MH i2c: E2 03 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [12:32:44]RAPDU: 90 00 [12:32:44]wFMCommunicate OK [12:32:44]SAM_PROTO_ClearQueue done [12:32:44]KKMCreateOFDPacket [12:32:44]OFDProtocolAddRootSTLVToBuf [12:32:44]FM_MakeSignedData [12:32:44]FM_MakeSignedData [12:32:44]SAM_PROTO_SignData [12:32:44]wFMCommunicate request_size=4 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 0D 01 02 [12:32:44]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [12:32:44]RAPDU: 90 00 [12:32:44]wFMCommunicate OK [12:32:44]wFMCommunicate request_size=255 [12:32:44]MH_SAM_APDU [12:32:44]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 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 43 00 00 00 F4 03 04 00 6C AB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 06 01 00 35 04 06 00 [12:32:44]Write to MH i2c: E2 02 01 A1 07 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 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 43 00 00 00 F4 03 04 00 6C AB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 06 01 00 35 04 06 00 00 00 BC [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=11 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 02 02 06 17 F4 5C 22 68 98 [12:32:45]Write to MH i2c: E2 0E 00 A2 07 80 0D 02 02 06 00 17 F4 5C 22 68 98 00 00 B8 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [12:32:45]RAPDU: 90 00 [12:32:45]wFMCommunicate OK [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 0D 03 02 [12:32:45]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 0B 00 A3 07 00 8E 64 B1 BC DD EC 51 10 90 00 AF [12:32:45]RAPDU: 8E 64 B1 BC DD EC 51 10 90 00 [12:32:45]wFMCommunicate OK [12:32:45]SAM_PROTO_SignData done [12:32:45]FM_MakeSignedData done [12:32:45]CreateOFDProtocolMessage [12:32:45]wFMCommunicate request_size=4 [12:32:45]MH_SAM_APDU [12:32:45]CAPDU: 80 11 00 00 [12:32:45]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:45]Read from MH i2c: E2 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 17 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [12:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:32:45]wFMCommunicate OK [12:32:45]CreateOFDProtocolMessage done [12:32:45]OFDSenderStorePacket 67249 [12:32:45]StoreOFDPacket docnum=67249 [12:32: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 10 01 00 00 8E BD 08 01 03 D5 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 43 00 00 00 F4 03 04 00 6C AB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 06 01 00 35 04 06 00 17 F4 5C 22 68 98 8E 64 B1 BC DD EC 51 10 [12:32:45]CheckFolder [12:32:45]dirname=/storage/ofd_packets [12:32:45]CheckFolder done [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00067249 [12:32:45]NVStorageSaveData ofd_packets/00067249 [12:32:45]File name is /storage/ofd_packets/00067249 [12:32:45]Write 302 bytes [12:32:45]NVStorageSaveData done [12:32:45]OFDSenderStorePacket done [12:32:45]KKMCreateOFDPacket done [12:32:45]NVStorageSaveData kkm_last_timestamp [12:32:45]File name is /storage/kkm_last_timestamp [12:32:45]Write 4 bytes [12:32:45]NVStorageSaveData done [12:32:45]ExternCall_PrintAddStr [12:32:45]wPrintStart [12:32:45]Write to MH i2c: 01 00 00 A5 07 AC [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [12:32:45]RasterBufferAndPrint [12:32:45]line Счет N : (1)507219 [12:32:45]line ИНН: 02508201610067 [12:32:45]line Контрольно-Кассовый Чек [12:32:45]line ПРОДАЖА [12:32:45]line ТРК (МРК, ГНК) : 32 [12:32:45]line Товар: 2710124130 [12:32:45]line Super-92-К-5 [12:32:45]line 8.850 * 67.80 [12:32:45]line = 600.03 [12:32:45]line НДС 12% НСП 1% [12:32:45]line > о реализуемом товаре [12:32:45]line ИТОГО: 600.03 [12:32:45]line НСП 1% : 5.31 [12:32:45]line НДС 12% : 63.72 [12:32:45]line Наличными: 0.00 [12:32:45]line Безнал.: 600.03 [12:32:45]line Место: АЗС № 91 "Партнер Нефть" [12:32:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:32:45]line СНО: Общий режим [12:32:45]line Чек 67 15.05.2024 12:32 [12:32:45]line Смена: 356 ФФД: 1.0 [12:32:45]line ЗНМ: 0300000119 [12:32:45]line РНМ: 0000000000091845 [12:32:45]line Версия ККМ: 001 [12:32:45]line Платежная система: O! деньги [12:32:45]line ФМ: 0000000000871829 [12:32:45]line ФД: 67249 [12:32:45]line ФПД: 26338285217944 [12:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123244&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67249&fm=26338285217944&tin=02508201610067®Number=0000000000091845&sum=60003 [12:32:45]written 0, free lines is 4095 [12:32:45]OFD Sender: Processing packet 67249 [packets to send 35, broken 34] [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00067249 [12:32:45]OFD Sender: To server: pG, [12:32:45]CommunicateWithHost lk.salyk.kg:30040 [12:32:45]ConnectInit lk.salyk.kg [12:32:45]Connected sock=10 [12:32: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 10 01 00 00 8E BD 08 01 03 D5 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 43 00 00 00 F4 03 04 00 6C AB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B1 06 01 00 35 04 06 00 17 F4 5C 22 68 98 8E 64 B1 BC DD EC 51 10 [12:32: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 6D FF 47 00 4C 78 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 B1 06 01 00 F4 03 04 00 49 53 44 66 B6 04 01 00 00 B2 ED D9 3D F5 42 EC 32 [12:32:45]CommunicateWithHost err = 0 [12:32:45]CheckOFDResponse [12:32:45]1017 (14) - 77093643461234 [12:32:45]1041 (16) - 0000000000871829 [12:32:45]1040 (4) - 67249 [12:32:45]1012 (4) - 15.05.2024 06:16 [12:32:45]1206 (1) - 0 [12:32:45]OFD Sender: Remove packet 67249 [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00067249 [12:32:45]NVStorageDeleteData [12:32:45]Write to MH i2c: 01 00 00 CE 07 D5 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 F1 0C D9 [12:32:45]RasterBufferAndPrint [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]written 0, free lines is 3319 [12:32:45]MH_Cut [12:32:45]Write to MH i2c: D1 01 00 D5 07 01 AE [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 01 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 01 00 D5 07 00 AD [12:32:45]Write to MH i2c: 01 00 00 D6 07 DD [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:46]OFD Sender: No OFD packet to send [12:32:46]*** Cut start [12:32:46]*** Purtial cut [12:32:46]*** CUTSNS_PIN = 0 [12:32:46]*** Stage 1: CUTSNS_PIN = 1 [12:32:48]Read from MH i2c: 01 [12:32:48]MH_I2C_Read... [12:32:48]*** Stop cut motor [12:32:48]*** Cut end [12:32:48]Read from MH i2c: 01 07 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 FF 0F F2 [12:32:48]process_action close_receipt done [12:32:48]requested_data is exist [12:32:48]produce_requested_data [12:32:48]requested_item fm.sn is exist - process it [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 11 00 00 [12:32:48]Write to MH i2c: E2 08 00 D7 07 80 11 00 00 00 00 00 00 58 [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 17 00 D7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [12:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:32:48]wFMCommunicate OK [12:32:48]requested_item fd.num is exist - process it [12:32:48]SAM_PROTO_GetFieldsCounters [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 00 00 [12:32:48]Write to MH i2c: E2 08 00 D8 07 80 13 00 00 00 00 00 00 5B [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 62 00 D8 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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:32: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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetFieldsCounters done [12:32:48]requested_item shift.num is exist - process it [12:32:48]requested_item shift.opened is exist - process it [12:32:48]req_shift_opened [12:32:48]FM_GetShiftState [12:32:48]SAM_PROTO_GetShiftState [12:32:48]wFMCommunicate request_size=4 [12:32:48]MH_SAM_APDU [12:32:48]CAPDU: 80 13 01 00 [12:32:48]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [12:32:48]Write i2c OK [12:32:48]MH_I2C_Read... [12:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:48]Read from MH i2c: E2 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 [12:32:48]MH_I2C_Read... [12:32:48]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 08 [12:32:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:32:48]wFMCommunicate OK [12:32:48]SAM_PROTO_GetShiftState done [12:32:48]FM_GetShiftState done [12:32:48]req_shift_opened done [12:32:48]requested_item shift.open_date is exist - process it [12:32:48]req_shift_open_date [12:32:48]req_shift_open_date done [12:32:48]produce_requested_data done [12:32:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:32:48]process_action_free close_receipt [12:32:48]json_value_free [12:32:48]json_value_free done [12:32:48]process_json_proto returns [12:32:48]Send response to host [12:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:32:48]free response buf [12:32:48]execute_script done [12:32:48]execute_script returns [12:32:48]free content buf [12:32:48]Sock 7.Close socket [12:32:48]Sock 7.Thread stoped [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:01]accept exits with 9 [12:34:01]New connection [12:34:01]New thread 3067174244 created [12:34:01]Thread 3067030884 joined [12:34:01]Waiting for new connection... [12:34:01] Sock 9.Parse request [12:34:01]Sock 9.Check first char [12:34:01]Sock 9.First char is OK [12:34:01]request: POST /json_proto HTTP/1.0 [12:34:01]Method: POST [12:34:01]URL: /json_proto [12:34:01]Method is POST - this is cgi request [12:34:01]url: /json_proto [12:34:01]query_string will be loaded in cgi processing [12:34:01]execute_cgi json_proto POST (null) [12:34:01]execute_cgi path=json_proto method=POST [12:34:01]POST find Content-Length [12:34:01]Host: 172.17.41.195:8080 [12:34:01]Content-Length: 1210 [12:34:01]Content-Type: application/json [12:34:01] [12:34:01]POST finish read [12:34:01]Found Content-Length = 1210 [12:34: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)507216\u000A15.05.2024 12:16\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 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\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:01]execute_script... [12:34: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)507216\u000A15.05.2024 12:16\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 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\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:01]POST & json_proto [12:34:01]process_json_proto [12:34:01]json parsed OK: [12:34:01]protocol is kg_v1.0 [12:34:01]action value=print_text [12:34:01]process_action print_text [12:34:01]cmd_print_text [12:34:01]ExternCall_PrintAddStr [12:34:01]wPrintStart [12:34:01]Write to MH i2c: 01 00 00 DA 07 E1 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 DA 07 00 00 00 00 00 FF 0F F6 [12:34:01]RasterBufferAndPrint [12:34:01]line *****ТОВАРНЫЙ ЧЕК***** [12:34:01]line АЗС-91 [12:34:01]line Партнер нефть [12:34:01]line 02508201610067 [12:34:01]line Кассир : Арстанбеков Н. [12:34:01]line Счет N : (1)507216 [12:34:01]line 15.05.2024 12:16 [12:34:01]line ПРОДАЖА [12:34:01]line ТРК (МРК, ГНК): 21 [12:34:01]line Вид ГСМ : 2710194210 [12:34:01]line ДТ-К-5 [12:34:01]line 100.000 x 74.70 [12:34:01]line ИТОГ: 7470.00 [12:34:01]line Тип оплаты: Талоны: Топливная Карта [12:34:01]line 29814 [12:34:01]line ______________________ [12:34:01]line (подпись) [12:34:01]written 0, free lines is 4095 [12:34:02]Write to MH i2c: 01 00 00 EE 07 F5 [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: 01 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: 01 07 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 0F 0E 19 [12:34:02]RasterBufferAndPrint [12:34:02]line [12:34:02]line [12:34:02]line [12:34:02]line [12:34:02]line [12:34:02]written 0, free lines is 3601 [12:34:02]MH_Cut [12:34:02]Write to MH i2c: D1 01 00 F5 07 01 CE [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: D1 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: D1 01 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: D1 01 00 F5 07 00 CD [12:34:02]Write to MH i2c: 01 00 00 F6 07 FD [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]*** Cut start [12:34:02]*** Purtial cut [12:34:02]*** Stage 1: CUTSNS_PIN = 1 [12:34:03]Read from MH i2c: 01 [12:34:03]MH_I2C_Read... [12:34:03]*** Stop cut motor [12:34:03]*** Cut end [12:34:03]Read from MH i2c: 01 07 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [12:34:03]process_action print_text done [12:34:03]requested_data is exist [12:34:03]produce_requested_data [12:34:03]requested_item fm.sn is exist - process it [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 11 00 00 [12:34:03]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [12:34: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:34:03]wFMCommunicate OK [12:34:03]requested_item fd.num is exist - process it [12:34:03]SAM_PROTO_GetFieldsCounters [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 13 00 00 [12:34:03]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 62 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 62 00 F8 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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:34: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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_GetFieldsCounters done [12:34:03]requested_item shift.num is exist - process it [12:34:03]requested_item shift.opened is exist - process it [12:34:03]req_shift_opened [12:34:03]FM_GetShiftState [12:34:03]SAM_PROTO_GetShiftState [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 13 01 00 [12:34:03]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0E 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 28 [12:34:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_GetShiftState done [12:34:03]FM_GetShiftState done [12:34:03]req_shift_opened done [12:34:03]requested_item shift.open_date is exist - process it [12:34:03]req_shift_open_date [12:34:03]req_shift_open_date done [12:34:03]produce_requested_data done [12:34:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:34:03]process_action_free print_text [12:34:03]json_value_free [12:34:03]json_value_free done [12:34:03]process_json_proto returns [12:34:03]Send response to host [12:34:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:34:03]free response buf [12:34:03]execute_script done [12:34:03]execute_script returns [12:34:03]free content buf [12:34:03]Sock 9.Close socket [12:34:03]Sock 9.Thread stoped [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:19]accept exits with 7 [12:34:19]New connection [12:34:19]New thread 3067030884 created [12:34:19]Thread 3067174244 joined [12:34:19]Waiting for new connection... [12:34:19] Sock 7.Parse request [12:34:19]Sock 7.Check first char [12:34:19]Sock 7.First char is OK [12:34:19]request: POST /json_proto HTTP/1.0 [12:34:19]Method: POST [12:34:19]URL: /json_proto [12:34:19]Method is POST - this is cgi request [12:34:19]url: /json_proto [12:34:19]query_string will be loaded in cgi processing [12:34:19]execute_cgi json_proto POST (null) [12:34:19]execute_cgi path=json_proto method=POST [12:34:19]POST find Content-Length [12:34:19]Host: 172.17.41.195:8080 [12:34:19]Content-Length: 1210 [12:34:19]Content-Type: application/json [12:34:19] [12:34:19]POST finish read [12:34:19]Found Content-Length = 1210 [12:34: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)507215\u000A15.05.2024 12:16\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\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:19]execute_script... [12:34: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)507215\u000A15.05.2024 12:16\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\u000A29814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:19]POST & json_proto [12:34:19]process_json_proto [12:34:19]json parsed OK: [12:34:19]protocol is kg_v1.0 [12:34:19]action value=print_text [12:34:19]process_action print_text [12:34:19]cmd_print_text [12:34:19]ExternCall_PrintAddStr [12:34:19]wPrintStart [12:34:19]Write to MH i2c: 01 00 00 FA 07 01 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 FF 0F 16 [12:34:19]RasterBufferAndPrint [12:34:19]line *****ТОВАРНЫЙ ЧЕК***** [12:34:19]line АЗС-91 [12:34:19]line Партнер нефть [12:34:19]line 02508201610067 [12:34:19]line Кассир : Арстанбеков Н. [12:34:19]line Счет N : (1)507215 [12:34:19]line 15.05.2024 12:16 [12:34:19]line ПРОДАЖА [12:34:19]line ТРК (МРК, ГНК): 11 [12:34:19]line Вид ГСМ : 2710194210 [12:34:19]line ДТ-К-5 [12:34:19]line 100.000 x 74.70 [12:34:19]line ИТОГ: 7470.00 [12:34:19]line Тип оплаты: Талоны: Топливная Карта [12:34:19]line 29814 [12:34:19]line ______________________ [12:34:19]line (подпись) [12:34:19]written 0, free lines is 4095 [12:34:19]Write to MH i2c: 01 00 00 0E 08 16 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 0F 0E 3A [12:34:19]RasterBufferAndPrint [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]written 0, free lines is 3601 [12:34:19]MH_Cut [12:34:19]Write to MH i2c: D1 01 00 15 08 01 EF [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 15 08 00 EE [12:34:19]Write to MH i2c: 01 00 00 16 08 1E [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:20]*** Cut start [12:34:20]*** Purtial cut [12:34:20]*** CUTSNS_PIN = 0 [12:34:20]*** Stage 1: CUTSNS_PIN = 1 [12:34:21]OFD Sender: No OFD packet to send [12:34:22]Read from MH i2c: 01 [12:34:22]MH_I2C_Read... [12:34:22]*** Stop cut motor [12:34:22]*** Cut end [12:34:22]Read from MH i2c: 01 07 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: 01 07 00 16 08 00 00 00 00 00 FF 0F 33 [12:34:22]process_action print_text done [12:34:22]requested_data is exist [12:34:22]produce_requested_data [12:34:22]requested_item fm.sn is exist - process it [12:34:22]wFMCommunicate request_size=4 [12:34:22]MH_SAM_APDU [12:34:22]CAPDU: 80 11 00 00 [12:34:22]Write to MH i2c: E2 08 00 17 08 80 11 00 00 00 00 00 00 99 [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:22]Read from MH i2c: E2 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 17 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 17 00 17 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [12:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:34:22]wFMCommunicate OK [12:34:22]requested_item fd.num is exist - process it [12:34:22]SAM_PROTO_GetFieldsCounters [12:34:22]wFMCommunicate request_size=4 [12:34:22]MH_SAM_APDU [12:34:22]CAPDU: 80 13 00 00 [12:34:22]Write to MH i2c: E2 08 00 18 08 80 13 00 00 00 00 00 00 9C [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:22]Read from MH i2c: E2 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 62 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 62 00 18 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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [12:34: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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:22]wFMCommunicate OK [12:34:22]SAM_PROTO_GetFieldsCounters done [12:34:22]requested_item shift.num is exist - process it [12:34:22]requested_item shift.opened is exist - process it [12:34:22]req_shift_opened [12:34:22]FM_GetShiftState [12:34:22]SAM_PROTO_GetShiftState [12:34:22]wFMCommunicate request_size=4 [12:34:22]MH_SAM_APDU [12:34:22]CAPDU: 80 13 01 00 [12:34:22]Write to MH i2c: E2 08 00 19 08 80 13 01 00 00 00 00 00 9E [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:22]Read from MH i2c: E2 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 0E 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: E2 0E 00 19 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 49 [12:34:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:34:22]wFMCommunicate OK [12:34:22]SAM_PROTO_GetShiftState done [12:34:22]FM_GetShiftState done [12:34:22]req_shift_opened done [12:34:22]requested_item shift.open_date is exist - process it [12:34:22]req_shift_open_date [12:34:22]req_shift_open_date done [12:34:22]produce_requested_data done [12:34:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:34:22]process_action_free print_text [12:34:22]json_value_free [12:34:22]json_value_free done [12:34:22]process_json_proto returns [12:34:22]Send response to host [12:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:34:22]free response buf [12:34:22]execute_script done [12:34:22]execute_script returns [12:34:22]free content buf [12:34:22]Sock 7.Close socket [12:34:22]Sock 7.Thread stoped [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:30]accept exits with 9 [12:35:30]New connection [12:35:30]New thread 3067174244 created [12:35:30]Thread 3067030884 joined [12:35:30]Waiting for new connection... [12:35:30] Sock 9.Parse request [12:35:30]Sock 9.Check first char [12:35:30]Sock 9.First char is OK [12:35:30]request: POST /json_proto HTTP/1.0 [12:35:30]Method: POST [12:35:30]URL: /json_proto [12:35:30]Method is POST - this is cgi request [12:35:30]url: /json_proto [12:35:30]query_string will be loaded in cgi processing [12:35:30]execute_cgi json_proto POST (null) [12:35:30]execute_cgi path=json_proto method=POST [12:35:30]POST find Content-Length [12:35:30]Host: 172.17.41.195:8080 [12:35:30]Content-Length: 1209 [12:35:30]Content-Type: application/json [12:35:30] [12:35:30]POST finish read [12:35:30]Found Content-Length = 1209 [12:35: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)507222\u000A15.05.2024 12:18\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.570 x 74.70\u000A\u0418\u0422\u041E\u0413: 1013.68\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:35:30]execute_script... [12:35: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)507222\u000A15.05.2024 12:18\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.570 x 74.70\u000A\u0418\u0422\u041E\u0413: 1013.68\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:35:30]POST & json_proto [12:35:30]process_json_proto [12:35:30]json parsed OK: [12:35:30]protocol is kg_v1.0 [12:35:30]action value=print_text [12:35:30]process_action print_text [12:35:30]cmd_print_text [12:35:30]ExternCall_PrintAddStr [12:35:30]wPrintStart [12:35:30]Write to MH i2c: 01 00 00 1A 08 22 [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 07 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 07 00 1A 08 00 00 00 00 00 FF 0F 37 [12:35:30]RasterBufferAndPrint [12:35:30]line *****ТОВАРНЫЙ ЧЕК***** [12:35:30]line АЗС-91 [12:35:30]line Партнер нефть [12:35:30]line 02508201610067 [12:35:30]line Кассир : Арстанбеков Н. [12:35:30]line Счет N : (1)507222 [12:35:30]line 15.05.2024 12:18 [12:35:30]line ПРОДАЖА [12:35:30]line ТРК (МРК, ГНК): 41 [12:35:30]line Вид ГСМ : 2710194210 [12:35:30]line ДТ-К-5 [12:35:30]line 13.570 x 74.70 [12:35:30]line ИТОГ: 1013.68 [12:35:30]line Тип оплаты: Талоны: Топливная Карта [12:35:30]line 02750 [12:35:30]line ______________________ [12:35:30]line (подпись) [12:35:30]written 0, free lines is 4095 [12:35:30]Write to MH i2c: 01 00 00 2E 08 36 [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 07 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 0F 0E 5A [12:35:30]RasterBufferAndPrint [12:35:30]line [12:35:30]line [12:35:30]line [12:35:30]line [12:35:30]line [12:35:30]written 0, free lines is 3601 [12:35:30]MH_Cut [12:35:30]Write to MH i2c: D1 01 00 35 08 01 0F [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: D1 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: D1 01 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: D1 01 00 35 08 00 0E [12:35:30]Write to MH i2c: 01 00 00 36 08 3E [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]*** Cut start [12:35:30]*** Purtial cut [12:35:30]*** Stage 1: CUTSNS_PIN = 1 [12:35:31]Read from MH i2c: 01 [12:35:31]MH_I2C_Read... [12:35:31]*** Stop cut motor [12:35:31]*** Cut end [12:35:31]Read from MH i2c: 01 07 00 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [12:35:31]process_action print_text done [12:35:31]requested_data is exist [12:35:31]produce_requested_data [12:35:31]requested_item fm.sn is exist - process it [12:35:31]wFMCommunicate request_size=4 [12:35:31]MH_SAM_APDU [12:35:31]CAPDU: 80 11 00 00 [12:35:31]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [12:35:31]Write i2c OK [12:35:31]MH_I2C_Read... [12:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:31]Read from MH i2c: E2 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 17 00 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [12:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:35:31]wFMCommunicate OK [12:35:31]requested_item fd.num is exist - process it [12:35:31]SAM_PROTO_GetFieldsCounters [12:35:31]wFMCommunicate request_size=4 [12:35:31]MH_SAM_APDU [12:35:31]CAPDU: 80 13 00 00 [12:35:31]Write to MH i2c: E2 08 00 38 08 80 13 00 00 00 00 00 00 BC [12:35:31]Write i2c OK [12:35:31]MH_I2C_Read... [12:35:31]OFD Sender: No OFD packet to send [12:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:31]Read from MH i2c: E2 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 62 00 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 62 00 38 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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:35: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 B1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:31]wFMCommunicate OK [12:35:31]SAM_PROTO_GetFieldsCounters done [12:35:31]requested_item shift.num is exist - process it [12:35:31]requested_item shift.opened is exist - process it [12:35:31]req_shift_opened [12:35:31]FM_GetShiftState [12:35:31]SAM_PROTO_GetShiftState [12:35:31]wFMCommunicate request_size=4 [12:35:31]MH_SAM_APDU [12:35:31]CAPDU: 80 13 01 00 [12:35:31]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [12:35:31]Write i2c OK [12:35:31]MH_I2C_Read... [12:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:31]Read from MH i2c: E2 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 0E 00 [12:35:31]MH_I2C_Read... [12:35:31]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 69 [12:35:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:35:31]wFMCommunicate OK [12:35:31]SAM_PROTO_GetShiftState done [12:35:31]FM_GetShiftState done [12:35:31]req_shift_opened done [12:35:31]requested_item shift.open_date is exist - process it [12:35:31]req_shift_open_date [12:35:31]req_shift_open_date done [12:35:31]produce_requested_data done [12:35:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:35:31]process_action_free print_text [12:35:31]json_value_free [12:35:31]json_value_free done [12:35:31]process_json_proto returns [12:35:31]Send response to host [12:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67249,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:35:31]free response buf [12:35:31]execute_script done [12:35:31]execute_script returns [12:35:31]free content buf [12:35:31]Sock 9.Close socket [12:35:31]Sock 9.Thread stoped [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:35:59]accept exits with 7 [12:35:59]New connection [12:35:59]New thread 3067030884 created [12:35:59]Thread 3067174244 joined [12:35:59]Waiting for new connection... [12:35:59] Sock 7.Parse request [12:35:59]Sock 7.Check first char [12:35:59]Sock 7.First char is OK [12:35:59]request: POST /json_proto HTTP/1.0 [12:35:59]Method: POST [12:35:59]URL: /json_proto [12:35:59]Method is POST - this is cgi request [12:35:59]url: /json_proto [12:35:59]query_string will be loaded in cgi processing [12:35:59]execute_cgi json_proto POST (null) [12:35:59]execute_cgi path=json_proto method=POST [12:35:59]POST find Content-Length [12:35:59]Host: 172.17.41.195:8080 [12:35:59]Content-Length: 803 [12:35:59]Content-Type: application/json [12:35:59] [12:35:59]POST finish read [12:35:59]Found Content-Length = 803 [12:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507223", "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" : 16.770, "sum" : 1120.24, "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.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:59]execute_script... [12:35:59]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)507223", "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" : 16.770, "sum" : 1120.24, "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.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:59]POST & json_proto [12:35:59]process_json_proto [12:35:59]json parsed OK: [12:35:59]protocol is kg_v1.0 [12:35:59]action value=close_receipt [12:35:59]process_action close_receipt [12:35:59]cmd_close_receipt [12:35:59]MH_GetDate [12:35:59]Write to MH i2c: F0 00 00 3A 08 31 [12:35:59]Write i2c OK [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: F0 [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: F0 09 00 [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: F0 09 00 3A 08 00 2F AC 44 66 FC 21 6F 64 AF [12:35:59]GetLastDocTimeStamp 1715776364 [12:35:59]current date 1715776559 [12:35:59]FM_GetShiftState [12:35:59]SAM_PROTO_GetShiftState [12:35:59]wFMCommunicate request_size=4 [12:35:59]MH_SAM_APDU [12:35:59]CAPDU: 80 13 01 00 [12:35:59]Write to MH i2c: E2 08 00 3B 08 80 13 01 00 00 00 00 00 C0 [12:35:59]Write i2c OK [12:35:59]MH_I2C_Read... [12:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:59]Read from MH i2c: E2 [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: E2 0E 00 [12:35:59]MH_I2C_Read... [12:35:59]Read from MH i2c: E2 0E 00 3B 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6B [12:35:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:35:59]wFMCommunicate OK [12:35:59]SAM_PROTO_GetShiftState done [12:35:59]FM_GetShiftState done [12:35:59]opened in 1715732471 [12:35:59]opened+sec_in_day 1715818871 [12:35:59]quantity*price = 112023 [12:35:59]sum+1 = 112025 [12:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1120.24 НСП 1% : 9.91 НДС 12% : 118.96 Наличными: 0.00 Безнал.: 1120.24 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 68 15.05.2024 12:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67250 ФПД: 31307030622211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123559&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67250&fm=31307030622211&tin=02508201610067®Number=0000000000091845&sum=112024 [12:36:00]StoreToDocumentArchive [12:36:00]shift 356 fd 67250 [12:36:00]save to /storage/0356/doc_00067250 [12:36:00]save last doc name /storage/0356/doc_00067250 to /storage/kkm_last_doc_name [12:36:00]save OK [12:36:00]Clear old archive folders... [12:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:00]tlvbuf is 00B021A0 [12:36:00]SAM_PROTO_ClearQueue [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 09 00 00 [12:36:00]Write to MH i2c: E2 08 00 48 08 80 09 00 00 00 00 00 00 C2 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:00]Read from MH i2c: E2 03 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [12:36:00]RAPDU: 90 00 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_ClearQueue done [12:36:00]KKMCreateOFDPacket [12:36:00]OFDProtocolAddRootSTLVToBuf [12:36:00]FM_MakeSignedData [12:36:00]FM_MakeSignedData [12:36:00]SAM_PROTO_SignData [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 0D 01 02 [12:36:00]Write to MH i2c: E2 08 00 49 08 80 0D 01 02 00 00 00 00 CA [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [12:36:00]RAPDU: 90 00 [12:36:00]wFMCommunicate OK [12:36:00]wFMCommunicate request_size=255 [12:36:00]MH_SAM_APDU [12:36:00]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 82 41 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 98 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 2F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 06 01 00 35 04 06 00 1C [12:36:00]Write to MH i2c: E2 02 01 4A 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 82 41 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 98 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 2F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 06 01 00 35 04 06 00 1C 00 00 43 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [12:36:00]RAPDU: 90 00 [12:36:00]wFMCommunicate OK [12:36:00]wFMCommunicate request_size=10 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 0D 02 02 05 79 3C 70 70 03 [12:36:00]Write to MH i2c: E2 0D 00 4B 08 80 0D 02 02 05 00 79 3C 70 70 03 00 00 6F [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [12:36:00]RAPDU: 90 00 [12:36:00]wFMCommunicate OK [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 0D 03 02 [12:36:00]Write to MH i2c: E2 08 00 4C 08 80 0D 03 02 00 00 00 00 CF [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0B 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0B 00 4C 08 00 76 5D 2A 2C 30 D8 E0 E5 90 00 C6 [12:36:00]RAPDU: 76 5D 2A 2C 30 D8 E0 E5 90 00 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_SignData done [12:36:00]FM_MakeSignedData done [12:36:00]CreateOFDProtocolMessage [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 11 00 00 [12:36:00]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [12:36: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:36:00]wFMCommunicate OK [12:36:00]CreateOFDProtocolMessage done [12:36:00]OFDSenderStorePacket 67250 [12:36:00]StoreOFDPacket docnum=67250 [12:36: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 B2 E9 07 01 7D 1F 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 82 41 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 98 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 2F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 06 01 00 35 04 06 00 1C 79 3C 70 70 03 76 5D 2A 2C 30 D8 E0 E5 [12:36:00]CheckFolder [12:36:00]dirname=/storage/ofd_packets [12:36:00]CheckFolder done [12:36:00]ProducePacketName [12:36:00]name=ofd_packets/00067250 [12:36:00]NVStorageSaveData ofd_packets/00067250 [12:36:00]File name is /storage/ofd_packets/00067250 [12:36:00]Write 301 bytes [12:36:00]NVStorageSaveData done [12:36:00]OFDSenderStorePacket done [12:36:00]KKMCreateOFDPacket done [12:36:00]NVStorageSaveData kkm_last_timestamp [12:36:00]File name is /storage/kkm_last_timestamp [12:36:00]Write 4 bytes [12:36:00]NVStorageSaveData done [12:36:00]ExternCall_PrintAddStr [12:36:00]wPrintStart [12:36:00]Write to MH i2c: 01 00 00 4E 08 56 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: 01 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: 01 07 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [12:36:00]RasterBufferAndPrint [12:36:00]line Счет N : (1)507223 [12:36:00]line ИНН: 02508201610067 [12:36:00]line Контрольно-Кассовый Чек [12:36:00]line ПРОДАЖА [12:36:00]line ТРК (МРК, ГНК) : 33 [12:36:00]line Товар: 2710124130 [12:36:00]line Аи-92-К-5 [12:36:00]line 16.770 * 66.80 [12:36:00]line = 1120.24 [12:36:00]line НДС 12% НСП 1% [12:36:00]line > о реализуемом товаре [12:36:00]line ИТОГО: 1120.24 [12:36:00]line НСП 1% : 9.91 [12:36:00]line НДС 12% : 118.96 [12:36:00]line Наличными: 0.00 [12:36:00]line Безнал.: 1120.24 [12:36:00]line Место: АЗС № 91 "Партнер Нефть" [12:36:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:36:00]line СНО: Общий режим [12:36:00]line Чек 68 15.05.2024 12:35 [12:36:00]line Смена: 356 ФФД: 1.0 [12:36:00]line ЗНМ: 0300000119 [12:36:00]line РНМ: 0000000000091845 [12:36:00]line Версия ККМ: 001 [12:36:00]line Платежная система: O! деньги [12:36:00]line ФМ: 0000000000871829 [12:36:00]line ФД: 67250 [12:36:00]line ФПД: 31307030622211 [12:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123559&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67250&fm=31307030622211&tin=02508201610067®Number=0000000000091845&sum=112024 [12:36:00]written 0, free lines is 4095 [12:36:00]OFD Sender: Processing packet 67250 [packets to send 35, broken 34] [12:36:00]ProducePacketName [12:36:00]name=ofd_packets/00067250 [12:36:00]OFD Sender: To server: pG, [12:36:00]CommunicateWithHost lk.salyk.kg:30040 [12:36:00]ConnectInit lk.salyk.kg [12:36:00]Connected sock=10 [12:36: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 B2 E9 07 01 7D 1F 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 82 41 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 98 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 2F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B2 06 01 00 35 04 06 00 1C 79 3C 70 70 03 76 5D 2A 2C 30 D8 E0 E5 [12:36:01]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 5D A6 47 00 E7 AE 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 B2 06 01 00 F4 03 04 00 0C 54 44 66 B6 04 01 00 00 65 9A D1 47 96 8A 30 DA [12:36:01]CommunicateWithHost err = 0 [12:36:01]CheckOFDResponse [12:36:01]1017 (14) - 77093643461234 [12:36:01]1041 (16) - 0000000000871829 [12:36:01]1040 (4) - 67250 [12:36:01]1012 (4) - 15.05.2024 06:19 [12:36:01]1206 (1) - 0 [12:36:01]OFD Sender: Remove packet 67250 [12:36:01]ProducePacketName [12:36:01]name=ofd_packets/00067250 [12:36:01]NVStorageDeleteData [12:36:01]Write to MH i2c: 01 00 00 77 08 7F [12:36:01]Write i2c OK [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: 01 [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: 01 07 00 [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 F7 0C 89 [12:36:01]RasterBufferAndPrint [12:36:01]line [12:36:01]line [12:36:01]line [12:36:01]line [12:36:01]line [12:36:01]written 0, free lines is 3325 [12:36:01]MH_Cut [12:36:01]Write to MH i2c: D1 01 00 7E 08 01 58 [12:36:01]Write i2c OK [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: D1 [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: D1 01 00 [12:36:01]MH_I2C_Read... [12:36:01]Read from MH i2c: D1 01 00 7E 08 00 57 [12:36:01]Write to MH i2c: 01 00 00 7F 08 87 [12:36:01]Write i2c OK [12:36:01]MH_I2C_Read... [12:36:01]OFD Sender: No OFD packet to send [12:36:02]*** Cut start [12:36:02]*** Purtial cut [12:36:02]*** CUTSNS_PIN = 0 [12:36:02]*** Stage 1: CUTSNS_PIN = 1 [12:36:04]Read from MH i2c: 01 [12:36:04]MH_I2C_Read... [12:36:04]*** Stop cut motor [12:36:04]Read from MH i2c: 01 *** Cut end [12:36:04]07 00 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [12:36:04]process_action close_receipt done [12:36:04]requested_data is exist [12:36:04]produce_requested_data [12:36:04]requested_item fm.sn is exist - process it [12:36:04]wFMCommunicate request_size=4 [12:36:04]MH_SAM_APDU [12:36:04]CAPDU: 80 11 00 00 [12:36:04]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [12:36:04]Write i2c OK [12:36:04]MH_I2C_Read... [12:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:04]Read from MH i2c: E2 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 17 00 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [12:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:04]wFMCommunicate OK [12:36:04]requested_item fd.num is exist - process it [12:36:04]SAM_PROTO_GetFieldsCounters [12:36:04]wFMCommunicate request_size=4 [12:36:04]MH_SAM_APDU [12:36:04]CAPDU: 80 13 00 00 [12:36:04]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [12:36:04]Write i2c OK [12:36:04]MH_I2C_Read... [12:36:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:04]Read from MH i2c: E2 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 62 00 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 62 00 81 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 B2 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [12:36: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 B2 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:04]wFMCommunicate OK [12:36:04]SAM_PROTO_GetFieldsCounters done [12:36:04]requested_item shift.num is exist - process it [12:36:04]requested_item shift.opened is exist - process it [12:36:04]req_shift_opened [12:36:04]FM_GetShiftState [12:36:04]SAM_PROTO_GetShiftState [12:36:04]wFMCommunicate request_size=4 [12:36:04]MH_SAM_APDU [12:36:04]CAPDU: 80 13 01 00 [12:36:04]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [12:36:04]Write i2c OK [12:36:04]MH_I2C_Read... [12:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:04]Read from MH i2c: E2 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 0E 00 [12:36:04]MH_I2C_Read... [12:36:04]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B2 [12:36:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:36:04]wFMCommunicate OK [12:36:04]SAM_PROTO_GetShiftState done [12:36:04]FM_GetShiftState done [12:36:04]req_shift_opened done [12:36:04]requested_item shift.open_date is exist - process it [12:36:04]req_shift_open_date [12:36:04]req_shift_open_date done [12:36:04]produce_requested_data done [12:36:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67250,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:36:04]process_action_free close_receipt [12:36:04]json_value_free [12:36:04]json_value_free done [12:36:04]process_json_proto returns [12:36:04]Send response to host [12:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67250,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:36:04]free response buf [12:36:04]execute_script done [12:36:04]execute_script returns [12:36:04]free content buf [12:36:04]Sock 7.Close socket [12:36:04]Sock 7.Thread stoped [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:14]accept exits with 9 [12:36:14]New connection [12:36:14]New thread 3067174244 created [12:36:14]Thread 3067030884 joined [12:36:14]Waiting for new connection... [12:36:14] Sock 9.Parse request [12:36:14]Sock 9.Check first char [12:36:14]Sock 9.First char is OK [12:36:14]request: POST /json_proto HTTP/1.0 [12:36:14]Method: POST [12:36:14]URL: /json_proto [12:36:14]Method is POST - this is cgi request [12:36:14]url: /json_proto [12:36:14]query_string will be loaded in cgi processing [12:36:14]execute_cgi json_proto POST (null) [12:36:14]execute_cgi path=json_proto method=POST [12:36:14]POST find Content-Length [12:36:14]Host: 172.17.41.195:8080 [12:36:14]Content-Length: 800 [12:36:14]Content-Type: application/json [12:36:14] [12:36:14]POST finish read [12:36:14]Found Content-Length = 800 [12:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507224", "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" ] } } [12:36:14]execute_script... [12:36: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)507224", "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" ] } } [12:36:14]POST & json_proto [12:36:14]process_json_proto [12:36:14]json parsed OK: [12:36:14]protocol is kg_v1.0 [12:36:14]action value=close_receipt [12:36:14]process_action close_receipt [12:36:14]cmd_close_receipt [12:36:14]MH_GetDate [12:36:14]Write to MH i2c: F0 00 00 83 08 7A [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: F0 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: F0 09 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: F0 09 00 83 08 00 3F AC 44 66 FC 21 6F 64 08 [12:36:14]GetLastDocTimeStamp 1715776559 [12:36:14]current date 1715776575 [12:36:14]FM_GetShiftState [12:36:14]SAM_PROTO_GetShiftState [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 13 01 00 [12:36:14]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0E 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B4 [12:36:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_GetShiftState done [12:36:14]FM_GetShiftState done [12:36:14]opened in 1715732471 [12:36:14]opened+sec_in_day 1715818871 [12:36:14]quantity*price = 30060 [12:36:14]sum+1 = 30061 [12:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 69 15.05.2024 12:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67251 ФПД: 170493314537047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67251&fm=170493314537047&tin=02508201610067®Number=0000000000091845&sum=30060 [12:36:15]StoreToDocumentArchive [12:36:15]shift 356 fd 67251 [12:36:15]save to /storage/0356/doc_00067251 [12:36:15]save last doc name /storage/0356/doc_00067251 to /storage/kkm_last_doc_name [12:36:15]save OK [12:36:15]Clear old archive folders... [12:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:15]tlvbuf is 00B07F20 [12:36:15]SAM_PROTO_ClearQueue [12:36:15]wFMCommunicate request_size=4 [12:36:15]MH_SAM_APDU [12:36:15]CAPDU: 80 09 00 00 [12:36:15]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 [12:36:15]MH_I2C_Read... [12:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:15]Read from MH i2c: E2 03 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [12:36:15]RAPDU: 90 00 [12:36:15]wFMCommunicate OK [12:36:15]SAM_PROTO_ClearQueue done [12:36:15]KKMCreateOFDPacket [12:36:15]OFDProtocolAddRootSTLVToBuf [12:36:15]FM_MakeSignedData [12:36:15]FM_MakeSignedData [12:36:15]SAM_PROTO_SignData [12:36:15]wFMCommunicate request_size=4 [12:36:15]MH_SAM_APDU [12:36:15]CAPDU: 80 0D 01 02 [12:36:15]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:15]Read from MH i2c: E2 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 03 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [12:36:15]RAPDU: 90 00 [12:36:15]wFMCommunicate OK [12:36:15]wFMCommunicate request_size=255 [12:36:15]MH_SAM_APDU [12: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 45 00 00 00 F4 03 04 00 3F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 06 01 00 35 04 06 00 9B [12:36:15]Write to MH i2c: E2 02 01 93 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 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 45 00 00 00 F4 03 04 00 3F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 06 01 00 35 04 06 00 9B 00 00 BF [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]wFMCommunicate request_size=10 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 02 02 05 10 11 73 16 57 [12:36:16]Write to MH i2c: E2 0D 00 94 08 80 0D 02 02 05 00 10 11 73 16 57 00 00 21 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [12:36:16]RAPDU: 90 00 [12:36:16]wFMCommunicate OK [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 0D 03 02 [12:36:16]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0B 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 0B 00 95 08 00 FB B5 44 F5 7F 66 25 76 90 00 82 [12:36:16]RAPDU: FB B5 44 F5 7F 66 25 76 90 00 [12:36:16]wFMCommunicate OK [12:36:16]SAM_PROTO_SignData done [12:36:16]FM_MakeSignedData done [12:36:16]CreateOFDProtocolMessage [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 11 00 00 [12:36:16]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:16]Read from MH i2c: E2 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [12:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:16]wFMCommunicate OK [12:36:16]CreateOFDProtocolMessage done [12:36:16]OFDSenderStorePacket 67251 [12:36:16]StoreOFDPacket docnum=67251 [12:36: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 0F 01 00 00 01 99 07 01 DE 58 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 45 00 00 00 F4 03 04 00 3F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 06 01 00 35 04 06 00 9B 10 11 73 16 57 FB B5 44 F5 7F 66 25 76 [12:36:16]CheckFolder [12:36:16]dirname=/storage/ofd_packets [12:36:16]CheckFolder done [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00067251 [12:36:16]NVStorageSaveData ofd_packets/00067251 [12:36:16]File name is /storage/ofd_packets/00067251 [12:36:16]Write 301 bytes [12:36:16]NVStorageSaveData done [12:36:16]OFDSenderStorePacket done [12:36:16]KKMCreateOFDPacket done [12:36:16]NVStorageSaveData kkm_last_timestamp [12:36:16]File name is /storage/kkm_last_timestamp [12:36:16]Write 4 bytes [12:36:16]NVStorageSaveData done [12:36:16]ExternCall_PrintAddStr [12:36:16]wPrintStart [12:36:16]Write to MH i2c: 01 00 00 97 08 9F [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 07 00 [12:36:16]MH_I2C_Read... [12:36:16]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [12:36:16]RasterBufferAndPrint [12:36:16]line Счет N : (1)507224 [12:36:16]line ИНН: 02508201610067 [12:36:16]line Контрольно-Кассовый Чек [12:36:16]line ПРОДАЖА [12:36:16]line ТРК (МРК, ГНК) : 23 [12:36:16]line Товар: 2710124130 [12:36:16]line Аи-92-К-5 [12:36:16]line 4.500 * 66.80 [12:36:16]line = 300.60 [12:36:16]line НДС 12% НСП 1% [12:36:16]line > о реализуемом товаре [12:36:16]line ИТОГО: 300.60 [12:36:16]line НСП 1% : 2.66 [12:36:16]line НДС 12% : 31.92 [12:36:16]line Наличными: 0.00 [12:36:16]line Безнал.: 300.60 [12:36:16]line Место: АЗС № 91 "Партнер Нефть" [12:36:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:36:16]line СНО: Общий режим [12:36:16]line Чек 69 15.05.2024 12:36 [12:36:16]line Смена: 356 ФФД: 1.0 [12:36:16]line ЗНМ: 0300000119 [12:36:16]line РНМ: 0000000000091845 [12:36:16]line Версия ККМ: 001 [12:36:16]line Платежная система: O! деньги [12:36:16]line ФМ: 0000000000871829 [12:36:16]line ФД: 67251 [12:36:16]line ФПД: 170493314537047 [12:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67251&fm=170493314537047&tin=02508201610067®Number=0000000000091845&sum=30060 [12:36:16]OFD Sender: Processing packet 67251 [packets to send 35, broken 34] [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00067251 [12:36:16]OFD Sender: To server: pG, [12:36:16]CommunicateWithHost lk.salyk.kg:30040 [12:36:16]ConnectInit lk.salyk.kg [12:36:16]written 0, free lines is 4095 [12:36:16]Connected sock=10 [12:36: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 0F 01 00 00 01 99 07 01 DE 58 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 45 00 00 00 F4 03 04 00 3F AC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B3 06 01 00 35 04 06 00 9B 10 11 73 16 57 FB B5 44 F5 7F 66 25 76 [12: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 0A C1 47 00 0A 51 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 B3 06 01 00 F4 03 04 00 1C 54 44 66 B6 04 01 00 00 5C 88 E1 A0 CE B9 5C B7 [12:36:16]CommunicateWithHost err = 0 [12:36:16]CheckOFDResponse [12:36:16]1017 (14) - 77093643461234 [12:36:16]1041 (16) - 0000000000871829 [12:36:16]1040 (4) - 67251 [12:36:16]1012 (4) - 15.05.2024 06:20 [12:36:16]1206 (1) - 0 [12:36:16]OFD Sender: Remove packet 67251 [12:36:16]ProducePacketName [12:36:16]name=ofd_packets/00067251 [12:36:16]NVStorageDeleteData [12:36:17]Write to MH i2c: 01 00 00 C0 08 C8 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 07 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 DA 0C B5 [12:36:17]RasterBufferAndPrint [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]line [12:36:17]written 0, free lines is 3296 [12:36:17]MH_Cut [12:36:17]Write to MH i2c: D1 01 00 C7 08 01 A1 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 01 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: D1 01 00 C7 08 00 A0 [12:36:17]Write to MH i2c: 01 00 00 C8 08 D0 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]OFD Sender: No OFD packet to send [12:36:17]*** Cut start [12:36:17]*** Purtial cut [12:36:17]*** Stage 1: CUTSNS_PIN = 1 [12:36:18]Read from MH i2c: 01 [12:36:18]MH_I2C_Read... [12:36:18]*** Stop cut motor [12:36:18]*** Cut end [12:36:18]Read from MH i2c: 01 07 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [12:36:18]process_action close_receipt done [12:36:18]requested_data is exist [12:36:18]produce_requested_data [12:36:18]requested_item fm.sn is exist - process it [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 11 00 00 [12:36:18]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [12:36: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:36:18]wFMCommunicate OK [12:36:18]requested_item fd.num is exist - process it [12:36:18]SAM_PROTO_GetFieldsCounters [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 13 00 00 [12:36:18]Write to MH i2c: E2 08 00 CA 08 80 13 00 00 00 00 00 00 4E [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 62 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 62 00 CA 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 B3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:36: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 B3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_GetFieldsCounters done [12:36:18]requested_item shift.num is exist - process it [12:36:18]requested_item shift.opened is exist - process it [12:36:18]req_shift_opened [12:36:18]FM_GetShiftState [12:36:18]SAM_PROTO_GetShiftState [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 13 01 00 [12:36:18]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0E 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FB [12:36:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_GetShiftState done [12:36:18]FM_GetShiftState done [12:36:18]req_shift_opened done [12:36:18]requested_item shift.open_date is exist - process it [12:36:18]req_shift_open_date [12:36:18]req_shift_open_date done [12:36:18]produce_requested_data done [12:36:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67251,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:36:18]process_action_free close_receipt [12:36:18]json_value_free [12:36:18]json_value_free done [12:36:18]process_json_proto returns [12:36:18]Send response to host [12:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67251,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:36:18]free response buf [12:36:18]execute_script done [12:36:18]execute_script returns [12:36:18]free content buf [12:36:18]Sock 9.Close socket [12:36:18]Sock 9.Thread stoped [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:56]accept exits with 7 [12:38:56]New connection [12:38:56]New thread 3067030884 created [12:38:56]Thread 3067174244 joined [12:38:56]Waiting for new connection... [12:38:56] Sock 7.Parse request [12:38:56]Sock 7.Check first char [12:38:56]Sock 7.First char is OK [12:38:56]request: POST /json_proto HTTP/1.0 [12:38:56]Method: POST [12:38:56]URL: /json_proto [12:38:56]Method is POST - this is cgi request [12:38:56]url: /json_proto [12:38:56]query_string will be loaded in cgi processing [12:38:56]execute_cgi json_proto POST (null) [12:38:56]execute_cgi path=json_proto method=POST [12:38:56]POST find Content-Length [12:38:56]Host: 172.17.41.195:8080 [12:38:56]Content-Length: 1209 [12:38:56]Content-Type: application/json [12:38:56] [12:38:56]POST finish read [12:38:56]Found Content-Length = 1209 [12:38: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)507225\u000A15.05.2024 12:21\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 46.860 x 74.70\u000A\u0418\u0422\u041E\u0413: 3500.44\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:38:56]execute_script... [12:38: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)507225\u000A15.05.2024 12:21\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 46.860 x 74.70\u000A\u0418\u0422\u041E\u0413: 3500.44\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:38:56]POST & json_proto [12:38:56]process_json_proto [12:38:56]json parsed OK: [12:38:56]protocol is kg_v1.0 [12:38:56]action value=print_text [12:38:56]process_action print_text [12:38:56]cmd_print_text [12:38:56]ExternCall_PrintAddStr [12:38:56]wPrintStart [12:38:56]Write to MH i2c: 01 00 00 CC 08 D4 [12:38:56]Write i2c OK [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 [12:38:56]MH_I2C_Read... [12:38:56]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 FF 0F E9 [12:38:56]RasterBufferAndPrint [12:38:56]line *****ТОВАРНЫЙ ЧЕК***** [12:38:56]line АЗС-91 [12:38:56]line Партнер нефть [12:38:56]line 02508201610067 [12:38:56]line Кассир : Арстанбеков Н. [12:38:56]line Счет N : (1)507225 [12:38:56]line 15.05.2024 12:21 [12:38:56]line ПРОДАЖА [12:38:56]line ТРК (МРК, ГНК): 41 [12:38:56]line Вид ГСМ : 2710194210 [12:38:56]line ДТ-К-5 [12:38:56]line 46.860 x 74.70 [12:38:56]line ИТОГ: 3500.44 [12:38:56]line Тип оплаты: Талоны: Топливная Карта [12:38:56]line 02750 [12:38:56]line ______________________ [12:38:56]line (подпись) [12:38:56]written 0, free lines is 4095 [12:38:57]Write to MH i2c: 01 00 00 E0 08 E8 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 0F 0E 0C [12:38:57]RasterBufferAndPrint [12:38:57]line [12:38:57]line [12:38:57]line [12:38:57]line [12:38:57]line [12:38:57]written 0, free lines is 3600 [12:38:57]MH_Cut [12:38:57]Write to MH i2c: D1 01 00 E7 08 01 C1 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: D1 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: D1 01 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: D1 01 00 E7 08 00 C0 [12:38:57]Write to MH i2c: 01 00 00 E8 08 F0 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]OFD Sender: No OFD packet to send [12:38:57]*** Cut start [12:38:57]*** Purtial cut [12:38:57]*** CUTSNS_PIN = 0 [12:38:57]*** Stage 1: CUTSNS_PIN = 1 [12:38:59]Read from MH i2c: 01 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: 01 07 00 [12:38:59]MH_I2C_Read... [12:38:59]*** Stop cut motor [12:38:59]*** Cut end [12:38:59]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [12:38:59]process_action print_text done [12:38:59]requested_data is exist [12:38:59]produce_requested_data [12:38:59]requested_item fm.sn is exist - process it [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 11 00 00 [12:38:59]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:59]Read from MH i2c: E2 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 17 00 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [12:38: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:38:59]wFMCommunicate OK [12:38:59]requested_item fd.num is exist - process it [12:38:59]SAM_PROTO_GetFieldsCounters [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 13 00 00 [12:38:59]Write to MH i2c: E2 08 00 EA 08 80 13 00 00 00 00 00 00 6E [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:59]Read from MH i2c: E2 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 62 00 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 62 00 EA 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 B3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:38: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 B3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:59]wFMCommunicate OK [12:38:59]SAM_PROTO_GetFieldsCounters done [12:38:59]requested_item shift.num is exist - process it [12:38:59]requested_item shift.opened is exist - process it [12:38:59]req_shift_opened [12:38:59]FM_GetShiftState [12:38:59]SAM_PROTO_GetShiftState [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 13 01 00 [12:38:59]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:00]Read from MH i2c: E2 [12:39:00]MH_I2C_Read... [12:39:00]Read from MH i2c: E2 0E 00 [12:39:00]MH_I2C_Read... [12:39:00]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1B [12:39:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:39:00]wFMCommunicate OK [12:39:00]SAM_PROTO_GetShiftState done [12:39:00]FM_GetShiftState done [12:39:00]req_shift_opened done [12:39:00]requested_item shift.open_date is exist - process it [12:39:00]req_shift_open_date [12:39:00]req_shift_open_date done [12:39:00]produce_requested_data done [12:39:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67251,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:39:00]process_action_free print_text [12:39:00]json_value_free [12:39:00]json_value_free done [12:39:00]process_json_proto returns [12:39:00]Send response to host [12:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67251,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:39:00]free response buf [12:39:00]execute_script done [12:39:00]execute_script returns [12:39:00]free content buf [12:39:00]Sock 7.Close socket [12:39:00]Sock 7.Thread stoped [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:39]accept exits with 9 [12:39:39]New connection [12:39:39]New thread 3067174244 created [12:39:39]Thread 3067030884 joined [12:39:39]Waiting for new connection... [12:39:39] Sock 9.Parse request [12:39:39]Sock 9.Check first char [12:39:39]Sock 9.First char is OK [12:39:39]request: POST /json_proto HTTP/1.0 [12:39:39]Method: POST [12:39:39]URL: /json_proto [12:39:39]Method is POST - this is cgi request [12:39:39]url: /json_proto [12:39:39]query_string will be loaded in cgi processing [12:39:39]execute_cgi json_proto POST (null) [12:39:39]execute_cgi path=json_proto method=POST [12:39:39]POST find Content-Length [12:39:39]Host: 172.17.41.195:8080 [12:39:39]Content-Length: 803 [12:39:39]Content-Type: application/json [12:39:39] [12:39:39]POST finish read [12:39:39]Found Content-Length = 803 [12:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507226", "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" ] } } [12:39:39]execute_script... [12:39: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)507226", "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" ] } } [12:39:39]POST & json_proto [12:39:39]process_json_proto [12:39:39]json parsed OK: [12:39:39]protocol is kg_v1.0 [12:39:39]action value=close_receipt [12:39:39]process_action close_receipt [12:39:39]cmd_close_receipt [12:39:39]MH_GetDate [12:39:39]Write to MH i2c: F0 00 00 EC 08 E3 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: F0 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: F0 09 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: F0 09 00 EC 08 00 0C AD 44 66 FC 21 6F 64 3F [12:39:39]GetLastDocTimeStamp 1715776575 [12:39:39]current date 1715776780 [12:39:39]FM_GetShiftState [12:39:39]SAM_PROTO_GetShiftState [12:39:39]wFMCommunicate request_size=4 [12:39:39]MH_SAM_APDU [12:39:39]CAPDU: 80 13 01 00 [12:39:39]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [12:39:39]Write i2c OK [12:39:39]MH_I2C_Read... [12:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:39]Read from MH i2c: E2 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 0E 00 [12:39:39]MH_I2C_Read... [12:39:39]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1D [12:39:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:39:39]wFMCommunicate OK [12:39:39]SAM_PROTO_GetShiftState done [12:39:39]FM_GetShiftState done [12:39:39]opened in 1715732471 [12:39:39]opened+sec_in_day 1715818871 [12:39:39]quantity*price = 150032 [12:39:39]sum+1 = 150034 [12:39:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 70 15.05.2024 12:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67252 ФПД: 70507799790768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123940&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67252&fm=70507799790768&tin=02508201610067®Number=0000000000091845&sum=150033 [12:39:40]StoreToDocumentArchive [12:39:40]shift 356 fd 67252 [12:39:40]save to /storage/0356/doc_00067252 [12:39:40]save last doc name /storage/0356/doc_00067252 to /storage/kkm_last_doc_name [12:39:40]save OK [12:39:40]Clear old archive folders... [12:39:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:40]tlvbuf is 00B3F850 [12:39:40]SAM_PROTO_ClearQueue [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 09 00 00 [12:39:40]Write to MH i2c: E2 08 00 FA 08 80 09 00 00 00 00 00 00 74 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [12:39:40]RAPDU: 90 00 [12:39:40]wFMCommunicate OK [12:39:40]SAM_PROTO_ClearQueue done [12:39:40]KKMCreateOFDPacket [12:39:40]OFDProtocolAddRootSTLVToBuf [12:39:40]FM_MakeSignedData [12:39:40]FM_MakeSignedData [12:39:40]SAM_PROTO_SignData [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 0D 01 02 [12:39:40]Write to MH i2c: E2 08 00 FB 08 80 0D 01 02 00 00 00 00 7C [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [12:39:40]RAPDU: 90 00 [12:39:40]wFMCommunicate OK [12:39:40]wFMCommunicate request_size=255 [12:39:40]MH_SAM_APDU [12:39:40]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 46 00 00 00 F4 03 04 00 0C AD 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 06 01 00 35 04 06 00 40 [12:39:40]Write to MH i2c: E2 02 01 FC 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 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 46 00 00 00 F4 03 04 00 0C AD 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 06 01 00 35 04 06 00 40 00 00 A0 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [12:39:40]RAPDU: 90 00 [12:39:40]wFMCommunicate OK [12:39:40]wFMCommunicate request_size=10 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 0D 02 02 05 20 60 5C 44 B0 [12:39:40]Write to MH i2c: E2 0D 00 FD 08 80 0D 02 02 05 00 20 60 5C 44 B0 00 00 59 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:40]Read from MH i2c: E2 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 [12:39:40]MH_I2C_Read... [12:39:40]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [12:39:40]RAPDU: 90 00 [12:39:40]wFMCommunicate OK [12:39:40]wFMCommunicate request_size=4 [12:39:40]MH_SAM_APDU [12:39:40]CAPDU: 80 0D 03 02 [12:39:40]Write to MH i2c: E2 08 00 FE 08 80 0D 03 02 00 00 00 00 81 [12:39:40]Write i2c OK [12:39:40]MH_I2C_Read... [12:39:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:41]Read from MH i2c: E2 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 0B 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 0B 00 FE 08 00 F5 8A 2C 3D BD 9C 0E 56 90 00 27 [12:39:41]RAPDU: F5 8A 2C 3D BD 9C 0E 56 90 00 [12:39:41]wFMCommunicate OK [12:39:41]SAM_PROTO_SignData done [12:39:41]FM_MakeSignedData done [12:39:41]CreateOFDProtocolMessage [12:39:41]wFMCommunicate request_size=4 [12:39:41]MH_SAM_APDU [12:39:41]CAPDU: 80 11 00 00 [12:39:41]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:41]Read from MH i2c: E2 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 17 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D7 [12:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:39:41]wFMCommunicate OK [12:39:41]CreateOFDProtocolMessage done [12:39:41]OFDSenderStorePacket 67252 [12:39:41]StoreOFDPacket docnum=67252 [12:39: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 0F 01 00 00 83 BB 07 01 A2 48 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 46 00 00 00 F4 03 04 00 0C AD 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 06 01 00 35 04 06 00 40 20 60 5C 44 B0 F5 8A 2C 3D BD 9C 0E 56 [12:39:41]CheckFolder [12:39:41]dirname=/storage/ofd_packets [12:39:41]CheckFolder done [12:39:41]ProducePacketName [12:39:41]name=ofd_packets/00067252 [12:39:41]NVStorageSaveData ofd_packets/00067252 [12:39:41]File name is /storage/ofd_packets/00067252 [12:39:41]Write 301 bytes [12:39:41]NVStorageSaveData done [12:39:41]OFDSenderStorePacket done [12:39:41]KKMCreateOFDPacket done [12:39:41]NVStorageSaveData kkm_last_timestamp [12:39:41]File name is /storage/kkm_last_timestamp [12:39:41]Write 4 bytes [12:39:41]NVStorageSaveData done [12:39:41]ExternCall_PrintAddStr [12:39:41]wPrintStart [12:39:41]Write to MH i2c: 01 00 00 00 09 09 [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [12:39:41]RasterBufferAndPrint [12:39:41]line Счет N : (1)507226 [12:39:41]line ИНН: 02508201610067 [12:39:41]line Контрольно-Кассовый Чек [12:39:41]line ПРОДАЖА [12:39:41]line ТРК (МРК, ГНК) : 23 [12:39:41]line Товар: 2710124130 [12:39:41]line Аи-92-К-5 [12:39:41]line 22.460 * 66.80 [12:39:41]line = 1500.33 [12:39:41]line НДС 12% НСП 1% [12:39:41]line > о реализуемом товаре [12:39:41]line ИТОГО: 1500.33 [12:39:41]line НСП 1% : 13.28 [12:39:41]line НДС 12% : 159.33 [12:39:41]line Наличными: 0.00 [12:39:41]line Безнал.: 1500.33 [12:39:41]line Место: АЗС № 91 "Партнер Нефть" [12:39:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:39:41]line СНО: Общий режим [12:39:41]line Чек 70 15.05.2024 12:39 [12:39:41]line Смена: 356 ФФД: 1.0 [12:39:41]line ЗНМ: 0300000119 [12:39:41]line РНМ: 0000000000091845 [12:39:41]line Версия ККМ: 001 [12:39:41]line Платежная система: O! деньги [12:39:41]line ФМ: 0000000000871829 [12:39:41]line ФД: 67252 [12:39:41]line ФПД: 70507799790768 [12:39:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T123940&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67252&fm=70507799790768&tin=02508201610067®Number=0000000000091845&sum=150033 [12:39:41]written 0, free lines is 4095 [12:39:41]OFD Sender: Processing packet 67252 [packets to send 35, broken 34] [12:39:41]ProducePacketName [12:39:41]name=ofd_packets/00067252 [12:39:41]OFD Sender: To server: pG, [12:39:41]CommunicateWithHost lk.salyk.kg:30040 [12:39:41]ConnectInit lk.salyk.kg [12:39:41]Connected sock=10 [12:39: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 0F 01 00 00 83 BB 07 01 A2 48 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 46 00 00 00 F4 03 04 00 0C AD 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B4 06 01 00 35 04 06 00 40 20 60 5C 44 B0 F5 8A 2C 3D BD 9C 0E 56 [12:39:41]Write to MH i2c: 01 00 00 29 09 32 [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 DD 0C 22 [12:39:41]RasterBufferAndPrint [12:39:41]line [12:39:41]line [12:39:41]line [12:39:41]line [12:39:41]line [12:39:41]written 0, free lines is 3300 [12:39:41]MH_Cut [12:39:41]Write to MH i2c: D1 01 00 30 09 01 0B [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: D1 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: D1 01 00 [12:39:41]MH_I2C_Read... [12:39:41]Read from MH i2c: D1 01 00 30 09 00 0A [12:39:41]Write to MH i2c: 01 00 00 31 09 3A [12:39:41]Write i2c OK [12:39:41]MH_I2C_Read... [12:39: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 F2 2B 47 00 5F 94 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 B4 06 01 00 F4 03 04 00 E9 54 44 66 B6 04 01 00 00 AD A2 A0 0F B7 1E 6E 74 [12:39:41]CommunicateWithHost err = 0 [12:39:41]CheckOFDResponse [12:39:41]1017 (14) - 77093643461234 [12:39:41]1041 (16) - 0000000000871829 [12:39:41]1040 (4) - 67252 [12:39:41]1012 (4) - 15.05.2024 06:23 [12:39:41]1206 (1) - 0 [12:39:41]OFD Sender: Remove packet 67252 [12:39:41]ProducePacketName [12:39:41]name=ofd_packets/00067252 [12:39:41]NVStorageDeleteData [12:39:42]OFD Sender: No OFD packet to send [12:39:42]*** Cut start [12:39:42]*** Purtial cut [12:39:42]*** Stage 1: CUTSNS_PIN = 1 [12:39:42]Read from MH i2c: 01 [12:39:42]MH_I2C_Read... [12:39:42]*** Stop cut motor [12:39:42]*** Cut end [12:39:42]Read from MH i2c: 01 07 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [12:39:42]process_action close_receipt done [12:39:42]requested_data is exist [12:39:42]produce_requested_data [12:39:42]requested_item fm.sn is exist - process it [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 11 00 00 [12:39:42]Write to MH i2c: E2 08 00 32 09 80 11 00 00 00 00 00 00 B5 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 17 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 17 00 32 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0B [12:39: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:39:42]wFMCommunicate OK [12:39:42]requested_item fd.num is exist - process it [12:39:42]SAM_PROTO_GetFieldsCounters [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 00 00 [12:39:42]Write to MH i2c: E2 08 00 33 09 80 13 00 00 00 00 00 00 B8 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 62 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 62 00 33 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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:39: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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetFieldsCounters done [12:39:42]requested_item shift.num is exist - process it [12:39:42]requested_item shift.opened is exist - process it [12:39:42]req_shift_opened [12:39:42]FM_GetShiftState [12:39:42]SAM_PROTO_GetShiftState [12:39:42]wFMCommunicate request_size=4 [12:39:42]MH_SAM_APDU [12:39:42]CAPDU: 80 13 01 00 [12:39:42]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 [12:39:42]MH_I2C_Read... [12:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:42]Read from MH i2c: E2 0E 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 65 [12:39:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:39:42]wFMCommunicate OK [12:39:42]SAM_PROTO_GetShiftState done [12:39:42]FM_GetShiftState done [12:39:42]req_shift_opened done [12:39:42]requested_item shift.open_date is exist - process it [12:39:42]req_shift_open_date [12:39:42]req_shift_open_date done [12:39:42]produce_requested_data done [12:39:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:39:42]process_action_free close_receipt [12:39:42]json_value_free [12:39:42]json_value_free done [12:39:42]process_json_proto returns [12:39:42]Send response to host [12:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:39:42]free response buf [12:39:42]execute_script done [12:39:42]execute_script returns [12:39:42]free content buf [12:39:42]Sock 9.Close socket [12:39:42]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:41]accept exits with 7 [12:56:41]New connection [12:56:41]New thread 3067030884 created [12:56:41]Thread 3067174244 joined [12:56:41]Waiting for new connection... [12:56:41] Sock 7.Parse request [12:56:41]Sock 7.Check first char [12:56:41]Sock 7.First char is OK [12:56:41]request: POST /json_proto HTTP/1.0 [12:56:41]Method: POST [12:56:41]URL: /json_proto [12:56:41]Method is POST - this is cgi request [12:56:41]url: /json_proto [12:56:41]query_string will be loaded in cgi processing [12:56:41]execute_cgi json_proto POST (null) [12:56:41]execute_cgi path=json_proto method=POST [12:56:41]POST find Content-Length [12:56:41]Host: 172.17.41.195:8080 [12:56:41]Content-Length: 1210 [12:56:41]Content-Type: application/json [12:56:41] [12:56:41]POST finish read [12:56:41]Found Content-Length = 1210 [12:56: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)507228\u000A15.05.2024 12:39\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:56:41]execute_script... [12:56: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)507228\u000A15.05.2024 12:39\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:56:41]POST & json_proto [12:56:41]process_json_proto [12:56:41]json parsed OK: [12:56:41]protocol is kg_v1.0 [12:56:41]action value=print_text [12:56:41]process_action print_text [12:56:41]cmd_print_text [12:56:41]ExternCall_PrintAddStr [12:56:41]wPrintStart [12:56:41]Write to MH i2c: 01 00 00 35 09 3E [12:56:41]Write i2c OK [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 [12:56:41]MH_I2C_Read... [12:56:41]Read from MH i2c: 01 07 00 35 09 00 00 00 00 00 FF 0F 53 [12:56:41]RasterBufferAndPrint [12:56:41]line *****ТОВАРНЫЙ ЧЕК***** [12:56:41]line АЗС-91 [12:56:41]line Партнер нефть [12:56:41]line 02508201610067 [12:56:41]line Кассир : Арстанбеков Н. [12:56:41]line Счет N : (1)507228 [12:56:41]line 15.05.2024 12:39 [12:56:41]line ПРОДАЖА [12:56:41]line ТРК (МРК, ГНК): 23 [12:56:41]line Вид ГСМ : 2710124130 [12:56:41]line Аи-92-К-5 [12:56:41]line 8.990 x 66.80 [12:56:41]line ИТОГ: 600.53 [12:56:41]line Тип оплаты: Талоны: Топливная Карта [12:56:41]line 02750 [12:56:41]line ______________________ [12:56:41]line (подпись) [12:56:41]written 0, free lines is 4095 [12:56:42]Write to MH i2c: 01 00 00 49 09 52 [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 07 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 11 0E 78 [12:56:42]RasterBufferAndPrint [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]line [12:56:42]written 0, free lines is 3602 [12:56:42]MH_Cut [12:56:42]Write to MH i2c: D1 01 00 50 09 01 2B [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 01 00 [12:56:42]MH_I2C_Read... [12:56:42]Read from MH i2c: D1 01 00 50 09 00 2A [12:56:42]Write to MH i2c: 01 00 00 51 09 5A [12:56:42]Write i2c OK [12:56:42]MH_I2C_Read... [12:56:42]*** Cut start [12:56:42]*** Purtial cut [12:56:42]*** CUTSNS_PIN = 0 [12:56:43]*** Stage 1: CUTSNS_PIN = 1 [12:56:43]OFD Sender: No OFD packet to send [12:56:44]Read from MH i2c: 01 [12:56:44]MH_I2C_Read... [12:56:44]*** Stop cut motor [12:56:44]*** Cut end [12:56:44]Read from MH i2c: 01 07 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [12:56:44]process_action print_text done [12:56:44]requested_data is exist [12:56:44]produce_requested_data [12:56:44]requested_item fm.sn is exist - process it [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 11 00 00 [12:56:44]Write to MH i2c: E2 08 00 52 09 80 11 00 00 00 00 00 00 D5 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 17 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 17 00 52 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [12:56: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:56:44]wFMCommunicate OK [12:56:44]requested_item fd.num is exist - process it [12:56:44]SAM_PROTO_GetFieldsCounters [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 13 00 00 [12:56:44]Write to MH i2c: E2 08 00 53 09 80 13 00 00 00 00 00 00 D8 [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:44]Read from MH i2c: E2 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 62 00 [12:56:44]MH_I2C_Read... [12:56:44]Read from MH i2c: E2 62 00 53 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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [12:56: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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:44]wFMCommunicate OK [12:56:44]SAM_PROTO_GetFieldsCounters done [12:56:44]requested_item shift.num is exist - process it [12:56:44]requested_item shift.opened is exist - process it [12:56:44]req_shift_opened [12:56:44]FM_GetShiftState [12:56:44]SAM_PROTO_GetShiftState [12:56:44]wFMCommunicate request_size=4 [12:56:44]MH_SAM_APDU [12:56:44]CAPDU: 80 13 01 00 [12:56:44]Write to MH i2c: E2 08 00 54 09 80 13 01 00 00 00 00 00 DA [12:56:44]Write i2c OK [12:56:44]MH_I2C_Read... [12:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:44]Read from MH i2c: E2 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: E2 0E 00 54 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 85 [12:56:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:56:45]wFMCommunicate OK [12:56:45]SAM_PROTO_GetShiftState done [12:56:45]FM_GetShiftState done [12:56:45]req_shift_opened done [12:56:45]requested_item shift.open_date is exist - process it [12:56:45]req_shift_open_date [12:56:45]req_shift_open_date done [12:56:45]produce_requested_data done [12:56:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:56:45]process_action_free print_text [12:56:45]json_value_free [12:56:45]json_value_free done [12:56:45]process_json_proto returns [12:56:45]Send response to host [12:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:56:45]free response buf [12:56:45]execute_script done [12:56:45]execute_script returns [12:56:45]free content buf [12:56:45]Sock 7.Close socket [12:56:45]Sock 7.Thread stoped [12:56:45]accept exits with 9 [12:56:45]New connection [12:56:45]New thread 3067174244 created [12:56:45]Thread 3067030884 joined [12:56:45]Waiting for new connection... [12:56:45] Sock 9.Parse request [12:56:45]Sock 9.Check first char [12:56:45]Sock 9.First char is OK [12:56:45]request: POST /json_proto HTTP/1.0 [12:56:45]Method: POST [12:56:45]URL: /json_proto [12:56:45]Method is POST - this is cgi request [12:56:45]url: /json_proto [12:56:45]query_string will be loaded in cgi processing [12:56:45]execute_cgi json_proto POST (null) [12:56:45]execute_cgi path=json_proto method=POST [12:56:45]POST find Content-Length [12:56:45]Host: 172.17.41.195:8080 [12:56:45]Content-Length: 1209 [12:56:45]Content-Type: application/json [12:56:45] [12:56:45]POST finish read [12:56:45]Found Content-Length = 1209 [12:56: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)507227\u000A15.05.2024 12: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 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" ] } } [12:56:45]execute_script... [12:56: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)507227\u000A15.05.2024 12: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 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" ] } } [12:56:45]POST & json_proto [12:56:45]process_json_proto [12:56:45]json parsed OK: [12:56:45]protocol is kg_v1.0 [12:56:45]action value=print_text [12:56:45]process_action print_text [12:56:45]cmd_print_text [12:56:45]ExternCall_PrintAddStr [12:56:45]wPrintStart [12:56:45]Write to MH i2c: 01 00 00 55 09 5E [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [12:56:45]RasterBufferAndPrint [12:56:45]line *****ТОВАРНЫЙ ЧЕК***** [12:56:45]line АЗС-91 [12:56:45]line Партнер нефть [12:56:45]line 02508201610067 [12:56:45]line Кассир : Арстанбеков Н. [12:56:45]line Счет N : (1)507227 [12:56:45]line 15.05.2024 12:39 [12:56:45]line ПРОДАЖА [12:56:45]line ТРК (МРК, ГНК): 11 [12:56:45]line Вид ГСМ : 2710194210 [12:56:45]line ДТ-К-5 [12:56:45]line 13.390 x 74.70 [12:56:45]line ИТОГ: 1000.23 [12:56:45]line Тип оплаты: Талоны: Топливная Карта [12:56:45]line 02750 [12:56:45]line ______________________ [12:56:45]line (подпись) [12:56:45]written 0, free lines is 4095 [12:56:45]Write to MH i2c: 01 00 00 69 09 72 [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 0E 0E 95 [12:56:45]RasterBufferAndPrint [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]line [12:56:45]written 0, free lines is 3600 [12:56:45]MH_Cut [12:56:45]Write to MH i2c: D1 01 00 70 09 01 4B [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: D1 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: D1 01 00 [12:56:45]MH_I2C_Read... [12:56:45]Read from MH i2c: D1 01 00 70 09 00 4A [12:56:45]Write to MH i2c: 01 00 00 71 09 7A [12:56:45]Write i2c OK [12:56:45]MH_I2C_Read... [12:56:46]*** Cut start [12:56:46]*** Purtial cut [12:56:46]*** Stage 1: CUTSNS_PIN = 1 [12:56:46]Read from MH i2c: 01 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: 01 07 00 [12:56:46]MH_I2C_Read... [12:56:46]*** Stop cut motor [12:56:46]*** Cut end [12:56:46]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 FF 0F 8F [12:56:46]process_action print_text done [12:56:46]requested_data is exist [12:56:46]produce_requested_data [12:56:46]requested_item fm.sn is exist - process it [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 11 00 00 [12:56:46]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 17 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [12:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:56:46]wFMCommunicate OK [12:56:46]requested_item fd.num is exist - process it [12:56:46]SAM_PROTO_GetFieldsCounters [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 13 00 00 [12:56:46]Write to MH i2c: E2 08 00 73 09 80 13 00 00 00 00 00 00 F8 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 62 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 62 00 73 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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12: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 B4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:46]wFMCommunicate OK [12:56:46]SAM_PROTO_GetFieldsCounters done [12:56:46]requested_item shift.num is exist - process it [12:56:46]requested_item shift.opened is exist - process it [12:56:46]req_shift_opened [12:56:46]FM_GetShiftState [12:56:46]SAM_PROTO_GetShiftState [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 13 01 00 [12:56:46]Write to MH i2c: E2 08 00 74 09 80 13 01 00 00 00 00 00 FA [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 74 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A5 [12:56:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [12:56:46]wFMCommunicate OK [12:56:46]SAM_PROTO_GetShiftState done [12:56:46]FM_GetShiftState done [12:56:46]req_shift_opened done [12:56:46]requested_item shift.open_date is exist - process it [12:56:46]req_shift_open_date [12:56:46]req_shift_open_date done [12:56:46]produce_requested_data done [12:56:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [12:56:46]process_action_free print_text [12:56:46]json_value_free [12:56:46]json_value_free done [12:56:46]process_json_proto returns [12:56:46]Send response to host [12:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67252,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [12:56:46]free response buf [12:56:46]execute_script done [12:56:46]execute_script returns [12:56:46]free content buf [12:56:46]Sock 9.Close socket [12:56:46]Sock 9.Thread stoped [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:24]accept exits with 7 [13:00:24]New connection [13:00:24]New thread 3067030884 created [13:00:24]Thread 3067174244 joined [13:00:24]Waiting for new connection... [13:00:24] Sock 7.Parse request [13:00:24]Sock 7.Check first char [13:00:24]Sock 7.First char is OK [13:00:24]request: POST /json_proto HTTP/1.0 [13:00:24]Method: POST [13:00:24]URL: /json_proto [13:00:24]Method is POST - this is cgi request [13:00:24]url: /json_proto [13:00:24]query_string will be loaded in cgi processing [13:00:24]execute_cgi json_proto POST (null) [13:00:24]execute_cgi path=json_proto method=POST [13:00:24]POST find Content-Length [13:00:24]Host: 172.17.41.195:8080 [13:00:24]Content-Length: 803 [13:00:24]Content-Type: application/json [13:00:24] [13:00:24]POST finish read [13:00:24]Found Content-Length = 803 [13:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507229", "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" : 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" ] } } [13:00:24]execute_script... [13:00: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)507229", "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" : 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" ] } } [13:00:24]POST & json_proto [13:00:24]process_json_proto [13:00:24]json parsed OK: [13:00:24]protocol is kg_v1.0 [13:00:24]action value=close_receipt [13:00:24]process_action close_receipt [13:00:24]cmd_close_receipt [13:00:24]MH_GetDate [13:00:24]Write to MH i2c: F0 00 00 75 09 6D [13:00:24]Write i2c OK [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 09 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 09 00 75 09 00 E9 B1 44 66 FC 21 6F 64 AA [13:00:24]GetLastDocTimeStamp 1715776780 [13:00:24]current date 1715778025 [13:00:24]FM_GetShiftState [13:00:24]SAM_PROTO_GetShiftState [13:00:24]wFMCommunicate request_size=4 [13:00:24]MH_SAM_APDU [13:00:24]CAPDU: 80 13 01 00 [13:00:24]Write to MH i2c: E2 08 00 76 09 80 13 01 00 00 00 00 00 FC [13:00:24]Write i2c OK [13:00:24]MH_I2C_Read... [13:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:24]Read from MH i2c: E2 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 76 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A7 [13:00:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:00:24]wFMCommunicate OK [13:00:24]SAM_PROTO_GetShiftState done [13:00:24]FM_GetShiftState done [13:00:24]opened in 1715732471 [13:00:24]opened+sec_in_day 1715818871 [13:00:24]quantity*price = 150032 [13:00:24]sum+1 = 150034 [13:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 71 15.05.2024 13:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67253 ФПД: 221920296900908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130025&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67253&fm=221920296900908&tin=02508201610067®Number=0000000000091845&sum=150033 [13:00:25]StoreToDocumentArchive [13:00:25]shift 356 fd 67253 [13:00:25]save to /storage/0356/doc_00067253 [13:00:25]save last doc name /storage/0356/doc_00067253 to /storage/kkm_last_doc_name [13:00:25]save OK [13:00:25]Clear old archive folders... [13:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:25]tlvbuf is 00B095F0 [13:00:25]SAM_PROTO_ClearQueue [13:00:25]wFMCommunicate request_size=4 [13:00:25]MH_SAM_APDU [13:00:25]CAPDU: 80 09 00 00 [13:00:25]Write to MH i2c: E2 08 00 83 09 80 09 00 00 00 00 00 00 FE [13:00:25]Write i2c OK [13:00:25]MH_I2C_Read... [13:00:25]Read from MH i2c: E2 [13:00:25]MH_I2C_Read... [13:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:25]Read from MH i2c: E2 03 00 [13:00:25]MH_I2C_Read... [13:00:25]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [13:00:25]RAPDU: 90 00 [13:00:25]wFMCommunicate OK [13:00:25]SAM_PROTO_ClearQueue done [13:00:25]KKMCreateOFDPacket [13:00:25]OFDProtocolAddRootSTLVToBuf [13:00:25]FM_MakeSignedData [13:00:25]FM_MakeSignedData [13:00:25]SAM_PROTO_SignData [13:00:25]wFMCommunicate request_size=4 [13:00:25]MH_SAM_APDU [13:00:25]CAPDU: 80 0D 01 02 [13:00:25]Write to MH i2c: E2 08 00 84 09 80 0D 01 02 00 00 00 00 06 [13:00:25]Write i2c OK [13:00:25]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=255 [13:00:26]MH_SAM_APDU [13:00:26]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 47 00 00 00 F4 03 04 00 E9 B1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C9 [13:00:26]Write to MH i2c: E2 02 01 85 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 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 47 00 00 00 F4 03 04 00 E9 B1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C9 00 00 96 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=10 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 0D 02 02 05 D5 D8 77 19 2C [13:00:26]Write to MH i2c: E2 0D 00 86 09 80 0D 02 02 05 00 D5 D8 77 19 2C 00 00 7C [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 0D 03 02 [13:00:26]Write to MH i2c: E2 08 00 87 09 80 0D 03 02 00 00 00 00 0B [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0B 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0B 00 87 09 00 61 D6 9F 13 BD D8 FB 10 90 00 95 [13:00:26]RAPDU: 61 D6 9F 13 BD D8 FB 10 90 00 [13:00:26]wFMCommunicate OK [13:00:26]SAM_PROTO_SignData done [13:00:26]FM_MakeSignedData done [13:00:26]CreateOFDProtocolMessage [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 11 00 00 [13:00:26]Write to MH i2c: E2 08 00 88 09 80 11 00 00 00 00 00 00 0B [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 17 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 17 00 88 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [13:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:26]wFMCommunicate OK [13:00:26]CreateOFDProtocolMessage done [13:00:26]OFDSenderStorePacket 67253 [13:00:26]StoreOFDPacket docnum=67253 [13:00: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 13 8D 07 01 51 01 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 47 00 00 00 F4 03 04 00 E9 B1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C9 D5 D8 77 19 2C 61 D6 9F 13 BD D8 FB 10 [13:00:26]CheckFolder [13:00:26]dirname=/storage/ofd_packets [13:00:26]CheckFolder done [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00067253 [13:00:26]NVStorageSaveData ofd_packets/00067253 [13:00:26]File name is /storage/ofd_packets/00067253 [13:00:26]Write 301 bytes [13:00:26]NVStorageSaveData done [13:00:26]OFDSenderStorePacket done [13:00:26]KKMCreateOFDPacket done [13:00:26]NVStorageSaveData kkm_last_timestamp [13:00:26]File name is /storage/kkm_last_timestamp [13:00:26]Write 4 bytes [13:00:26]NVStorageSaveData done [13:00:26]ExternCall_PrintAddStr [13:00:26]wPrintStart [13:00:26]Write to MH i2c: 01 00 00 89 09 92 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 FF 0F A7 [13:00:26]RasterBufferAndPrint [13:00:26]line Счет N : (1)507229 [13:00:26]line ИНН: 02508201610067 [13:00:26]line Контрольно-Кассовый Чек [13:00:26]line ПРОДАЖА [13:00:26]line ТРК (МРК, ГНК) : 43 [13:00:26]line Товар: 2710124130 [13:00:26]line Аи-92-К-5 [13:00:26]line 22.460 * 66.80 [13:00:26]line = 1500.33 [13:00:26]line НДС 12% НСП 1% [13:00:26]line > о реализуемом товаре [13:00:26]line ИТОГО: 1500.33 [13:00:26]line НСП 1% : 13.28 [13:00:26]line НДС 12% : 159.33 [13:00:26]line Наличными: 0.00 [13:00:26]line Безнал.: 1500.33 [13:00:26]line Место: АЗС № 91 "Партнер Нефть" [13:00:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:00:26]line СНО: Общий режим [13:00:26]line Чек 71 15.05.2024 13:00 [13:00:26]line Смена: 356 ФФД: 1.0 [13:00:26]line ЗНМ: 0300000119 [13:00:26]line РНМ: 0000000000091845 [13:00:26]line Версия ККМ: 001 [13:00:26]line Платежная система: O! деньги [13:00:26]line ФМ: 0000000000871829 [13:00:26]line ФД: 67253 [13:00:26]line ФПД: 221920296900908 [13:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130025&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67253&fm=221920296900908&tin=02508201610067®Number=0000000000091845&sum=150033 [13:00:26]written 0, free lines is 4095 [13:00:26]OFD Sender: Processing packet 67253 [packets to send 35, broken 34] [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00067253 [13:00:26]OFD Sender: To server: pG, [13:00:26]CommunicateWithHost lk.salyk.kg:30040 [13:00:26]ConnectInit lk.salyk.kg [13:00:26]Connected sock=10 [13:00: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 13 8D 07 01 51 01 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 47 00 00 00 F4 03 04 00 E9 B1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C9 D5 D8 77 19 2C 61 D6 9F 13 BD D8 FB 10 [13:00: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 91 1E 47 00 36 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 B5 06 01 00 F4 03 04 00 C6 59 44 66 B6 04 01 00 00 A0 0D E6 92 AF 16 73 6E [13:00:26]CommunicateWithHost err = 0 [13:00:26]CheckOFDResponse [13:00:26]1017 (14) - 77093643461234 [13:00:26]1041 (16) - 0000000000871829 [13:00:26]1040 (4) - 67253 [13:00:26]1012 (4) - 15.05.2024 06:44 [13:00:26]1206 (1) - 0 [13:00:26]OFD Sender: Remove packet 67253 [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00067253 [13:00:26]NVStorageDeleteData [13:00:26]Write to MH i2c: 01 00 00 B2 09 BB [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 E7 0C B5 [13:00:26]RasterBufferAndPrint [13:00:26]line [13:00:26]line [13:00:26]line [13:00:26]line [13:00:26]line [13:00:26]written 0, free lines is 3312 [13:00:26]MH_Cut [13:00:26]Write to MH i2c: D1 01 00 B9 09 01 94 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: D1 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: D1 01 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: D1 01 00 B9 09 00 93 [13:00:26]Write to MH i2c: 01 00 00 BA 09 C3 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:27]OFD Sender: No OFD packet to send [13:00:27]*** Cut start [13:00:27]*** Purtial cut [13:00:27]*** CUTSNS_PIN = 0 [13:00:27]*** Stage 1: CUTSNS_PIN = 1 [13:00:29]Read from MH i2c: 01 [13:00:29]MH_I2C_Read... [13:00:29]*** Stop cut motor [13:00:29]*** Cut end [13:00:29]Read from MH i2c: 01 07 00 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 FF 0F D8 [13:00:29]process_action close_receipt done [13:00:29]requested_data is exist [13:00:29]produce_requested_data [13:00:29]requested_item fm.sn is exist - process it [13:00:29]wFMCommunicate request_size=4 [13:00:29]MH_SAM_APDU [13:00:29]CAPDU: 80 11 00 00 [13:00:29]Write to MH i2c: E2 08 00 BB 09 80 11 00 00 00 00 00 00 3E [13:00:29]Write i2c OK [13:00:29]MH_I2C_Read... [13:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:29]Read from MH i2c: E2 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 17 00 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 17 00 BB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [13:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:29]wFMCommunicate OK [13:00:29]requested_item fd.num is exist - process it [13:00:29]SAM_PROTO_GetFieldsCounters [13:00:29]wFMCommunicate request_size=4 [13:00:29]MH_SAM_APDU [13:00:29]CAPDU: 80 13 00 00 [13:00:29]Write to MH i2c: E2 08 00 BC 09 80 13 00 00 00 00 00 00 41 [13:00:29]Write i2c OK [13:00:29]MH_I2C_Read... [13:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:29]Read from MH i2c: E2 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 62 00 [13:00:29]MH_I2C_Read... [13:00:29]Read from MH i2c: E2 62 00 BC 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 B5 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13:00: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 B5 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:29]wFMCommunicate OK [13:00:29]SAM_PROTO_GetFieldsCounters done [13:00:29]requested_item shift.num is exist - process it [13:00:29]requested_item shift.opened is exist - process it [13:00:29]req_shift_opened [13:00:29]FM_GetShiftState [13:00:29]SAM_PROTO_GetShiftState [13:00:29]wFMCommunicate request_size=4 [13:00:29]MH_SAM_APDU [13:00:29]CAPDU: 80 13 01 00 [13:00:29]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [13:00:29]Write i2c OK [13:00:29]MH_I2C_Read... [13:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:30]Read from MH i2c: E2 [13:00:30]MH_I2C_Read... [13:00:30]Read from MH i2c: E2 0E 00 [13:00:30]MH_I2C_Read... [13:00:30]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EE [13:00:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:00:30]wFMCommunicate OK [13:00:30]SAM_PROTO_GetShiftState done [13:00:30]FM_GetShiftState done [13:00:30]req_shift_opened done [13:00:30]requested_item shift.open_date is exist - process it [13:00:30]req_shift_open_date [13:00:30]req_shift_open_date done [13:00:30]produce_requested_data done [13:00:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67253,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:00:30]process_action_free close_receipt [13:00:30]json_value_free [13:00:30]json_value_free done [13:00:30]process_json_proto returns [13:00:30]Send response to host [13:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67253,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:00:30]free response buf [13:00:30]execute_script done [13:00:30]execute_script returns [13:00:30]free content buf [13:00:30]Sock 7.Close socket [13:00:30]Sock 7.Thread stoped [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:31]accept exits with 9 [13:01:31]New connection [13:01:31]New thread 3067174244 created [13:01:31]Thread 3067030884 joined [13:01:31]Waiting for new connection... [13:01:31] Sock 9.Parse request [13:01:31]Sock 9.Check first char [13:01:31]Sock 9.First char is OK [13:01:31]request: POST /json_proto HTTP/1.0 [13:01:31]Method: POST [13:01:31]URL: /json_proto [13:01:31]Method is POST - this is cgi request [13:01:31]url: /json_proto [13:01:31]query_string will be loaded in cgi processing [13:01:31]execute_cgi json_proto POST (null) [13:01:31]execute_cgi path=json_proto method=POST [13:01:31]POST find Content-Length [13:01:31]Host: 172.17.41.195:8080 [13:01:31]Content-Length: 680 [13:01:31]Content-Type: application/json [13:01:31] [13:01:31]POST finish read [13:01:31]Found Content-Length = 680 [13:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12070", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:31]execute_script... [13:01: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 : (3)12070", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:31]POST & json_proto [13:01:31]process_json_proto [13:01:31]json parsed OK: [13:01:31]protocol is kg_v1.0 [13:01:31]action value=close_receipt [13:01:31]process_action close_receipt [13:01:31]cmd_close_receipt [13:01:31]MH_GetDate [13:01:31]Write to MH i2c: F0 00 00 BE 09 B6 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 09 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: F0 09 00 BE 09 00 2C B2 44 66 FC 21 6F 64 37 [13:01:31]GetLastDocTimeStamp 1715778025 [13:01:31]current date 1715778092 [13:01:31]FM_GetShiftState [13:01:31]SAM_PROTO_GetShiftState [13:01:31]wFMCommunicate request_size=4 [13:01:31]MH_SAM_APDU [13:01:31]CAPDU: 80 13 01 00 [13:01:31]Write to MH i2c: E2 08 00 BF 09 80 13 01 00 00 00 00 00 45 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:31]Read from MH i2c: E2 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 0E 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: E2 0E 00 BF 09 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F0 [13:01:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:01:31]wFMCommunicate OK [13:01:31]SAM_PROTO_GetShiftState done [13:01:31]FM_GetShiftState done [13:01:31]opened in 1715732471 [13:01:31]opened+sec_in_day 1715818871 [13:01:31]quantity*price = 4000 [13:01:31]sum+1 = 4001 [13:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 72 15.05.2024 13:01 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67254 ФПД: 13635567686986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67254&fm=13635567686986&tin=02508201610067®Number=0000000000091845&sum=4000 0 [13:01:32]StoreToDocumentArchive [13:01:32]shift 356 fd 67254 [13:01:32]save to /storage/0356/doc_00067254 [13:01:32]save last doc name /storage/0356/doc_00067254 to /storage/kkm_last_doc_name [13:01:32]save OK [13:01:32]Clear old archive folders... [13:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=296 [13:01:32]tlvbuf is 00B09170 [13:01:32]SAM_PROTO_ClearQueue [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 09 00 00 [13:01:32]Write to MH i2c: E2 08 00 CC 09 80 09 00 00 00 00 00 00 47 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_ClearQueue done [13:01:32]KKMCreateOFDPacket [13:01:32]OFDProtocolAddRootSTLVToBuf [13:01:32]FM_MakeSignedData [13:01:32]FM_MakeSignedData [13:01:32]SAM_PROTO_SignData [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 01 02 [13:01:32]Write to MH i2c: E2 08 00 CD 09 80 0D 01 02 00 00 00 00 4F [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=255 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2C B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [13:01:32]Write to MH i2c: E2 02 01 CE 09 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2C B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 FF [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=55 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 66 C7 2B 15 4A [13:01:32]Write to MH i2c: E2 3A 00 CF 09 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 66 C7 2B 15 4A 00 00 30 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [13:01:32]RAPDU: 90 00 [13:01:32]wFMCommunicate OK [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 0D 03 02 [13:01:32]Write to MH i2c: E2 08 00 D0 09 80 0D 03 02 00 00 00 00 54 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0B 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 0B 00 D0 09 00 A3 73 AF EA 99 EE 54 E4 90 00 C3 [13:01:33]RAPDU: A3 73 AF EA 99 EE 54 E4 90 00 [13:01:33]wFMCommunicate OK [13:01:33]SAM_PROTO_SignData done [13:01:33]FM_MakeSignedData done [13:01:33]CreateOFDProtocolMessage [13:01:33]wFMCommunicate request_size=4 [13:01:33]MH_SAM_APDU [13:01:33]CAPDU: 80 11 00 00 [13:01:33]Write to MH i2c: E2 08 00 D1 09 80 11 00 00 00 00 00 00 54 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:33]Read from MH i2c: E2 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 17 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: E2 17 00 D1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [13:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:33]wFMCommunicate OK [13:01:33]CreateOFDProtocolMessage done [13:01:33]OFDSenderStorePacket 67254 [13:01:33]StoreOFDPacket docnum=67254 [13:01: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 3C 01 00 00 76 05 34 01 D3 CD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2C B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 66 C7 2B 15 4A A3 73 AF EA 99 EE 54 E4 [13:01:33]CheckFolder [13:01:33]dirname=/storage/ofd_packets [13:01:33]CheckFolder done [13:01:33]ProducePacketName [13:01:33]name=ofd_packets/00067254 [13:01:33]NVStorageSaveData ofd_packets/00067254 [13:01:33]File name is /storage/ofd_packets/00067254 [13:01:33]Write 346 bytes [13:01:33]NVStorageSaveData done [13:01:33]OFDSenderStorePacket done [13:01:33]KKMCreateOFDPacket done [13:01:33]NVStorageSaveData kkm_last_timestamp [13:01:33]File name is /storage/kkm_last_timestamp [13:01:33]Write 4 bytes [13:01:33]NVStorageSaveData done [13:01:33]ExternCall_PrintAddStr [13:01:33]wPrintStart [13:01:33]Write to MH i2c: 01 00 00 D2 09 DB [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 D2 09 00 00 00 00 00 FF 0F F0 [13:01:33]RasterBufferAndPrint [13:01:33]line Счет N : (3)12070 [13:01:33]line ИНН: 02508201610067 [13:01:33]line Контрольно-Кассовый Чек [13:01:33]line ПРОДАЖА [13:01:33]line Товар: 4700003010346 [13:01:33]line Напиток Let`s Go! с/с груша ПЭТ 0,5л [13:01:33]line 1.000 * 40.00 [13:01:33]line = 40.00 [13:01:33]line НДС 12% НСП 1% [13:01:33]line > о реализуемом товаре [13:01:33]line ИТОГО: 40.00 [13:01:33]line НСП 1% : 0.35 [13:01:33]line НДС 12% : 4.25 [13:01:33]line Наличными: 40.00 [13:01:33]line Безнал.: 0.00 [13:01:33]line Место: АЗС № 91 "Партнер Нефть" [13:01:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:01:33]line СНО: Общий режим [13:01:33]line Чек 72 15.05.2024 13:01 [13:01:33]line Смена: 356 ФФД: 1.0 [13:01:33]line ЗНМ: 0300000119 [13:01:33]line РНМ: 0000000000091845 [13:01:33]line Версия ККМ: 001 [13:01:33]line ФМ: 0000000000871829 [13:01:33]line ФД: 67254 [13:01:33]line ФПД: 13635567686986 [13:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67254&fm=13635567686986&tin=02508201610067®Number=0000000000091845&sum=4000 [13:01:33]line 0 [13:01:33]OFD Sender: Processing packet 67254 [packets to send 35, broken 34] [13:01:33]ProducePacketName [13:01:33]name=ofd_packets/00067254 [13:01:33]OFD Sender: To server: pG, [13:01:33]CommunicateWithHost lk.salyk.kg:30040 [13:01:33]ConnectInit lk.salyk.kg [13:01:33]written 0, free lines is 4095 [13:01:33]Connected sock=10 [13:01: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 3C 01 00 00 76 05 34 01 D3 CD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2C B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 66 C7 2B 15 4A A3 73 AF EA 99 EE 54 E4 [13:01:33]Write to MH i2c: 01 00 00 FA 09 03 [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 CE 0C E4 [13:01:33]RasterBufferAndPrint [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]line [13:01:33]written 0, free lines is 3283 [13:01:33]MH_Cut [13:01:33]Write to MH i2c: D1 01 00 01 0A 01 DD [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 01 00 [13:01:33]MH_I2C_Read... [13:01:33]Read from MH i2c: D1 01 00 01 0A 00 DC [13:01:33]Write to MH i2c: 01 00 00 02 0A 0C [13:01:33]Write i2c OK [13:01:33]MH_I2C_Read... [13:01: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 E1 EF 47 00 96 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 B6 06 01 00 F4 03 04 00 09 5A 44 66 B6 04 01 00 00 FB BB 54 4E 59 95 66 84 [13:01:33]CommunicateWithHost err = 0 [13:01:33]CheckOFDResponse [13:01:33]1017 (14) - 77093643461234 [13:01:33]1041 (16) - 0000000000871829 [13:01:33]1040 (4) - 67254 [13:01:33]1012 (4) - 15.05.2024 06:45 [13:01:33]1206 (1) - 0 [13:01:33]OFD Sender: Remove packet 67254 [13:01:33]ProducePacketName [13:01:33]name=ofd_packets/00067254 [13:01:33]NVStorageDeleteData [13:01:34]OFD Sender: No OFD packet to send [13:01:34]*** Cut start [13:01:34]*** Purtial cut [13:01:34]*** Stage 1: CUTSNS_PIN = 1 [13:01:34]Read from MH i2c: 01 [13:01:34]MH_I2C_Read... [13:01:34]*** Stop cut motor [13:01:34]*** Cut end [13:01:34]Read from MH i2c: 01 07 00 [13:01:34]MH_I2C_Read... [13:01:34]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [13:01:34]process_action close_receipt done [13:01:34]requested_data is exist [13:01:34]produce_requested_data [13:01:34]requested_item fm.sn is exist - process it [13:01:34]wFMCommunicate request_size=4 [13:01:34]MH_SAM_APDU [13:01:34]CAPDU: 80 11 00 00 [13:01:34]Write to MH i2c: E2 08 00 03 0A 80 11 00 00 00 00 00 00 87 [13:01:34]Write i2c OK [13:01:34]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 17 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 17 00 03 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [13:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:35]wFMCommunicate OK [13:01:35]requested_item fd.num is exist - process it [13:01:35]SAM_PROTO_GetFieldsCounters [13:01:35]wFMCommunicate request_size=4 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 13 00 00 [13:01:35]Write to MH i2c: E2 08 00 04 0A 80 13 00 00 00 00 00 00 8A [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 62 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 62 00 04 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 B6 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [13:01: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 B6 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:35]wFMCommunicate OK [13:01:35]SAM_PROTO_GetFieldsCounters done [13:01:35]requested_item shift.num is exist - process it [13:01:35]requested_item shift.opened is exist - process it [13:01:35]req_shift_opened [13:01:35]FM_GetShiftState [13:01:35]SAM_PROTO_GetShiftState [13:01:35]wFMCommunicate request_size=4 [13:01:35]MH_SAM_APDU [13:01:35]CAPDU: 80 13 01 00 [13:01:35]Write to MH i2c: E2 08 00 05 0A 80 13 01 00 00 00 00 00 8C [13:01:35]Write i2c OK [13:01:35]MH_I2C_Read... [13:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:35]Read from MH i2c: E2 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0E 00 [13:01:35]MH_I2C_Read... [13:01:35]Read from MH i2c: E2 0E 00 05 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 37 [13:01:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:01:35]wFMCommunicate OK [13:01:35]SAM_PROTO_GetShiftState done [13:01:35]FM_GetShiftState done [13:01:35]req_shift_opened done [13:01:35]requested_item shift.open_date is exist - process it [13:01:35]req_shift_open_date [13:01:35]req_shift_open_date done [13:01:35]produce_requested_data done [13:01:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67254,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:01:35]process_action_free close_receipt [13:01:35]json_value_free [13:01:35]json_value_free done [13:01:35]process_json_proto returns [13:01:35]Send response to host [13:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67254,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:01:35]free response buf [13:01:35]execute_script done [13:01:35]execute_script returns [13:01:35]free content buf [13:01:35]Sock 9.Close socket [13:01:35]Sock 9.Thread stoped [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:08]accept exits with 7 [13:02:08]New connection [13:02:08]New thread 3067030884 created [13:02:08]Thread 3067174244 joined [13:02:08]Waiting for new connection... [13:02:08] Sock 7.Parse request [13:02:08]Sock 7.Check first char [13:02:08]Sock 7.First char is OK [13:02:08]request: POST /json_proto HTTP/1.0 [13:02:08]Method: POST [13:02:08]URL: /json_proto [13:02:08]Method is POST - this is cgi request [13:02:08]url: /json_proto [13:02:08]query_string will be loaded in cgi processing [13:02:08]execute_cgi json_proto POST (null) [13:02:08]execute_cgi path=json_proto method=POST [13:02:08]POST find Content-Length [13:02:08]Host: 172.17.41.195:8080 [13:02:08]Content-Length: 796 [13:02:08]Content-Type: application/json [13:02:08] [13:02:08]POST finish read [13:02:08]Found Content-Length = 796 [13:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507230", "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" ] } } [13:02:08]execute_script... [13:02:08]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)507230", "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" ] } } [13:02:08]POST & json_proto [13:02:08]process_json_proto [13:02:08]json parsed OK: [13:02:08]protocol is kg_v1.0 [13:02:08]action value=close_receipt [13:02:08]process_action close_receipt [13:02:08]cmd_close_receipt [13:02:08]MH_GetDate [13:02:08]Write to MH i2c: F0 00 00 06 0A FF [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: F0 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: F0 09 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: F0 09 00 06 0A 00 50 B2 44 66 FC 21 6F 64 A4 [13:02:08]GetLastDocTimeStamp 1715778092 [13:02:08]current date 1715778128 [13:02:08]FM_GetShiftState [13:02:08]SAM_PROTO_GetShiftState [13:02:08]wFMCommunicate request_size=4 [13:02:08]MH_SAM_APDU [13:02:08]CAPDU: 80 13 01 00 [13:02:08]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [13:02:08]Write i2c OK [13:02:08]MH_I2C_Read... [13:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:08]Read from MH i2c: E2 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 0E 00 [13:02:08]MH_I2C_Read... [13:02:08]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 39 [13:02:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:02:08]wFMCommunicate OK [13:02:08]SAM_PROTO_GetShiftState done [13:02:08]FM_GetShiftState done [13:02:08]opened in 1715732471 [13:02:08]opened+sec_in_day 1715818871 [13:02:08]quantity*price = 200010 [13:02:08]sum+1 = 200011 [13:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 73 15.05.2024 13:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67255 ФПД: 224276817586469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130208&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67255&fm=224276817586469&tin=02508201610067®Number=0000000000091845&sum=200010 [13:02:09]StoreToDocumentArchive [13:02:09]shift 356 fd 67255 [13:02:09]save to /storage/0356/doc_00067255 [13:02:09]save last doc name /storage/0356/doc_00067255 to /storage/kkm_last_doc_name [13:02:09]save OK [13:02:09]Clear old archive folders... [13:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:02:09]tlvbuf is 00B3F980 [13:02:09]SAM_PROTO_ClearQueue [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 09 00 00 [13:02:09]Write to MH i2c: E2 08 00 14 0A 80 09 00 00 00 00 00 00 90 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:09]Read from MH i2c: E2 03 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [13:02:09]RAPDU: 90 00 [13:02:09]wFMCommunicate OK [13:02:09]SAM_PROTO_ClearQueue done [13:02:09]KKMCreateOFDPacket [13:02:09]OFDProtocolAddRootSTLVToBuf [13:02:09]FM_MakeSignedData [13:02:09]FM_MakeSignedData [13:02:09]SAM_PROTO_SignData [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 0D 01 02 [13:02:09]Write to MH i2c: E2 08 00 15 0A 80 0D 01 02 00 00 00 00 98 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [13:02:09]RAPDU: 90 00 [13:02:09]wFMCommunicate OK [13:02:09]wFMCommunicate request_size=255 [13:02:09]MH_SAM_APDU [13:02:09]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 49 00 00 00 F4 03 04 00 50 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [13:02:09]Write to MH i2c: E2 02 01 16 0A 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 49 00 00 00 F4 03 04 00 50 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 76 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]OFD Sender: No OFD packet to send [13:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [13:02:09]RAPDU: 90 00 [13:02:09]wFMCommunicate OK [13:02:09]wFMCommunicate request_size=11 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 0D 02 02 06 CB FA 84 0B 29 25 [13:02:09]Write to MH i2c: E2 0E 00 17 0A 80 0D 02 02 06 00 CB FA 84 0B 29 25 00 00 49 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [13:02:09]RAPDU: 90 00 [13:02:09]wFMCommunicate OK [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 0D 03 02 [13:02:09]Write to MH i2c: E2 08 00 18 0A 80 0D 03 02 00 00 00 00 9D [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 0B 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 0B 00 18 0A 00 B0 F9 BE 06 9D 53 88 3D 90 00 C0 [13:02:09]RAPDU: B0 F9 BE 06 9D 53 88 3D 90 00 [13:02:09]wFMCommunicate OK [13:02:09]SAM_PROTO_SignData done [13:02:09]FM_MakeSignedData done [13:02:09]CreateOFDProtocolMessage [13:02:09]wFMCommunicate request_size=4 [13:02:09]MH_SAM_APDU [13:02:09]CAPDU: 80 11 00 00 [13:02:09]Write to MH i2c: E2 08 00 19 0A 80 11 00 00 00 00 00 00 9D [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:09]Read from MH i2c: E2 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 17 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: E2 17 00 19 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [13:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:02:09]wFMCommunicate OK [13:02:09]CreateOFDProtocolMessage done [13:02:09]OFDSenderStorePacket 67255 [13:02:09]StoreOFDPacket docnum=67255 [13:02: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 10 01 00 00 1C 75 08 01 F4 47 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 49 00 00 00 F4 03 04 00 50 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CB FA 84 0B 29 25 B0 F9 BE 06 9D 53 88 3D [13:02:09]CheckFolder [13:02:09]dirname=/storage/ofd_packets [13:02:09]CheckFolder done [13:02:09]ProducePacketName [13:02:09]name=ofd_packets/00067255 [13:02:09]NVStorageSaveData ofd_packets/00067255 [13:02:09]File name is /storage/ofd_packets/00067255 [13:02:09]Write 302 bytes [13:02:09]NVStorageSaveData done [13:02:09]OFDSenderStorePacket done [13:02:09]KKMCreateOFDPacket done [13:02:09]NVStorageSaveData kkm_last_timestamp [13:02:09]File name is /storage/kkm_last_timestamp [13:02:09]Write 4 bytes [13:02:09]NVStorageSaveData done [13:02:09]ExternCall_PrintAddStr [13:02:09]wPrintStart [13:02:09]Write to MH i2c: 01 00 00 1A 0A 24 [13:02:09]Write i2c OK [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 07 00 [13:02:09]MH_I2C_Read... [13:02:09]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 FF 0F 39 [13:02:09]RasterBufferAndPrint [13:02:09]line Счет N : (1)507230 [13:02:09]line ИНН: 02508201610067 [13:02:09]line Контрольно-Кассовый Чек [13:02:09]line ПРОДАЖА [13:02:09]line ТРК (МРК, ГНК) : 32 [13:02:09]line Товар: 2710124130 [13:02:09]line Super-92-К-5 [13:02:09]line 29.500 * 67.80 [13:02:09]line = 2000.10 [13:02:09]line НДС 12% НСП 1% [13:02:09]line > о реализуемом товаре [13:02:09]line ИТОГО: 2000.10 [13:02:09]line НСП 1% : 17.70 [13:02:09]line НДС 12% : 212.40 [13:02:09]line Наличными: 0.00 [13:02:09]line Безнал.: 2000.10 [13:02:09]line Место: АЗС № 91 "Партнер Нефть" [13:02:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:02:09]line СНО: Общий режим [13:02:09]line Чек 73 15.05.2024 13:02 [13:02:09]line Смена: 356 ФФД: 1.0 [13:02:09]line ЗНМ: 0300000119 [13:02:09]line РНМ: 0000000000091845 [13:02:09]line Версия ККМ: 001 [13:02:09]line Платежная система: O! деньги [13:02:09]line ФМ: 0000000000871829 [13:02:09]line ФД: 67255 [13:02:09]line ФПД: 224276817586469 [13:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130208&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67255&fm=224276817586469&tin=02508201610067®Number=0000000000091845&sum=200010 [13:02:10]OFD Sender: Processing packet 67255 [packets to send 35, broken 34] [13:02:10]ProducePacketName [13:02:10]name=ofd_packets/00067255 [13:02:10]OFD Sender: To server: pG, [13:02:10]CommunicateWithHost lk.salyk.kg:30040 [13:02:10]ConnectInit lk.salyk.kg [13:02:10]written 0, free lines is 4095 [13:02:10]Connected sock=10 [13:02: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 10 01 00 00 1C 75 08 01 F4 47 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 49 00 00 00 F4 03 04 00 50 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CB FA 84 0B 29 25 B0 F9 BE 06 9D 53 88 3D [13:02: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 F0 79 47 00 CD BC 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 06 01 00 F4 03 04 00 2E 5A 44 66 B6 04 01 00 00 97 AC 6D 87 7C 51 7D 66 [13:02:10]CommunicateWithHost err = 0 [13:02:10]CheckOFDResponse [13:02:10]1017 (14) - 77093643461234 [13:02:10]1041 (16) - 0000000000871829 [13:02:10]1040 (4) - 67255 [13:02:10]1012 (4) - 15.05.2024 06:46 [13:02:10]1206 (1) - 0 [13:02:10]OFD Sender: Remove packet 67255 [13:02:10]ProducePacketName [13:02:10]name=ofd_packets/00067255 [13:02:10]NVStorageDeleteData [13:02:10]Write to MH i2c: 01 00 00 43 0A 4D [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: 01 07 00 43 0A 00 00 00 00 00 DC 0C 3C [13:02:10]RasterBufferAndPrint [13:02:10]line [13:02:10]line [13:02:10]line [13:02:10]line [13:02:10]line [13:02:10]written 0, free lines is 3298 [13:02:10]MH_Cut [13:02:10]Write to MH i2c: D1 01 00 4A 0A 01 26 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D1 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D1 01 00 [13:02:10]MH_I2C_Read... [13:02:10]Read from MH i2c: D1 01 00 4A 0A 00 25 [13:02:10]Write to MH i2c: 01 00 00 4B 0A 55 [13:02:10]Write i2c OK [13:02:10]MH_I2C_Read... [13:02:10]OFD Sender: No OFD packet to send [13:02:11]*** Cut start [13:02:11]*** Purtial cut [13:02:11]*** CUTSNS_PIN = 0 [13:02:11]*** Stage 1: CUTSNS_PIN = 1 [13:02:13]Read from MH i2c: 01 [13:02:13]MH_I2C_Read... [13:02:13]*** Stop cut motor [13:02:13]*** Cut end [13:02:13]Read from MH i2c: 01 07 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: 01 07 00 4B 0A 00 00 00 00 00 FF 0F 6A [13:02:13]process_action close_receipt done [13:02:13]requested_data is exist [13:02:13]produce_requested_data [13:02:13]requested_item fm.sn is exist - process it [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 11 00 00 [13:02:13]Write to MH i2c: E2 08 00 4C 0A 80 11 00 00 00 00 00 00 D0 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 17 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 17 00 4C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [13:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:02:13]wFMCommunicate OK [13:02:13]requested_item fd.num is exist - process it [13:02:13]SAM_PROTO_GetFieldsCounters [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 13 00 00 [13:02:13]Write to MH i2c: E2 08 00 4D 0A 80 13 00 00 00 00 00 00 D3 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 62 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 62 00 4D 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 B7 06 01 00 0E 04 04 00 64 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 F7 [13:02: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 B7 06 01 00 0E 04 04 00 64 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 [13:02:13]wFMCommunicate OK [13:02:13]SAM_PROTO_GetFieldsCounters done [13:02:13]requested_item shift.num is exist - process it [13:02:13]requested_item shift.opened is exist - process it [13:02:13]req_shift_opened [13:02:13]FM_GetShiftState [13:02:13]SAM_PROTO_GetShiftState [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 13 01 00 [13:02:13]Write to MH i2c: E2 08 00 4E 0A 80 13 01 00 00 00 00 00 D5 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0E 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0E 00 4E 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 80 [13:02:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:02:13]wFMCommunicate OK [13:02:13]SAM_PROTO_GetShiftState done [13:02:13]FM_GetShiftState done [13:02:13]req_shift_opened done [13:02:13]requested_item shift.open_date is exist - process it [13:02:13]req_shift_open_date [13:02:13]req_shift_open_date done [13:02:13]produce_requested_data done [13:02:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67255,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:02:13]process_action_free close_receipt [13:02:13]json_value_free [13:02:13]json_value_free done [13:02:13]process_json_proto returns [13:02:13]Send response to host [13:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67255,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:02:13]free response buf [13:02:13]execute_script done [13:02:13]execute_script returns [13:02:13]free content buf [13:02:13]Sock 7.Close socket [13:02:13]Sock 7.Thread stoped [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:24]accept exits with 9 [13:04:24]New connection [13:04:24]New thread 3067174244 created [13:04:24]Thread 3067030884 joined [13:04:24]Waiting for new connection... [13:04:24] Sock 9.Parse request [13:04:24]Sock 9.Check first char [13:04:24]Sock 9.First char is OK [13:04:24]request: POST /json_proto HTTP/1.0 [13:04:24]Method: POST [13:04:24]URL: /json_proto [13:04:24]Method is POST - this is cgi request [13:04:24]url: /json_proto [13:04:24]query_string will be loaded in cgi processing [13:04:24]execute_cgi json_proto POST (null) [13:04:24]execute_cgi path=json_proto method=POST [13:04:24]POST find Content-Length [13:04:24]Host: 172.17.41.195:8080 [13:04:24]Content-Length: 645 [13:04:24]Content-Type: application/json [13:04:24] [13:04:24]POST finish read [13:04:24]Found Content-Length = 645 [13:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12071", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:24]execute_script... [13:04: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 : (3)12071", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:24]POST & json_proto [13:04:24]process_json_proto [13:04:24]json parsed OK: [13:04:24]protocol is kg_v1.0 [13:04:24]action value=close_receipt [13:04:24]process_action close_receipt [13:04:24]cmd_close_receipt [13:04:24]MH_GetDate [13:04:24]Write to MH i2c: F0 00 00 4F 0A 48 [13:04:24]Write i2c OK [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: F0 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: F0 09 00 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: F0 09 00 4F 0A 00 D9 B2 44 66 FC 21 6F 64 76 [13:04:24]GetLastDocTimeStamp 1715778128 [13:04:24]current date 1715778265 [13:04:24]FM_GetShiftState [13:04:24]SAM_PROTO_GetShiftState [13:04:24]wFMCommunicate request_size=4 [13:04:24]MH_SAM_APDU [13:04:24]CAPDU: 80 13 01 00 [13:04:24]Write to MH i2c: E2 08 00 50 0A 80 13 01 00 00 00 00 00 D7 [13:04:24]Write i2c OK [13:04:24]MH_I2C_Read... [13:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:24]Read from MH i2c: E2 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 0E 00 [13:04:24]MH_I2C_Read... [13:04:24]Read from MH i2c: E2 0E 00 50 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 82 [13:04:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:04:24]wFMCommunicate OK [13:04:24]SAM_PROTO_GetShiftState done [13:04:24]FM_GetShiftState done [13:04:24]opened in 1715732471 [13:04:24]opened+sec_in_day 1715818871 [13:04:24]quantity*price = 3000 [13:04:24]sum+1 = 3001 [13:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 НСП 1% : 0.26 НДС 12% : 3.19 Наличными: 30.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 74 15.05.2024 13:04 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67256 ФПД: 109842925717964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67256&fm=109842925717964&tin=02508201610067®Number=0000000000091845&sum=3000 0 [13:04:25]StoreToDocumentArchive [13:04:25]shift 356 fd 67256 [13:04:25]save to /storage/0356/doc_00067256 [13:04:25]save last doc name /storage/0356/doc_00067256 to /storage/kkm_last_doc_name [13:04:25]save OK [13:04:25]Clear old archive folders... [13:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=277 [13:04:25]tlvbuf is 00B3EF80 [13:04:25]SAM_PROTO_ClearQueue [13:04:25]wFMCommunicate request_size=4 [13:04:25]MH_SAM_APDU [13:04:25]CAPDU: 80 09 00 00 [13:04:25]Write to MH i2c: E2 08 00 5D 0A 80 09 00 00 00 00 00 00 D9 [13:04:25]Write i2c OK [13:04:25]MH_I2C_Read... [13:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:25]Read from MH i2c: E2 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [13:04:25]RAPDU: 90 00 [13:04:25]wFMCommunicate OK [13:04:25]SAM_PROTO_ClearQueue done [13:04:25]KKMCreateOFDPacket [13:04:25]OFDProtocolAddRootSTLVToBuf [13:04:25]FM_MakeSignedData [13:04:25]FM_MakeSignedData [13:04:25]SAM_PROTO_SignData [13:04:25]wFMCommunicate request_size=4 [13:04:25]MH_SAM_APDU [13:04:25]CAPDU: 80 0D 01 02 [13:04:25]Write to MH i2c: E2 08 00 5E 0A 80 0D 01 02 00 00 00 00 E1 [13:04:25]Write i2c OK [13:04:25]MH_I2C_Read... [13:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:25]Read from MH i2c: E2 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [13:04:25]RAPDU: 90 00 [13:04:25]wFMCommunicate OK [13:04:25]wFMCommunicate request_size=255 [13:04:25]MH_SAM_APDU [13:04:25]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 [13:04:25]Write to MH i2c: E2 02 01 5F 0A 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 00 00 A3 [13:04:25]Write i2c OK [13:04:25]MH_I2C_Read... [13:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:25]Read from MH i2c: E2 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 [13:04:25]MH_I2C_Read... [13:04:25]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [13:04:25]RAPDU: 90 00 [13:04:25]wFMCommunicate OK [13:04:25]wFMCommunicate request_size=36 [13:04:25]MH_SAM_APDU [13:04:25]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 06 01 00 35 04 06 00 63 E6 CC 91 89 CC [13:04:25]Write to MH i2c: E2 27 00 60 0A 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 06 01 00 35 04 06 00 63 E6 CC 91 89 CC 00 00 C6 [13:04:25]Write i2c OK [13:04:25]MH_I2C_Read... [13:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 03 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [13:04:26]RAPDU: 90 00 [13:04:26]wFMCommunicate OK [13:04:26]wFMCommunicate request_size=4 [13:04:26]MH_SAM_APDU [13:04:26]CAPDU: 80 0D 03 02 [13:04:26]Write to MH i2c: E2 08 00 61 0A 80 0D 03 02 00 00 00 00 E6 [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]OFD Sender: No OFD packet to send [13:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 0B 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 0B 00 61 0A 00 68 AC E2 7D E5 19 26 5B 90 00 D9 [13:04:26]RAPDU: 68 AC E2 7D E5 19 26 5B 90 00 [13:04:26]wFMCommunicate OK [13:04:26]SAM_PROTO_SignData done [13:04:26]FM_MakeSignedData done [13:04:26]CreateOFDProtocolMessage [13:04:26]wFMCommunicate request_size=4 [13:04:26]MH_SAM_APDU [13:04:26]CAPDU: 80 11 00 00 [13:04:26]Write to MH i2c: E2 08 00 62 0A 80 11 00 00 00 00 00 00 E6 [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:26]Read from MH i2c: E2 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 17 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: E2 17 00 62 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [13:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:04:26]wFMCommunicate OK [13:04:26]CreateOFDProtocolMessage done [13:04:26]OFDSenderStorePacket 67256 [13:04:26]StoreOFDPacket docnum=67256 [13:04: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 29 01 00 00 D4 4B 21 01 44 06 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 E6 CC 91 89 CC 68 AC E2 7D E5 19 26 5B [13:04:26]CheckFolder [13:04:26]dirname=/storage/ofd_packets [13:04:26]CheckFolder done [13:04:26]ProducePacketName [13:04:26]name=ofd_packets/00067256 [13:04:26]NVStorageSaveData ofd_packets/00067256 [13:04:26]File name is /storage/ofd_packets/00067256 [13:04:26]Write 327 bytes [13:04:26]NVStorageSaveData done [13:04:26]OFDSenderStorePacket done [13:04:26]KKMCreateOFDPacket done [13:04:26]NVStorageSaveData kkm_last_timestamp [13:04:26]File name is /storage/kkm_last_timestamp [13:04:26]Write 4 bytes [13:04:26]NVStorageSaveData done [13:04:26]ExternCall_PrintAddStr [13:04:26]wPrintStart [13:04:26]Write to MH i2c: 01 00 00 63 0A 6D [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 07 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 07 00 63 0A 00 00 00 00 00 FF 0F 82 [13:04:26]RasterBufferAndPrint [13:04:26]line Счет N : (3)12071 [13:04:26]line ИНН: 02508201610067 [13:04:26]line Контрольно-Кассовый Чек [13:04:26]line ПРОДАЖА [13:04:26]line Товар: 4700000310173 [13:04:26]line Вода Адыгене 0,5л б/г [13:04:26]line 1.000 * 30.00 [13:04:26]line = 30.00 [13:04:26]line НДС 12% НСП 1% [13:04:26]line > о реализуемом товаре [13:04:26]line ИТОГО: 30.00 [13:04:26]line НСП 1% : 0.26 [13:04:26]line НДС 12% : 3.19 [13:04:26]line Наличными: 30.00 [13:04:26]line Безнал.: 0.00 [13:04:26]line Место: АЗС № 91 "Партнер Нефть" [13:04:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:04:26]line СНО: Общий режим [13:04:26]line Чек 74 15.05.2024 13:04 [13:04:26]line Смена: 356 ФФД: 1.0 [13:04:26]line ЗНМ: 0300000119 [13:04:26]line РНМ: 0000000000091845 [13:04:26]line Версия ККМ: 001 [13:04:26]line ФМ: 0000000000871829 [13:04:26]line ФД: 67256 [13:04:26]line ФПД: 109842925717964 [13:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130425&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67256&fm=109842925717964&tin=02508201610067®Number=0000000000091845&sum=3000 [13:04:26]line 0 [13:04:26]OFD Sender: Processing packet 67256 [packets to send 35, broken 34] [13:04:26]ProducePacketName [13:04:26]name=ofd_packets/00067256 [13:04:26]OFD Sender: To server: pG, [13:04:26]CommunicateWithHost lk.salyk.kg:30040 [13:04:26]ConnectInit lk.salyk.kg [13:04:26]written 0, free lines is 4095 [13:04:26]Connected sock=7 [13:04: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 29 01 00 00 D4 4B 21 01 44 06 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 D9 B2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 E6 CC 91 89 CC 68 AC E2 7D E5 19 26 5B [13:04: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 1F F5 47 00 11 83 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 06 01 00 F4 03 04 00 B6 5A 44 66 B6 04 01 00 00 7C 34 5A BE 2C 28 AB 4B [13:04:26]CommunicateWithHost err = 0 [13:04:26]CheckOFDResponse [13:04:26]1017 (14) - 77093643461234 [13:04:26]1041 (16) - 0000000000871829 [13:04:26]1040 (4) - 67256 [13:04:26]1012 (4) - 15.05.2024 06:48 [13:04:26]1206 (1) - 0 [13:04:26]OFD Sender: Remove packet 67256 [13:04:26]ProducePacketName [13:04:26]name=ofd_packets/00067256 [13:04:26]NVStorageDeleteData [13:04:26]Write to MH i2c: 01 00 00 8A 0A 94 [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 07 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 E8 0C 8F [13:04:26]RasterBufferAndPrint [13:04:26]line [13:04:26]line [13:04:26]line [13:04:26]line [13:04:26]line [13:04:26]written 0, free lines is 3310 [13:04:26]MH_Cut [13:04:26]Write to MH i2c: D1 01 00 91 0A 01 6D [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: D1 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: D1 01 00 [13:04:26]MH_I2C_Read... [13:04:26]Read from MH i2c: D1 01 00 91 0A 00 6C [13:04:26]Write to MH i2c: 01 00 00 92 0A 9C [13:04:26]Write i2c OK [13:04:26]MH_I2C_Read... [13:04:27]OFD Sender: No OFD packet to send [13:04:27]*** Cut start [13:04:27]*** Purtial cut [13:04:27]*** Stage 1: CUTSNS_PIN = 1 [13:04:28]Read from MH i2c: 01 [13:04:28]MH_I2C_Read... [13:04:28]*** Stop cut motor [13:04:28]*** Cut end [13:04:28]Read from MH i2c: 01 07 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [13:04:28]process_action close_receipt done [13:04:28]requested_data is exist [13:04:28]produce_requested_data [13:04:28]requested_item fm.sn is exist - process it [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 11 00 00 [13:04:28]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:28]Read from MH i2c: E2 17 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [13:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:04:28]wFMCommunicate OK [13:04:28]requested_item fd.num is exist - process it [13:04:28]SAM_PROTO_GetFieldsCounters [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 13 00 00 [13:04:28]Write to MH i2c: E2 08 00 94 0A 80 13 00 00 00 00 00 00 1A [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 62 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 62 00 94 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 B8 06 01 00 0E 04 04 00 64 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 42 [13:04:28]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 06 01 00 0E 04 04 00 64 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 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_GetFieldsCounters done [13:04:28]requested_item shift.num is exist - process it [13:04:28]requested_item shift.opened is exist - process it [13:04:28]req_shift_opened [13:04:28]FM_GetShiftState [13:04:28]SAM_PROTO_GetShiftState [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 13 01 00 [13:04:28]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0E 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [13:04:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_GetShiftState done [13:04:28]FM_GetShiftState done [13:04:28]req_shift_opened done [13:04:28]requested_item shift.open_date is exist - process it [13:04:28]req_shift_open_date [13:04:28]req_shift_open_date done [13:04:28]produce_requested_data done [13:04:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67256,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:04:28]process_action_free close_receipt [13:04:28]json_value_free [13:04:28]json_value_free done [13:04:28]process_json_proto returns [13:04:28]Send response to host [13:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67256,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:04:28]free response buf [13:04:28]execute_script done [13:04:28]execute_script returns [13:04:28]free content buf [13:04:28]Sock 9.Close socket [13:04:28]Sock 9.Thread stoped [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:54]accept exits with 10 [13:05:54]New connection [13:05:54]New thread 3067030884 created [13:05:54]Thread 3067174244 joined [13:05:54]Waiting for new connection... [13:05:54] Sock 10.Parse request [13:05:54]Sock 10.Check first char [13:05:54]Sock 10.First char is OK [13:05:54]request: POST /json_proto HTTP/1.0 [13:05:54]Method: POST [13:05:54]URL: /json_proto [13:05:54]Method is POST - this is cgi request [13:05:54]url: /json_proto [13:05:54]query_string will be loaded in cgi processing [13:05:54]execute_cgi json_proto POST (null) [13:05:54]execute_cgi path=json_proto method=POST [13:05:54]POST find Content-Length [13:05:54]Host: 172.17.41.195:8080 [13:05:54]Content-Length: 793 [13:05:54]Content-Type: application/json [13:05:54] [13:05:54]POST finish read [13:05:54]Found Content-Length = 793 [13:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507232", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:54]execute_script... [13: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)507232", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:54]POST & json_proto [13:05:54]process_json_proto [13:05:54]json parsed OK: [13:05:54]protocol is kg_v1.0 [13:05:54]action value=close_receipt [13:05:54]process_action close_receipt [13:05:54]cmd_close_receipt [13:05:54]MH_GetDate [13:05:54]Write to MH i2c: F0 00 00 96 0A 8F [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: F0 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: F0 09 00 [13:05:54]MH_I2C_Read... [13:05:54]Read from MH i2c: F0 09 00 96 0A 00 33 B3 44 66 FC 21 6F 64 18 [13:05:54]GetLastDocTimeStamp 1715778265 [13:05:54]current date 1715778355 [13:05:54]FM_GetShiftState [13:05:54]SAM_PROTO_GetShiftState [13:05:54]wFMCommunicate request_size=4 [13:05:54]MH_SAM_APDU [13:05:54]CAPDU: 80 13 01 00 [13:05:54]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [13:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [13:05:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:05:55]wFMCommunicate OK [13:05:55]SAM_PROTO_GetShiftState done [13:05:55]FM_GetShiftState done [13:05:55]opened in 1715732471 [13:05:55]opened+sec_in_day 1715818871 [13:05:55]quantity*price = 50036 [13:05:55]sum+1 = 50037 [13:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 75 15.05.2024 13:05 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67257 ФПД: 16560967005086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130555&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67257&fm=16560967005086&tin=02508201610067®Number=0000000000091845&sum=50036 [13:05:56]StoreToDocumentArchive [13:05:56]shift 356 fd 67257 [13:05:56]save to /storage/0356/doc_00067257 [13:05:56]save last doc name /storage/0356/doc_00067257 to /storage/kkm_last_doc_name [13:05:56]save OK [13:05:56]Clear old archive folders... [13:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:05:56]tlvbuf is 00B3F470 [13:05:56]SAM_PROTO_ClearQueue [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 09 00 00 [13:05:56]Write to MH i2c: E2 08 00 A4 0A 80 09 00 00 00 00 00 00 20 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_ClearQueue done [13:05:56]KKMCreateOFDPacket [13:05:56]OFDProtocolAddRootSTLVToBuf [13:05:56]FM_MakeSignedData [13:05:56]FM_MakeSignedData [13:05:56]SAM_PROTO_SignData [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 01 02 [13:05:56]Write to MH i2c: E2 08 00 A5 0A 80 0D 01 02 00 00 00 00 28 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=255 [13:05:56]MH_SAM_APDU [13:05: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [13:05:56]Write to MH i2c: E2 02 01 A6 0A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 1E [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=11 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 02 02 06 0F 0F E6 8E 33 9E [13:05:56]Write to MH i2c: E2 0E 00 A7 0A 80 0D 02 02 06 00 0F 0F E6 8E 33 9E 00 00 9A [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [13:05:56]RAPDU: 90 00 [13:05:56]wFMCommunicate OK [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 0D 03 02 [13:05:56]Write to MH i2c: E2 08 00 A8 0A 80 0D 03 02 00 00 00 00 2D [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 0B 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 0B 00 A8 0A 00 C3 CC 8B 23 C9 16 3F AD 90 00 36 [13:05:56]RAPDU: C3 CC 8B 23 C9 16 3F AD 90 00 [13:05:56]wFMCommunicate OK [13:05:56]SAM_PROTO_SignData done [13:05:56]FM_MakeSignedData done [13:05:56]CreateOFDProtocolMessage [13:05:56]wFMCommunicate request_size=4 [13:05:56]MH_SAM_APDU [13:05:56]CAPDU: 80 11 00 00 [13:05:56]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:56]Read from MH i2c: E2 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 17 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [13: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 [13:05:56]wFMCommunicate OK [13:05:56]CreateOFDProtocolMessage done [13:05:56]OFDSenderStorePacket 67257 [13:05:56]StoreOFDPacket docnum=67257 [13: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 10 01 00 00 73 23 08 01 35 9D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0F E6 8E 33 9E C3 CC 8B 23 C9 16 3F AD [13:05:56]CheckFolder [13:05:56]dirname=/storage/ofd_packets [13:05:56]CheckFolder done [13:05:56]ProducePacketName [13:05:56]name=ofd_packets/00067257 [13:05:56]NVStorageSaveData ofd_packets/00067257 [13:05:56]File name is /storage/ofd_packets/00067257 [13:05:56]Write 302 bytes [13:05:56]NVStorageSaveData done [13:05:56]OFDSenderStorePacket done [13:05:56]KKMCreateOFDPacket done [13:05:56]NVStorageSaveData kkm_last_timestamp [13:05:56]File name is /storage/kkm_last_timestamp [13:05:56]Write 4 bytes [13:05:56]NVStorageSaveData done [13:05:56]ExternCall_PrintAddStr [13:05:56]wPrintStart [13:05:56]Write to MH i2c: 01 00 00 AA 0A B4 [13:05:56]Write i2c OK [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 07 00 [13:05:56]MH_I2C_Read... [13:05:56]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [13:05:56]RasterBufferAndPrint [13:05:56]line Счет N : (1)507232 [13:05:56]line ИНН: 02508201610067 [13:05:56]line Контрольно-Кассовый Чек [13:05:56]line ПРОДАЖА [13:05:56]line ТРК (МРК, ГНК) : 32 [13:05:56]line Товар: 2710124130 [13:05:56]line Super-92-К-5 [13:05:56]line 7.380 * 67.80 [13:05:56]line = 500.36 [13:05:56]line НДС 12% НСП 1% [13:05:56]line > о реализуемом товаре [13:05:56]line ИТОГО: 500.36 [13:05:56]line НСП 1% : 4.43 [13:05:56]line НДС 12% : 53.14 [13:05:56]line Наличными: 0.00 [13:05:56]line Безнал.: 500.36 [13:05:56]line Место: АЗС № 91 "Партнер Нефть" [13:05:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:05:56]line СНО: Общий режим [13:05:56]line Чек 75 15.05.2024 13:05 [13:05:56]line Смена: 356 ФФД: 1.0 [13:05:56]line ЗНМ: 0300000119 [13:05:56]line РНМ: 0000000000091845 [13:05:56]line Версия ККМ: 001 [13:05:56]line Платежная система: O! деньги [13:05:56]line ФМ: 0000000000871829 [13:05:56]line ФД: 67257 [13:05:56]line ФПД: 16560967005086 [13:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130555&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67257&fm=16560967005086&tin=02508201610067®Number=0000000000091845&sum=50036 [13:05:56]written 0, free lines is 4095 [13:05:56]OFD Sender: Processing packet 67257 [packets to send 35, broken 34] [13:05:56]ProducePacketName [13:05:56]name=ofd_packets/00067257 [13:05:56]OFD Sender: To server: pG, [13:05:56]CommunicateWithHost lk.salyk.kg:30040 [13:05:56]ConnectInit lk.salyk.kg [13:05:56]Connected sock=9 [13: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 10 01 00 00 73 23 08 01 35 9D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 33 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0F E6 8E 33 9E C3 CC 8B 23 C9 16 3F AD [13:05: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 3A 2A 47 00 2F 0A 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 06 01 00 F4 03 04 00 10 5B 44 66 B6 04 01 00 00 99 5A FF 7F 60 B5 54 C7 [13:05:57]CommunicateWithHost err = 0 [13:05:57]CheckOFDResponse [13:05:57]1017 (14) - 77093643461234 [13:05:57]1041 (16) - 0000000000871829 [13:05:57]1040 (4) - 67257 [13:05:57]1012 (4) - 15.05.2024 06:49 [13:05:57]1206 (1) - 0 [13:05:57]OFD Sender: Remove packet 67257 [13:05:57]ProducePacketName [13:05:57]name=ofd_packets/00067257 [13:05:57]NVStorageDeleteData [13:05:57]Write to MH i2c: 01 00 00 D3 0A DD [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 EA 0C DA [13:05:57]RasterBufferAndPrint [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]line [13:05:57]written 0, free lines is 3312 [13:05:57]MH_Cut [13:05:57]Write to MH i2c: D1 01 00 DA 0A 01 B6 [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 01 00 [13:05:57]MH_I2C_Read... [13:05:57]Read from MH i2c: D1 01 00 DA 0A 00 B5 [13:05:57]Write to MH i2c: 01 00 00 DB 0A E5 [13:05:57]Write i2c OK [13:05:57]MH_I2C_Read... [13:05:57]OFD Sender: No OFD packet to send [13:05:57]*** Cut start [13:05:57]*** Purtial cut [13:05:57]*** CUTSNS_PIN = 0 [13:05:58]*** Stage 1: CUTSNS_PIN = 1 [13:05:59]Read from MH i2c: 01 [13:05:59]MH_I2C_Read... [13:05:59]*** Stop cut motor [13:05:59]*** Cut end [13:05:59]Read from MH i2c: 01 07 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: 01 07 00 DB 0A 00 00 00 00 00 FF 0F FA [13:05:59]process_action close_receipt done [13:05:59]requested_data is exist [13:05:59]produce_requested_data [13:05:59]requested_item fm.sn is exist - process it [13:05:59]wFMCommunicate request_size=4 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 11 00 00 [13:05:59]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B6 [13:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:06:00]wFMCommunicate OK [13:06:00]requested_item fd.num is exist - process it [13:06:00]SAM_PROTO_GetFieldsCounters [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 13 00 00 [13:06:00]Write to MH i2c: E2 08 00 DD 0A 80 13 00 00 00 00 00 00 63 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 62 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 62 00 DD 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 B9 06 01 00 0E 04 04 00 64 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 8F [13:06: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 B9 06 01 00 0E 04 04 00 64 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 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_GetFieldsCounters done [13:06:00]requested_item shift.num is exist - process it [13:06:00]requested_item shift.opened is exist - process it [13:06:00]req_shift_opened [13:06:00]FM_GetShiftState [13:06:00]SAM_PROTO_GetShiftState [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 13 01 00 [13:06:00]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0E 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 10 [13:06:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_GetShiftState done [13:06:00]FM_GetShiftState done [13:06:00]req_shift_opened done [13:06:00]requested_item shift.open_date is exist - process it [13:06:00]req_shift_open_date [13:06:00]req_shift_open_date done [13:06:00]produce_requested_data done [13:06:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67257,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:06:00]process_action_free close_receipt [13:06:00]json_value_free [13:06:00]json_value_free done [13:06:00]process_json_proto returns [13:06:00]Send response to host [13:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67257,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:06:00]free response buf [13:06:00]execute_script done [13:06:00]execute_script returns [13:06:00]free content buf [13:06:00]Sock 10.Close socket [13:06:00]Sock 10.Thread stoped [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:20]accept exits with 7 [13:06:20]New connection [13:06:20]New thread 3067174244 created [13:06:20]Thread 3067030884 joined [13:06:20]Waiting for new connection... [13:06:20] Sock 7.Parse request [13:06:20]Sock 7.Check first char [13:06:20]Sock 7.First char is OK [13:06:20]request: POST /json_proto HTTP/1.0 [13:06:20]Method: POST [13:06:20]URL: /json_proto [13:06:20]Method is POST - this is cgi request [13:06:20]url: /json_proto [13:06:20]query_string will be loaded in cgi processing [13:06:20]execute_cgi json_proto POST (null) [13:06:20]execute_cgi path=json_proto method=POST [13:06:20]POST find Content-Length [13:06:20]Host: 172.17.41.195:8080 [13:06:20]Content-Length: 800 [13:06:20]Content-Type: application/json [13:06:20] [13:06:20]POST finish read [13:06:20]Found Content-Length = 800 [13:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507231", "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" ] } } [13:06:20]execute_script... [13:06:20]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)507231", "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" ] } } [13:06:20]POST & json_proto [13:06:20]process_json_proto [13:06:20]json parsed OK: [13:06:20]protocol is kg_v1.0 [13:06:20]action value=close_receipt [13:06:20]process_action close_receipt [13:06:20]cmd_close_receipt [13:06:20]MH_GetDate [13:06:20]Write to MH i2c: F0 00 00 DF 0A D8 [13:06:20]Write i2c OK [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 09 00 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 09 00 DF 0A 00 4C B3 44 66 FC 21 6F 64 7A [13:06:20]GetLastDocTimeStamp 1715778355 [13:06:20]current date 1715778380 [13:06:20]FM_GetShiftState [13:06:20]SAM_PROTO_GetShiftState [13:06:20]wFMCommunicate request_size=4 [13:06:20]MH_SAM_APDU [13:06:20]CAPDU: 80 13 01 00 [13:06:20]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [13:06:20]Write i2c OK [13:06:20]MH_I2C_Read... [13:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:20]Read from MH i2c: E2 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: E2 0E 00 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [13:06:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:06:20]wFMCommunicate OK [13:06:20]SAM_PROTO_GetShiftState done [13:06:20]FM_GetShiftState done [13:06:20]opened in 1715732471 [13:06:20]opened+sec_in_day 1715818871 [13:06:20]quantity*price = 200046 [13:06:20]sum+1 = 200048 [13:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 76 15.05.2024 13:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67258 ФПД: 181522742821958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67258&fm=181522742821958&tin=02508201610067®Number=0000000000091845&sum=200047 [13:06:21]StoreToDocumentArchive [13:06:21]shift 356 fd 67258 [13:06:21]save to /storage/0356/doc_00067258 [13:06:21]save last doc name /storage/0356/doc_00067258 to /storage/kkm_last_doc_name [13:06:21]save OK [13:06:21]Clear old archive folders... [13:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:06:21]tlvbuf is 00B07BE0 [13:06:21]SAM_PROTO_ClearQueue [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 09 00 00 [13:06:21]Write to MH i2c: E2 08 00 ED 0A 80 09 00 00 00 00 00 00 69 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [13:06:21]RAPDU: 90 00 [13:06:21]wFMCommunicate OK [13:06:21]SAM_PROTO_ClearQueue done [13:06:21]KKMCreateOFDPacket [13:06:21]OFDProtocolAddRootSTLVToBuf [13:06:21]FM_MakeSignedData [13:06:21]FM_MakeSignedData [13:06:21]SAM_PROTO_SignData [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 0D 01 02 [13:06:21]Write to MH i2c: E2 08 00 EE 0A 80 0D 01 02 00 00 00 00 71 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [13:06:21]RAPDU: 90 00 [13:06:21]wFMCommunicate OK [13:06:21]wFMCommunicate request_size=255 [13:06:21]MH_SAM_APDU [13:06:21]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 4C 00 00 00 F4 03 04 00 4D B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A5 18 0E 9A [13:06:21]Write to MH i2c: E2 02 01 EF 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 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 4C 00 00 00 F4 03 04 00 4D B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A5 18 0E 9A 00 00 5E [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [13:06:21]RAPDU: 90 00 [13:06:21]wFMCommunicate OK [13:06:21]wFMCommunicate request_size=7 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 0D 02 02 02 C4 46 [13:06:21]Write to MH i2c: E2 0A 00 F0 0A 80 0D 02 02 02 00 C4 46 00 00 82 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [13:06:21]RAPDU: 90 00 [13:06:21]wFMCommunicate OK [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 0D 03 02 [13:06:21]Write to MH i2c: E2 08 00 F1 0A 80 0D 03 02 00 00 00 00 76 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 0B 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 0B 00 F1 0A 00 B6 23 75 41 AE EE 56 D2 90 00 CA [13:06:21]RAPDU: B6 23 75 41 AE EE 56 D2 90 00 [13:06:21]wFMCommunicate OK [13:06:21]SAM_PROTO_SignData done [13:06:21]FM_MakeSignedData done [13:06:21]CreateOFDProtocolMessage [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 11 00 00 [13:06:21]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 17 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [13: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 [13:06:21]wFMCommunicate OK [13:06:21]CreateOFDProtocolMessage done [13:06:21]OFDSenderStorePacket 67258 [13:06:21]StoreOFDPacket docnum=67258 [13:06:21]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 E7 D5 04 01 39 76 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 4C 00 00 00 F4 03 04 00 4D B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A5 18 0E 9A C4 46 B6 23 75 41 AE EE 56 D2 [13:06:21]CheckFolder [13:06:21]dirname=/storage/ofd_packets [13:06:21]CheckFolder done [13:06:21]ProducePacketName [13:06:21]name=ofd_packets/00067258 [13:06:21]NVStorageSaveData ofd_packets/00067258 [13:06:21]File name is /storage/ofd_packets/00067258 [13:06:21]Write 298 bytes [13:06:21]NVStorageSaveData done [13:06:21]OFDSenderStorePacket done [13:06:21]KKMCreateOFDPacket done [13:06:21]NVStorageSaveData kkm_last_timestamp [13:06:21]File name is /storage/kkm_last_timestamp [13:06:21]Write 4 bytes [13:06:21]NVStorageSaveData done [13:06:21]ExternCall_PrintAddStr [13:06:21]wPrintStart [13:06:21]Write to MH i2c: 01 00 00 F3 0A FD [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: 01 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: 01 07 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 FF 0F 12 [13:06:21]RasterBufferAndPrint [13:06:21]line Счет N : (1)507231 [13:06:21]line ИНН: 02508201610067 [13:06:21]line Контрольно-Кассовый Чек [13:06:21]line ПРОДАЖА [13:06:21]line ТРК (МРК, ГНК) : 21 [13:06:21]line Товар: 2710194210 [13:06:21]line ДТ-К-5 [13:06:21]line 26.780 * 74.70 [13:06:21]line = 2000.47 [13:06:21]line НДС 12% НСП 1% [13:06:21]line > о реализуемом товаре [13:06:21]line ИТОГО: 2000.47 [13:06:21]line НСП 1% : 17.70 [13:06:21]line НДС 12% : 212.44 [13:06:21]line Наличными: 0.00 [13:06:21]line Безнал.: 2000.47 [13:06:21]line Место: АЗС № 91 "Партнер Нефть" [13:06:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:06:21]line СНО: Общий режим [13:06:21]line Чек 76 15.05.2024 13:06 [13:06:21]line Смена: 356 ФФД: 1.0 [13:06:21]line ЗНМ: 0300000119 [13:06:21]line РНМ: 0000000000091845 [13:06:21]line Версия ККМ: 001 [13:06:21]line Платежная система: O! деньги [13:06:21]line ФМ: 0000000000871829 [13:06:21]line ФД: 67258 [13:06:21]line ФПД: 181522742821958 [13:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67258&fm=181522742821958&tin=02508201610067®Number=0000000000091845&sum=200047 [13:06:22]OFD Sender: Processing packet 67258 [packets to send 35, broken 34] [13:06:22]ProducePacketName [13:06:22]name=ofd_packets/00067258 [13:06:22]OFD Sender: To server: pG, [13:06:22]CommunicateWithHost lk.salyk.kg:30040 [13:06:22]ConnectInit lk.salyk.kg [13:06:22]written 0, free lines is 4095 [13:06:22]Connected sock=9 [13:06:22]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 E7 D5 04 01 39 76 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 4C 00 00 00 F4 03 04 00 4D B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A5 18 0E 9A C4 46 B6 23 75 41 AE EE 56 D2 [13:06:22]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 7F 90 47 00 0D C2 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 06 01 00 F4 03 04 00 2A 5B 44 66 B6 04 01 00 00 D4 AA 59 3C 98 39 78 8B [13:06:22]CommunicateWithHost err = 0 [13:06:22]CheckOFDResponse [13:06:22]1017 (14) - 77093643461234 [13:06:22]1041 (16) - 0000000000871829 [13:06:22]1040 (4) - 67258 [13:06:22]1012 (4) - 15.05.2024 06:50 [13:06:22]1206 (1) - 0 [13:06:22]OFD Sender: Remove packet 67258 [13:06:22]ProducePacketName [13:06:22]name=ofd_packets/00067258 [13:06:22]NVStorageDeleteData [13:06:22]Write to MH i2c: 01 00 00 1C 0B 27 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 E7 0C 21 [13:06:22]RasterBufferAndPrint [13:06:22]line [13:06:22]line [13:06:22]line [13:06:22]line [13:06:22]line [13:06:22]written 0, free lines is 3310 [13:06:22]MH_Cut [13:06:22]Write to MH i2c: D1 01 00 23 0B 01 00 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: D1 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: D1 01 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: D1 01 00 23 0B 00 FF [13:06:22]Write to MH i2c: 01 00 00 24 0B 2F [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]OFD Sender: No OFD packet to send [13:06:23]*** Cut start [13:06:23]*** Purtial cut [13:06:23]*** Stage 1: CUTSNS_PIN = 1 [13:06:23]Read from MH i2c: 01 [13:06:23]MH_I2C_Read... [13:06:23]*** Stop cut motor [13:06:23]*** Cut end [13:06:23]Read from MH i2c: 01 07 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [13:06:23]process_action close_receipt done [13:06:23]requested_data is exist [13:06:23]produce_requested_data [13:06:23]requested_item fm.sn is exist - process it [13:06:23]wFMCommunicate request_size=4 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 11 00 00 [13:06:23]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:23]Read from MH i2c: E2 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 17 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [13:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:06:23]wFMCommunicate OK [13:06:23]requested_item fd.num is exist - process it [13:06:23]SAM_PROTO_GetFieldsCounters [13:06:23]wFMCommunicate request_size=4 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 13 00 00 [13:06:23]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:23]Read from MH i2c: E2 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 62 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 62 00 26 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 BA 06 01 00 0E 04 04 00 64 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 DD [13:06: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 BA 06 01 00 0E 04 04 00 64 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 [13:06:23]wFMCommunicate OK [13:06:23]SAM_PROTO_GetFieldsCounters done [13:06:23]requested_item shift.num is exist - process it [13:06:23]requested_item shift.opened is exist - process it [13:06:23]req_shift_opened [13:06:23]FM_GetShiftState [13:06:23]SAM_PROTO_GetShiftState [13:06:23]wFMCommunicate request_size=4 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 13 01 00 [13:06:23]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5A [13:06:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:06:24]wFMCommunicate OK [13:06:24]SAM_PROTO_GetShiftState done [13:06:24]FM_GetShiftState done [13:06:24]req_shift_opened done [13:06:24]requested_item shift.open_date is exist - process it [13:06:24]req_shift_open_date [13:06:24]req_shift_open_date done [13:06:24]produce_requested_data done [13:06:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67258,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:06:24]process_action_free close_receipt [13:06:24]json_value_free [13:06:24]json_value_free done [13:06:24]process_json_proto returns [13:06:24]Send response to host [13:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67258,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:06:24]free response buf [13:06:24]execute_script done [13:06:24]execute_script returns [13:06:24]free content buf [13:06:24]Sock 7.Close socket [13:06:24]Sock 7.Thread stoped [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:15]accept exits with 10 [13:07:15]New connection [13:07:15]New thread 3067030884 created [13:07:15]Thread 3067174244 joined [13:07:15]Waiting for new connection... [13:07:15] Sock 10.Parse request [13:07:15]Sock 10.Check first char [13:07:15]Sock 10.First char is OK [13:07:15]request: POST /json_proto HTTP/1.0 [13:07:15]Method: POST [13:07:15]URL: /json_proto [13:07:15]Method is POST - this is cgi request [13:07:15]url: /json_proto [13:07:15]query_string will be loaded in cgi processing [13:07:15]execute_cgi json_proto POST (null) [13:07:15]execute_cgi path=json_proto method=POST [13:07:15]POST find Content-Length [13:07:15]Host: 172.17.41.195:8080 [13:07:15]Content-Length: 803 [13:07:15]Content-Type: application/json [13:07:15] [13:07:15]POST finish read [13:07:15]Found Content-Length = 803 [13:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507233", "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" : 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" ] } } [13:07:15]execute_script... [13:07: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)507233", "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" : 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" ] } } [13:07:15]POST & json_proto [13:07:15]process_json_proto [13:07:15]json parsed OK: [13:07:15]protocol is kg_v1.0 [13:07:15]action value=close_receipt [13:07:15]process_action close_receipt [13:07:15]cmd_close_receipt [13:07:15]MH_GetDate [13:07:15]Write to MH i2c: F0 00 00 28 0B 22 [13:07:15]Write i2c OK [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: F0 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: F0 09 00 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: F0 09 00 28 0B 00 83 B3 44 66 FC 21 6F 64 FB [13:07:15]GetLastDocTimeStamp 1715778381 [13:07:15]current date 1715778435 [13:07:15]FM_GetShiftState [13:07:15]SAM_PROTO_GetShiftState [13:07:15]wFMCommunicate request_size=4 [13:07:15]MH_SAM_APDU [13:07:15]CAPDU: 80 13 01 00 [13:07:15]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [13:07:15]Write i2c OK [13:07:15]MH_I2C_Read... [13:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:15]Read from MH i2c: E2 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: E2 0E 00 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5C [13:07:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:07:15]wFMCommunicate OK [13:07:15]SAM_PROTO_GetShiftState done [13:07:15]FM_GetShiftState done [13:07:15]opened in 1715732471 [13:07:15]opened+sec_in_day 1715818871 [13:07:15]quantity*price = 100066 [13:07:15]sum+1 = 100067 [13:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 77 15.05.2024 13:07 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67259 ФПД: 260682063249123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67259&fm=260682063249123&tin=02508201610067®Number=0000000000091845&sum=100066 [13:07:16]StoreToDocumentArchive [13:07:16]shift 356 fd 67259 [13:07:16]save to /storage/0356/doc_00067259 [13:07:16]save last doc name /storage/0356/doc_00067259 to /storage/kkm_last_doc_name [13:07:16]save OK [13:07:16]Clear old archive folders... [13:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:16]tlvbuf is 00B02140 [13:07:16]SAM_PROTO_ClearQueue [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 09 00 00 [13:07:16]Write to MH i2c: E2 08 00 36 0B 80 09 00 00 00 00 00 00 B3 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [13:07:16]RAPDU: 90 00 [13:07:16]wFMCommunicate OK [13:07:16]SAM_PROTO_ClearQueue done [13:07:16]KKMCreateOFDPacket [13:07:16]OFDProtocolAddRootSTLVToBuf [13:07:16]FM_MakeSignedData [13:07:16]FM_MakeSignedData [13:07:16]SAM_PROTO_SignData [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 0D 01 02 [13:07:16]Write to MH i2c: E2 08 00 37 0B 80 0D 01 02 00 00 00 00 BB [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [13:07:16]RAPDU: 90 00 [13:07:16]wFMCommunicate OK [13:07:16]wFMCommunicate request_size=255 [13:07:16]MH_SAM_APDU [13:07:16]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 4D 00 00 00 F4 03 04 00 84 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 ED [13:07:16]Write to MH i2c: E2 02 01 38 0B 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 4D 00 00 00 F4 03 04 00 84 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 ED 00 00 5A [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [13:07:16]RAPDU: 90 00 [13:07:16]wFMCommunicate OK [13:07:16]wFMCommunicate request_size=10 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 0D 02 02 05 16 C5 C7 7E E3 [13:07:16]Write to MH i2c: E2 0D 00 39 0B 80 0D 02 02 05 00 16 C5 C7 7E E3 00 00 CB [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [13:07:16]RAPDU: 90 00 [13:07:16]wFMCommunicate OK [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 0D 03 02 [13:07:16]Write to MH i2c: E2 08 00 3A 0B 80 0D 03 02 00 00 00 00 C0 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0B 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0B 00 3A 0B 00 10 0A 10 CE B6 0D 75 E5 90 00 D6 [13:07:16]RAPDU: 10 0A 10 CE B6 0D 75 E5 90 00 [13:07:16]wFMCommunicate OK [13:07:16]SAM_PROTO_SignData done [13:07:16]FM_MakeSignedData done [13:07:16]CreateOFDProtocolMessage [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 11 00 00 [13:07:16]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 17 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [13:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:07:16]wFMCommunicate OK [13:07:16]CreateOFDProtocolMessage done [13:07:16]OFDSenderStorePacket 67259 [13:07:16]StoreOFDPacket docnum=67259 [13:07: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 0F 01 00 00 F4 DE 07 01 11 A7 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 4D 00 00 00 F4 03 04 00 84 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 ED 16 C5 C7 7E E3 10 0A 10 CE B6 0D 75 E5 [13:07:16]CheckFolder [13:07:16]dirname=/storage/ofd_packets [13:07:16]CheckFolder done [13:07:16]ProducePacketName [13:07:16]name=ofd_packets/00067259 [13:07:16]NVStorageSaveData ofd_packets/00067259 [13:07:16]File name is /storage/ofd_packets/00067259 [13:07:16]Write 301 bytes [13:07:16]NVStorageSaveData done [13:07:16]OFDSenderStorePacket done [13:07:16]KKMCreateOFDPacket done [13:07:16]NVStorageSaveData kkm_last_timestamp [13:07:16]File name is /storage/kkm_last_timestamp [13:07:16]Write 4 bytes [13:07:16]NVStorageSaveData done [13:07:16]ExternCall_PrintAddStr [13:07:16]wPrintStart [13:07:16]Write to MH i2c: 01 00 00 3C 0B 47 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: 01 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: 01 07 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [13:07:16]RasterBufferAndPrint [13:07:16]line Счет N : (1)507233 [13:07:16]line ИНН: 02508201610067 [13:07:16]line Контрольно-Кассовый Чек [13:07:16]line ПРОДАЖА [13:07:16]line ТРК (МРК, ГНК) : 13 [13:07:16]line Товар: 2710124130 [13:07:16]line Аи-92-К-5 [13:07:16]line 14.980 * 66.80 [13:07:16]line = 1000.66 [13:07:16]line НДС 12% НСП 1% [13:07:16]line > о реализуемом товаре [13:07:16]line ИТОГО: 1000.66 [13:07:16]line НСП 1% : 8.85 [13:07:16]line НДС 12% : 106.26 [13:07:16]line Наличными: 0.00 [13:07:16]line Безнал.: 1000.66 [13:07:16]line Место: АЗС № 91 "Партнер Нефть" [13:07:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:07:16]line СНО: Общий режим [13:07:16]line Чек 77 15.05.2024 13:07 [13:07:16]line Смена: 356 ФФД: 1.0 [13:07:16]line ЗНМ: 0300000119 [13:07:16]line РНМ: 0000000000091845 [13:07:16]line Версия ККМ: 001 [13:07:16]line Платежная система: O! деньги [13:07:16]line ФМ: 0000000000871829 [13:07:16]line ФД: 67259 [13:07:16]line ФПД: 260682063249123 [13:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67259&fm=260682063249123&tin=02508201610067®Number=0000000000091845&sum=100066 [13:07:17]OFD Sender: Processing packet 67259 [packets to send 35, broken 34] [13:07:17]ProducePacketName [13:07:17]name=ofd_packets/00067259 [13:07:17]OFD Sender: To server: pG, [13:07:17]CommunicateWithHost lk.salyk.kg:30040 [13:07:17]ConnectInit lk.salyk.kg [13:07:17]written 0, free lines is 4095 [13:07:17]Connected sock=9 [13:07: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 0F 01 00 00 F4 DE 07 01 11 A7 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 4D 00 00 00 F4 03 04 00 84 B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 ED 16 C5 C7 7E E3 10 0A 10 CE B6 0D 75 E5 [13:07: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 15 60 47 00 D0 A7 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 06 01 00 F4 03 04 00 61 5B 44 66 B6 04 01 00 00 46 50 BE 8B 83 EE F0 8B [13:07:17]CommunicateWithHost err = 0 [13:07:17]CheckOFDResponse [13:07:17]1017 (14) - 77093643461234 [13:07:17]1041 (16) - 0000000000871829 [13:07:17]1040 (4) - 67259 [13:07:17]1012 (4) - 15.05.2024 06:51 [13:07:17]1206 (1) - 0 [13:07:17]OFD Sender: Remove packet 67259 [13:07:17]ProducePacketName [13:07:17]name=ofd_packets/00067259 [13:07:17]NVStorageDeleteData [13:07:17]Write to MH i2c: 01 00 00 65 0B 70 [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 07 00 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 EE 0C 71 [13:07:17]RasterBufferAndPrint [13:07:17]line [13:07:17]line [13:07:17]line [13:07:17]line [13:07:17]line [13:07:17]written 0, free lines is 3319 [13:07:17]MH_Cut [13:07:17]Write to MH i2c: D1 01 00 6C 0B 01 49 [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: D1 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: D1 01 00 [13:07:17]MH_I2C_Read... [13:07:17]Read from MH i2c: D1 01 00 6C 0B 00 48 [13:07:17]Write to MH i2c: 01 00 00 6D 0B 78 [13:07:17]Write i2c OK [13:07:17]MH_I2C_Read... [13:07:18]OFD Sender: No OFD packet to send [13:07:18]*** Cut start [13:07:18]*** Purtial cut [13:07:18]*** CUTSNS_PIN = 0 [13:07:18]*** Stage 1: CUTSNS_PIN = 1 [13:07:20]Read from MH i2c: 01 [13:07:20]MH_I2C_Read... [13:07:20]*** Stop cut motor [13:07:20]*** Cut end [13:07:20]Read from MH i2c: 01 07 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 FF 0F 8D [13:07:20]process_action close_receipt done [13:07:20]requested_data is exist [13:07:20]produce_requested_data [13:07:20]requested_item fm.sn is exist - process it [13:07:20]wFMCommunicate request_size=4 [13:07:20]MH_SAM_APDU [13:07:20]CAPDU: 80 11 00 00 [13:07:20]Write to MH i2c: E2 08 00 6E 0B 80 11 00 00 00 00 00 00 F3 [13:07:20]Write i2c OK [13:07:20]MH_I2C_Read... [13:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:20]Read from MH i2c: E2 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 17 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 17 00 6E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [13: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 [13:07:20]wFMCommunicate OK [13:07:20]requested_item fd.num is exist - process it [13:07:20]SAM_PROTO_GetFieldsCounters [13:07:20]wFMCommunicate request_size=4 [13:07:20]MH_SAM_APDU [13:07:20]CAPDU: 80 13 00 00 [13:07:20]Write to MH i2c: E2 08 00 6F 0B 80 13 00 00 00 00 00 00 F6 [13:07:20]Write i2c OK [13:07:20]MH_I2C_Read... [13:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:20]Read from MH i2c: E2 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 62 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 62 00 6F 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 BB 06 01 00 0E 04 04 00 64 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 2A [13: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 BB 06 01 00 0E 04 04 00 64 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 [13:07:20]wFMCommunicate OK [13:07:20]SAM_PROTO_GetFieldsCounters done [13:07:20]requested_item shift.num is exist - process it [13:07:20]requested_item shift.opened is exist - process it [13:07:20]req_shift_opened [13:07:20]FM_GetShiftState [13:07:20]SAM_PROTO_GetShiftState [13:07:20]wFMCommunicate request_size=4 [13:07:20]MH_SAM_APDU [13:07:20]CAPDU: 80 13 01 00 [13:07:20]Write to MH i2c: E2 08 00 70 0B 80 13 01 00 00 00 00 00 F8 [13:07:20]Write i2c OK [13:07:20]MH_I2C_Read... [13:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:20]Read from MH i2c: E2 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 0E 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 0E 00 70 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A3 [13:07:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:07:20]wFMCommunicate OK [13:07:20]SAM_PROTO_GetShiftState done [13:07:20]FM_GetShiftState done [13:07:20]req_shift_opened done [13:07:20]requested_item shift.open_date is exist - process it [13:07:20]req_shift_open_date [13:07:20]req_shift_open_date done [13:07:20]produce_requested_data done [13:07:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67259,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:07:20]process_action_free close_receipt [13:07:20]json_value_free [13:07:20]json_value_free done [13:07:20]process_json_proto returns [13:07:20]Send response to host [13:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67259,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:07:20]free response buf [13:07:20]execute_script done [13:07:20]execute_script returns [13:07:20]free content buf [13:07:20]Sock 10.Close socket [13:07:20]Sock 10.Thread stoped [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:02]accept exits with 7 [13:09:02]New connection [13:09:02]New thread 3067174244 created [13:09:02]Thread 3067030884 joined [13:09:02]Waiting for new connection... [13:09:02] Sock 7.Parse request [13:09:02]Sock 7.Check first char [13:09:02]Sock 7.First char is OK [13:09:02]request: POST /json_proto HTTP/1.0 [13:09:02]Method: POST [13:09:02]URL: /json_proto [13:09:02]Method is POST - this is cgi request [13:09:02]url: /json_proto [13:09:02]query_string will be loaded in cgi processing [13:09:02]execute_cgi json_proto POST (null) [13:09:02]execute_cgi path=json_proto method=POST [13:09:02]POST find Content-Length [13:09:02]Host: 172.17.41.195:8080 [13:09:02]Content-Length: 793 [13:09:02]Content-Type: application/json [13:09:02] [13:09:02]POST finish read [13:09:02]Found Content-Length = 793 [13:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507234", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:02]execute_script... [13:09: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)507234", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:02]POST & json_proto [13:09:02]process_json_proto [13:09:02]json parsed OK: [13:09:02]protocol is kg_v1.0 [13:09:02]action value=close_receipt [13:09:02]process_action close_receipt [13:09:02]cmd_close_receipt [13:09:02]MH_GetDate [13:09:02]Write to MH i2c: F0 00 00 71 0B 6B [13:09:02]Write i2c OK [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: F0 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: F0 09 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: F0 09 00 71 0B 00 EF B3 44 66 FC 21 6F 64 B0 [13:09:02]GetLastDocTimeStamp 1715778436 [13:09:02]current date 1715778543 [13:09:02]FM_GetShiftState [13:09:02]SAM_PROTO_GetShiftState [13:09:02]wFMCommunicate request_size=4 [13:09:02]MH_SAM_APDU [13:09:02]CAPDU: 80 13 01 00 [13:09:02]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [13:09:02]Write i2c OK [13:09:02]MH_I2C_Read... [13:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:02]Read from MH i2c: E2 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 0E 00 [13:09:02]MH_I2C_Read... [13:09:02]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A5 [13:09:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:09:02]wFMCommunicate OK [13:09:02]SAM_PROTO_GetShiftState done [13:09:02]FM_GetShiftState done [13:09:02]opened in 1715732471 [13:09:02]opened+sec_in_day 1715818871 [13:09:02]quantity*price = 50036 [13:09:02]sum+1 = 50037 [13:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 78 15.05.2024 13:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67260 ФПД: 228075006847886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130903&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67260&fm=228075006847886&tin=02508201610067®Number=0000000000091845&sum=50036 [13:09:03]StoreToDocumentArchive [13:09:03]shift 356 fd 67260 [13:09:03]save to /storage/0356/doc_00067260 [13:09:03]save last doc name /storage/0356/doc_00067260 to /storage/kkm_last_doc_name [13:09:03]save OK [13:09:03]Clear old archive folders... [13:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:09:03]tlvbuf is 00B21400 [13:09:03]SAM_PROTO_ClearQueue [13:09:03]wFMCommunicate request_size=4 [13:09:03]MH_SAM_APDU [13:09:03]CAPDU: 80 09 00 00 [13:09:03]Write to MH i2c: E2 08 00 7F 0B 80 09 00 00 00 00 00 00 FC [13:09:03]Write i2c OK [13:09:03]MH_I2C_Read... [13:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:03]Read from MH i2c: E2 [13:09:03]MH_I2C_Read... [13:09:03]Read from MH i2c: E2 03 00 [13:09:03]MH_I2C_Read... [13:09:03]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [13:09:03]RAPDU: 90 00 [13:09:03]wFMCommunicate OK [13:09:03]SAM_PROTO_ClearQueue done [13:09:03]KKMCreateOFDPacket [13:09:03]OFDProtocolAddRootSTLVToBuf [13:09:03]FM_MakeSignedData [13:09:03]FM_MakeSignedData [13:09:03]SAM_PROTO_SignData [13:09:03]wFMCommunicate request_size=4 [13:09:03]MH_SAM_APDU [13:09:03]CAPDU: 80 0D 01 02 [13:09:03]Write to MH i2c: E2 08 00 80 0B 80 0D 01 02 00 00 00 00 04 [13:09:03]Write i2c OK [13:09:03]MH_I2C_Read... [13:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:03]Read from MH i2c: E2 [13:09:03]MH_I2C_Read... [13:09:03]Read from MH i2c: E2 03 00 [13:09:03]MH_I2C_Read... [13:09:03]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [13:09:03]RAPDU: 90 00 [13:09:03]wFMCommunicate OK [13:09:03]wFMCommunicate request_size=255 [13:09:03]MH_SAM_APDU [13:09:03]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [13:09:03]Write to MH i2c: E2 02 01 81 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 BC [13:09:03]Write i2c OK [13:09:03]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 03 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [13:09:04]RAPDU: 90 00 [13:09:04]wFMCommunicate OK [13:09:04]wFMCommunicate request_size=11 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 0D 02 02 06 CF 6E D9 C3 EB 8E [13:09:04]Write to MH i2c: E2 0E 00 82 0B 80 0D 02 02 06 00 CF 6E D9 C3 EB 8E 00 00 65 [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 03 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [13:09:04]RAPDU: 90 00 [13:09:04]wFMCommunicate OK [13:09:04]wFMCommunicate request_size=4 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 0D 03 02 [13:09:04]Write to MH i2c: E2 08 00 83 0B 80 0D 03 02 00 00 00 00 09 [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 0B 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 0B 00 83 0B 00 68 AD 3C 23 39 9D 29 15 90 00 92 [13:09:04]RAPDU: 68 AD 3C 23 39 9D 29 15 90 00 [13:09:04]wFMCommunicate OK [13:09:04]SAM_PROTO_SignData done [13:09:04]FM_MakeSignedData done [13:09:04]CreateOFDProtocolMessage [13:09:04]wFMCommunicate request_size=4 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 11 00 00 [13:09:04]Write to MH i2c: E2 08 00 84 0B 80 11 00 00 00 00 00 00 09 [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 17 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 17 00 84 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [13:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:09:04]wFMCommunicate OK [13:09:04]CreateOFDProtocolMessage done [13:09:04]OFDSenderStorePacket 67260 [13:09:04]StoreOFDPacket docnum=67260 [13:09: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 10 01 00 00 22 99 08 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CF 6E D9 C3 EB 8E 68 AD 3C 23 39 9D 29 15 [13:09:04]CheckFolder [13:09:04]dirname=/storage/ofd_packets [13:09:04]CheckFolder done [13:09:04]ProducePacketName [13:09:04]name=ofd_packets/00067260 [13:09:04]NVStorageSaveData ofd_packets/00067260 [13:09:04]File name is /storage/ofd_packets/00067260 [13:09:04]Write 302 bytes [13:09:04]NVStorageSaveData done [13:09:04]OFDSenderStorePacket done [13:09:04]KKMCreateOFDPacket done [13:09:04]NVStorageSaveData kkm_last_timestamp [13:09:04]File name is /storage/kkm_last_timestamp [13:09:04]Write 4 bytes [13:09:04]NVStorageSaveData done [13:09:04]ExternCall_PrintAddStr [13:09:04]wPrintStart [13:09:04]Write to MH i2c: 01 00 00 85 0B 90 [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: 01 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: 01 07 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 FF 0F A5 [13:09:04]RasterBufferAndPrint [13:09:04]line Счет N : (1)507234 [13:09:04]line ИНН: 02508201610067 [13:09:04]line Контрольно-Кассовый Чек [13:09:04]line ПРОДАЖА [13:09:04]line ТРК (МРК, ГНК) : 32 [13:09:04]line Товар: 2710124130 [13:09:04]line Super-92-К-5 [13:09:04]line 7.380 * 67.80 [13:09:04]line = 500.36 [13:09:04]line НДС 12% НСП 1% [13:09:04]line > о реализуемом товаре [13:09:04]line ИТОГО: 500.36 [13:09:04]line НСП 1% : 4.43 [13:09:04]line НДС 12% : 53.14 [13:09:04]line Наличными: 0.00 [13:09:04]line Безнал.: 500.36 [13:09:04]line Место: АЗС № 91 "Партнер Нефть" [13:09:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:09:04]line СНО: Общий режим [13:09:04]line Чек 78 15.05.2024 13:09 [13:09:04]line Смена: 356 ФФД: 1.0 [13:09:04]line ЗНМ: 0300000119 [13:09:04]line РНМ: 0000000000091845 [13:09:04]line Версия ККМ: 001 [13:09:04]line Платежная система: O! деньги [13:09:04]line ФМ: 0000000000871829 [13:09:04]line ФД: 67260 [13:09:04]line ФПД: 228075006847886 [13:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T130903&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67260&fm=228075006847886&tin=02508201610067®Number=0000000000091845&sum=50036 [13:09:04]OFD Sender: Processing packet 67260 [packets to send 35, broken 34] [13:09:04]ProducePacketName [13:09:04]name=ofd_packets/00067260 [13:09:04]OFD Sender: To server: pG, [13:09:04]CommunicateWithHost lk.salyk.kg:30040 [13:09:04]ConnectInit lk.salyk.kg [13:09:04]written 0, free lines is 4095 [13:09:04]Connected sock=10 [13:09: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 10 01 00 00 22 99 08 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 EF B3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CF 6E D9 C3 EB 8E 68 AD 3C 23 39 9D 29 15 [13:09: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 CD 0F 47 00 56 4C 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 06 01 00 F4 03 04 00 CC 5B 44 66 B6 04 01 00 00 5C A8 B8 7F EA 83 58 B7 [13:09:04]CommunicateWithHost err = 0 [13:09:04]CheckOFDResponse [13:09:04]1017 (14) - 77093643461234 [13:09:04]1041 (16) - 0000000000871829 [13:09:04]1040 (4) - 67260 [13:09:04]1012 (4) - 15.05.2024 06:53 [13:09:04]1206 (1) - 0 [13:09:04]OFD Sender: Remove packet 67260 [13:09:04]ProducePacketName [13:09:04]name=ofd_packets/00067260 [13:09:04]NVStorageDeleteData [13:09:04]Write to MH i2c: 01 00 00 AE 0B B9 [13:09:05]Write i2c OK [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: 01 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: 01 07 00 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 E7 0C B3 [13:09:05]RasterBufferAndPrint [13:09:05]line [13:09:05]line [13:09:05]line [13:09:05]line [13:09:05]line [13:09:05]written 0, free lines is 3309 [13:09:05]MH_Cut [13:09:05]Write to MH i2c: D1 01 00 B5 0B 01 92 [13:09:05]Write i2c OK [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: D1 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: D1 01 00 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: D1 01 00 B5 0B 00 91 [13:09:05]Write to MH i2c: 01 00 00 B6 0B C1 [13:09:05]Write i2c OK [13:09:05]MH_I2C_Read... [13:09:05]OFD Sender: No OFD packet to send [13:09:05]*** Cut start [13:09:05]*** Purtial cut [13:09:05]*** Stage 1: CUTSNS_PIN = 1 [13:09:06]Read from MH i2c: 01 [13:09:06]MH_I2C_Read... [13:09:06]*** Stop cut motor [13:09:06]*** Cut end [13:09:06]Read from MH i2c: 01 07 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 FF 0F D6 [13:09:06]process_action close_receipt done [13:09:06]requested_data is exist [13:09:06]produce_requested_data [13:09:06]requested_item fm.sn is exist - process it [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 11 00 00 [13:09:06]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 17 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 17 00 B7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [13:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:09:06]wFMCommunicate OK [13:09:06]requested_item fd.num is exist - process it [13:09:06]SAM_PROTO_GetFieldsCounters [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 13 00 00 [13:09:06]Write to MH i2c: E2 08 00 B8 0B 80 13 00 00 00 00 00 00 3F [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 62 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 62 00 B8 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 BC 06 01 00 0E 04 04 00 64 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 77 [13:09: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 BC 06 01 00 0E 04 04 00 64 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 [13:09:06]wFMCommunicate OK [13:09:06]SAM_PROTO_GetFieldsCounters done [13:09:06]requested_item shift.num is exist - process it [13:09:06]requested_item shift.opened is exist - process it [13:09:06]req_shift_opened [13:09:06]FM_GetShiftState [13:09:06]SAM_PROTO_GetShiftState [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 13 01 00 [13:09:06]Write to MH i2c: E2 08 00 B9 0B 80 13 01 00 00 00 00 00 41 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 0E 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 0E 00 B9 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EC [13:09:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:09:06]wFMCommunicate OK [13:09:06]SAM_PROTO_GetShiftState done [13:09:06]FM_GetShiftState done [13:09:06]req_shift_opened done [13:09:06]requested_item shift.open_date is exist - process it [13:09:06]req_shift_open_date [13:09:06]req_shift_open_date done [13:09:06]produce_requested_data done [13:09:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67260,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:09:06]process_action_free close_receipt [13:09:06]json_value_free [13:09:06]json_value_free done [13:09:06]process_json_proto returns [13:09:06]Send response to host [13:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67260,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:09:06]free response buf [13:09:06]execute_script done [13:09:06]execute_script returns [13:09:06]free content buf [13:09:06]Sock 7.Close socket [13:09:06]Sock 7.Thread stoped [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:37]accept exits with 9 [13:15:37]New connection [13:15:37]New thread 3067030884 created [13:15:37]Thread 3067174244 joined [13:15:37]Waiting for new connection... [13:15:37] Sock 9.Parse request [13:15:37]Sock 9.Check first char [13:15:37]Sock 9.First char is OK [13:15:37]request: POST /json_proto HTTP/1.0 [13:15:37]Method: POST [13:15:37]URL: /json_proto [13:15:37]Method is POST - this is cgi request [13:15:37]url: /json_proto [13:15:37]query_string will be loaded in cgi processing [13:15:37]execute_cgi json_proto POST (null) [13:15:37]execute_cgi path=json_proto method=POST [13:15:37]POST find Content-Length [13:15:37]Host: 172.17.41.195:8080 [13:15:37]Content-Length: 1212 [13:15:37]Content-Type: application/json [13:15:37] [13:15:37]POST finish read [13:15:37]Found Content-Length = 1212 [13:15: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)507235\u000A15.05.2024 12:58\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81611\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:37]execute_script... [13:15: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)507235\u000A15.05.2024 12:58\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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81611\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:37]POST & json_proto [13:15:37]process_json_proto [13:15:37]json parsed OK: [13:15:37]protocol is kg_v1.0 [13:15:37]action value=print_text [13:15:37]process_action print_text [13:15:37]cmd_print_text [13:15:37]ExternCall_PrintAddStr [13:15:37]wPrintStart [13:15:37]Write to MH i2c: 01 00 00 BA 0B C5 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 07 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 07 00 BA 0B 00 00 00 00 00 FF 0F DA [13:15:37]RasterBufferAndPrint [13:15:37]line *****ТОВАРНЫЙ ЧЕК***** [13:15:37]line АЗС-91 [13:15:37]line Партнер нефть [13:15:37]line 02508201610067 [13:15:37]line Кассир : Арстанбеков Н. [13:15:37]line Счет N : (1)507235 [13:15:37]line 15.05.2024 12:58 [13:15:37]line ПРОДАЖА [13:15:37]line ТРК (МРК, ГНК): 43 [13:15:37]line Вид ГСМ : 2710124130 [13:15:37]line Аи-92-К-5 [13:15:37]line 30.000 x 66.80 [13:15:37]line ИТОГ: 2004.00 [13:15:37]line Тип оплаты: Талоны: Топливная Карта [13:15:37]line 81611 [13:15:37]line ______________________ [13:15:37]line (подпись) [13:15:37]written 0, free lines is 4095 [13:15:37]Write to MH i2c: 01 00 00 CE 0B D9 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 07 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 10 0E FE [13:15:37]RasterBufferAndPrint [13:15:37]line [13:15:37]line [13:15:37]line [13:15:37]line [13:15:37]line [13:15:37]written 0, free lines is 3602 [13:15:37]MH_Cut [13:15:37]Write to MH i2c: D1 01 00 D5 0B 01 B2 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: D1 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: D1 01 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: D1 01 00 D5 0B 00 B1 [13:15:37]Write to MH i2c: 01 00 00 D6 0B E1 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** Cut start [13:15:37]*** Purtial cut [13:15:37]*** CUTSNS_PIN = 0 [13:15:38]*** Stage 1: CUTSNS_PIN = 1 [13:15:39]Read from MH i2c: 01 [13:15:39]MH_I2C_Read... [13:15:39]*** Stop cut motor [13:15:39]*** Cut end [13:15:39]Read from MH i2c: 01 07 00 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [13:15:39]process_action print_text done [13:15:39]requested_data is exist [13:15:39]produce_requested_data [13:15:39]requested_item fm.sn is exist - process it [13:15:39]wFMCommunicate request_size=4 [13:15:39]MH_SAM_APDU [13:15:39]CAPDU: 80 11 00 00 [13:15:39]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [13:15:39]Write i2c OK [13:15:39]MH_I2C_Read... [13:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:39]Read from MH i2c: E2 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: E2 17 00 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [13:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:15:39]wFMCommunicate OK [13:15:39]requested_item fd.num is exist - process it [13:15:39]SAM_PROTO_GetFieldsCounters [13:15:39]wFMCommunicate request_size=4 [13:15:39]MH_SAM_APDU [13:15:39]CAPDU: 80 13 00 00 [13:15:39]Write to MH i2c: E2 08 00 D8 0B 80 13 00 00 00 00 00 00 5F [13:15:39]Write i2c OK [13:15:39]MH_I2C_Read... [13:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:39]Read from MH i2c: E2 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: E2 62 00 [13:15:39]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 62 00 D8 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 BC 06 01 00 0E 04 04 00 64 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 97 [13:15: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 BC 06 01 00 0E 04 04 00 64 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 [13:15:40]wFMCommunicate OK [13:15:40]SAM_PROTO_GetFieldsCounters done [13:15:40]requested_item shift.num is exist - process it [13:15:40]requested_item shift.opened is exist - process it [13:15:40]req_shift_opened [13:15:40]FM_GetShiftState [13:15:40]SAM_PROTO_GetShiftState [13:15:40]wFMCommunicate request_size=4 [13:15:40]MH_SAM_APDU [13:15:40]CAPDU: 80 13 01 00 [13:15:40]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:40]Read from MH i2c: E2 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0C [13:15:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:15:40]wFMCommunicate OK [13:15:40]SAM_PROTO_GetShiftState done [13:15:40]FM_GetShiftState done [13:15:40]req_shift_opened done [13:15:40]requested_item shift.open_date is exist - process it [13:15:40]req_shift_open_date [13:15:40]req_shift_open_date done [13:15:40]produce_requested_data done [13:15:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67260,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:15:40]process_action_free print_text [13:15:40]json_value_free [13:15:40]json_value_free done [13:15:40]process_json_proto returns [13:15:40]Send response to host [13:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67260,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:15:40]free response buf [13:15:40]execute_script done [13:15:40]execute_script returns [13:15:40]free content buf [13:15:40]Sock 9.Close socket [13:15:40]Sock 9.Thread stoped [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:05]accept exits with 7 [13:19:05]New connection [13:19:05]New thread 3067174244 created [13:19:05]Thread 3067030884 joined [13:19:05]Waiting for new connection... [13:19:05] Sock 7.Parse request [13:19:05]Sock 7.Check first char [13:19:05]Sock 7.First char is OK [13:19:05]request: POST /json_proto HTTP/1.0 [13:19:05]Method: POST [13:19:05]URL: /json_proto [13:19:05]Method is POST - this is cgi request [13:19:05]url: /json_proto [13:19:05]query_string will be loaded in cgi processing [13:19:05]execute_cgi json_proto POST (null) [13:19:05]execute_cgi path=json_proto method=POST [13:19:05]POST find Content-Length [13:19:05]Host: 172.17.41.195:8080 [13:19:05]Content-Length: 800 [13:19:05]Content-Type: application/json [13:19:05] [13:19:05]POST finish read [13:19:05]Found Content-Length = 800 [13:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507237", "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" : 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" ] } } [13:19:05]execute_script... [13:19: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)507237", "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" : 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" ] } } [13:19:05]POST & json_proto [13:19:05]process_json_proto [13:19:05]json parsed OK: [13:19:05]protocol is kg_v1.0 [13:19:05]action value=close_receipt [13:19:05]process_action close_receipt [13:19:05]cmd_close_receipt [13:19:05]MH_GetDate [13:19:05]Write to MH i2c: F0 00 00 DA 0B D4 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: F0 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: F0 09 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: F0 09 00 DA 0B 00 4A B6 44 66 FC 21 6F 64 77 [13:19:05]GetLastDocTimeStamp 1715778543 [13:19:05]current date 1715779146 [13:19:05]FM_GetShiftState [13:19:05]SAM_PROTO_GetShiftState [13:19:05]wFMCommunicate request_size=4 [13:19:05]MH_SAM_APDU [13:19:05]CAPDU: 80 13 01 00 [13:19:05]Write to MH i2c: E2 08 00 DB 0B 80 13 01 00 00 00 00 00 63 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 0E 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 0E 00 DB 0B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0E [13:19:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:19:06]wFMCommunicate OK [13:19:06]SAM_PROTO_GetShiftState done [13:19:06]FM_GetShiftState done [13:19:06]opened in 1715732471 [13:19:06]opened+sec_in_day 1715818871 [13:19:06]quantity*price = 400018 [13:19:06]sum+1 = 400020 [13:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 79 15.05.2024 13:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67261 ФПД: 209546735547597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T131906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67261&fm=209546735547597&tin=02508201610067®Number=0000000000091845&sum=400019 [13:19:07]StoreToDocumentArchive [13:19:07]shift 356 fd 67261 [13:19:07]save to /storage/0356/doc_00067261 [13:19:07]save last doc name /storage/0356/doc_00067261 to /storage/kkm_last_doc_name [13:19:07]save OK [13:19:07]Clear old archive folders... [13:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:07]tlvbuf is B6F8B300 [13:19:07]SAM_PROTO_ClearQueue [13:19:07]wFMCommunicate request_size=4 [13:19:07]MH_SAM_APDU [13:19:07]CAPDU: 80 09 00 00 [13:19:07]Write to MH i2c: E2 08 00 E8 0B 80 09 00 00 00 00 00 00 65 [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:07]Read from MH i2c: E2 03 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [13:19:07]RAPDU: 90 00 [13:19:07]wFMCommunicate OK [13:19:07]SAM_PROTO_ClearQueue done [13:19:07]KKMCreateOFDPacket [13:19:07]OFDProtocolAddRootSTLVToBuf [13:19:07]FM_MakeSignedData [13:19:07]FM_MakeSignedData [13:19:07]SAM_PROTO_SignData [13:19:07]wFMCommunicate request_size=4 [13:19:07]MH_SAM_APDU [13:19:07]CAPDU: 80 0D 01 02 [13:19:07]Write to MH i2c: E2 08 00 E9 0B 80 0D 01 02 00 00 00 00 6D [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [13:19:07]RAPDU: 90 00 [13:19:07]wFMCommunicate OK [13:19:07]wFMCommunicate request_size=255 [13:19:07]MH_SAM_APDU [13:19:07]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 4F 00 00 00 F4 03 04 00 4A B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BE 94 E6 BC [13:19:07]Write to MH i2c: E2 02 01 EA 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 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 4F 00 00 00 F4 03 04 00 4A B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BE 94 E6 BC 00 00 BE [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [13:19:07]RAPDU: 90 00 [13:19:07]wFMCommunicate OK [13:19:07]wFMCommunicate request_size=7 [13:19:07]MH_SAM_APDU [13:19:07]CAPDU: 80 0D 02 02 02 74 CD [13:19:07]Write to MH i2c: E2 0A 00 EB 0B 80 0D 02 02 02 00 74 CD 00 00 B5 [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [13:19:07]RAPDU: 90 00 [13:19:07]wFMCommunicate OK [13:19:07]wFMCommunicate request_size=4 [13:19:07]MH_SAM_APDU [13:19:07]CAPDU: 80 0D 03 02 [13:19:07]Write to MH i2c: E2 08 00 EC 0B 80 0D 03 02 00 00 00 00 72 [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 0B 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 0B 00 EC 0B 00 52 CC 99 81 C0 60 61 8C 90 00 B8 [13:19:07]RAPDU: 52 CC 99 81 C0 60 61 8C 90 00 [13:19:07]wFMCommunicate OK [13:19:07]SAM_PROTO_SignData done [13:19:07]FM_MakeSignedData done [13:19:07]CreateOFDProtocolMessage [13:19:07]wFMCommunicate request_size=4 [13:19:07]MH_SAM_APDU [13:19:07]CAPDU: 80 11 00 00 [13:19:07]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 17 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [13:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:19:07]wFMCommunicate OK [13:19:07]CreateOFDProtocolMessage done [13:19:07]OFDSenderStorePacket 67261 [13:19:07]StoreOFDPacket docnum=67261 [13:19: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 1B 08 04 01 2D E0 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 4F 00 00 00 F4 03 04 00 4A B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BE 94 E6 BC 74 CD 52 CC 99 81 C0 60 61 8C [13:19:07]CheckFolder [13:19:07]dirname=/storage/ofd_packets [13:19:07]CheckFolder done [13:19:07]ProducePacketName [13:19:07]name=ofd_packets/00067261 [13:19:07]NVStorageSaveData ofd_packets/00067261 [13:19:07]File name is /storage/ofd_packets/00067261 [13:19:07]Write 298 bytes [13:19:07]NVStorageSaveData done [13:19:07]OFDSenderStorePacket done [13:19:07]KKMCreateOFDPacket done [13:19:07]NVStorageSaveData kkm_last_timestamp [13:19:07]File name is /storage/kkm_last_timestamp [13:19:07]Write 4 bytes [13:19:07]NVStorageSaveData done [13:19:07]ExternCall_PrintAddStr [13:19:07]wPrintStart [13:19:07]Write to MH i2c: 01 00 00 EE 0B F9 [13:19:07]Write i2c OK [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: 01 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: 01 07 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: 01 07 00 EE 0B 00 00 00 00 00 FF 0F 0E [13:19:07]RasterBufferAndPrint [13:19:07]line Счет N : (1)507237 [13:19:07]line ИНН: 02508201610067 [13:19:07]line Контрольно-Кассовый Чек [13:19:07]line ПРОДАЖА [13:19:07]line ТРК (МРК, ГНК) : 11 [13:19:07]line Товар: 2710194210 [13:19:07]line ДТ-К-5 [13:19:07]line 53.550 * 74.70 [13:19:07]line = 4000.19 [13:19:07]line НДС 12% НСП 1% [13:19:07]line > о реализуемом товаре [13:19:07]line ИТОГО: 4000.19 [13:19:07]line НСП 1% : 35.40 [13:19:07]line НДС 12% : 424.80 [13:19:07]line Наличными: 0.00 [13:19:07]line Безнал.: 4000.19 [13:19:07]line Место: АЗС № 91 "Партнер Нефть" [13:19:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:19:07]line СНО: Общий режим [13:19:07]line Чек 79 15.05.2024 13:19 [13:19:07]line Смена: 356 ФФД: 1.0 [13:19:07]line ЗНМ: 0300000119 [13:19:07]line РНМ: 0000000000091845 [13:19:07]line Версия ККМ: 001 [13:19:07]line Платежная система: O! деньги [13:19:07]line ФМ: 0000000000871829 [13:19:07]line ФД: 67261 [13:19:07]line ФПД: 209546735547597 [13:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T131906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67261&fm=209546735547597&tin=02508201610067®Number=0000000000091845&sum=400019 [13:19:07]OFD Sender: Processing packet 67261 [packets to send 35, broken 34] [13:19:07]ProducePacketName [13:19:07]name=ofd_packets/00067261 [13:19:07]OFD Sender: To server: pG, [13:19:07]CommunicateWithHost lk.salyk.kg:30040 [13:19:07]ConnectInit lk.salyk.kg [13:19:07]written 0, free lines is 4095 [13:19:08]Write to MH i2c: 01 00 00 17 0C 23 [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: 01 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: 01 07 00 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 D4 0C 0A [13:19:08]RasterBufferAndPrint [13:19:08]line [13:19:08]line [13:19:08]line [13:19:08]line [13:19:08]line [13:19:08]written 0, free lines is 3289 [13:19:08]MH_Cut [13:19:08]Write to MH i2c: D1 01 00 1E 0C 01 FC [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: D1 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: D1 01 00 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: D1 01 00 1E 0C 00 FB [13:19:08]Write to MH i2c: 01 00 00 1F 0C 2B [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]Connected sock=10 [13:19: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 0C 01 00 00 1B 08 04 01 2D E0 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 4F 00 00 00 F4 03 04 00 4A B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BE 94 E6 BC 74 CD 52 CC 99 81 C0 60 61 8C [13:19: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 E6 11 47 00 9B FF 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 06 01 00 F4 03 04 00 28 5E 44 66 B6 04 01 00 00 B0 16 1A 0B 79 83 48 78 [13:19:09]CommunicateWithHost err = 0 [13:19:09]CheckOFDResponse [13:19:09]1017 (14) - 77093643461234 [13:19:09]1041 (16) - 0000000000871829 [13:19:09]1040 (4) - 67261 [13:19:09]1012 (4) - 15.05.2024 07:03 [13:19:09]1206 (1) - 0 [13:19:09]OFD Sender: Remove packet 67261 [13:19:09]ProducePacketName [13:19:09]name=ofd_packets/00067261 [13:19:09]NVStorageDeleteData [13:19:09]*** Cut start [13:19:09]*** Purtial cut [13:19:09]*** Stage 1: CUTSNS_PIN = 1 [13:19:09]Read from MH i2c: 01 [13:19:09]MH_I2C_Read... [13:19:09]OFD Sender: No OFD packet to send [13:19:09]Read from MH i2c: 01 07 00 [13:19:09]MH_I2C_Read... [13:19:09]*** Stop cut motor [13:19:09]*** Cut end [13:19:09]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0F 40 [13:19:09]process_action close_receipt done [13:19:09]requested_data is exist [13:19:09]produce_requested_data [13:19:09]requested_item fm.sn is exist - process it [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 11 00 00 [13:19:09]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 17 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [13:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:19:09]wFMCommunicate OK [13:19:09]requested_item fd.num is exist - process it [13:19:09]SAM_PROTO_GetFieldsCounters [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 13 00 00 [13:19:09]Write to MH i2c: E2 08 00 21 0C 80 13 00 00 00 00 00 00 A9 [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 62 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 62 00 21 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 BD 06 01 00 0E 04 04 00 64 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 E5 [13:19: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 BD 06 01 00 0E 04 04 00 64 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 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_GetFieldsCounters done [13:19:09]requested_item shift.num is exist - process it [13:19:09]requested_item shift.opened is exist - process it [13:19:09]req_shift_opened [13:19:09]FM_GetShiftState [13:19:09]SAM_PROTO_GetShiftState [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 13 01 00 [13:19:09]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 56 [13:19:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_GetShiftState done [13:19:09]FM_GetShiftState done [13:19:09]req_shift_opened done [13:19:09]requested_item shift.open_date is exist - process it [13:19:09]req_shift_open_date [13:19:09]req_shift_open_date done [13:19:09]produce_requested_data done [13:19:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67261,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:19:09]process_action_free close_receipt [13:19:09]json_value_free [13:19:09]json_value_free done [13:19:09]process_json_proto returns [13:19:09]Send response to host [13:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67261,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:19:09]free response buf [13:19:09]execute_script done [13:19:09]execute_script returns [13:19:09]free content buf [13:19:09]Sock 7.Close socket [13:19:09]Sock 7.Thread stoped [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:31]accept exits with 9 [13:19:31]New connection [13:19:31]New thread 3067030884 created [13:19:31]Thread 3067174244 joined [13:19:31]Waiting for new connection... [13:19:31] Sock 9.Parse request [13:19:31]Sock 9.Check first char [13:19:31]Sock 9.First char is OK [13:19:31]request: POST /json_proto HTTP/1.0 [13:19:31]Method: POST [13:19:31]URL: /json_proto [13:19:31]Method is POST - this is cgi request [13:19:31]url: /json_proto [13:19:31]query_string will be loaded in cgi processing [13:19:31]execute_cgi json_proto POST (null) [13:19:31]execute_cgi path=json_proto method=POST [13:19:31]POST find Content-Length [13:19:31]Host: 172.17.41.195:8080 [13:19:31]Content-Length: 803 [13:19:31]Content-Type: application/json [13:19:31] [13:19:31]POST finish read [13:19:31]Found Content-Length = 803 [13:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507238", "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" ] } } [13:19:31]execute_script... [13:19: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)507238", "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" ] } } [13:19:31]POST & json_proto [13:19:31]process_json_proto [13:19:31]json parsed OK: [13:19:31]protocol is kg_v1.0 [13:19:31]action value=close_receipt [13:19:31]process_action close_receipt [13:19:31]cmd_close_receipt [13:19:31]MH_GetDate [13:19:31]Write to MH i2c: F0 00 00 23 0C 1E [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: F0 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: F0 09 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: F0 09 00 23 0C 00 64 B6 44 66 FC 21 6F 64 DB [13:19:31]GetLastDocTimeStamp 1715779146 [13:19:31]current date 1715779172 [13:19:31]FM_GetShiftState [13:19:31]SAM_PROTO_GetShiftState [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 13 01 00 [13:19:31]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 0E 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 58 [13:19:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:19:31]wFMCommunicate OK [13:19:31]SAM_PROTO_GetShiftState done [13:19:31]FM_GetShiftState done [13:19:31]opened in 1715732471 [13:19:31]opened+sec_in_day 1715818871 [13:19:31]quantity*price = 100066 [13:19:31]sum+1 = 100067 [13:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 80 15.05.2024 13:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67262 ФПД: 69246816965587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T131932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67262&fm=69246816965587&tin=02508201610067®Number=0000000000091845&sum=100066 [13:19:32]StoreToDocumentArchive [13:19:32]shift 356 fd 67262 [13:19:32]save to /storage/0356/doc_00067262 [13:19:32]save last doc name /storage/0356/doc_00067262 to /storage/kkm_last_doc_name [13:19:32]save OK [13:19:32]Clear old archive folders... [13:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:32]tlvbuf is 00B0A780 [13:19:32]SAM_PROTO_ClearQueue [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 09 00 00 [13:19:32]Write to MH i2c: E2 08 00 31 0C 80 09 00 00 00 00 00 00 AF [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [13:19:32]RAPDU: 90 00 [13:19:32]wFMCommunicate OK [13:19:32]SAM_PROTO_ClearQueue done [13:19:32]KKMCreateOFDPacket [13:19:32]OFDProtocolAddRootSTLVToBuf [13:19:32]FM_MakeSignedData [13:19:32]FM_MakeSignedData [13:19:32]SAM_PROTO_SignData [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 0D 01 02 [13:19:32]Write to MH i2c: E2 08 00 32 0C 80 0D 01 02 00 00 00 00 B7 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [13:19:32]RAPDU: 90 00 [13:19:32]wFMCommunicate OK [13:19:32]wFMCommunicate request_size=255 [13:19:32]MH_SAM_APDU [13:19:32]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 50 00 00 00 F4 03 04 00 64 B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3E [13:19:32]Write to MH i2c: E2 02 01 33 0C 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 50 00 00 00 F4 03 04 00 64 B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3E 00 00 90 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [13:19:32]RAPDU: 90 00 [13:19:32]wFMCommunicate OK [13:19:32]wFMCommunicate request_size=10 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 0D 02 02 05 FA C7 ED 53 D3 [13:19:32]Write to MH i2c: E2 0D 00 34 0C 80 0D 02 02 05 00 FA C7 ED 53 D3 00 00 98 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [13:19:32]RAPDU: 90 00 [13:19:32]wFMCommunicate OK [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 0D 03 02 [13:19:32]Write to MH i2c: E2 08 00 35 0C 80 0D 03 02 00 00 00 00 BC [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 0B 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 0B 00 35 0C 00 B6 C6 E3 80 A0 75 50 77 90 00 78 [13:19:32]RAPDU: B6 C6 E3 80 A0 75 50 77 90 00 [13:19:32]wFMCommunicate OK [13:19:32]SAM_PROTO_SignData done [13:19:32]FM_MakeSignedData done [13:19:32]CreateOFDProtocolMessage [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 11 00 00 [13:19:32]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [13:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:19:32]wFMCommunicate OK [13:19:32]CreateOFDProtocolMessage done [13:19:32]OFDSenderStorePacket 67262 [13:19:32]StoreOFDPacket docnum=67262 [13:19: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 0F 01 00 00 12 73 07 01 E1 E6 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 50 00 00 00 F4 03 04 00 64 B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3E FA C7 ED 53 D3 B6 C6 E3 80 A0 75 50 77 [13:19:32]CheckFolder [13:19:32]dirname=/storage/ofd_packets [13:19:32]CheckFolder done [13:19:32]ProducePacketName [13:19:32]name=ofd_packets/00067262 [13:19:32]NVStorageSaveData ofd_packets/00067262 [13:19:32]File name is /storage/ofd_packets/00067262 [13:19:32]Write 301 bytes [13:19:32]NVStorageSaveData done [13:19:32]OFDSenderStorePacket done [13:19:32]KKMCreateOFDPacket done [13:19:32]NVStorageSaveData kkm_last_timestamp [13:19:32]File name is /storage/kkm_last_timestamp [13:19:32]Write 4 bytes [13:19:32]NVStorageSaveData done [13:19:32]ExternCall_PrintAddStr [13:19:32]wPrintStart [13:19:32]Write to MH i2c: 01 00 00 37 0C 43 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [13:19:32]RasterBufferAndPrint [13:19:32]line Счет N : (1)507238 [13:19:32]line ИНН: 02508201610067 [13:19:32]line Контрольно-Кассовый Чек [13:19:32]line ПРОДАЖА [13:19:32]line ТРК (МРК, ГНК) : 43 [13:19:32]line Товар: 2710124130 [13:19:32]line Аи-92-К-5 [13:19:32]line 14.980 * 66.80 [13:19:32]line = 1000.66 [13:19:32]line НДС 12% НСП 1% [13:19:32]line > о реализуемом товаре [13:19:32]line ИТОГО: 1000.66 [13:19:32]line НСП 1% : 8.85 [13:19:32]line НДС 12% : 106.26 [13:19:32]line Наличными: 0.00 [13:19:32]line Безнал.: 1000.66 [13:19:32]line Место: АЗС № 91 "Партнер Нефть" [13:19:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:19:32]line СНО: Общий режим [13:19:32]line Чек 80 15.05.2024 13:19 [13:19:32]line Смена: 356 ФФД: 1.0 [13:19:32]line ЗНМ: 0300000119 [13:19:32]line РНМ: 0000000000091845 [13:19:32]line Версия ККМ: 001 [13:19:32]line Платежная система: O! деньги [13:19:32]line ФМ: 0000000000871829 [13:19:32]line ФД: 67262 [13:19:32]line ФПД: 69246816965587 [13:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T131932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67262&fm=69246816965587&tin=02508201610067®Number=0000000000091845&sum=100066 [13:19:33]OFD Sender: Processing packet 67262 [packets to send 35, broken 34] [13:19:33]ProducePacketName [13:19:33]name=ofd_packets/00067262 [13:19:33]OFD Sender: To server: pG, [13:19:33]CommunicateWithHost lk.salyk.kg:30040 [13:19:33]ConnectInit lk.salyk.kg [13:19:33]written 0, free lines is 4095 [13:19:33]Connected sock=10 [13:19: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 12 73 07 01 E1 E6 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 50 00 00 00 F4 03 04 00 64 B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3E FA C7 ED 53 D3 B6 C6 E3 80 A0 75 50 77 [13:19:33]Write to MH i2c: 01 00 00 60 0C 6C [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: 01 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: 01 07 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 E6 0C 65 [13:19:33]RasterBufferAndPrint [13:19:33]line [13:19:33]line [13:19:33]line [13:19:33]line [13:19:33]line [13:19:33]written 0, free lines is 3308 [13:19:33]MH_Cut [13:19:33]Write to MH i2c: D1 01 00 67 0C 01 45 [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: D1 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: D1 01 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: D1 01 00 67 0C 00 44 [13:19:33]Write to MH i2c: 01 00 00 68 0C 74 [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19: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 0E 96 47 00 CC EF 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 06 01 00 F4 03 04 00 41 5E 44 66 B6 04 01 00 00 8A 1E 3F BB B1 83 25 A1 [13:19:34]CommunicateWithHost err = 0 [13:19:34]CheckOFDResponse [13:19:34]1017 (14) - 77093643461234 [13:19:34]1041 (16) - 0000000000871829 [13:19:34]1040 (4) - 67262 [13:19:34]1012 (4) - 15.05.2024 07:03 [13:19:34]1206 (1) - 0 [13:19:34]OFD Sender: Remove packet 67262 [13:19:34]ProducePacketName [13:19:34]name=ofd_packets/00067262 [13:19:34]NVStorageDeleteData [13:19:34]*** Cut start [13:19:34]*** Purtial cut [13:19:34]*** CUTSNS_PIN = 0 [13:19:34]*** Stage 1: CUTSNS_PIN = 1 [13:19:34]OFD Sender: No OFD packet to send [13:19:36]Read from MH i2c: 01 [13:19:36]MH_I2C_Read... [13:19:36]*** Stop cut motor [13:19:36]*** Cut end [13:19:36]Read from MH i2c: 01 07 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [13:19:36]process_action close_receipt done [13:19:36]requested_data is exist [13:19:36]produce_requested_data [13:19:36]requested_item fm.sn is exist - process it [13:19:36]wFMCommunicate request_size=4 [13:19:36]MH_SAM_APDU [13:19:36]CAPDU: 80 11 00 00 [13:19:36]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:36]Read from MH i2c: E2 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 17 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [13:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:19:36]wFMCommunicate OK [13:19:36]requested_item fd.num is exist - process it [13:19:36]SAM_PROTO_GetFieldsCounters [13:19:36]wFMCommunicate request_size=4 [13:19:36]MH_SAM_APDU [13:19:36]CAPDU: 80 13 00 00 [13:19:36]Write to MH i2c: E2 08 00 6A 0C 80 13 00 00 00 00 00 00 F2 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:36]Read from MH i2c: E2 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 62 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 62 00 6A 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 BE 06 01 00 0E 04 04 00 64 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 32 [13:19: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 BE 06 01 00 0E 04 04 00 64 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 [13:19:36]wFMCommunicate OK [13:19:36]SAM_PROTO_GetFieldsCounters done [13:19:36]requested_item shift.num is exist - process it [13:19:36]requested_item shift.opened is exist - process it [13:19:36]req_shift_opened [13:19:36]FM_GetShiftState [13:19:36]SAM_PROTO_GetShiftState [13:19:36]wFMCommunicate request_size=4 [13:19:36]MH_SAM_APDU [13:19:36]CAPDU: 80 13 01 00 [13:19:36]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:36]Read from MH i2c: E2 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 0E 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9F [13:19:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:19:36]wFMCommunicate OK [13:19:36]SAM_PROTO_GetShiftState done [13:19:36]FM_GetShiftState done [13:19:36]req_shift_opened done [13:19:36]requested_item shift.open_date is exist - process it [13:19:36]req_shift_open_date [13:19:36]req_shift_open_date done [13:19:36]produce_requested_data done [13:19:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67262,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:19:36]process_action_free close_receipt [13:19:36]json_value_free [13:19:36]json_value_free done [13:19:36]process_json_proto returns [13:19:36]Send response to host [13:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67262,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:19:36]free response buf [13:19:36]execute_script done [13:19:36]execute_script returns [13:19:36]free content buf [13:19:36]Sock 9.Close socket [13:19:36]Sock 9.Thread stoped [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:06]accept exits with 7 [13:22:06]New connection [13:22:06]New thread 3067174244 created [13:22:06]Thread 3067030884 joined [13:22:06]Waiting for new connection... [13:22:06] Sock 7.Parse request [13:22:06]Sock 7.Check first char [13:22:06]Sock 7.First char is OK [13:22:06]request: POST /json_proto HTTP/1.0 [13:22:06]Method: POST [13:22:06]URL: /json_proto [13:22:06]Method is POST - this is cgi request [13:22:06]url: /json_proto [13:22:06]query_string will be loaded in cgi processing [13:22:06]execute_cgi json_proto POST (null) [13:22:06]execute_cgi path=json_proto method=POST [13:22:06]POST find Content-Length [13:22:06]Host: 172.17.41.195:8080 [13:22:06]Content-Length: 800 [13:22:06]Content-Type: application/json [13:22:06] [13:22:06]POST finish read [13:22:06]Found Content-Length = 800 [13:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507236", "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" : 92.770, "sum" : 6929.92, "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" : 6929.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:06]execute_script... [13:22: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)507236", "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" : 92.770, "sum" : 6929.92, "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" : 6929.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:06]POST & json_proto [13:22:06]process_json_proto [13:22:06]json parsed OK: [13:22:06]protocol is kg_v1.0 [13:22:06]action value=close_receipt [13:22:06]process_action close_receipt [13:22:06]cmd_close_receipt [13:22:06]MH_GetDate [13:22:06]Write to MH i2c: F0 00 00 6C 0C 67 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: F0 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: F0 09 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: F0 09 00 6C 0C 00 FF B6 44 66 FC 21 6F 64 BF [13:22:06]GetLastDocTimeStamp 1715779172 [13:22:06]current date 1715779327 [13:22:06]FM_GetShiftState [13:22:06]SAM_PROTO_GetShiftState [13:22:06]wFMCommunicate request_size=4 [13:22:06]MH_SAM_APDU [13:22:06]CAPDU: 80 13 01 00 [13:22:06]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [13:22:06]Write i2c OK [13:22:06]MH_I2C_Read... [13:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:06]Read from MH i2c: E2 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 0E 00 [13:22:06]MH_I2C_Read... [13:22:06]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A1 [13:22:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:22:06]wFMCommunicate OK [13:22:06]SAM_PROTO_GetShiftState done [13:22:06]FM_GetShiftState done [13:22:06]opened in 1715732471 [13:22:06]opened+sec_in_day 1715818871 [13:22:06]quantity*price = 692991 [13:22:06]sum+1 = 692993 [13:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6929.92 НСП 1% : 61.33 НДС 12% : 735.92 Наличными: 0.00 Безнал.: 6929.92 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 81 15.05.2024 13:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67263 ФПД: 13729250669556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67263&fm=13729250669556&tin=02508201610067®Number=0000000000091845&sum=692992 [13:22:07]StoreToDocumentArchive [13:22:07]shift 356 fd 67263 [13:22:07]save to /storage/0356/doc_00067263 [13:22:07]save last doc name /storage/0356/doc_00067263 to /storage/kkm_last_doc_name [13:22:07]save OK [13:22:07]Clear old archive folders... [13:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:22:07]tlvbuf is 00B073D0 [13:22:07]SAM_PROTO_ClearQueue [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 09 00 00 [13:22:07]Write to MH i2c: E2 08 00 7A 0C 80 09 00 00 00 00 00 00 F8 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:07]Read from MH i2c: E2 03 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [13:22:07]RAPDU: 90 00 [13:22:07]wFMCommunicate OK [13:22:07]SAM_PROTO_ClearQueue done [13:22:07]KKMCreateOFDPacket [13:22:07]OFDProtocolAddRootSTLVToBuf [13:22:07]FM_MakeSignedData [13:22:07]FM_MakeSignedData [13:22:07]SAM_PROTO_SignData [13:22:07]wFMCommunicate request_size=4 [13:22:07]MH_SAM_APDU [13:22:07]CAPDU: 80 0D 01 02 [13:22:07]Write to MH i2c: E2 08 00 7B 0C 80 0D 01 02 00 00 00 00 00 [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:07]Read from MH i2c: E2 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 03 00 [13:22:07]MH_I2C_Read... [13:22:07]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [13:22:07]RAPDU: 90 00 [13:22:07]wFMCommunicate OK [13:22:07]wFMCommunicate request_size=255 [13:22:07]MH_SAM_APDU [13:22:07]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 62 6A 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 00 93 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 93 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 93 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 FF B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 7C 97 1B [13:22:07]Write to MH i2c: E2 02 01 7C 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 62 6A 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 00 93 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 93 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 93 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 FF B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 7C 97 1B 00 00 0A [13:22:07]Write i2c OK [13:22:07]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 03 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [13:22:08]RAPDU: 90 00 [13:22:08]wFMCommunicate OK [13:22:08]wFMCommunicate request_size=7 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 0D 02 02 02 F3 F4 [13:22:08]Write to MH i2c: E2 0A 00 7D 0C 80 0D 02 02 02 00 F3 F4 00 00 EE [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 03 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [13:22:08]RAPDU: 90 00 [13:22:08]wFMCommunicate OK [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 0D 03 02 [13:22:08]Write to MH i2c: E2 08 00 7E 0C 80 0D 03 02 00 00 00 00 05 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0B 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 0B 00 7E 0C 00 60 DB 71 79 20 56 B8 A0 90 00 F9 [13:22:08]RAPDU: 60 DB 71 79 20 56 B8 A0 90 00 [13:22:08]wFMCommunicate OK [13:22:08]SAM_PROTO_SignData done [13:22:08]FM_MakeSignedData done [13:22:08]CreateOFDProtocolMessage [13:22:08]wFMCommunicate request_size=4 [13:22:08]MH_SAM_APDU [13:22:08]CAPDU: 80 11 00 00 [13:22:08]Write to MH i2c: E2 08 00 7F 0C 80 11 00 00 00 00 00 00 05 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:08]Read from MH i2c: E2 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 17 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: E2 17 00 7F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [13:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:22:08]wFMCommunicate OK [13:22:08]CreateOFDProtocolMessage done [13:22:08]OFDSenderStorePacket 67263 [13:22:08]StoreOFDPacket docnum=67263 [13:22: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 0C 01 00 00 4B 9B 04 01 B8 E6 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 62 6A 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 00 93 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 93 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 93 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 FF B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 7C 97 1B F3 F4 60 DB 71 79 20 56 B8 A0 [13:22:08]CheckFolder [13:22:08]dirname=/storage/ofd_packets [13:22:08]CheckFolder done [13:22:08]ProducePacketName [13:22:08]name=ofd_packets/00067263 [13:22:08]NVStorageSaveData ofd_packets/00067263 [13:22:08]File name is /storage/ofd_packets/00067263 [13:22:08]Write 298 bytes [13:22:08]NVStorageSaveData done [13:22:08]OFDSenderStorePacket done [13:22:08]KKMCreateOFDPacket done [13:22:08]NVStorageSaveData kkm_last_timestamp [13:22:08]File name is /storage/kkm_last_timestamp [13:22:08]Write 4 bytes [13:22:08]NVStorageSaveData done [13:22:08]ExternCall_PrintAddStr [13:22:08]wPrintStart [13:22:08]Write to MH i2c: 01 00 00 80 0C 8C [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 07 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [13:22:08]RasterBufferAndPrint [13:22:08]line Счет N : (1)507236 [13:22:08]line ИНН: 02508201610067 [13:22:08]line Контрольно-Кассовый Чек [13:22:08]line ПРОДАЖА [13:22:08]line ТРК (МРК, ГНК) : 21 [13:22:08]line Товар: 2710194210 [13:22:08]line ДТ-К-5 [13:22:08]line 92.770 * 74.70 [13:22:08]line = 6929.92 [13:22:08]line НДС 12% НСП 1% [13:22:08]line > о реализуемом товаре [13:22:08]line ИТОГО: 6929.92 [13:22:08]line НСП 1% : 61.33 [13:22:08]line НДС 12% : 735.92 [13:22:08]line Наличными: 0.00 [13:22:08]line Безнал.: 6929.92 [13:22:08]line Место: АЗС № 91 "Партнер Нефть" [13:22:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:22:08]line СНО: Общий режим [13:22:08]line Чек 81 15.05.2024 13:22 [13:22:08]line Смена: 356 ФФД: 1.0 [13:22:08]line ЗНМ: 0300000119 [13:22:08]line РНМ: 0000000000091845 [13:22:08]line Версия ККМ: 001 [13:22:08]line Платежная система: O! деньги [13:22:08]line ФМ: 0000000000871829 [13:22:08]line ФД: 67263 [13:22:08]line ФПД: 13729250669556 [13:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67263&fm=13729250669556&tin=02508201610067®Number=0000000000091845&sum=692992 [13:22:08]OFD Sender: Processing packet 67263 [packets to send 35, broken 34] [13:22:08]ProducePacketName [13:22:08]name=ofd_packets/00067263 [13:22:08]OFD Sender: To server: pG, [13:22:08]CommunicateWithHost lk.salyk.kg:30040 [13:22:08]ConnectInit lk.salyk.kg [13:22:08]written 0, free lines is 4095 [13:22:08]Write to MH i2c: 01 00 00 A9 0C B5 [13:22:08]Write i2c OK [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 07 00 [13:22:08]MH_I2C_Read... [13:22:08]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 D6 0C 9E [13:22:08]RasterBufferAndPrint [13:22:08]line [13:22:08]line [13:22:08]line [13:22:08]line [13:22:08]line [13:22:08]written 0, free lines is 3293 [13:22:08]Connected sock=10 [13:22: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 0C 01 00 00 4B 9B 04 01 B8 E6 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 62 6A 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 00 93 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 93 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 93 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 FF B6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0C 7C 97 1B F3 F4 60 DB 71 79 20 56 B8 A0 [13:22:09]MH_Cut [13:22:09]Write to MH i2c: D1 01 00 B0 0C 01 8E [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: D1 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: D1 01 00 [13:22:09]MH_I2C_Read... [13:22:09]Read from MH i2c: D1 01 00 B0 0C 00 8D [13:22:09]Write to MH i2c: 01 00 00 B1 0C BD [13:22:09]Write i2c OK [13:22:09]MH_I2C_Read... [13:22: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 B9 60 47 00 C1 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 BF 06 01 00 F4 03 04 00 DD 5E 44 66 B6 04 01 00 00 23 0A C9 FB 8B 14 2A 97 [13:22:09]CommunicateWithHost err = 0 [13:22:09]CheckOFDResponse [13:22:09]1017 (14) - 77093643461234 [13:22:09]1041 (16) - 0000000000871829 [13:22:09]1040 (4) - 67263 [13:22:09]1012 (4) - 15.05.2024 07:06 [13:22:09]1206 (1) - 0 [13:22:09]OFD Sender: Remove packet 67263 [13:22:09]ProducePacketName [13:22:09]name=ofd_packets/00067263 [13:22:09]NVStorageDeleteData [13:22:09]*** Cut start [13:22:09]*** Purtial cut [13:22:09]*** Stage 1: CUTSNS_PIN = 1 [13:22:10]OFD Sender: No OFD packet to send [13:22:10]Read from MH i2c: 01 [13:22:10]MH_I2C_Read... [13:22:10]*** Stop cut motor [13:22:10]*** Cut end [13:22:10]Read from MH i2c: 01 07 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [13:22:10]process_action close_receipt done [13:22:10]requested_data is exist [13:22:10]produce_requested_data [13:22:10]requested_item fm.sn is exist - process it [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 11 00 00 [13:22:10]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [13:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:22:10]wFMCommunicate OK [13:22:10]requested_item fd.num is exist - process it [13:22:10]SAM_PROTO_GetFieldsCounters [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 13 00 00 [13:22:10]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 62 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 62 00 B3 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 BF 06 01 00 0E 04 04 00 64 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 7F [13:22: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 BF 06 01 00 0E 04 04 00 64 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 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_GetFieldsCounters done [13:22:10]requested_item shift.num is exist - process it [13:22:10]requested_item shift.opened is exist - process it [13:22:10]req_shift_opened [13:22:10]FM_GetShiftState [13:22:10]SAM_PROTO_GetShiftState [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 13 01 00 [13:22:10]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0E 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E8 [13:22:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_GetShiftState done [13:22:10]FM_GetShiftState done [13:22:10]req_shift_opened done [13:22:10]requested_item shift.open_date is exist - process it [13:22:10]req_shift_open_date [13:22:10]req_shift_open_date done [13:22:10]produce_requested_data done [13:22:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67263,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:22:10]process_action_free close_receipt [13:22:10]json_value_free [13:22:10]json_value_free done [13:22:10]process_json_proto returns [13:22:10]Send response to host [13:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67263,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:22:10]free response buf [13:22:10]execute_script done [13:22:10]execute_script returns [13:22:10]free content buf [13:22:10]Sock 7.Close socket [13:22:10]Sock 7.Thread stoped [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:27]accept exits with 9 [13:25:27]New connection [13:25:27]New thread 3067030884 created [13:25:27]Thread 3067174244 joined [13:25:27]Waiting for new connection... [13:25:27] Sock 9.Parse request [13:25:27]Sock 9.Check first char [13:25:27]Sock 9.First char is OK [13:25:27]request: POST /json_proto HTTP/1.0 [13:25:27]Method: POST [13:25:27]URL: /json_proto [13:25:27]Method is POST - this is cgi request [13:25:27]url: /json_proto [13:25:27]query_string will be loaded in cgi processing [13:25:27]execute_cgi json_proto POST (null) [13:25:27]execute_cgi path=json_proto method=POST [13:25:27]POST find Content-Length [13:25:27]Host: 172.17.41.195:8080 [13:25:27]Content-Length: 803 [13:25:27]Content-Type: application/json [13:25:27] [13:25:27]POST finish read [13:25:27]Found Content-Length = 803 [13:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507240", "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" ] } } [13:25:27]execute_script... [13:25: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)507240", "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" ] } } [13:25:27]POST & json_proto [13:25:27]process_json_proto [13:25:27]json parsed OK: [13:25:27]protocol is kg_v1.0 [13:25:27]action value=close_receipt [13:25:27]process_action close_receipt [13:25:27]cmd_close_receipt [13:25:27]MH_GetDate [13:25:27]Write to MH i2c: F0 00 00 B5 0C B0 [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 09 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: F0 09 00 B5 0C 00 C8 B7 44 66 FC 21 6F 64 D2 [13:25:27]GetLastDocTimeStamp 1715779327 [13:25:27]current date 1715779528 [13:25:27]FM_GetShiftState [13:25:27]SAM_PROTO_GetShiftState [13:25:27]wFMCommunicate request_size=4 [13:25:27]MH_SAM_APDU [13:25:27]CAPDU: 80 13 01 00 [13:25:27]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:27]Read from MH i2c: E2 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 0E 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EA [13:25:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:25:27]wFMCommunicate OK [13:25:27]SAM_PROTO_GetShiftState done [13:25:27]FM_GetShiftState done [13:25:27]opened in 1715732471 [13:25:27]opened+sec_in_day 1715818871 [13:25:27]quantity*price = 100066 [13:25:27]sum+1 = 100067 [13:25:27]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 15.05.2024 13:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67264 ФПД: 174406995514241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67264&fm=174406995514241&tin=02508201610067®Number=0000000000091845&sum=100066 [13:25:28]StoreToDocumentArchive [13:25:28]shift 356 fd 67264 [13:25:28]save to /storage/0356/doc_00067264 [13:25:28]save last doc name /storage/0356/doc_00067264 to /storage/kkm_last_doc_name [13:25:28]save OK [13:25:28]Clear old archive folders... [13:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:28]tlvbuf is 00B01C60 [13:25:28]SAM_PROTO_ClearQueue [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 09 00 00 [13:25:28]Write to MH i2c: E2 08 00 C3 0C 80 09 00 00 00 00 00 00 41 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]SAM_PROTO_ClearQueue done [13:25:28]KKMCreateOFDPacket [13:25:28]OFDProtocolAddRootSTLVToBuf [13:25:28]FM_MakeSignedData [13:25:28]FM_MakeSignedData [13:25:28]SAM_PROTO_SignData [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 0D 01 02 [13:25:28]Write to MH i2c: E2 08 00 C4 0C 80 0D 01 02 00 00 00 00 49 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]wFMCommunicate request_size=255 [13:25:28]MH_SAM_APDU [13:25:28]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 C8 B7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E [13:25:28]Write to MH i2c: E2 02 01 C5 0C 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 C8 B7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E 00 00 EB [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [13:25:29]RAPDU: 90 00 [13:25:29]wFMCommunicate OK [13:25:29]wFMCommunicate request_size=10 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 0D 02 02 05 9F 4B 03 93 81 [13:25:29]Write to MH i2c: E2 0D 00 C6 0C 80 0D 02 02 05 00 9F 4B 03 93 81 00 00 57 [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [13:25:29]RAPDU: 90 00 [13:25:29]wFMCommunicate OK [13:25:29]wFMCommunicate request_size=4 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 0D 03 02 [13:25:29]Write to MH i2c: E2 08 00 C7 0C 80 0D 03 02 00 00 00 00 4E [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0B 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0B 00 C7 0C 00 A7 95 33 0B 3C 35 2C 0C 90 00 72 [13:25:29]RAPDU: A7 95 33 0B 3C 35 2C 0C 90 00 [13:25:29]wFMCommunicate OK [13:25:29]SAM_PROTO_SignData done [13:25:29]FM_MakeSignedData done [13:25:29]CreateOFDProtocolMessage [13:25:29]wFMCommunicate request_size=4 [13:25:29]MH_SAM_APDU [13:25:29]CAPDU: 80 11 00 00 [13:25:29]Write to MH i2c: E2 08 00 C8 0C 80 11 00 00 00 00 00 00 4E [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 17 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 17 00 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [13:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:25:29]wFMCommunicate OK [13:25:29]CreateOFDProtocolMessage done [13:25:29]OFDSenderStorePacket 67264 [13:25:29]StoreOFDPacket docnum=67264 [13:25:29]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 C6 1C 07 01 3D 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 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 C8 B7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E 9F 4B 03 93 81 A7 95 33 0B 3C 35 2C 0C [13:25:29]CheckFolder [13:25:29]dirname=/storage/ofd_packets [13:25:29]CheckFolder done [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00067264 [13:25:29]NVStorageSaveData ofd_packets/00067264 [13:25:29]File name is /storage/ofd_packets/00067264 [13:25:29]Write 301 bytes [13:25:29]NVStorageSaveData done [13:25:29]OFDSenderStorePacket done [13:25:29]KKMCreateOFDPacket done [13:25:29]NVStorageSaveData kkm_last_timestamp [13:25:29]File name is /storage/kkm_last_timestamp [13:25:29]Write 4 bytes [13:25:29]NVStorageSaveData done [13:25:29]ExternCall_PrintAddStr [13:25:29]wPrintStart [13:25:29]Write to MH i2c: 01 00 00 C9 0C D5 [13:25:29]Write i2c OK [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 07 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [13:25:29]RasterBufferAndPrint [13:25:29]line Счет N : (1)507240 [13:25:29]line ИНН: 02508201610067 [13:25:29]line Контрольно-Кассовый Чек [13:25:29]line ПРОДАЖА [13:25:29]line ТРК (МРК, ГНК) : 43 [13:25:29]line Товар: 2710124130 [13:25:29]line Аи-92-К-5 [13:25:29]line 14.980 * 66.80 [13:25:29]line = 1000.66 [13:25:29]line НДС 12% НСП 1% [13:25:29]line > о реализуемом товаре [13:25:29]line ИТОГО: 1000.66 [13:25:29]line НСП 1% : 8.85 [13:25:29]line НДС 12% : 106.26 [13:25:29]line Наличными: 0.00 [13:25:29]line Безнал.: 1000.66 [13:25:29]line Место: АЗС № 91 "Партнер Нефть" [13:25:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:25:29]line СНО: Общий режим [13:25:29]line Чек 82 15.05.2024 13:25 [13:25:29]line Смена: 356 ФФД: 1.0 [13:25:29]line ЗНМ: 0300000119 [13:25:29]line РНМ: 0000000000091845 [13:25:29]line Версия ККМ: 001 [13:25:29]line Платежная система: O! деньги [13:25:29]line ФМ: 0000000000871829 [13:25:29]line ФД: 67264 [13:25:29]line ФПД: 174406995514241 [13:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67264&fm=174406995514241&tin=02508201610067®Number=0000000000091845&sum=100066 [13:25:29]OFD Sender: Processing packet 67264 [packets to send 35, broken 34] [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00067264 [13:25:29]OFD Sender: To server: pG, [13:25:29]CommunicateWithHost lk.salyk.kg:30040 [13:25:29]ConnectInit lk.salyk.kg [13:25:29]written 0, free lines is 4095 [13:25:29]Connected sock=10 [13:25: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 0F 01 00 00 C6 1C 07 01 3D 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 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 C8 B7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E 9F 4B 03 93 81 A7 95 33 0B 3C 35 2C 0C [13:25: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 75 35 47 00 83 DB 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 06 01 00 F4 03 04 00 A5 5F 44 66 B6 04 01 00 00 70 E3 EE E6 BA 04 E9 9B [13:25:30]CommunicateWithHost err = 0 [13:25:30]CheckOFDResponse [13:25:30]1017 (14) - 77093643461234 [13:25:30]1041 (16) - 0000000000871829 [13:25:30]1040 (4) - 67264 [13:25:30]1012 (4) - 15.05.2024 07:09 [13:25:30]1206 (1) - 0 [13:25:30]OFD Sender: Remove packet 67264 [13:25:30]ProducePacketName [13:25:30]name=ofd_packets/00067264 [13:25:30]NVStorageDeleteData [13:25:30]Write to MH i2c: 01 00 00 F2 0C FE [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 F2 0C 00 00 00 00 00 DC 0C ED [13:25:30]RasterBufferAndPrint [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]line [13:25:30]written 0, free lines is 3298 [13:25:30]MH_Cut [13:25:30]Write to MH i2c: D1 01 00 F9 0C 01 D7 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 01 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: D1 01 00 F9 0C 00 D6 [13:25:30]Write to MH i2c: 01 00 00 FA 0C 06 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]OFD Sender: No OFD packet to send [13:25:30]*** Cut start [13:25:30]*** Purtial cut [13:25:30]*** CUTSNS_PIN = 0 [13:25:31]*** Stage 1: CUTSNS_PIN = 1 [13:25:32]Read from MH i2c: 01 [13:25:32]MH_I2C_Read... [13:25:32]*** Stop cut motor [13:25:33]*** Cut end [13:25:33]Read from MH i2c: 01 07 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: 01 07 00 FA 0C 00 00 00 00 00 FF 0F 1B [13:25:33]process_action close_receipt done [13:25:33]requested_data is exist [13:25:33]produce_requested_data [13:25:33]requested_item fm.sn is exist - process it [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 11 00 00 [13:25:33]Write to MH i2c: E2 08 00 FB 0C 80 11 00 00 00 00 00 00 81 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 17 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 17 00 FB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D7 [13:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:25:33]wFMCommunicate OK [13:25:33]requested_item fd.num is exist - process it [13:25:33]SAM_PROTO_GetFieldsCounters [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 13 00 00 [13:25:33]Write to MH i2c: E2 08 00 FC 0C 80 13 00 00 00 00 00 00 84 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 62 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 62 00 FC 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 C0 06 01 00 0E 04 04 00 64 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 CC [13:25: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 C0 06 01 00 0E 04 04 00 64 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 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_GetFieldsCounters done [13:25:33]requested_item shift.num is exist - process it [13:25:33]requested_item shift.opened is exist - process it [13:25:33]req_shift_opened [13:25:33]FM_GetShiftState [13:25:33]SAM_PROTO_GetShiftState [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 13 01 00 [13:25:33]Write to MH i2c: E2 08 00 FD 0C 80 13 01 00 00 00 00 00 86 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 FD 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 31 [13:25:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_GetShiftState done [13:25:33]FM_GetShiftState done [13:25:33]req_shift_opened done [13:25:33]requested_item shift.open_date is exist - process it [13:25:33]req_shift_open_date [13:25:33]req_shift_open_date done [13:25:33]produce_requested_data done [13:25:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67264,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:25:33]process_action_free close_receipt [13:25:33]json_value_free [13:25:33]json_value_free done [13:25:33]process_json_proto returns [13:25:33]Send response to host [13:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67264,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:25:33]free response buf [13:25:33]execute_script done [13:25:33]execute_script returns [13:25:33]free content buf [13:25:33]Sock 9.Close socket [13:25:33]Sock 9.Thread stoped [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]accept exits with 7 [13:27:35]New connection [13:27:35]New thread 3067174244 created [13:27:35]Thread 3067030884 joined [13:27:35]Waiting for new connection... [13:27:35] Sock 7.Parse request [13:27:35]Sock 7.Check first char [13:27:35]Sock 7.First char is OK [13:27:35]request: POST /json_proto HTTP/1.0 [13:27:35]Method: POST [13:27:35]URL: /json_proto [13:27:35]Method is POST - this is cgi request [13:27:35]url: /json_proto [13:27:35]query_string will be loaded in cgi processing [13:27:35]execute_cgi json_proto POST (null) [13:27:35]execute_cgi path=json_proto method=POST [13:27:35]POST find Content-Length [13:27:35]Host: 172.17.41.195:8080 [13:27:35]Content-Length: 610 [13:27:35]Content-Type: application/json [13:27:35] [13:27:35]POST finish read [13:27:35]Found Content-Length = 610 [13:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12072", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:35]execute_script... [13:27: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 : (3)12072", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:35]POST & json_proto [13:27:35]process_json_proto [13:27:35]json parsed OK: [13:27:35]protocol is kg_v1.0 [13:27:35]action value=close_receipt [13:27:35]process_action close_receipt [13:27:35]cmd_close_receipt [13:27:35]MH_GetDate [13:27:35]Write to MH i2c: F0 00 00 FE 0C F9 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 09 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: F0 09 00 FE 0C 00 48 B8 44 66 FC 21 6F 64 9C [13:27:35]GetLastDocTimeStamp 1715779528 [13:27:35]current date 1715779656 [13:27:35]FM_GetShiftState [13:27:35]SAM_PROTO_GetShiftState [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 01 00 [13:27:35]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 33 [13:27:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetShiftState done [13:27:35]FM_GetShiftState done [13:27:35]opened in 1715732471 [13:27:35]opened+sec_in_day 1715818871 [13:27:35]quantity*price = 8700 [13:27:35]sum+1 = 8701 [13:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 83 15.05.2024 13:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67265 ФПД: 18683553766291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67265&fm=18683553766291&tin=02508201610067®Number=0000000000091845&sum=8700 0 [13:27:36]StoreToDocumentArchive [13:27:36]shift 356 fd 67265 [13:27:36]save to /storage/0356/doc_00067265 [13:27:36]save last doc name /storage/0356/doc_00067265 to /storage/kkm_last_doc_name [13:27:36]save OK [13:27:36]Clear old archive folders... [13:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=266 [13:27:36]tlvbuf is 00B06FA0 [13:27:36]SAM_PROTO_ClearQueue [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 09 00 00 [13:27:36]Write to MH i2c: E2 08 00 0C 0D 80 09 00 00 00 00 00 00 8B [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]SAM_PROTO_ClearQueue done [13:27:36]KKMCreateOFDPacket [13:27:36]OFDProtocolAddRootSTLVToBuf [13:27:36]FM_MakeSignedData [13:27:36]FM_MakeSignedData [13:27:36]SAM_PROTO_SignData [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 01 02 [13:27:36]Write to MH i2c: E2 08 00 0D 0D 80 0D 01 02 00 00 00 00 93 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]wFMCommunicate request_size=255 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 48 B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [13:27:36]Write to MH i2c: E2 02 01 0E 0D 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 48 B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 51 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]wFMCommunicate request_size=25 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 02 02 14 32 39 10 04 04 00 C1 06 01 00 35 04 06 00 10 FE 1A 95 DB 93 [13:27:36]Write to MH i2c: E2 1C 00 0F 0D 80 0D 02 02 14 00 32 39 10 04 04 00 C1 06 01 00 35 04 06 00 10 FE 1A 95 DB 93 00 00 73 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:36]Read from MH i2c: E2 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 [13:27:36]MH_I2C_Read... [13:27:36]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [13:27:36]RAPDU: 90 00 [13:27:36]wFMCommunicate OK [13:27:36]wFMCommunicate request_size=4 [13:27:36]MH_SAM_APDU [13:27:36]CAPDU: 80 0D 03 02 [13:27:36]Write to MH i2c: E2 08 00 10 0D 80 0D 03 02 00 00 00 00 98 [13:27:36]Write i2c OK [13:27:36]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0B 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 0B 00 10 0D 00 5A 45 85 01 ED 22 8B E6 90 00 3E [13:27:37]RAPDU: 5A 45 85 01 ED 22 8B E6 90 00 [13:27:37]wFMCommunicate OK [13:27:37]SAM_PROTO_SignData done [13:27:37]FM_MakeSignedData done [13:27:37]CreateOFDProtocolMessage [13:27:37]wFMCommunicate request_size=4 [13:27:37]MH_SAM_APDU [13:27:37]CAPDU: 80 11 00 00 [13:27:37]Write to MH i2c: E2 08 00 11 0D 80 11 00 00 00 00 00 00 98 [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:37]Read from MH i2c: E2 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 17 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: E2 17 00 11 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EE [13:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:27:37]wFMCommunicate OK [13:27:37]CreateOFDProtocolMessage done [13:27:37]OFDSenderStorePacket 67265 [13:27:37]StoreOFDPacket docnum=67265 [13:27: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 1E 01 00 00 99 A4 16 01 6F 3A 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 48 B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 10 FE 1A 95 DB 93 5A 45 85 01 ED 22 8B E6 [13:27:37]CheckFolder [13:27:37]dirname=/storage/ofd_packets [13:27:37]CheckFolder done [13:27:37]ProducePacketName [13:27:37]name=ofd_packets/00067265 [13:27:37]NVStorageSaveData ofd_packets/00067265 [13:27:37]File name is /storage/ofd_packets/00067265 [13:27:37]Write 316 bytes [13:27:37]NVStorageSaveData done [13:27:37]OFDSenderStorePacket done [13:27:37]KKMCreateOFDPacket done [13:27:37]NVStorageSaveData kkm_last_timestamp [13:27:37]File name is /storage/kkm_last_timestamp [13:27:37]Write 4 bytes [13:27:37]NVStorageSaveData done [13:27:37]ExternCall_PrintAddStr [13:27:37]wPrintStart [13:27:37]Write to MH i2c: 01 00 00 12 0D 1F [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 12 0D 00 00 00 00 00 FF 0F 34 [13:27:37]RasterBufferAndPrint [13:27:37]line Счет N : (3)12072 [13:27:37]line ИНН: 02508201610067 [13:27:37]line Контрольно-Кассовый Чек [13:27:37]line ПРОДАЖА [13:27:37]line Товар: 4870001570071 [13:27:37]line Напиток Pepsi 1л [13:27:37]line 1.000 * 87.00 [13:27:37]line = 87.00 [13:27:37]line НДС 12% НСП 1% [13:27:37]line > о реализуемом товаре [13:27:37]line ИТОГО: 87.00 [13:27:37]line НСП 1% : 0.77 [13:27:37]line НДС 12% : 9.24 [13:27:37]line Наличными: 87.00 [13:27:37]line Безнал.: 0.00 [13:27:37]line Место: АЗС № 91 "Партнер Нефть" [13:27:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:27:37]line СНО: Общий режим [13:27:37]line Чек 83 15.05.2024 13:27 [13:27:37]line Смена: 356 ФФД: 1.0 [13:27:37]line ЗНМ: 0300000119 [13:27:37]line РНМ: 0000000000091845 [13:27:37]line Версия ККМ: 001 [13:27:37]line ФМ: 0000000000871829 [13:27:37]line ФД: 67265 [13:27:37]line ФПД: 18683553766291 [13:27:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67265&fm=18683553766291&tin=02508201610067®Number=0000000000091845&sum=8700 [13:27:37]line 0 [13:27:37]OFD Sender: Processing packet 67265 [packets to send 35, broken 34] [13:27:37]ProducePacketName [13:27:37]name=ofd_packets/00067265 [13:27:37]OFD Sender: To server: pG, [13:27:37]CommunicateWithHost lk.salyk.kg:30040 [13:27:37]ConnectInit lk.salyk.kg [13:27:37]written 0, free lines is 4095 [13:27:37]Write to MH i2c: 01 00 00 39 0D 46 [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: 01 07 00 39 0D 00 00 00 00 00 E7 0C 40 [13:27:37]RasterBufferAndPrint [13:27:37]line [13:27:37]line [13:27:37]line [13:27:37]line [13:27:37]line [13:27:37]written 0, free lines is 3308 [13:27:37]MH_Cut [13:27:37]Write to MH i2c: D1 01 00 40 0D 01 1F [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: D1 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: D1 01 00 [13:27:37]MH_I2C_Read... [13:27:37]Read from MH i2c: D1 01 00 40 0D 00 1E [13:27:37]Write to MH i2c: 01 00 00 41 0D 4E [13:27:37]Write i2c OK [13:27:37]MH_I2C_Read... [13:27:38]*** Cut start [13:27:38]*** Purtial cut [13:27:38]*** Stage 1: CUTSNS_PIN = 1 [13:27:38]Read from MH i2c: 01 [13:27:38]MH_I2C_Read... [13:27:38]*** Stop cut motor [13:27:38]*** Cut end [13:27:38]Read from MH i2c: 01 07 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: 01 07 00 41 0D 00 00 00 00 00 FF 0F 63 [13:27:38]process_action close_receipt done [13:27:38]requested_data is exist [13:27:38]produce_requested_data [13:27:38]requested_item fm.sn is exist - process it [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 11 00 00 [13:27:38]Write to MH i2c: E2 08 00 42 0D 80 11 00 00 00 00 00 00 C9 [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:38]Read from MH i2c: E2 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 17 00 [13:27:38]MH_I2C_Read... [13:27:38]Read from MH i2c: E2 17 00 42 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [13:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:27:38]wFMCommunicate OK [13:27:38]requested_item fd.num is exist - process it [13:27:38]SAM_PROTO_GetFieldsCounters [13:27:38]wFMCommunicate request_size=4 [13:27:38]MH_SAM_APDU [13:27:38]CAPDU: 80 13 00 00 [13:27:38]Write to MH i2c: E2 08 00 43 0D 80 13 00 00 00 00 00 00 CC [13:27:38]Write i2c OK [13:27:38]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 62 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 62 00 43 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 C1 06 01 00 0E 04 04 00 64 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 18 [13:27: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 C1 06 01 00 0E 04 04 00 64 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 [13:27:39]wFMCommunicate OK [13:27:39]SAM_PROTO_GetFieldsCounters done [13:27:39]requested_item shift.num is exist - process it [13:27:39]requested_item shift.opened is exist - process it [13:27:39]req_shift_opened [13:27:39]FM_GetShiftState [13:27:39]SAM_PROTO_GetShiftState [13:27:39]wFMCommunicate request_size=4 [13:27:39]MH_SAM_APDU [13:27:39]CAPDU: 80 13 01 00 [13:27:39]Write to MH i2c: E2 08 00 44 0D 80 13 01 00 00 00 00 00 CE [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:39]Read from MH i2c: E2 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0E 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: E2 0E 00 44 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 79 [13:27:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:27:39]wFMCommunicate OK [13:27:39]SAM_PROTO_GetShiftState done [13:27:39]FM_GetShiftState done [13:27:39]req_shift_opened done [13:27:39]requested_item shift.open_date is exist - process it [13:27:39]req_shift_open_date [13:27:39]req_shift_open_date done [13:27:39]produce_requested_data done [13:27:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67265,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:27:39]process_action_free close_receipt [13:27:39]json_value_free [13:27:39]json_value_free done [13:27:39]process_json_proto returns [13:27:39]Send response to host [13:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67265,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:27:39]free response buf [13:27:39]execute_script done [13:27:39]execute_script returns [13:27:39]free content buf [13:27:39]Sock 7.Close socket [13:27:39]Sock 7.Thread stoped [13:27:59]accept exits with 9 [13:27:59]New connection [13:27:59]New thread 3067030884 created [13:27:59]Thread 3067174244 joined [13:27:59]Waiting for new connection... [13:27:59] Sock 9.Parse request [13:27:59]Sock 9.Check first char [13:27:59]Sock 9.First char is OK [13:27:59]request: POST /json_proto HTTP/1.0 [13:27:59]Method: POST [13:27:59]URL: /json_proto [13:27:59]Method is POST - this is cgi request [13:27:59]url: /json_proto [13:27:59]query_string will be loaded in cgi processing [13:27:59]execute_cgi json_proto POST (null) [13:27:59]execute_cgi path=json_proto method=POST [13:27:59]POST find Content-Length [13:27:59]Host: 172.17.41.195:8080 [13:27:59]Content-Length: 1209 [13:27:59]Content-Type: application/json [13:27:59] [13:27:59]POST finish read [13:27:59]Found Content-Length = 1209 [13:27:59]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)507242\u000A15.05.2024 13:10\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 33.470 x 74.70\u000A\u0418\u0422\u041E\u0413: 2500.21\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" ] } } [13:27:59]execute_script... [13:27:59]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)507242\u000A15.05.2024 13:10\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 33.470 x 74.70\u000A\u0418\u0422\u041E\u0413: 2500.21\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" ] } } [13:27:59]POST & json_proto [13:27:59]process_json_proto [13:27:59]json parsed OK: [13:27:59]protocol is kg_v1.0 [13:27:59]action value=print_text [13:27:59]process_action print_text [13:27:59]cmd_print_text [13:27:59]ExternCall_PrintAddStr [13:27:59]wPrintStart [13:27:59]Write to MH i2c: 01 00 00 45 0D 52 [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 07 00 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 FF 0F 67 [13:27:59]RasterBufferAndPrint [13:27:59]line *****ТОВАРНЫЙ ЧЕК***** [13:27:59]line АЗС-91 [13:27:59]line Партнер нефть [13:27:59]line 02508201610067 [13:27:59]line Кассир : Арстанбеков Н. [13:27:59]line Счет N : (1)507242 [13:27:59]line 15.05.2024 13:10 [13:27:59]line ПРОДАЖА [13:27:59]line ТРК (МРК, ГНК): 31 [13:27:59]line Вид ГСМ : 2710194210 [13:27:59]line ДТ-К-5 [13:27:59]line 33.470 x 74.70 [13:27:59]line ИТОГ: 2500.21 [13:27:59]line Тип оплаты: Талоны: Топливная Карта [13:27:59]line 02750 [13:27:59]line ______________________ [13:27:59]line (подпись) [13:27:59]written 0, free lines is 4095 [13:27:59]Write to MH i2c: 01 00 00 59 0D 66 [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 07 00 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 0E 0E 89 [13:27:59]RasterBufferAndPrint [13:27:59]line [13:27:59]line [13:27:59]line [13:27:59]line [13:27:59]line [13:27:59]written 0, free lines is 3600 [13:27:59]MH_Cut [13:27:59]Write to MH i2c: D1 01 00 60 0D 01 3F [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: D1 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: D1 01 00 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: D1 01 00 60 0D 00 3E [13:27:59]Write to MH i2c: 01 00 00 61 0D 6E [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:28:00]*** Cut start [13:28:00]*** Purtial cut [13:28:00]*** CUTSNS_PIN = 0 [13:28:00]*** Stage 1: CUTSNS_PIN = 1 [13:28:02]Read from MH i2c: 01 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: 01 07 00 [13:28:02]MH_I2C_Read... [13:28:02]*** Stop cut motor [13:28:02]*** Cut end [13:28:02]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [13:28:02]process_action print_text done [13:28:02]requested_data is exist [13:28:02]produce_requested_data [13:28:02]requested_item fm.sn is exist - process it [13:28:02]wFMCommunicate request_size=4 [13:28:02]MH_SAM_APDU [13:28:02]CAPDU: 80 11 00 00 [13:28:02]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:02]Read from MH i2c: E2 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 17 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [13:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:28:02]wFMCommunicate OK [13:28:02]requested_item fd.num is exist - process it [13:28:02]SAM_PROTO_GetFieldsCounters [13:28:02]wFMCommunicate request_size=4 [13:28:02]MH_SAM_APDU [13:28:02]CAPDU: 80 13 00 00 [13:28:02]Write to MH i2c: E2 08 00 63 0D 80 13 00 00 00 00 00 00 EC [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:02]Read from MH i2c: E2 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 62 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 62 00 63 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 C1 06 01 00 0E 04 04 00 64 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 38 [13:28: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 C1 06 01 00 0E 04 04 00 64 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 [13:28:02]wFMCommunicate OK [13:28:02]SAM_PROTO_GetFieldsCounters done [13:28:02]requested_item shift.num is exist - process it [13:28:02]requested_item shift.opened is exist - process it [13:28:02]req_shift_opened [13:28:02]FM_GetShiftState [13:28:02]SAM_PROTO_GetShiftState [13:28:02]wFMCommunicate request_size=4 [13:28:02]MH_SAM_APDU [13:28:02]CAPDU: 80 13 01 00 [13:28:02]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [13:28:02]Write i2c OK [13:28:02]MH_I2C_Read... [13:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:02]Read from MH i2c: E2 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 0E 00 [13:28:02]MH_I2C_Read... [13:28:02]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 99 [13:28:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:28:02]wFMCommunicate OK [13:28:02]SAM_PROTO_GetShiftState done [13:28:02]FM_GetShiftState done [13:28:02]req_shift_opened done [13:28:02]requested_item shift.open_date is exist - process it [13:28:02]req_shift_open_date [13:28:02]req_shift_open_date done [13:28:02]produce_requested_data done [13:28:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67265,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:28:02]process_action_free print_text [13:28:02]json_value_free [13:28:02]json_value_free done [13:28:02]process_json_proto returns [13:28:02]Send response to host [13:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67265,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:28:02]free response buf [13:28:02]execute_script done [13:28:02]execute_script returns [13:28:02]free content buf [13:28:02]Sock 9.Close socket [13:28:02]Sock 9.Thread stoped [13:29:01]accept exits with 7 [13:29:01]New connection [13:29:01]New thread 3067174244 created [13:29:01]Thread 3067030884 joined [13:29:01]Waiting for new connection... [13:29:01] Sock 7.Parse request [13:29:01]Sock 7.Check first char [13:29:01]Sock 7.First char is OK [13:29:01]request: POST /json_proto HTTP/1.0 [13:29:01]Method: POST [13:29:01]URL: /json_proto [13:29:01]Method is POST - this is cgi request [13:29:01]url: /json_proto [13:29:01]query_string will be loaded in cgi processing [13:29:01]execute_cgi json_proto POST (null) [13:29:01]execute_cgi path=json_proto method=POST [13:29:01]POST find Content-Length [13:29:01]Host: 172.17.41.195:8080 [13:29:01]Content-Length: 800 [13:29:01]Content-Type: application/json [13:29:01] [13:29:01]POST finish read [13:29:01]Found Content-Length = 800 [13:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507241", "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" : 80.330, "sum" : 6000.65, "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" : 6000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:01]execute_script... [13:29: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)507241", "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" : 80.330, "sum" : 6000.65, "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" : 6000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:01]POST & json_proto [13:29:01]process_json_proto [13:29:01]json parsed OK: [13:29:01]protocol is kg_v1.0 [13:29:01]action value=close_receipt [13:29:01]process_action close_receipt [13:29:01]cmd_close_receipt [13:29:01]MH_GetDate [13:29:01]Write to MH i2c: F0 00 00 65 0D 61 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 65 0D 00 9E B8 44 66 FC 21 6F 64 5A [13:29:01]GetLastDocTimeStamp 1715779656 [13:29:01]current date 1715779742 [13:29:01]FM_GetShiftState [13:29:01]SAM_PROTO_GetShiftState [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 01 00 [13:29:01]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9B [13:29:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetShiftState done [13:29:01]FM_GetShiftState done [13:29:01]opened in 1715732471 [13:29:01]opened+sec_in_day 1715818871 [13:29:01]quantity*price = 600065 [13:29:01]sum+1 = 600066 [13:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.65 НСП 1% : 53.10 НДС 12% : 637.24 Наличными: 0.00 Безнал.: 6000.65 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 84 15.05.2024 13:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67266 ФПД: 102154814492383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132902&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67266&fm=102154814492383&tin=02508201610067®Number=0000000000091845&sum=600065 [13:29:02]StoreToDocumentArchive [13:29:02]shift 356 fd 67266 [13:29:02]save to /storage/0356/doc_00067266 [13:29:02]save last doc name /storage/0356/doc_00067266 to /storage/kkm_last_doc_name [13:29:02]save OK [13:29:02]Clear old archive folders... [13:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:02]tlvbuf is 00B43960 [13:29:02]SAM_PROTO_ClearQueue [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 09 00 00 [13:29:02]Write to MH i2c: E2 08 00 73 0D 80 09 00 00 00 00 00 00 F2 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_ClearQueue done [13:29:02]KKMCreateOFDPacket [13:29:02]OFDProtocolAddRootSTLVToBuf [13:29:02]FM_MakeSignedData [13:29:02]FM_MakeSignedData [13:29:02]SAM_PROTO_SignData [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 0D 01 02 [13:29:02]Write to MH i2c: E2 08 00 74 0D 80 0D 01 02 00 00 00 00 FA [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]wFMCommunicate request_size=255 [13:29:02]MH_SAM_APDU [13:29:02]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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5C E8 C5 6E [13:29:02]Write to MH i2c: E2 02 01 75 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5C E8 C5 6E 00 00 F0 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=7 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 02 02 02 0E DF [13:29:03]Write to MH i2c: E2 0A 00 76 0D 80 0D 02 02 02 00 0E DF 00 00 EE [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 03 02 [13:29:03]Write to MH i2c: E2 08 00 77 0D 80 0D 03 02 00 00 00 00 FF [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 77 0D 00 E1 77 DD BA C8 1A F9 0E 90 00 D8 [13:29:03]RAPDU: E1 77 DD BA C8 1A F9 0E 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_SignData done [13:29:03]FM_MakeSignedData done [13:29:03]CreateOFDProtocolMessage [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 11 00 00 [13:29:03]Write to MH i2c: E2 08 00 78 0D 80 11 00 00 00 00 00 00 FF [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 55 [13:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:29:03]wFMCommunicate OK [13:29:03]CreateOFDProtocolMessage done [13:29:03]OFDSenderStorePacket 67266 [13:29:03]StoreOFDPacket docnum=67266 [13:29: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 0C 01 00 00 9E 55 04 01 30 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5C E8 C5 6E 0E DF E1 77 DD BA C8 1A F9 0E [13:29:03]CheckFolder [13:29:03]dirname=/storage/ofd_packets [13:29:03]CheckFolder done [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00067266 [13:29:03]NVStorageSaveData ofd_packets/00067266 [13:29:03]File name is /storage/ofd_packets/00067266 [13:29:03]Write 298 bytes [13:29:03]NVStorageSaveData done [13:29:03]OFDSenderStorePacket done [13:29:03]KKMCreateOFDPacket done [13:29:03]NVStorageSaveData kkm_last_timestamp [13:29:03]File name is /storage/kkm_last_timestamp [13:29:03]Write 4 bytes [13:29:03]NVStorageSaveData done [13:29:03]ExternCall_PrintAddStr [13:29:03]wPrintStart [13:29:03]Write to MH i2c: 01 00 00 79 0D 86 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [13:29:03]RasterBufferAndPrint [13:29:03]line Счет N : (1)507241 [13:29:03]line ИНН: 02508201610067 [13:29:03]line Контрольно-Кассовый Чек [13:29:03]line ПРОДАЖА [13:29:03]line ТРК (МРК, ГНК) : 21 [13:29:03]line Товар: 2710194210 [13:29:03]line ДТ-К-5 [13:29:03]line 80.330 * 74.70 [13:29:03]line = 6000.65 [13:29:03]line НДС 12% НСП 1% [13:29:03]line > о реализуемом товаре [13:29:03]line ИТОГО: 6000.65 [13:29:03]line НСП 1% : 53.10 [13:29:03]line НДС 12% : 637.24 [13:29:03]line Наличными: 0.00 [13:29:03]line Безнал.: 6000.65 [13:29:03]line Место: АЗС № 91 "Партнер Нефть" [13:29:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:29:03]line СНО: Общий режим [13:29:03]line Чек 84 15.05.2024 13:29 [13:29:03]line Смена: 356 ФФД: 1.0 [13:29:03]line ЗНМ: 0300000119 [13:29:03]line РНМ: 0000000000091845 [13:29:03]line Версия ККМ: 001 [13:29:03]line Платежная система: O! деньги [13:29:03]line ФМ: 0000000000871829 [13:29:03]line ФД: 67266 [13:29:03]line ФПД: 102154814492383 [13:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T132902&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67266&fm=102154814492383&tin=02508201610067®Number=0000000000091845&sum=600065 [13:29:03]written 0, free lines is 4095 [13:29:03]Write to MH i2c: 01 00 00 A2 0D AF [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 A2 0D 00 00 00 00 00 DA 0C 9C [13:29:03]RasterBufferAndPrint [13:29:03]line [13:29:03]line [13:29:03]line [13:29:03]line [13:29:03]line [13:29:03]written 0, free lines is 3297 [13:29:03]MH_Cut [13:29:03]Write to MH i2c: D1 01 00 A9 0D 01 88 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: D1 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: D1 01 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: D1 01 00 A9 0D 00 87 [13:29:03]Write to MH i2c: 01 00 00 AA 0D B7 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:04]*** Cut start [13:29:04]*** Purtial cut [13:29:04]*** Stage 1: CUTSNS_PIN = 1 [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]*** Stop cut motor [13:29:04]*** Cut end [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 FF 0F CC [13:29:04]process_action close_receipt done [13:29:04]requested_data is exist [13:29:04]produce_requested_data [13:29:04]requested_item fm.sn is exist - process it [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 11 00 00 [13:29:04]Write to MH i2c: E2 08 00 AB 0D 80 11 00 00 00 00 00 00 32 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 AB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [13:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:29:04]wFMCommunicate OK [13:29:04]requested_item fd.num is exist - process it [13:29:04]SAM_PROTO_GetFieldsCounters [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 00 00 [13:29:04]Write to MH i2c: E2 08 00 AC 0D 80 13 00 00 00 00 00 00 35 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 AC 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 C2 06 01 00 0E 04 04 00 64 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 85 [13:29: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 C2 06 01 00 0E 04 04 00 64 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 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetFieldsCounters done [13:29:04]requested_item shift.num is exist - process it [13:29:04]requested_item shift.opened is exist - process it [13:29:04]req_shift_opened [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 AD 0D 80 13 01 00 00 00 00 00 37 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 AD 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E2 [13:29:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_GetShiftState done [13:29:05]FM_GetShiftState done [13:29:05]req_shift_opened done [13:29:05]requested_item shift.open_date is exist - process it [13:29:05]req_shift_open_date [13:29:05]req_shift_open_date done [13:29:05]produce_requested_data done [13:29:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67266,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:29:05]process_action_free close_receipt [13:29:05]json_value_free [13:29:05]json_value_free done [13:29:05]process_json_proto returns [13:29:05]Send response to host [13:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67266,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:29:05]free response buf [13:29:05]execute_script done [13:29:05]execute_script returns [13:29:05]free content buf [13:29:05]Sock 7.Close socket [13:29:05]Sock 7.Thread stoped [13:29:49]ConnectInit Can't connect to host [13:29:49]CommunicateWithHost connect error [13:29:49]CommunicateWithHost err = -1 [13:29:49]OFD Sender: Server communicate error [13:29:49]OFD Sender: Processing packet 67265 [packets to send 36, broken 34] [13:29:49]ProducePacketName [13:29:49]name=ofd_packets/00067265 [13:29:49]OFD Sender: To server: pG, [13:29:49]CommunicateWithHost lk.salyk.kg:30040 [13:29:49]ConnectInit lk.salyk.kg [13:29:49]Connected sock=7 [13:29: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 1E 01 00 00 99 A4 16 01 6F 3A 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 48 B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 10 FE 1A 95 DB 93 5A 45 85 01 ED 22 8B E6 [13:29: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 B2 DF 47 00 BD 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 06 01 00 F4 03 04 00 A9 60 44 66 B6 04 01 00 00 D6 F2 3E C6 DF C2 5E 60 [13:29:49]CommunicateWithHost err = 0 [13:29:49]CheckOFDResponse [13:29:49]1017 (14) - 77093643461234 [13:29:49]1041 (16) - 0000000000871829 [13:29:49]1040 (4) - 67265 [13:29:49]1012 (4) - 15.05.2024 07:13 [13:29:49]1206 (1) - 0 [13:29:49]OFD Sender: Remove packet 67265 [13:29:49]ProducePacketName [13:29:49]name=ofd_packets/00067265 [13:29:49]NVStorageDeleteData [13:29:49]OFD Sender: Processing packet 67266 [packets to send 35, broken 34] [13:29:49]ProducePacketName [13:29:49]name=ofd_packets/00067266 [13:29:49]OFD Sender: To server: pG, [13:29:49]CommunicateWithHost lk.salyk.kg:30040 [13:29:49]ConnectInit lk.salyk.kg [13:29:50]Connected sock=7 [13:29: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 9E 55 04 01 30 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9E B8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5C E8 C5 6E 0E DF E1 77 DD BA C8 1A F9 0E [13:29: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 69 EC 47 00 55 CC 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 06 01 00 F4 03 04 00 AA 60 44 66 B6 04 01 00 00 67 4A 34 6D FF F9 F3 02 [13:29:50]CommunicateWithHost err = 0 [13:29:50]CheckOFDResponse [13:29:50]1017 (14) - 77093643461234 [13:29:50]1041 (16) - 0000000000871829 [13:29:50]1040 (4) - 67266 [13:29:50]1012 (4) - 15.05.2024 07:13 [13:29:50]1206 (1) - 0 [13:29:50]OFD Sender: Remove packet 67266 [13:29:50]ProducePacketName [13:29:50]name=ofd_packets/00067266 [13:29:50]NVStorageDeleteData [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:39]accept exits with 9 [13:30:39]New connection [13:30:39]New thread 3067030884 created [13:30:39]Thread 3067174244 joined [13:30:39]Waiting for new connection... [13:30:39] Sock 9.Parse request [13:30:39]Sock 9.Check first char [13:30:39]Sock 9.First char is OK [13:30:39]request: POST /json_proto HTTP/1.0 [13:30:39]Method: POST [13:30:39]URL: /json_proto [13:30:39]Method is POST - this is cgi request [13:30:39]url: /json_proto [13:30:39]query_string will be loaded in cgi processing [13:30:39]execute_cgi json_proto POST (null) [13:30:39]execute_cgi path=json_proto method=POST [13:30:39]POST find Content-Length [13:30:39]Host: 172.17.41.195:8080 [13:30:39]Content-Length: 800 [13:30:39]Content-Type: application/json [13:30:39] [13:30:39]POST finish read [13:30:39]Found Content-Length = 800 [13:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507243", "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.750, "sum" : 250.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" : 250.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:39]execute_script... [13:30: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)507243", "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.750, "sum" : 250.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" : 250.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:39]POST & json_proto [13:30:39]process_json_proto [13:30:39]json parsed OK: [13:30:39]protocol is kg_v1.0 [13:30:39]action value=close_receipt [13:30:39]process_action close_receipt [13:30:39]cmd_close_receipt [13:30:39]MH_GetDate [13:30:39]Write to MH i2c: F0 00 00 AE 0D AA [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: F0 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: F0 09 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: F0 09 00 AE 0D 00 00 B9 44 66 FC 21 6F 64 06 [13:30:39]GetLastDocTimeStamp 1715779742 [13:30:39]current date 1715779840 [13:30:39]FM_GetShiftState [13:30:39]SAM_PROTO_GetShiftState [13:30:39]wFMCommunicate request_size=4 [13:30:39]MH_SAM_APDU [13:30:39]CAPDU: 80 13 01 00 [13:30:39]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [13:30:39]Write i2c OK [13:30:39]MH_I2C_Read... [13:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:39]Read from MH i2c: E2 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 0E 00 [13:30:39]MH_I2C_Read... [13:30:39]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E4 [13:30:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:30:39]wFMCommunicate OK [13:30:39]SAM_PROTO_GetShiftState done [13:30:39]FM_GetShiftState done [13:30:39]opened in 1715732471 [13:30:39]opened+sec_in_day 1715818871 [13:30:39]quantity*price = 25050 [13:30:39]sum+1 = 25051 [13:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.50 НСП 1% : 2.22 НДС 12% : 26.60 Наличными: 0.00 Безнал.: 250.50 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 85 15.05.2024 13:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67267 ФПД: 65884475238345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133040&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67267&fm=65884475238345&tin=02508201610067®Number=0000000000091845&sum=25050 [13:30:40]StoreToDocumentArchive [13:30:40]shift 356 fd 67267 [13:30:40]save to /storage/0356/doc_00067267 [13:30:40]save last doc name /storage/0356/doc_00067267 to /storage/kkm_last_doc_name [13:30:40]save OK [13:30:40]Clear old archive folders... [13:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:40]tlvbuf is 00B15210 [13:30:40]SAM_PROTO_ClearQueue [13:30:40]wFMCommunicate request_size=4 [13:30:40]MH_SAM_APDU [13:30:40]CAPDU: 80 09 00 00 [13:30:40]Write to MH i2c: E2 08 00 BC 0D 80 09 00 00 00 00 00 00 3B [13:30:40]Write i2c OK [13:30:40]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [13:30:41]RAPDU: 90 00 [13:30:41]wFMCommunicate OK [13:30:41]SAM_PROTO_ClearQueue done [13:30:41]KKMCreateOFDPacket [13:30:41]OFDProtocolAddRootSTLVToBuf [13:30:41]FM_MakeSignedData [13:30:41]FM_MakeSignedData [13:30:41]SAM_PROTO_SignData [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 0D 01 02 [13:30:41]Write to MH i2c: E2 08 00 BD 0D 80 0D 01 02 00 00 00 00 43 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 BD 0D 00 90 00 3E [13:30:41]RAPDU: 90 00 [13:30:41]wFMCommunicate OK [13:30:41]wFMCommunicate request_size=255 [13:30:41]MH_SAM_APDU [13:30:41]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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B [13:30:41]Write to MH i2c: E2 02 01 BE 0D 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B 00 00 57 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [13:30:41]RAPDU: 90 00 [13:30:41]wFMCommunicate OK [13:30:41]wFMCommunicate request_size=10 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 0D 02 02 05 EB EC BE 27 C9 [13:30:41]Write to MH i2c: E2 0D 00 BF 0D 80 0D 02 02 05 00 EB EC BE 27 C9 00 00 D5 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [13:30:41]RAPDU: 90 00 [13:30:41]wFMCommunicate OK [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 0D 03 02 [13:30:41]Write to MH i2c: E2 08 00 C0 0D 80 0D 03 02 00 00 00 00 48 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 0B 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 0B 00 C0 0D 00 2E 0A ED E1 5F 12 80 4C 90 00 8C [13:30:41]RAPDU: 2E 0A ED E1 5F 12 80 4C 90 00 [13:30:41]wFMCommunicate OK [13:30:41]SAM_PROTO_SignData done [13:30:41]FM_MakeSignedData done [13:30:41]CreateOFDProtocolMessage [13:30:41]wFMCommunicate request_size=4 [13:30:41]MH_SAM_APDU [13:30:41]CAPDU: 80 11 00 00 [13:30:41]Write to MH i2c: E2 08 00 C1 0D 80 11 00 00 00 00 00 00 48 [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:41]Read from MH i2c: E2 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 17 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: E2 17 00 C1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [13:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:41]wFMCommunicate OK [13:30:41]CreateOFDProtocolMessage done [13:30:41]OFDSenderStorePacket 67267 [13:30:41]StoreOFDPacket docnum=67267 [13:30: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 0F 01 00 00 67 35 07 01 A6 7C 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B EB EC BE 27 C9 2E 0A ED E1 5F 12 80 4C [13:30:41]CheckFolder [13:30:41]dirname=/storage/ofd_packets [13:30:41]CheckFolder done [13:30:41]ProducePacketName [13:30:41]name=ofd_packets/00067267 [13:30:41]NVStorageSaveData ofd_packets/00067267 [13:30:41]File name is /storage/ofd_packets/00067267 [13:30:41]Write 301 bytes [13:30:41]NVStorageSaveData done [13:30:41]OFDSenderStorePacket done [13:30:41]KKMCreateOFDPacket done [13:30:41]NVStorageSaveData kkm_last_timestamp [13:30:41]File name is /storage/kkm_last_timestamp [13:30:41]Write 4 bytes [13:30:41]NVStorageSaveData done [13:30:41]ExternCall_PrintAddStr [13:30:41]wPrintStart [13:30:41]Write to MH i2c: 01 00 00 C2 0D CF [13:30:41]Write i2c OK [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: 01 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: 01 07 00 [13:30:41]MH_I2C_Read... [13:30:41]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 FF 0F E4 [13:30:41]RasterBufferAndPrint [13:30:41]line Счет N : (1)507243 [13:30:41]line ИНН: 02508201610067 [13:30:41]line Контрольно-Кассовый Чек [13:30:41]line ПРОДАЖА [13:30:41]line ТРК (МРК, ГНК) : 33 [13:30:41]line Товар: 2710124130 [13:30:41]line Аи-92-К-5 [13:30:41]line 3.750 * 66.80 [13:30:41]line = 250.50 [13:30:41]line НДС 12% НСП 1% [13:30:41]line > о реализуемом товаре [13:30:41]line ИТОГО: 250.50 [13:30:41]line НСП 1% : 2.22 [13:30:41]line НДС 12% : 26.60 [13:30:41]line Наличными: 0.00 [13:30:41]line Безнал.: 250.50 [13:30:41]line Место: АЗС № 91 "Партнер Нефть" [13:30:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:30:41]line СНО: Общий режим [13:30:41]line Чек 85 15.05.2024 13:30 [13:30:41]line Смена: 356 ФФД: 1.0 [13:30:41]line ЗНМ: 0300000119 [13:30:41]line РНМ: 0000000000091845 [13:30:41]line Версия ККМ: 001 [13:30:41]line Платежная система: O! деньги [13:30:41]line ФМ: 0000000000871829 [13:30:41]line ФД: 67267 [13:30:41]line ФПД: 65884475238345 [13:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133040&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67267&fm=65884475238345&tin=02508201610067®Number=0000000000091845&sum=25050 [13:30:41]OFD Sender: Processing packet 67267 [packets to send 35, broken 34] [13:30:41]ProducePacketName [13:30:41]name=ofd_packets/00067267 [13:30:41]OFD Sender: To server: pG, [13:30:41]CommunicateWithHost lk.salyk.kg:30040 [13:30:41]ConnectInit lk.salyk.kg [13:30:41]written 0, free lines is 4095 [13:30:41]Connected sock=10 [13:30: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 0F 01 00 00 67 35 07 01 A6 7C 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 00 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B EB EC BE 27 C9 2E 0A ED E1 5F 12 80 4C [13:30: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 24 A1 47 00 6B 35 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 06 01 00 F4 03 04 00 DD 60 44 66 B6 04 01 00 00 7B 4F 47 E9 5B 93 CD D5 [13:30:42]CommunicateWithHost err = 0 [13:30:42]CheckOFDResponse [13:30:42]1017 (14) - 77093643461234 [13:30:42]1041 (16) - 0000000000871829 [13:30:42]1040 (4) - 67267 [13:30:42]1012 (4) - 15.05.2024 07:14 [13:30:42]1206 (1) - 0 [13:30:42]OFD Sender: Remove packet 67267 [13:30:42]ProducePacketName [13:30:42]name=ofd_packets/00067267 [13:30:42]NVStorageDeleteData [13:30:42]Write to MH i2c: 01 00 00 EB 0D F8 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 D6 0C E1 [13:30:42]RasterBufferAndPrint [13:30:42]line [13:30:42]line [13:30:42]line [13:30:42]line [13:30:42]line [13:30:42]written 0, free lines is 3290 [13:30:42]MH_Cut [13:30:42]Write to MH i2c: D1 01 00 F2 0D 01 D1 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: D1 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: D1 01 00 [13:30:42]MH_I2C_Read... [13:30:42]Read from MH i2c: D1 01 00 F2 0D 00 D0 [13:30:42]Write to MH i2c: 01 00 00 F3 0D 00 [13:30:42]Write i2c OK [13:30:42]MH_I2C_Read... [13:30:42]OFD Sender: No OFD packet to send [13:30:43]*** Cut start [13:30:43]*** Purtial cut [13:30:43]*** CUTSNS_PIN = 0 [13:30:43]*** Stage 1: CUTSNS_PIN = 1 [13:30:45]Read from MH i2c: 01 [13:30:45]MH_I2C_Read... [13:30:45]*** Stop cut motor [13:30:45]*** Cut end [13:30:45]Read from MH i2c: 01 07 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: 01 07 00 F3 0D 00 00 00 00 00 FF 0F 15 [13:30:45]process_action close_receipt done [13:30:45]requested_data is exist [13:30:45]produce_requested_data [13:30:45]requested_item fm.sn is exist - process it [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 11 00 00 [13:30:45]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [13:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:45]wFMCommunicate OK [13:30:45]requested_item fd.num is exist - process it [13:30:45]SAM_PROTO_GetFieldsCounters [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 00 00 [13:30:45]Write to MH i2c: E2 08 00 F5 0D 80 13 00 00 00 00 00 00 7E [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 62 00 F5 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 C3 06 01 00 0E 04 04 00 64 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 D2 [13:30: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 C3 06 01 00 0E 04 04 00 64 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 [13:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetFieldsCounters done [13:30:45]requested_item shift.num is exist - process it [13:30:45]requested_item shift.opened is exist - process it [13:30:45]req_shift_opened [13:30:45]FM_GetShiftState [13:30:45]SAM_PROTO_GetShiftState [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 01 00 [13:30:45]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2B [13:30:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetShiftState done [13:30:45]FM_GetShiftState done [13:30:45]req_shift_opened done [13:30:45]requested_item shift.open_date is exist - process it [13:30:45]req_shift_open_date [13:30:45]req_shift_open_date done [13:30:45]produce_requested_data done [13:30:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67267,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:30:45]process_action_free close_receipt [13:30:45]json_value_free [13:30:45]json_value_free done [13:30:45]process_json_proto returns [13:30:45]Send response to host [13:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67267,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:30:45]free response buf [13:30:45]execute_script done [13:30:45]execute_script returns [13:30:45]free content buf [13:30:45]Sock 9.Close socket [13:30:45]Sock 9.Thread stoped [13:30:46]accept exits with 7 [13:30:46]New connection [13:30:46]New thread 3067174244 created [13:30:46]Thread 3067030884 joined [13:30:46]Waiting for new connection... [13:30:46] Sock 7.Parse request [13:30:46]Sock 7.Check first char [13:30:46]Sock 7.First char is OK [13:30:46]request: POST /json_proto HTTP/1.0 [13:30:46]Method: POST [13:30:46]URL: /json_proto [13:30:46]Method is POST - this is cgi request [13:30:46]url: /json_proto [13:30:46]query_string will be loaded in cgi processing [13:30:46]execute_cgi json_proto POST (null) [13:30:46]execute_cgi path=json_proto method=POST [13:30:46]POST find Content-Length [13:30:46]Host: 172.17.41.195:8080 [13:30:46]Content-Length: 801 [13:30:46]Content-Type: application/json [13:30:46] [13:30:46]POST finish read [13:30:46]Found Content-Length = 801 [13:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507239", "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" : 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" ] } } [13:30:46]execute_script... [13:30: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)507239", "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" : 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" ] } } [13:30:46]POST & json_proto [13:30:46]process_json_proto [13:30:46]json parsed OK: [13:30:46]protocol is kg_v1.0 [13:30:46]action value=close_receipt [13:30:46]process_action close_receipt [13:30:46]cmd_close_receipt [13:30:46]MH_GetDate [13:30:46]Write to MH i2c: F0 00 00 F7 0D F3 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 09 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: F0 09 00 F7 0D 00 07 B9 44 66 FC 21 6F 64 56 [13:30:46]GetLastDocTimeStamp 1715779840 [13:30:46]current date 1715779847 [13:30:46]FM_GetShiftState [13:30:46]SAM_PROTO_GetShiftState [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 13 01 00 [13:30:46]Write to MH i2c: E2 08 00 F8 0D 80 13 01 00 00 00 00 00 82 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 0E 00 F8 0D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2D [13:30:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetShiftState done [13:30:46]FM_GetShiftState done [13:30:46]opened in 1715732471 [13:30:46]opened+sec_in_day 1715818871 [13:30:46]quantity*price = 900060 [13:30:46]sum+1 = 900061 [13:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 86 15.05.2024 13:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67268 ФПД: 142544772867466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133047&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67268&fm=142544772867466&tin=02508201610067®Number=0000000000091845&sum=900060 [13:30:47]StoreToDocumentArchive [13:30:47]shift 356 fd 67268 [13:30:47]save to /storage/0356/doc_00067268 [13:30:47]save last doc name /storage/0356/doc_00067268 to /storage/kkm_last_doc_name [13:30:47]save OK [13:30:47]Clear old archive folders... [13:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:47]tlvbuf is 00B08500 [13:30:47]SAM_PROTO_ClearQueue [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 09 00 00 [13:30:47]Write to MH i2c: E2 08 00 05 0E 80 09 00 00 00 00 00 00 85 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [13:30:47]RAPDU: 90 00 [13:30:47]wFMCommunicate OK [13:30:47]SAM_PROTO_ClearQueue done [13:30:47]KKMCreateOFDPacket [13:30:47]OFDProtocolAddRootSTLVToBuf [13:30:47]FM_MakeSignedData [13:30:47]FM_MakeSignedData [13:30:47]SAM_PROTO_SignData [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 0D 01 02 [13:30:47]Write to MH i2c: E2 08 00 06 0E 80 0D 01 02 00 00 00 00 8D [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [13:30:47]RAPDU: 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=255 [13:30:47]MH_SAM_APDU [13:30: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 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 56 00 00 00 F4 03 04 00 07 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 A4 CA 8D [13:30:47]Write to MH i2c: E2 02 01 07 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 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 56 00 00 00 F4 03 04 00 07 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 A4 CA 8D 00 00 23 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [13:30:48]RAPDU: 90 00 [13:30:48]wFMCommunicate OK [13:30:48]wFMCommunicate request_size=7 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 0D 02 02 02 25 8A [13:30:48]Write to MH i2c: E2 0A 00 08 0E 80 0D 02 02 02 00 25 8A 00 00 43 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [13:30:48]RAPDU: 90 00 [13:30:48]wFMCommunicate OK [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 0D 03 02 [13:30:48]Write to MH i2c: E2 08 00 09 0E 80 0D 03 02 00 00 00 00 92 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0B 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0B 00 09 0E 00 8B 05 3A 34 A5 E2 50 CA 90 00 32 [13:30:48]RAPDU: 8B 05 3A 34 A5 E2 50 CA 90 00 [13:30:48]wFMCommunicate OK [13:30:48]SAM_PROTO_SignData done [13:30:48]FM_MakeSignedData done [13:30:48]CreateOFDProtocolMessage [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 11 00 00 [13:30:48]Write to MH i2c: E2 08 00 0A 0E 80 11 00 00 00 00 00 00 92 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 17 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 17 00 0A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [13:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:48]wFMCommunicate OK [13:30:48]CreateOFDProtocolMessage done [13:30:48]OFDSenderStorePacket 67268 [13:30:48]StoreOFDPacket docnum=67268 [13:30: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 FD 56 04 01 8B 5C 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 56 00 00 00 F4 03 04 00 07 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 A4 CA 8D 25 8A 8B 05 3A 34 A5 E2 50 CA [13:30:48]CheckFolder [13:30:48]dirname=/storage/ofd_packets [13:30:48]CheckFolder done [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00067268 [13:30:48]NVStorageSaveData ofd_packets/00067268 [13:30:48]File name is /storage/ofd_packets/00067268 [13:30:48]Write 298 bytes [13:30:48]NVStorageSaveData done [13:30:48]OFDSenderStorePacket done [13:30:48]KKMCreateOFDPacket done [13:30:48]NVStorageSaveData kkm_last_timestamp [13:30:48]File name is /storage/kkm_last_timestamp [13:30:48]Write 4 bytes [13:30:48]NVStorageSaveData done [13:30:48]ExternCall_PrintAddStr [13:30:48]wPrintStart [13:30:48]Write to MH i2c: 01 00 00 0B 0E 19 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 FF 0F 2E [13:30:48]RasterBufferAndPrint [13:30:48]line Счет N : (1)507239 [13:30:48]line ИНН: 02508201610067 [13:30:48]line Контрольно-Кассовый Чек [13:30:48]line ПРОДАЖА [13:30:48]line ТРК (МРК, ГНК) : 11 [13:30:48]line Товар: 2710194210 [13:30:48]line ДТ-К-5 [13:30:48]line 120.490 * 74.70 [13:30:48]line = 9000.60 [13:30:48]line НДС 12% НСП 1% [13:30:48]line > о реализуемом товаре [13:30:48]line ИТОГО: 9000.60 [13:30:48]line НСП 1% : 79.65 [13:30:48]line НДС 12% : 955.82 [13:30:48]line Наличными: 0.00 [13:30:48]line Безнал.: 9000.60 [13:30:48]line Место: АЗС № 91 "Партнер Нефть" [13:30:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:30:48]line СНО: Общий режим [13:30:48]line Чек 86 15.05.2024 13:30 [13:30:48]line Смена: 356 ФФД: 1.0 [13:30:48]line ЗНМ: 0300000119 [13:30:48]line РНМ: 0000000000091845 [13:30:48]line Версия ККМ: 001 [13:30:48]line Платежная система: O! деньги [13:30:48]line ФМ: 0000000000871829 [13:30:48]line ФД: 67268 [13:30:48]line ФПД: 142544772867466 [13:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133047&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67268&fm=142544772867466&tin=02508201610067®Number=0000000000091845&sum=900060 [13:30:48]written 0, free lines is 4095 [13:30:48]OFD Sender: Processing packet 67268 [packets to send 35, broken 34] [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00067268 [13:30:48]OFD Sender: To server: pG, [13:30:48]CommunicateWithHost lk.salyk.kg:30040 [13:30:48]ConnectInit lk.salyk.kg [13:30:48]Connected sock=10 [13:30: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 FD 56 04 01 8B 5C 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 56 00 00 00 F4 03 04 00 07 B9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 A4 CA 8D 25 8A 8B 05 3A 34 A5 E2 50 CA [13:30: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 0A 91 47 00 9D 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 C4 06 01 00 F4 03 04 00 E4 60 44 66 B6 04 01 00 00 7C 7A 94 89 73 04 D5 71 [13:30:48]CommunicateWithHost err = 0 [13:30:48]CheckOFDResponse [13:30:48]1017 (14) - 77093643461234 [13:30:48]1041 (16) - 0000000000871829 [13:30:48]1040 (4) - 67268 [13:30:48]1012 (4) - 15.05.2024 07:14 [13:30:48]1206 (1) - 0 [13:30:48]OFD Sender: Remove packet 67268 [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00067268 [13:30:48]NVStorageDeleteData [13:30:48]Write to MH i2c: 01 00 00 34 0E 42 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 EE 0C 43 [13:30:48]RasterBufferAndPrint [13:30:48]line [13:30:48]line [13:30:48]line [13:30:48]line [13:30:48]line [13:30:48]written 0, free lines is 3319 [13:30:48]MH_Cut [13:30:48]Write to MH i2c: D1 01 00 3B 0E 01 1B [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: D1 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: D1 01 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: D1 01 00 3B 0E 00 1A [13:30:48]Write to MH i2c: 01 00 00 3C 0E 4A [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:49]OFD Sender: No OFD packet to send [13:30:49]*** Cut start [13:30:49]*** Purtial cut [13:30:49]*** Stage 1: CUTSNS_PIN = 1 [13:30:49]Read from MH i2c: 01 [13:30:49]MH_I2C_Read... [13:30:49]*** Stop cut motor [13:30:49]*** Cut end [13:30:49]Read from MH i2c: 01 07 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: 01 07 00 3C 0E 00 00 00 00 00 FF 0F 5F [13:30:49]process_action close_receipt done [13:30:49]requested_data is exist [13:30:49]produce_requested_data [13:30:49]requested_item fm.sn is exist - process it [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 11 00 00 [13:30:49]Write to MH i2c: E2 08 00 3D 0E 80 11 00 00 00 00 00 00 C5 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 17 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 17 00 3D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [13:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:49]wFMCommunicate OK [13:30:49]requested_item fd.num is exist - process it [13:30:49]SAM_PROTO_GetFieldsCounters [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 00 00 [13:30:49]Write to MH i2c: E2 08 00 3E 0E 80 13 00 00 00 00 00 00 C8 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 62 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 62 00 3E 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 C4 06 01 00 0E 04 04 00 64 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 20 [13:30: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 C4 06 01 00 0E 04 04 00 64 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 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_GetFieldsCounters done [13:30:49]requested_item shift.num is exist - process it [13:30:49]requested_item shift.opened is exist - process it [13:30:49]req_shift_opened [13:30:49]FM_GetShiftState [13:30:49]SAM_PROTO_GetShiftState [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 01 00 [13:30:49]Write to MH i2c: E2 08 00 3F 0E 80 13 01 00 00 00 00 00 CA [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0E 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 0E 00 3F 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 75 [13:30:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:30:50]wFMCommunicate OK [13:30:50]SAM_PROTO_GetShiftState done [13:30:50]FM_GetShiftState done [13:30:50]req_shift_opened done [13:30:50]requested_item shift.open_date is exist - process it [13:30:50]req_shift_open_date [13:30:50]req_shift_open_date done [13:30:50]produce_requested_data done [13:30:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:30:50]process_action_free close_receipt [13:30:50]json_value_free [13:30:50]json_value_free done [13:30:50]process_json_proto returns [13:30:50]Send response to host [13:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:30:50]free response buf [13:30:50]execute_script done [13:30:50]execute_script returns [13:30:50]free content buf [13:30:50]Sock 7.Close socket [13:30:50]Sock 7.Thread stoped [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:46]accept exits with 9 [13:31:46]New connection [13:31:46]New thread 3067030884 created [13:31:46]Thread 3067174244 joined [13:31:46]Waiting for new connection... [13:31:46] Sock 9.Parse request [13:31:46]Sock 9.Check first char [13:31:46]Sock 9.First char is OK [13:31:46]request: POST /json_proto HTTP/1.0 [13:31:46]Method: POST [13:31:46]URL: /json_proto [13:31:46]Method is POST - this is cgi request [13:31:46]url: /json_proto [13:31:46]query_string will be loaded in cgi processing [13:31:46]execute_cgi json_proto POST (null) [13:31:46]execute_cgi path=json_proto method=POST [13:31:46]POST find Content-Length [13:31:46]Host: 172.17.41.195:8080 [13:31:46]Content-Length: 1209 [13:31:46]Content-Type: application/json [13:31:46] [13:31:46]POST finish read [13:31:46]Found Content-Length = 1209 [13:31: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)507244\u000A15.05.2024 13: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 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" ] } } [13:31:46]execute_script... [13:31: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)507244\u000A15.05.2024 13: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 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" ] } } [13:31:46]POST & json_proto [13:31:46]process_json_proto [13:31:46]json parsed OK: [13:31:46]protocol is kg_v1.0 [13:31:46]action value=print_text [13:31:46]process_action print_text [13:31:46]cmd_print_text [13:31:46]ExternCall_PrintAddStr [13:31:46]wPrintStart [13:31:46]Write to MH i2c: 01 00 00 40 0E 4E [13:31:46]Write i2c OK [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 07 00 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [13:31:46]RasterBufferAndPrint [13:31:46]line *****ТОВАРНЫЙ ЧЕК***** [13:31:46]line АЗС-91 [13:31:46]line Партнер нефть [13:31:46]line 02508201610067 [13:31:46]line Кассир : Арстанбеков Н. [13:31:46]line Счет N : (1)507244 [13:31:46]line 15.05.2024 13:14 [13:31:46]line ПРОДАЖА [13:31:46]line ТРК (МРК, ГНК): 21 [13:31:46]line Вид ГСМ : 2710194210 [13:31:46]line ДТ-К-5 [13:31:46]line 26.780 x 74.70 [13:31:46]line ИТОГ: 2000.47 [13:31:46]line Тип оплаты: Талоны: Топливная Карта [13:31:46]line 02750 [13:31:46]line ______________________ [13:31:46]line (подпись) [13:31:46]written 0, free lines is 4095 [13:31:46]Write to MH i2c: 01 00 00 54 0E 62 [13:31:46]Write i2c OK [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 07 00 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 0E 0E 85 [13:31:46]RasterBufferAndPrint [13:31:46]line [13:31:46]line [13:31:46]line [13:31:46]line [13:31:46]line [13:31:46]written 0, free lines is 3600 [13:31:46]MH_Cut [13:31:46]Write to MH i2c: D1 01 00 5B 0E 01 3B [13:31:46]Write i2c OK [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: D1 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: D1 01 00 [13:31:46]MH_I2C_Read... [13:31:46]Read from MH i2c: D1 01 00 5B 0E 00 3A [13:31:46]Write to MH i2c: 01 00 00 5C 0E 6A [13:31:46]Write i2c OK [13:31:46]MH_I2C_Read... [13:31:47]*** Cut start [13:31:47]*** Purtial cut [13:31:47]*** CUTSNS_PIN = 0 [13:31:47]*** Stage 1: CUTSNS_PIN = 1 [13:31:49]OFD Sender: No OFD packet to send [13:31:49]Read from MH i2c: 01 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: 01 07 00 [13:31:49]MH_I2C_Read... [13:31:49]*** Stop cut motor [13:31:49]*** Cut end [13:31:49]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 FF 0F 7F [13:31:49]process_action print_text done [13:31:49]requested_data is exist [13:31:49]produce_requested_data [13:31:49]requested_item fm.sn is exist - process it [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 11 00 00 [13:31:49]Write to MH i2c: E2 08 00 5D 0E 80 11 00 00 00 00 00 00 E5 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 17 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 17 00 5D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3B [13:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:31:49]wFMCommunicate OK [13:31:49]requested_item fd.num is exist - process it [13:31:49]SAM_PROTO_GetFieldsCounters [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 13 00 00 [13:31:49]Write to MH i2c: E2 08 00 5E 0E 80 13 00 00 00 00 00 00 E8 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 62 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 62 00 5E 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 C4 06 01 00 0E 04 04 00 64 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 40 [13:31: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 C4 06 01 00 0E 04 04 00 64 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 [13:31:49]wFMCommunicate OK [13:31:49]SAM_PROTO_GetFieldsCounters done [13:31:49]requested_item shift.num is exist - process it [13:31:49]requested_item shift.opened is exist - process it [13:31:49]req_shift_opened [13:31:49]FM_GetShiftState [13:31:49]SAM_PROTO_GetShiftState [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 13 01 00 [13:31:49]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 0E 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 95 [13:31:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:31:49]wFMCommunicate OK [13:31:49]SAM_PROTO_GetShiftState done [13:31:49]FM_GetShiftState done [13:31:49]req_shift_opened done [13:31:49]requested_item shift.open_date is exist - process it [13:31:49]req_shift_open_date [13:31:49]req_shift_open_date done [13:31:49]produce_requested_data done [13:31:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:31:49]process_action_free print_text [13:31:49]json_value_free [13:31:49]json_value_free done [13:31:49]process_json_proto returns [13:31:49]Send response to host [13:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:31:49]free response buf [13:31:49]execute_script done [13:31:49]execute_script returns [13:31:49]free content buf [13:31:49]Sock 9.Close socket [13:31:49]Sock 9.Thread stoped [13:31:50]accept exits with 7 [13:31:50]New connection [13:31:50]New thread 3067174244 created [13:31:50]Thread 3067030884 joined [13:31:50]Waiting for new connection... [13:31:50] Sock 7.Parse request [13:31:50]Sock 7.Check first char [13:31:50]Sock 7.First char is OK [13:31:50]request: POST /json_proto HTTP/1.0 [13:31:50]Method: POST [13:31:50]URL: /json_proto [13:31:50]Method is POST - this is cgi request [13:31:50]url: /json_proto [13:31:50]query_string will be loaded in cgi processing [13:31:50]execute_cgi json_proto POST (null) [13:31:50]execute_cgi path=json_proto method=POST [13:31:50]POST find Content-Length [13:31:50]Host: 172.17.41.195:8080 [13:31:50]Content-Length: 1209 [13:31:50]Content-Type: application/json [13:31:50] [13:31:50]POST finish read [13:31:50]Found Content-Length = 1209 [13:31:50]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)507245\u000A15.05.2024 13:14\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" ] } } [13:31:50]execute_script... [13:31:50]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)507245\u000A15.05.2024 13:14\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" ] } } [13:31:50]POST & json_proto [13:31:50]process_json_proto [13:31:50]json parsed OK: [13:31:50]protocol is kg_v1.0 [13:31:50]action value=print_text [13:31:50]process_action print_text [13:31:50]cmd_print_text [13:31:50]ExternCall_PrintAddStr [13:31:50]wPrintStart [13:31:50]Write to MH i2c: 01 00 00 60 0E 6E [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FF 0F 83 [13:31:50]RasterBufferAndPrint [13:31:50]line *****ТОВАРНЫЙ ЧЕК***** [13:31:50]line АЗС-91 [13:31:50]line Партнер нефть [13:31:50]line 02508201610067 [13:31:50]line Кассир : Арстанбеков Н. [13:31:50]line Счет N : (1)507245 [13:31:50]line 15.05.2024 13:14 [13:31:50]line ПРОДАЖА [13:31:50]line ТРК (МРК, ГНК): 41 [13:31:50]line Вид ГСМ : 2710194210 [13:31:50]line ДТ-К-5 [13:31:50]line 13.390 x 74.70 [13:31:50]line ИТОГ: 1000.23 [13:31:50]line Тип оплаты: Талоны: Топливная Карта [13:31:50]line 02750 [13:31:50]line ______________________ [13:31:50]line (подпись) [13:31:50]written 0, free lines is 4095 [13:31:50]Write to MH i2c: 01 00 00 74 0E 82 [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 0E 0E A5 [13:31:50]RasterBufferAndPrint [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]written 0, free lines is 3600 [13:31:50]MH_Cut [13:31:50]Write to MH i2c: D1 01 00 7B 0E 01 5B [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 01 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 01 00 7B 0E 00 5A [13:31:50]Write to MH i2c: 01 00 00 7C 0E 8A [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:51]*** Cut start [13:31:51]*** Purtial cut [13:31:51]*** Stage 1: CUTSNS_PIN = 1 [13:31:51]Read from MH i2c: 01 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: 01 07 00 [13:31:51]MH_I2C_Read... [13:31:51]*** Stop cut motor [13:31:51]*** Cut end [13:31:51]Read from MH i2c: 01 07 00 7C 0E 00 00 00 00 00 FF 0F 9F [13:31:51]process_action print_text done [13:31:51]requested_data is exist [13:31:51]produce_requested_data [13:31:51]requested_item fm.sn is exist - process it [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 11 00 00 [13:31:51]Write to MH i2c: E2 08 00 7D 0E 80 11 00 00 00 00 00 00 05 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 7D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [13:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:31:51]wFMCommunicate OK [13:31:51]requested_item fd.num is exist - process it [13:31:51]SAM_PROTO_GetFieldsCounters [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 13 00 00 [13:31:51]Write to MH i2c: E2 08 00 7E 0E 80 13 00 00 00 00 00 00 08 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 62 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 62 00 7E 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 C4 06 01 00 0E 04 04 00 64 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 60 [13:31: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 C4 06 01 00 0E 04 04 00 64 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 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_GetFieldsCounters done [13:31:51]requested_item shift.num is exist - process it [13:31:51]requested_item shift.opened is exist - process it [13:31:51]req_shift_opened [13:31:51]FM_GetShiftState [13:31:51]SAM_PROTO_GetShiftState [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 13 01 00 [13:31:51]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B5 [13:31:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_GetShiftState done [13:31:51]FM_GetShiftState done [13:31:51]req_shift_opened done [13:31:51]requested_item shift.open_date is exist - process it [13:31:51]req_shift_open_date [13:31:51]req_shift_open_date done [13:31:51]produce_requested_data done [13:31:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:31:51]process_action_free print_text [13:31:51]json_value_free [13:31:51]json_value_free done [13:31:51]process_json_proto returns [13:31:51]Send response to host [13:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:31:51]free response buf [13:31:51]execute_script done [13:31:51]execute_script returns [13:31:51]free content buf [13:31:51]Sock 7.Close socket [13:31:51]Sock 7.Thread stoped [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:08]accept exits with 9 [13:37:08]New connection [13:37:08]New thread 3067030884 created [13:37:08]Thread 3067174244 joined [13:37:08]Waiting for new connection... [13:37:08] Sock 9.Parse request [13:37:08]Sock 9.Check first char [13:37:08]Sock 9.First char is OK [13:37:08]request: POST /json_proto HTTP/1.0 [13:37:08]Method: POST [13:37:08]URL: /json_proto [13:37:08]Method is POST - this is cgi request [13:37:08]url: /json_proto [13:37:08]query_string will be loaded in cgi processing [13:37:08]execute_cgi json_proto POST (null) [13:37:08]execute_cgi path=json_proto method=POST [13:37:08]POST find Content-Length [13:37:08]Host: 172.17.41.195:8080 [13:37:08]Content-Length: 215 [13:37:08]Content-Type: application/json [13:37:08] [13:37:08]POST finish read [13:37:08]Found Content-Length = 215 [13:37:08]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" ] } } [13:37:08]execute_script... [13:37:08]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" ] } } [13:37:08]POST & json_proto [13:37:08]process_json_proto [13:37:08]json parsed OK: [13:37:08]protocol is kg_v1.0 [13:37:08]action value=get_value [13:37:08]process_action get_value [13:37:08]cmd_get_value [13:37:08]process_action get_value done [13:37:08]requested_data is exist [13:37:08]produce_requested_data [13:37:08]requested_item kkm.sn is exist - process it [13:37:08]requested_item kkm.ver is exist - process it [13:37:08]requested_item fm.sn is exist - process it [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 11 00 00 [13:37:08]Write to MH i2c: E2 08 00 80 0E 80 11 00 00 00 00 00 00 08 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 17 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 17 00 80 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [13:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:37:08]wFMCommunicate OK [13:37:08]requested_item fd.num is exist - process it [13:37:08]SAM_PROTO_GetFieldsCounters [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 13 00 00 [13:37:08]Write to MH i2c: E2 08 00 81 0E 80 13 00 00 00 00 00 00 0B [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 62 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 62 00 81 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 C4 06 01 00 0E 04 04 00 64 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 63 [13:37: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 C4 06 01 00 0E 04 04 00 64 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 [13:37:08]wFMCommunicate OK [13:37:08]SAM_PROTO_GetFieldsCounters done [13:37:08]requested_item shift.num is exist - process it [13:37:08]requested_item shift.opened is exist - process it [13:37:08]req_shift_opened [13:37:08]FM_GetShiftState [13:37:08]SAM_PROTO_GetShiftState [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 13 01 00 [13:37:08]Write to MH i2c: E2 08 00 82 0E 80 13 01 00 00 00 00 00 0D [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 0E 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 0E 00 82 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B8 [13:37:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:37:08]wFMCommunicate OK [13:37:08]SAM_PROTO_GetShiftState done [13:37:08]FM_GetShiftState done [13:37:08]req_shift_opened done [13:37:08]requested_item shift.open_date is exist - process it [13:37:08]req_shift_open_date [13:37:08]req_shift_open_date done [13:37:08]produce_requested_data done [13:37:08]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:37:08]process_action_free get_value [13:37:08]json_value_free [13:37:08]json_value_free done [13:37:08]process_json_proto returns [13:37:08]Send response to host [13:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67268,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:37:08]free response buf [13:37:08]execute_script done [13:37:08]execute_script returns [13:37:08]free content buf [13:37:08]Sock 9.Close socket [13:37:08]Sock 9.Thread stoped [13:37:08]accept exits with 7 [13:37:08]New connection [13:37:08]New thread 3067174244 created [13:37:08]Thread 3067030884 joined [13:37:08]Waiting for new connection... [13:37:08] Sock 7.Parse request [13:37:08]Sock 7.Check first char [13:37:08]Sock 7.First char is OK [13:37:08]request: POST /json_proto HTTP/1.0 [13:37:08]Method: POST [13:37:08]URL: /json_proto [13:37:08]Method is POST - this is cgi request [13:37:08]url: /json_proto [13:37:08]query_string will be loaded in cgi processing [13:37:08]execute_cgi json_proto POST (null) [13:37:08]execute_cgi path=json_proto method=POST [13:37:08]POST find Content-Length [13:37:08]Host: 172.17.41.195:8080 [13:37:08]Content-Length: 331 [13:37:08]Content-Type: application/json [13:37:08] [13:37:08]POST finish read [13:37:08]Found Content-Length = 331 [13:37:08]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" ] } } [13:37:08]execute_script... [13:37:08]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" ] } } [13:37:08]POST & json_proto [13:37:08]process_json_proto [13:37:08]json parsed OK: [13:37:08]protocol is kg_v1.0 [13:37:08]action value=get_value [13:37:08]process_action get_value [13:37:08]cmd_get_value [13:37:08]process_action get_value done [13:37:08]requested_data is exist [13:37:08]produce_requested_data [13:37:08]requested_item fm.sale.total is exist - process it [13:37:08]SAM_PROTO_GetFMData [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 13 03 00 [13:37:08]Write to MH i2c: E2 08 00 83 0E 80 13 03 00 00 00 00 00 10 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 FD 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 FD 00 83 0E 00 C6 04 85 04 C2 04 6E 04 04 00 FC 03 01 00 69 04 A3 00 6F 04 04 00 56 03 01 00 B1 04 05 00 01 22 C0 19 03 70 04 05 00 FC E0 E3 BE 02 72 04 04 00 05 41 DC 5A 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 C6 BB 4D 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 DD 65 06 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 53 [13:37:08]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 FC 03 01 00 69 04 A3 00 6F 04 04 00 56 03 01 00 B1 04 05 00 01 22 C0 19 03 70 04 05 00 FC E0 E3 BE 02 72 04 04 00 05 41 DC 5A 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 C6 BB 4D 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 DD 65 06 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [13:37:09]wFMCommunicate OK [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 17 00 00 [13:37:09]Write to MH i2c: E2 08 00 84 0E 80 17 00 00 00 00 00 00 12 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 84 0E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 29 [13:37:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [13:37:09]wFMCommunicate OK [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 17 00 00 [13:37:09]Write to MH i2c: E2 08 00 85 0E 80 17 00 00 00 00 00 00 13 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]OFD Sender: No OFD packet to send [13:37:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 85 0E 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 3A [13:37:09]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 [13:37:09]wFMCommunicate OK [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 17 00 00 [13:37:09]Write to MH i2c: E2 08 00 86 0E 80 17 00 00 00 00 00 00 14 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 FD 00 86 0E 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [13:37: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 [13:37:09]wFMCommunicate OK [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 17 00 00 [13:37:09]Write to MH i2c: E2 08 00 87 0E 80 17 00 00 00 00 00 00 15 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 E3 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 E3 00 87 0E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [13:37:10]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 [13:37:10]wFMCommunicate OK [13:37:10]SAM_PROTO_GetFMData done [13:37:10]requested_item fm.sale_refund.total is exist - process it [13:37:10]requested_item fm.buy.total is exist - process it [13:37:10]requested_item shift.sale.total is exist - process it [13:37:10]SAM_PROTO_GetShiftData [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 13 02 00 [13:37:10]Write to MH i2c: E2 08 00 88 0E 80 13 02 00 00 00 00 00 14 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 FD 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 FD 00 88 0E 00 B9 04 AA 04 B5 04 6E 04 04 00 56 00 00 00 69 04 9C 00 6F 04 04 00 55 00 00 00 B1 04 03 00 63 69 B0 70 04 03 00 20 7B 1E 72 04 03 00 43 EE 91 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 38 BC 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 AA 8F 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 D0 [13:37:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 56 00 00 00 69 04 9C 00 6F 04 04 00 55 00 00 00 B1 04 03 00 63 69 B0 70 04 03 00 20 7B 1E 72 04 03 00 43 EE 91 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 38 BC 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 AA 8F 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 17 00 00 [13:37:10]Write to MH i2c: E2 08 00 89 0E 80 17 00 00 00 00 00 00 17 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 FD 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 FD 00 89 0E 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [13:37:10]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:37:10]wFMCommunicate OK [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 17 00 00 [13:37:10]Write to MH i2c: E2 08 00 8A 0E 80 17 00 00 00 00 00 00 18 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 FD 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 FD 00 8A 0E 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [13:37:11]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 17 00 00 [13:37:11]Write to MH i2c: E2 08 00 8B 0E 80 17 00 00 00 00 00 00 19 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 FD 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 FD 00 8B 0E 00 EF 03 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 90 00 91 [13:37:11]RAPDU: EF 03 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 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 17 00 00 [13:37:11]Write to MH i2c: E2 08 00 8C 0E 80 17 00 00 00 00 00 00 1A [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 D6 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 D6 00 8C 0E 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [13:37:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_GetShiftData done [13:37:11]requested_item shift.sale.total_cash is exist - process it [13:37:11]requested_item shift.sale_refund.total is exist - process it [13:37:11]requested_item shift.sale_refund.total_cash is exist - process it [13:37:11]requested_item shift.buy.total is exist - process it [13:37:11]requested_item shift.buy.total_cash is exist - process it [13:37:11]produce_requested_data done [13:37:11]produce_requested_data return {"fm.sale.total":133169239.05,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":115613.15,"shift.sale.total_cash":19976.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:37:11]process_action_free get_value [13:37:11]json_value_free [13:37:11]json_value_free done [13:37:11]process_json_proto returns [13:37:11]Send response to host [13:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133169239.05,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":115613.15,"shift.sale.total_cash":19976.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:37:11]free response buf [13:37:11]execute_script done [13:37:11]execute_script returns [13:37:11]free content buf [13:37:11]Sock 7.Close socket [13:37:11]Sock 7.Thread stoped [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:43]accept exits with 9 [13:37:43]New connection [13:37:43]New thread 3067030884 created [13:37:43]Thread 3067174244 joined [13:37:43]Waiting for new connection... [13:37:43] Sock 9.Parse request [13:37:43]Sock 9.Check first char [13:37:43]Sock 9.First char is OK [13:37:43]request: POST /json_proto HTTP/1.0 [13:37:43]Method: POST [13:37:43]URL: /json_proto [13:37:43]Method is POST - this is cgi request [13:37:43]url: /json_proto [13:37:43]query_string will be loaded in cgi processing [13:37:43]execute_cgi json_proto POST (null) [13:37:43]execute_cgi path=json_proto method=POST [13:37:43]POST find Content-Length [13:37:43]Host: 172.17.41.195:8080 [13:37:43]Content-Length: 793 [13:37:43]Content-Type: application/json [13:37:43] [13:37:43]POST finish read [13:37:43]Found Content-Length = 793 [13:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507246", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]execute_script... [13: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)507246", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]POST & json_proto [13:37:43]process_json_proto [13:37:43]json parsed OK: [13:37:43]protocol is kg_v1.0 [13:37:43]action value=close_receipt [13:37:43]process_action close_receipt [13:37:43]cmd_close_receipt [13:37:43]MH_GetDate [13:37:43]Write to MH i2c: F0 00 00 8D 0E 8A [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 8D 0E 00 A8 BA 44 66 FC 21 6F 64 8F [13:37:43]GetLastDocTimeStamp 1715779847 [13:37:43]current date 1715780264 [13:37:43]FM_GetShiftState [13:37:43]SAM_PROTO_GetShiftState [13:37:43]wFMCommunicate request_size=4 [13:37:43]MH_SAM_APDU [13:37:43]CAPDU: 80 13 01 00 [13:37:43]Write to MH i2c: E2 08 00 8E 0E 80 13 01 00 00 00 00 00 19 [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:43]Read from MH i2c: E2 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 8E 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C4 [13:37:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:37:43]wFMCommunicate OK [13:37:43]SAM_PROTO_GetShiftState done [13:37:43]FM_GetShiftState done [13:37:43]opened in 1715732471 [13:37:43]opened+sec_in_day 1715818871 [13:37:43]quantity*price = 50036 [13:37:43]sum+1 = 50037 [13:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 87 15.05.2024 13:37 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67269 ФПД: 190416768644068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133744&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67269&fm=190416768644068&tin=02508201610067®Number=0000000000091845&sum=50036 [13:37:44]StoreToDocumentArchive [13:37:44]shift 356 fd 67269 [13:37:44]save to /storage/0356/doc_00067269 [13:37:44]save last doc name /storage/0356/doc_00067269 to /storage/kkm_last_doc_name [13:37:44]save OK [13:37:44]Clear old archive folders... [13:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:37:44]tlvbuf is 00B61300 [13:37:44]SAM_PROTO_ClearQueue [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 09 00 00 [13:37:44]Write to MH i2c: E2 08 00 9B 0E 80 09 00 00 00 00 00 00 1B [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_ClearQueue done [13:37:44]KKMCreateOFDPacket [13:37:44]OFDProtocolAddRootSTLVToBuf [13:37:44]FM_MakeSignedData [13:37:44]FM_MakeSignedData [13:37:44]SAM_PROTO_SignData [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 01 02 [13:37:44]Write to MH i2c: E2 08 00 9C 0E 80 0D 01 02 00 00 00 00 23 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=255 [13:37:44]MH_SAM_APDU [13:37:44]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 BA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [13:37:44]Write to MH i2c: E2 02 01 9D 0E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 BA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 AD [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]OFD Sender: No OFD packet to send [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=11 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 02 02 06 AD 2E DB DA B3 E4 [13:37:44]Write to MH i2c: E2 0E 00 9E 0E 80 0D 02 02 06 00 AD 2E DB DA B3 E4 00 00 59 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 03 02 [13:37:44]Write to MH i2c: E2 08 00 9F 0E 80 0D 03 02 00 00 00 00 28 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0B 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0B 00 9F 0E 00 ED 39 5A 55 11 C0 ED 77 90 00 33 [13:37:44]RAPDU: ED 39 5A 55 11 C0 ED 77 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_SignData done [13:37:44]FM_MakeSignedData done [13:37:44]CreateOFDProtocolMessage [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 11 00 00 [13:37:44]Write to MH i2c: E2 08 00 A0 0E 80 11 00 00 00 00 00 00 28 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 17 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 17 00 A0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [13: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 [13:37:44]wFMCommunicate OK [13:37:44]CreateOFDProtocolMessage done [13:37:44]OFDSenderStorePacket 67269 [13:37:44]StoreOFDPacket docnum=67269 [13: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 10 01 00 00 C5 30 08 01 0B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 BA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AD 2E DB DA B3 E4 ED 39 5A 55 11 C0 ED 77 [13:37:44]CheckFolder [13:37:44]dirname=/storage/ofd_packets [13:37:44]CheckFolder done [13:37:44]ProducePacketName [13:37:44]name=ofd_packets/00067269 [13:37:44]NVStorageSaveData ofd_packets/00067269 [13:37:44]File name is /storage/ofd_packets/00067269 [13:37:44]Write 302 bytes [13:37:44]NVStorageSaveData done [13:37:44]OFDSenderStorePacket done [13:37:44]KKMCreateOFDPacket done [13:37:44]NVStorageSaveData kkm_last_timestamp [13:37:44]File name is /storage/kkm_last_timestamp [13:37:44]Write 4 bytes [13:37:44]NVStorageSaveData done [13:37:44]ExternCall_PrintAddStr [13:37:44]wPrintStart [13:37:44]Write to MH i2c: 01 00 00 A1 0E AF [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 07 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 FF 0F C4 [13:37:44]RasterBufferAndPrint [13:37:44]line Счет N : (1)507246 [13:37:44]line ИНН: 02508201610067 [13:37:44]line Контрольно-Кассовый Чек [13:37:44]line ПРОДАЖА [13:37:44]line ТРК (МРК, ГНК) : 42 [13:37:44]line Товар: 2710124130 [13:37:44]line Super-92-К-5 [13:37:44]line 7.380 * 67.80 [13:37:44]line = 500.36 [13:37:44]line НДС 12% НСП 1% [13:37:44]line > о реализуемом товаре [13:37:44]line ИТОГО: 500.36 [13:37:44]line НСП 1% : 4.43 [13:37:44]line НДС 12% : 53.14 [13:37:44]line Наличными: 0.00 [13:37:44]line Безнал.: 500.36 [13:37:44]line Место: АЗС № 91 "Партнер Нефть" [13:37:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:37:44]line СНО: Общий режим [13:37:44]line Чек 87 15.05.2024 13:37 [13:37:44]line Смена: 356 ФФД: 1.0 [13:37:44]line ЗНМ: 0300000119 [13:37:44]line РНМ: 0000000000091845 [13:37:44]line Версия ККМ: 001 [13:37:44]line Платежная система: O! деньги [13:37:44]line ФМ: 0000000000871829 [13:37:44]line ФД: 67269 [13:37:44]line ФПД: 190416768644068 [13:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T133744&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67269&fm=190416768644068&tin=02508201610067®Number=0000000000091845&sum=50036 [13:37:45]OFD Sender: Processing packet 67269 [packets to send 35, broken 34] [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00067269 [13:37:45]OFD Sender: To server: pG, [13:37:45]CommunicateWithHost lk.salyk.kg:30040 [13:37:45]ConnectInit lk.salyk.kg [13:37:45]written 0, free lines is 4095 [13:37:45]Connected sock=10 [13: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 10 01 00 00 C5 30 08 01 0B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 A8 BA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AD 2E DB DA B3 E4 ED 39 5A 55 11 C0 ED 77 [13: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 F5 54 47 00 02 76 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 06 01 00 F4 03 04 00 85 62 44 66 B6 04 01 00 00 AE DC A8 26 80 54 B0 6D [13:37:45]CommunicateWithHost err = 0 [13:37:45]CheckOFDResponse [13:37:45]1017 (14) - 77093643461234 [13:37:45]1041 (16) - 0000000000871829 [13:37:45]1040 (4) - 67269 [13:37:45]1012 (4) - 15.05.2024 07:21 [13:37:45]1206 (1) - 0 [13:37:45]OFD Sender: Remove packet 67269 [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00067269 [13:37:45]NVStorageDeleteData [13:37:45]Write to MH i2c: 01 00 00 CA 0E D8 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 DD 0C C8 [13:37:45]RasterBufferAndPrint [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]written 0, free lines is 3298 [13:37:45]MH_Cut [13:37:45]Write to MH i2c: D1 01 00 D1 0E 01 B1 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 01 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 01 00 D1 0E 00 B0 [13:37:45]Write to MH i2c: 01 00 00 D2 0E E0 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:46]OFD Sender: No OFD packet to send [13:37:46]*** Cut start [13:37:46]*** Purtial cut [13:37:46]*** CUTSNS_PIN = 0 [13:37:46]*** Stage 1: CUTSNS_PIN = 1 [13:37:48]Read from MH i2c: 01 [13:37:48]MH_I2C_Read... [13:37:48]*** Stop cut motor [13:37:48]*** Cut end [13:37:48]Read from MH i2c: 01 07 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 FF 0F F5 [13:37:48]process_action close_receipt done [13:37:48]requested_data is exist [13:37:48]produce_requested_data [13:37:48]requested_item fm.sn is exist - process it [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 11 00 00 [13:37:48]Write to MH i2c: E2 08 00 D3 0E 80 11 00 00 00 00 00 00 5B [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 D3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [13:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:37:48]wFMCommunicate OK [13:37:48]requested_item fd.num is exist - process it [13:37:48]SAM_PROTO_GetFieldsCounters [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 00 00 [13:37:48]Write to MH i2c: E2 08 00 D4 0E 80 13 00 00 00 00 00 00 5E [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 D4 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 C5 06 01 00 0E 04 04 00 64 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 [13:37: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 C5 06 01 00 0E 04 04 00 64 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 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetFieldsCounters done [13:37:48]requested_item shift.num is exist - process it [13:37:48]requested_item shift.opened is exist - process it [13:37:48]req_shift_opened [13:37:48]FM_GetShiftState [13:37:48]SAM_PROTO_GetShiftState [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 01 00 [13:37:48]Write to MH i2c: E2 08 00 D5 0E 80 13 01 00 00 00 00 00 60 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 D5 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0B [13:37:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetShiftState done [13:37:48]FM_GetShiftState done [13:37:48]req_shift_opened done [13:37:48]requested_item shift.open_date is exist - process it [13:37:48]req_shift_open_date [13:37:48]req_shift_open_date done [13:37:48]produce_requested_data done [13:37:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67269,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:37:48]process_action_free close_receipt [13:37:48]json_value_free [13:37:48]json_value_free done [13:37:48]process_json_proto returns [13:37:48]Send response to host [13:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67269,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:37:48]free response buf [13:37:48]execute_script done [13:37:48]execute_script returns [13:37:48]free content buf [13:37:48]Sock 9.Close socket [13:37:48]Sock 9.Thread stoped [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:48]accept exits with 7 [13:42:48]New connection [13:42:48]New thread 3067174244 created [13:42:48]Thread 3067030884 joined [13:42:48]Waiting for new connection... [13:42:48] Sock 7.Parse request [13:42:48]Sock 7.Check first char [13:42:48]Sock 7.First char is OK [13:42:48]request: POST /json_proto HTTP/1.0 [13:42:48]Method: POST [13:42:48]URL: /json_proto [13:42:48]Method is POST - this is cgi request [13:42:48]url: /json_proto [13:42:48]query_string will be loaded in cgi processing [13:42:48]execute_cgi json_proto POST (null) [13:42:48]execute_cgi path=json_proto method=POST [13:42:48]POST find Content-Length [13:42:48]Host: 172.17.41.195:8080 [13:42:48]Content-Length: 796 [13:42:48]Content-Type: application/json [13:42:48] [13:42:48]POST finish read [13:42:48]Found Content-Length = 796 [13:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507247", "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" : 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" ] } } [13:42:48]execute_script... [13:42: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)507247", "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" : 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" ] } } [13:42:48]POST & json_proto [13:42:48]process_json_proto [13:42:48]json parsed OK: [13:42:48]protocol is kg_v1.0 [13:42:48]action value=close_receipt [13:42:48]process_action close_receipt [13:42:48]cmd_close_receipt [13:42:48]MH_GetDate [13:42:48]Write to MH i2c: F0 00 00 D6 0E D3 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: F0 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: F0 09 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: F0 09 00 D6 0E 00 D9 BB 44 66 FC 21 6F 64 0A [13:42:48]GetLastDocTimeStamp 1715780264 [13:42:48]current date 1715780569 [13:42:48]FM_GetShiftState [13:42:48]SAM_PROTO_GetShiftState [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 13 01 00 [13:42:48]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0E 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0D [13:42:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:42:48]wFMCommunicate OK [13:42:48]SAM_PROTO_GetShiftState done [13:42:48]FM_GetShiftState done [13:42:48]opened in 1715732471 [13:42:48]opened+sec_in_day 1715818871 [13:42:48]quantity*price = 200010 [13:42:48]sum+1 = 200011 [13:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 88 15.05.2024 13:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67270 ФПД: 56446259188922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67270&fm=56446259188922&tin=02508201610067®Number=0000000000091845&sum=200010 [13:42:50]StoreToDocumentArchive [13:42:50]shift 356 fd 67270 [13:42:50]save to /storage/0356/doc_00067270 [13:42:50]save last doc name /storage/0356/doc_00067270 to /storage/kkm_last_doc_name [13:42:50]save OK [13:42:50]Clear old archive folders... [13:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:42:50]tlvbuf is 00B42E00 [13:42:50]SAM_PROTO_ClearQueue [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 09 00 00 [13:42:50]Write to MH i2c: E2 08 00 E4 0E 80 09 00 00 00 00 00 00 64 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [13:42:50]RAPDU: 90 00 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_ClearQueue done [13:42:50]KKMCreateOFDPacket [13:42:50]OFDProtocolAddRootSTLVToBuf [13:42:50]FM_MakeSignedData [13:42:50]FM_MakeSignedData [13:42:50]SAM_PROTO_SignData [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 0D 01 02 [13:42:50]Write to MH i2c: E2 08 00 E5 0E 80 0D 01 02 00 00 00 00 6C [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 E5 0E 00 90 00 67 [13:42:50]RAPDU: 90 00 [13:42:50]wFMCommunicate OK [13:42:50]wFMCommunicate request_size=255 [13:42:50]MH_SAM_APDU [13:42: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 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 58 00 00 00 F4 03 04 00 D9 BB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [13:42:50]Write to MH i2c: E2 02 01 E6 0E 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 58 00 00 00 F4 03 04 00 D9 BB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 FA [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 E6 0E 00 90 00 68 [13:42:50]RAPDU: 90 00 [13:42:50]wFMCommunicate OK [13:42:50]wFMCommunicate request_size=11 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 0D 02 02 06 33 56 6B 3A 54 BA [13:42:50]Write to MH i2c: E2 0E 00 E7 0E 80 0D 02 02 06 00 33 56 6B 3A 54 BA 00 00 B7 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [13:42:50]RAPDU: 90 00 [13:42:50]wFMCommunicate OK [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 0D 03 02 [13:42:50]Write to MH i2c: E2 08 00 E8 0E 80 0D 03 02 00 00 00 00 71 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0B 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0B 00 E8 0E 00 1E 91 BB 6D 3C D3 6D 25 90 00 EA [13:42:50]RAPDU: 1E 91 BB 6D 3C D3 6D 25 90 00 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_SignData done [13:42:50]FM_MakeSignedData done [13:42:50]CreateOFDProtocolMessage [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 11 00 00 [13:42:50]Write to MH i2c: E2 08 00 E9 0E 80 11 00 00 00 00 00 00 71 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 E9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [13:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:42:50]wFMCommunicate OK [13:42:50]CreateOFDProtocolMessage done [13:42:50]OFDSenderStorePacket 67270 [13:42:50]StoreOFDPacket docnum=67270 [13:42: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 01 D0 08 01 30 B9 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 58 00 00 00 F4 03 04 00 D9 BB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 33 56 6B 3A 54 BA 1E 91 BB 6D 3C D3 6D 25 [13:42:50]CheckFolder [13:42:50]dirname=/storage/ofd_packets [13:42:50]CheckFolder done [13:42:50]ProducePacketName [13:42:50]name=ofd_packets/00067270 [13:42:50]NVStorageSaveData ofd_packets/00067270 [13:42:50]File name is /storage/ofd_packets/00067270 [13:42:50]Write 302 bytes [13:42:50]NVStorageSaveData done [13:42:50]OFDSenderStorePacket done [13:42:50]KKMCreateOFDPacket done [13:42:50]NVStorageSaveData kkm_last_timestamp [13:42:50]File name is /storage/kkm_last_timestamp [13:42:50]Write 4 bytes [13:42:50]NVStorageSaveData done [13:42:50]ExternCall_PrintAddStr [13:42:50]wPrintStart [13:42:50]Write to MH i2c: 01 00 00 EA 0E F8 [13:42:50]OFD Sender: Processing packet 67270 [packets to send 35, broken 34] [13:42:50]ProducePacketName [13:42:50]name=ofd_packets/00067270 [13:42:50]OFD Sender: To server: pG, [13:42:50]CommunicateWithHost lk.salyk.kg:30040 [13:42:50]ConnectInit lk.salyk.kg [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: 01 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: 01 07 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 FF 0F 0D [13:42:50]RasterBufferAndPrint [13:42:50]line Счет N : (1)507247 [13:42:50]line ИНН: 02508201610067 [13:42:50]line Контрольно-Кассовый Чек [13:42:50]line ПРОДАЖА [13:42:50]line ТРК (МРК, ГНК) : 42 [13:42:50]line Товар: 2710124130 [13:42:50]line Super-92-К-5 [13:42:50]line 29.500 * 67.80 [13:42:50]line = 2000.10 [13:42:50]line НДС 12% НСП 1% [13:42:50]line > о реализуемом товаре [13:42:50]line ИТОГО: 2000.10 [13:42:50]line НСП 1% : 17.70 [13:42:50]line НДС 12% : 212.40 [13:42:50]line Наличными: 0.00 [13:42:50]line Безнал.: 2000.10 [13:42:50]line Место: АЗС № 91 "Партнер Нефть" [13:42:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:42:50]line СНО: Общий режим [13:42:50]line Чек 88 15.05.2024 13:42 [13:42:50]line Смена: 356 ФФД: 1.0 [13:42:50]line ЗНМ: 0300000119 [13:42:50]line РНМ: 0000000000091845 [13:42:50]line Версия ККМ: 001 [13:42:50]line Платежная система: O! деньги [13:42:50]line ФМ: 0000000000871829 [13:42:50]line ФД: 67270 [13:42:50]line ФПД: 56446259188922 [13:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67270&fm=56446259188922&tin=02508201610067®Number=0000000000091845&sum=200010 [13:42:50]Connected sock=10 [13:42: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 01 D0 08 01 30 B9 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 58 00 00 00 F4 03 04 00 D9 BB 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 33 56 6B 3A 54 BA 1E 91 BB 6D 3C D3 6D 25 [13:42:50]written 0, free lines is 4095 [13:42: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 B3 3F 47 00 26 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 C6 06 01 00 F4 03 04 00 B7 63 44 66 B6 04 01 00 00 C9 8D DA B8 4A 94 F8 8D [13:42:51]CommunicateWithHost err = 0 [13:42:51]CheckOFDResponse [13:42:51]1017 (14) - 77093643461234 [13:42:51]1041 (16) - 0000000000871829 [13:42:51]1040 (4) - 67270 [13:42:51]1012 (4) - 15.05.2024 07:26 [13:42:51]1206 (1) - 0 [13:42:51]OFD Sender: Remove packet 67270 [13:42:51]ProducePacketName [13:42:51]name=ofd_packets/00067270 [13:42:51]NVStorageDeleteData [13:42:51]Write to MH i2c: 01 00 00 13 0F 22 [13:42:51]Write i2c OK [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: 01 [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: 01 07 00 [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 D8 0C 0D [13:42:51]RasterBufferAndPrint [13:42:51]line [13:42:51]line [13:42:51]line [13:42:51]line [13:42:51]line [13:42:51]written 0, free lines is 3294 [13:42:51]MH_Cut [13:42:51]Write to MH i2c: D1 01 00 1A 0F 01 FB [13:42:51]Write i2c OK [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: D1 [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: D1 01 00 [13:42:51]MH_I2C_Read... [13:42:51]Read from MH i2c: D1 01 00 1A 0F 00 FA [13:42:51]Write to MH i2c: 01 00 00 1B 0F 2A [13:42:51]Write i2c OK [13:42:51]MH_I2C_Read... [13:42:51]OFD Sender: No OFD packet to send [13:42:52]*** Cut start [13:42:52]*** Purtial cut [13:42:52]*** Stage 1: CUTSNS_PIN = 1 [13:42:52]Read from MH i2c: 01 [13:42:52]MH_I2C_Read... [13:42:52]*** Stop cut motor [13:42:52]*** Cut end [13:42:52]Read from MH i2c: 01 07 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 FF 0F 3F [13:42:52]process_action close_receipt done [13:42:52]requested_data is exist [13:42:52]produce_requested_data [13:42:52]requested_item fm.sn is exist - process it [13:42:52]wFMCommunicate request_size=4 [13:42:52]MH_SAM_APDU [13:42:52]CAPDU: 80 11 00 00 [13:42:52]Write to MH i2c: E2 08 00 1C 0F 80 11 00 00 00 00 00 00 A5 [13:42:52]Write i2c OK [13:42:52]MH_I2C_Read... [13:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:52]Read from MH i2c: E2 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 17 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 17 00 1C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [13:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:42:52]wFMCommunicate OK [13:42:52]requested_item fd.num is exist - process it [13:42:52]SAM_PROTO_GetFieldsCounters [13:42:52]wFMCommunicate request_size=4 [13:42:52]MH_SAM_APDU [13:42:52]CAPDU: 80 13 00 00 [13:42:52]Write to MH i2c: E2 08 00 1D 0F 80 13 00 00 00 00 00 00 A8 [13:42:52]Write i2c OK [13:42:52]MH_I2C_Read... [13:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:52]Read from MH i2c: E2 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 62 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 62 00 1D 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 C6 06 01 00 0E 04 04 00 64 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 08 [13:42: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 C6 06 01 00 0E 04 04 00 64 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 [13:42:52]wFMCommunicate OK [13:42:52]SAM_PROTO_GetFieldsCounters done [13:42:52]requested_item shift.num is exist - process it [13:42:52]requested_item shift.opened is exist - process it [13:42:52]req_shift_opened [13:42:52]FM_GetShiftState [13:42:52]SAM_PROTO_GetShiftState [13:42:52]wFMCommunicate request_size=4 [13:42:52]MH_SAM_APDU [13:42:52]CAPDU: 80 13 01 00 [13:42:52]Write to MH i2c: E2 08 00 1E 0F 80 13 01 00 00 00 00 00 AA [13:42:52]Write i2c OK [13:42:52]MH_I2C_Read... [13:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:52]Read from MH i2c: E2 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 0E 00 [13:42:52]MH_I2C_Read... [13:42:52]Read from MH i2c: E2 0E 00 1E 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 55 [13:42:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:42:52]wFMCommunicate OK [13:42:52]SAM_PROTO_GetShiftState done [13:42:52]FM_GetShiftState done [13:42:52]req_shift_opened done [13:42:52]requested_item shift.open_date is exist - process it [13:42:52]req_shift_open_date [13:42:52]req_shift_open_date done [13:42:52]produce_requested_data done [13:42:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67270,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:42:52]process_action_free close_receipt [13:42:52]json_value_free [13:42:52]json_value_free done [13:42:52]process_json_proto returns [13:42:52]Send response to host [13:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67270,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:42:52]free response buf [13:42:52]execute_script done [13:42:52]execute_script returns [13:42:52]free content buf [13:42:52]Sock 7.Close socket [13:42:52]Sock 7.Thread stoped [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:42]accept exits with 9 [13:43:42]New connection [13:43:42]New thread 3067030884 created [13:43:42]Thread 3067174244 joined [13:43:42]Waiting for new connection... [13:43:42] Sock 9.Parse request [13:43:42]Sock 9.Check first char [13:43:42]Sock 9.First char is OK [13:43:42]request: POST /json_proto HTTP/1.0 [13:43:42]Method: POST [13:43:42]URL: /json_proto [13:43:42]Method is POST - this is cgi request [13:43:42]url: /json_proto [13:43:42]query_string will be loaded in cgi processing [13:43:42]execute_cgi json_proto POST (null) [13:43:42]execute_cgi path=json_proto method=POST [13:43:42]POST find Content-Length [13:43:42]Host: 172.17.41.195:8080 [13:43:42]Content-Length: 1209 [13:43:42]Content-Type: application/json [13:43:42] [13:43:42]POST finish read [13:43:42]Found Content-Length = 1209 [13:43: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)507249\u000A15.05.2024 13:26\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" ] } } [13:43:42]execute_script... [13:43: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)507249\u000A15.05.2024 13:26\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" ] } } [13:43:42]POST & json_proto [13:43:42]process_json_proto [13:43:42]json parsed OK: [13:43:42]protocol is kg_v1.0 [13:43:42]action value=print_text [13:43:42]process_action print_text [13:43:42]cmd_print_text [13:43:42]ExternCall_PrintAddStr [13:43:42]wPrintStart [13:43:42]Write to MH i2c: 01 00 00 1F 0F 2E [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 FF 0F 43 [13:43:42]RasterBufferAndPrint [13:43:42]line *****ТОВАРНЫЙ ЧЕК***** [13:43:42]line АЗС-91 [13:43:42]line Партнер нефть [13:43:42]line 02508201610067 [13:43:42]line Кассир : Арстанбеков Н. [13:43:42]line Счет N : (1)507249 [13:43:42]line 15.05.2024 13:26 [13:43:42]line ПРОДАЖА [13:43:42]line ТРК (МРК, ГНК): 11 [13:43:42]line Вид ГСМ : 2710194210 [13:43:42]line ДТ-К-5 [13:43:42]line 13.390 x 74.70 [13:43:42]line ИТОГ: 1000.23 [13:43:42]line Тип оплаты: Талоны: Топливная Карта [13:43:42]line 02750 [13:43:42]line ______________________ [13:43:42]line (подпись) [13:43:42]written 0, free lines is 4095 [13:43:42]Write to MH i2c: 01 00 00 33 0F 42 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 0E 0E 65 [13:43:42]RasterBufferAndPrint [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]line [13:43:42]written 0, free lines is 3600 [13:43:42]MH_Cut [13:43:42]Write to MH i2c: D1 01 00 3A 0F 01 1B [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: D1 01 00 3A 0F 00 1A [13:43:42]Write to MH i2c: 01 00 00 3B 0F 4A [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:43]*** Cut start [13:43:43]*** Purtial cut [13:43:43]*** CUTSNS_PIN = 0 [13:43:43]*** Stage 1: CUTSNS_PIN = 1 [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]*** Stop cut motor [13:43:45]*** Cut end [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [13:43:45]process_action print_text done [13:43:45]requested_data is exist [13:43:45]produce_requested_data [13:43:45]requested_item fm.sn is exist - process it [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 11 00 00 [13:43:45]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [13:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:43:45]wFMCommunicate OK [13:43:45]requested_item fd.num is exist - process it [13:43:45]SAM_PROTO_GetFieldsCounters [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 00 00 [13:43:45]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 3D 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 C6 06 01 00 0E 04 04 00 64 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 28 [13:43: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 C6 06 01 00 0E 04 04 00 64 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 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetFieldsCounters done [13:43:45]requested_item shift.num is exist - process it [13:43:45]requested_item shift.opened is exist - process it [13:43:45]req_shift_opened [13:43:45]FM_GetShiftState [13:43:45]SAM_PROTO_GetShiftState [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 01 00 [13:43:45]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 75 [13:43:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetShiftState done [13:43:45]FM_GetShiftState done [13:43:45]req_shift_opened done [13:43:45]requested_item shift.open_date is exist - process it [13:43:45]req_shift_open_date [13:43:45]req_shift_open_date done [13:43:45]produce_requested_data done [13:43:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67270,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:43:45]process_action_free print_text [13:43:45]json_value_free [13:43:45]json_value_free done [13:43:45]process_json_proto returns [13:43:45]Send response to host [13:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67270,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:43:45]free response buf [13:43:45]execute_script done [13:43:45]execute_script returns [13:43:45]free content buf [13:43:45]Sock 9.Close socket [13:43:45]Sock 9.Thread stoped [13:43:45]accept exits with 7 [13:43:45]New connection [13:43:45]New thread 3067174244 created [13:43:45]Thread 3067030884 joined [13:43:45]Waiting for new connection... [13:43:45] Sock 7.Parse request [13:43:45]Sock 7.Check first char [13:43:45]Sock 7.First char is OK [13:43:45]request: POST /json_proto HTTP/1.0 [13:43:45]Method: POST [13:43:45]URL: /json_proto [13:43:45]Method is POST - this is cgi request [13:43:45]url: /json_proto [13:43:45]query_string will be loaded in cgi processing [13:43:45]execute_cgi json_proto POST (null) [13:43:45]execute_cgi path=json_proto method=POST [13:43:45]POST find Content-Length [13:43:45]Host: 172.17.41.195:8080 [13:43:45]Content-Length: 800 [13:43:45]Content-Type: application/json [13:43:45] [13:43:45]POST finish read [13:43:45]Found Content-Length = 800 [13:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507248", "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" ] } } [13:43:45]execute_script... [13:43: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)507248", "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" ] } } [13:43:45]POST & json_proto [13:43:45]process_json_proto [13:43:45]json parsed OK: [13:43:45]protocol is kg_v1.0 [13:43:45]action value=close_receipt [13:43:45]process_action close_receipt [13:43:45]cmd_close_receipt [13:43:45]MH_GetDate [13:43:45]Write to MH i2c: F0 00 00 3F 0F 3D [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: F0 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: F0 09 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: F0 09 00 3F 0F 00 12 BC 44 66 FC 21 6F 64 AE [13:43:45]GetLastDocTimeStamp 1715780569 [13:43:45]current date 1715780626 [13:43:45]FM_GetShiftState [13:43:45]SAM_PROTO_GetShiftState [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 01 00 [13:43:45]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 77 [13:43:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetShiftState done [13:43:45]FM_GetShiftState done [13:43:45]opened in 1715732471 [13:43:45]opened+sec_in_day 1715818871 [13:43:45]quantity*price = 200046 [13:43:45]sum+1 = 200048 [13:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 89 15.05.2024 13:43 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67271 ФПД: 92624353333104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134346&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67271&fm=92624353333104&tin=02508201610067®Number=0000000000091845&sum=200047 [13:43:47]StoreToDocumentArchive [13:43:47]shift 356 fd 67271 [13:43:47]save to /storage/0356/doc_00067271 [13:43:47]save last doc name /storage/0356/doc_00067271 to /storage/kkm_last_doc_name [13:43:47]save OK [13:43:47]Clear old archive folders... [13:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:47]tlvbuf is 00B5D0A0 [13:43:47]SAM_PROTO_ClearQueue [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 09 00 00 [13:43:47]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_ClearQueue done [13:43:47]KKMCreateOFDPacket [13:43:47]OFDProtocolAddRootSTLVToBuf [13:43:47]FM_MakeSignedData [13:43:47]FM_MakeSignedData [13:43:47]SAM_PROTO_SignData [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 0D 01 02 [13:43:47]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]wFMCommunicate request_size=255 [13:43:47]MH_SAM_APDU [13:43: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 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 59 00 00 00 F4 03 04 00 12 BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 3D C9 AD [13:43:47]Write to MH i2c: E2 02 01 4F 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 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 59 00 00 00 F4 03 04 00 12 BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 3D C9 AD 00 00 4D [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]wFMCommunicate request_size=7 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 0D 02 02 02 8F 70 [13:43:47]Write to MH i2c: E2 0A 00 50 0F 80 0D 02 02 02 00 8F 70 00 00 DC [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [13:43:47]RAPDU: 90 00 [13:43:47]wFMCommunicate OK [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 0D 03 02 [13:43:47]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 0B 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 0B 00 51 0F 00 B5 01 BF 80 3F 86 2E 94 90 00 58 [13:43:47]RAPDU: B5 01 BF 80 3F 86 2E 94 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_SignData done [13:43:47]FM_MakeSignedData done [13:43:47]CreateOFDProtocolMessage [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 11 00 00 [13:43:47]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [13: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 [13:43:47]wFMCommunicate OK [13:43:47]CreateOFDProtocolMessage done [13:43:47]OFDSenderStorePacket 67271 [13:43:47]StoreOFDPacket docnum=67271 [13:43: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 0C 01 00 00 B9 F5 04 01 48 ED 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 59 00 00 00 F4 03 04 00 12 BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 3D C9 AD 8F 70 B5 01 BF 80 3F 86 2E 94 [13:43:47]CheckFolder [13:43:47]dirname=/storage/ofd_packets [13:43:47]CheckFolder done [13:43:47]ProducePacketName [13:43:47]name=ofd_packets/00067271 [13:43:47]NVStorageSaveData ofd_packets/00067271 [13:43:47]File name is /storage/ofd_packets/00067271 [13:43:47]Write 298 bytes [13:43:47]NVStorageSaveData done [13:43:47]OFDSenderStorePacket done [13:43:47]KKMCreateOFDPacket done [13:43:47]NVStorageSaveData kkm_last_timestamp [13:43:47]File name is /storage/kkm_last_timestamp [13:43:47]Write 4 bytes [13:43:47]NVStorageSaveData done [13:43:47]ExternCall_PrintAddStr [13:43:47]wPrintStart [13:43:47]Write to MH i2c: 01 00 00 53 0F 62 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: 01 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: 01 07 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [13:43:47]RasterBufferAndPrint [13:43:47]line Счет N : (1)507248 [13:43:47]line ИНН: 02508201610067 [13:43:47]line Контрольно-Кассовый Чек [13:43:47]line ПРОДАЖА [13:43:47]line ТРК (МРК, ГНК) : 31 [13:43:47]line Товар: 2710194210 [13:43:47]line ДТ-К-5 [13:43:47]line 26.780 * 74.70 [13:43:47]line = 2000.47 [13:43:47]line НДС 12% НСП 1% [13:43:47]line > о реализуемом товаре [13:43:47]line ИТОГО: 2000.47 [13:43:47]line НСП 1% : 17.70 [13:43:47]line НДС 12% : 212.44 [13:43:47]line Наличными: 0.00 [13:43:47]line Безнал.: 2000.47 [13:43:47]line Место: АЗС № 91 "Партнер Нефть" [13:43:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:43:47]line СНО: Общий режим [13:43:47]line Чек 89 15.05.2024 13:43 [13:43:47]line Смена: 356 ФФД: 1.0 [13:43:47]line ЗНМ: 0300000119 [13:43:47]line РНМ: 0000000000091845 [13:43:47]line Версия ККМ: 001 [13:43:47]line Платежная система: O! деньги [13:43:47]line ФМ: 0000000000871829 [13:43:47]line ФД: 67271 [13:43:47]line ФПД: 92624353333104 [13:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134346&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67271&fm=92624353333104&tin=02508201610067®Number=0000000000091845&sum=200047 [13:43:48]OFD Sender: Processing packet 67271 [packets to send 35, broken 34] [13:43:48]ProducePacketName [13:43:48]name=ofd_packets/00067271 [13:43:48]OFD Sender: To server: pG, [13:43:48]CommunicateWithHost lk.salyk.kg:30040 [13:43:48]ConnectInit lk.salyk.kg [13:43:48]written 0, free lines is 4095 [13:43:48]Connected sock=10 [13:43: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 B9 F5 04 01 48 ED 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 59 00 00 00 F4 03 04 00 12 BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 3D C9 AD 8F 70 B5 01 BF 80 3F 86 2E 94 [13:43: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 8D AB 47 00 23 AE 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 06 01 00 F4 03 04 00 F0 63 44 66 B6 04 01 00 00 62 E0 85 AC 6A E1 C1 19 [13:43:48]CommunicateWithHost err = 0 [13:43:48]CheckOFDResponse [13:43:48]1017 (14) - 77093643461234 [13:43:48]1041 (16) - 0000000000871829 [13:43:48]1040 (4) - 67271 [13:43:48]1012 (4) - 15.05.2024 07:27 [13:43:48]1206 (1) - 0 [13:43:48]OFD Sender: Remove packet 67271 [13:43:48]ProducePacketName [13:43:48]name=ofd_packets/00067271 [13:43:48]NVStorageDeleteData [13:43:48]Write to MH i2c: 01 00 00 7C 0F 8B [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 E1 0C 7F [13:43:48]RasterBufferAndPrint [13:43:48]line [13:43:48]line [13:43:48]line [13:43:48]line [13:43:48]line [13:43:48]written 0, free lines is 3302 [13:43:48]MH_Cut [13:43:48]Write to MH i2c: D1 01 00 83 0F 01 64 [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: D1 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: D1 01 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: D1 01 00 83 0F 00 63 [13:43:48]Write to MH i2c: 01 00 00 84 0F 93 [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]OFD Sender: No OFD packet to send [13:43:49]*** Cut start [13:43:49]*** Purtial cut [13:43:49]*** Stage 1: CUTSNS_PIN = 1 [13:43:49]Read from MH i2c: 01 [13:43:49]MH_I2C_Read... [13:43:49]*** Stop cut motor [13:43:49]*** Cut end [13:43:49]Read from MH i2c: 01 07 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [13:43:49]process_action close_receipt done [13:43:49]requested_data is exist [13:43:49]produce_requested_data [13:43:49]requested_item fm.sn is exist - process it [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 11 00 00 [13:43:49]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 17 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 64 [13:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:43:49]wFMCommunicate OK [13:43:49]requested_item fd.num is exist - process it [13:43:49]SAM_PROTO_GetFieldsCounters [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 13 00 00 [13:43:49]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 62 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 62 00 86 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 C7 06 01 00 0E 04 04 00 64 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 75 [13:43: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 C7 06 01 00 0E 04 04 00 64 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 [13:43:49]wFMCommunicate OK [13:43:49]SAM_PROTO_GetFieldsCounters done [13:43:49]requested_item shift.num is exist - process it [13:43:49]requested_item shift.opened is exist - process it [13:43:49]req_shift_opened [13:43:49]FM_GetShiftState [13:43:49]SAM_PROTO_GetShiftState [13:43:49]wFMCommunicate request_size=4 [13:43:49]MH_SAM_APDU [13:43:49]CAPDU: 80 13 01 00 [13:43:49]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [13:43:49]Write i2c OK [13:43:49]MH_I2C_Read... [13:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:49]Read from MH i2c: E2 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 0E 00 [13:43:49]MH_I2C_Read... [13:43:49]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BE [13:43:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:43:49]wFMCommunicate OK [13:43:49]SAM_PROTO_GetShiftState done [13:43:49]FM_GetShiftState done [13:43:49]req_shift_opened done [13:43:49]requested_item shift.open_date is exist - process it [13:43:49]req_shift_open_date [13:43:49]req_shift_open_date done [13:43:49]produce_requested_data done [13:43:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67271,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:43:49]process_action_free close_receipt [13:43:49]json_value_free [13:43:49]json_value_free done [13:43:49]process_json_proto returns [13:43:49]Send response to host [13:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67271,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:43:49]free response buf [13:43:49]execute_script done [13:43:49]execute_script returns [13:43:49]free content buf [13:43:49]Sock 7.Close socket [13:43:49]Sock 7.Thread stoped [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:23]accept exits with 9 [13:47:23]New connection [13:47:23]New thread 3067030884 created [13:47:23]Thread 3067174244 joined [13:47:23]Waiting for new connection... [13:47:23] Sock 9.Parse request [13:47:23]Sock 9.Check first char [13:47:23]Sock 9.First char is OK [13:47:23]request: POST /json_proto HTTP/1.0 [13:47:23]Method: POST [13:47:23]URL: /json_proto [13:47:23]Method is POST - this is cgi request [13:47:23]url: /json_proto [13:47:23]query_string will be loaded in cgi processing [13:47:23]execute_cgi json_proto POST (null) [13:47:23]execute_cgi path=json_proto method=POST [13:47:23]POST find Content-Length [13:47:23]Host: 172.17.41.195:8080 [13:47:23]Content-Length: 800 [13:47:23]Content-Type: application/json [13:47:23] [13:47:23]POST finish read [13:47:23]Found Content-Length = 800 [13:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507250", "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" : 22.760, "sum" : 1700.17, "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" : 1700.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:23]execute_script... [13:47: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)507250", "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" : 22.760, "sum" : 1700.17, "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" : 1700.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:23]POST & json_proto [13:47:23]process_json_proto [13:47:23]json parsed OK: [13:47:23]protocol is kg_v1.0 [13:47:23]action value=close_receipt [13:47:23]process_action close_receipt [13:47:23]cmd_close_receipt [13:47:23]MH_GetDate [13:47:23]Write to MH i2c: F0 00 00 88 0F 86 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: F0 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: F0 09 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: F0 09 00 88 0F 00 EC BC 44 66 FC 21 6F 64 D1 [13:47:23]GetLastDocTimeStamp 1715780626 [13:47:23]current date 1715780844 [13:47:23]FM_GetShiftState [13:47:23]SAM_PROTO_GetShiftState [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 13 01 00 [13:47:23]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0E 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C0 [13:47:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:47:23]wFMCommunicate OK [13:47:23]SAM_PROTO_GetShiftState done [13:47:23]FM_GetShiftState done [13:47:23]opened in 1715732471 [13:47:23]opened+sec_in_day 1715818871 [13:47:23]quantity*price = 170017 [13:47:23]sum+1 = 170018 [13:47:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.17 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 0.00 Безнал.: 1700.17 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 90 15.05.2024 13:47 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67272 ФПД: 103022180399848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134724&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67272&fm=103022180399848&tin=02508201610067®Number=0000000000091845&sum=170017 [13:47:24]StoreToDocumentArchive [13:47:24]shift 356 fd 67272 [13:47:24]save to /storage/0356/doc_00067272 [13:47:24]save last doc name /storage/0356/doc_00067272 to /storage/kkm_last_doc_name [13:47:24]save OK [13:47:24]Clear old archive folders... [13:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:24]tlvbuf is 00B26C90 [13:47:24]SAM_PROTO_ClearQueue [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 09 00 00 [13:47:24]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [13:47:24]RAPDU: 90 00 [13:47:24]wFMCommunicate OK [13:47:24]SAM_PROTO_ClearQueue done [13:47:24]KKMCreateOFDPacket [13:47:24]OFDProtocolAddRootSTLVToBuf [13:47:24]FM_MakeSignedData [13:47:24]FM_MakeSignedData [13:47:24]SAM_PROTO_SignData [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 0D 01 02 [13:47:24]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [13:47:24]RAPDU: 90 00 [13:47:24]wFMCommunicate OK [13:47:24]wFMCommunicate request_size=255 [13:47:24]MH_SAM_APDU [13:47: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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EC BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D B2 B8 77 [13:47:24]Write to MH i2c: E2 02 01 98 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EC BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D B2 B8 77 00 00 0E [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [13:47:24]RAPDU: 90 00 [13:47:24]wFMCommunicate OK [13:47:24]wFMCommunicate request_size=7 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 0D 02 02 02 7A E8 [13:47:24]Write to MH i2c: E2 0A 00 99 0F 80 0D 02 02 02 00 7A E8 00 00 88 [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [13:47:24]RAPDU: 90 00 [13:47:24]wFMCommunicate OK [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 0D 03 02 [13:47:24]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 0B 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 0B 00 9A 0F 00 50 BF DE 4C 65 53 3C 24 90 00 76 [13:47:24]RAPDU: 50 BF DE 4C 65 53 3C 24 90 00 [13:47:24]wFMCommunicate OK [13:47:24]SAM_PROTO_SignData done [13:47:24]FM_MakeSignedData done [13:47:24]CreateOFDProtocolMessage [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 11 00 00 [13:47:24]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 17 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [13:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:47:24]wFMCommunicate OK [13:47:24]CreateOFDProtocolMessage done [13:47:24]OFDSenderStorePacket 67272 [13:47:24]StoreOFDPacket docnum=67272 [13:47:24]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 2F CC 04 01 47 C9 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EC BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D B2 B8 77 7A E8 50 BF DE 4C 65 53 3C 24 [13:47:24]CheckFolder [13:47:24]dirname=/storage/ofd_packets [13:47:24]CheckFolder done [13:47:24]ProducePacketName [13:47:24]name=ofd_packets/00067272 [13:47:24]NVStorageSaveData ofd_packets/00067272 [13:47:24]File name is /storage/ofd_packets/00067272 [13:47:24]Write 298 bytes [13:47:24]NVStorageSaveData done [13:47:24]OFDSenderStorePacket done [13:47:24]KKMCreateOFDPacket done [13:47:24]NVStorageSaveData kkm_last_timestamp [13:47:24]File name is /storage/kkm_last_timestamp [13:47:24]Write 4 bytes [13:47:24]NVStorageSaveData done [13:47:24]ExternCall_PrintAddStr [13:47:24]wPrintStart [13:47:24]Write to MH i2c: 01 00 00 9C 0F AB [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 07 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [13:47:24]RasterBufferAndPrint [13:47:24]line Счет N : (1)507250 [13:47:24]line ИНН: 02508201610067 [13:47:24]line Контрольно-Кассовый Чек [13:47:24]line ПРОДАЖА [13:47:24]line ТРК (МРК, ГНК) : 41 [13:47:24]line Товар: 2710194210 [13:47:24]line ДТ-К-5 [13:47:24]line 22.760 * 74.70 [13:47:24]line = 1700.17 [13:47:24]line НДС 12% НСП 1% [13:47:24]line > о реализуемом товаре [13:47:24]line ИТОГО: 1700.17 [13:47:24]line НСП 1% : 15.05 [13:47:24]line НДС 12% : 180.55 [13:47:24]line Наличными: 0.00 [13:47:24]line Безнал.: 1700.17 [13:47:24]line Место: АЗС № 91 "Партнер Нефть" [13:47:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:47:24]line СНО: Общий режим [13:47:24]line Чек 90 15.05.2024 13:47 [13:47:24]line Смена: 356 ФФД: 1.0 [13:47:24]line ЗНМ: 0300000119 [13:47:24]line РНМ: 0000000000091845 [13:47:24]line Версия ККМ: 001 [13:47:24]line Платежная система: O! деньги [13:47:24]line ФМ: 0000000000871829 [13:47:24]line ФД: 67272 [13:47:24]line ФПД: 103022180399848 [13:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T134724&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67272&fm=103022180399848&tin=02508201610067®Number=0000000000091845&sum=170017 [13:47:25]OFD Sender: Processing packet 67272 [packets to send 35, broken 34] [13:47:25]ProducePacketName [13:47:25]name=ofd_packets/00067272 [13:47:25]OFD Sender: To server: pG, [13:47:25]CommunicateWithHost lk.salyk.kg:30040 [13:47:25]ConnectInit lk.salyk.kg [13:47:25]written 0, free lines is 4095 [13:47:25]Connected sock=10 [13:47: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 2F CC 04 01 47 C9 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 EC BC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D B2 B8 77 7A E8 50 BF DE 4C 65 53 3C 24 [13:47: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 3E BB 47 00 D4 73 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 06 01 00 F4 03 04 00 C9 64 44 66 B6 04 01 00 00 DC 6A 7A DC 8B 9C 93 9F [13:47:25]CommunicateWithHost err = 0 [13:47:25]CheckOFDResponse [13:47:25]1017 (14) - 77093643461234 [13:47:25]1041 (16) - 0000000000871829 [13:47:25]1040 (4) - 67272 [13:47:25]1012 (4) - 15.05.2024 07:31 [13:47:25]1206 (1) - 0 [13:47:25]OFD Sender: Remove packet 67272 [13:47:25]ProducePacketName [13:47:25]name=ofd_packets/00067272 [13:47:25]NVStorageDeleteData [13:47:25]Write to MH i2c: 01 00 00 C5 0F D4 [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: 01 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: 01 07 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: 01 07 00 C5 0F 00 00 00 00 00 D5 0C BC [13:47:25]RasterBufferAndPrint [13:47:25]line [13:47:25]line [13:47:25]line [13:47:25]line [13:47:25]line [13:47:25]written 0, free lines is 3290 [13:47:25]MH_Cut [13:47:25]Write to MH i2c: D1 01 00 CC 0F 01 AD [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: D1 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: D1 01 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: D1 01 00 CC 0F 00 AC [13:47:25]Write to MH i2c: 01 00 00 CD 0F DC [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]OFD Sender: No OFD packet to send [13:47:26]*** Cut start [13:47:26]*** Purtial cut [13:47:26]*** CUTSNS_PIN = 0 [13:47:26]*** Stage 1: CUTSNS_PIN = 1 [13:47:28]Read from MH i2c: 01 [13:47:28]MH_I2C_Read... [13:47:28]*** Stop cut motor [13:47:28]*** Cut end [13:47:28]Read from MH i2c: 01 07 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 FF 0F F1 [13:47:28]process_action close_receipt done [13:47:28]requested_data is exist [13:47:28]produce_requested_data [13:47:28]requested_item fm.sn is exist - process it [13:47:28]wFMCommunicate request_size=4 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 11 00 00 [13:47:28]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 17 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 17 00 CE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [13:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:47:28]wFMCommunicate OK [13:47:28]requested_item fd.num is exist - process it [13:47:28]SAM_PROTO_GetFieldsCounters [13:47:28]wFMCommunicate request_size=4 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 13 00 00 [13:47:28]Write to MH i2c: E2 08 00 CF 0F 80 13 00 00 00 00 00 00 5A [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 62 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 62 00 CF 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 C8 06 01 00 0E 04 04 00 64 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 C2 [13:47:28]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 06 01 00 0E 04 04 00 64 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 [13:47:28]wFMCommunicate OK [13:47:28]SAM_PROTO_GetFieldsCounters done [13:47:28]requested_item shift.num is exist - process it [13:47:28]requested_item shift.opened is exist - process it [13:47:28]req_shift_opened [13:47:28]FM_GetShiftState [13:47:28]SAM_PROTO_GetShiftState [13:47:28]wFMCommunicate request_size=4 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 13 01 00 [13:47:28]Write to MH i2c: E2 08 00 D0 0F 80 13 01 00 00 00 00 00 5C [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 0E 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 0E 00 D0 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 07 [13:47:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [13:47:28]wFMCommunicate OK [13:47:28]SAM_PROTO_GetShiftState done [13:47:28]FM_GetShiftState done [13:47:28]req_shift_opened done [13:47:28]requested_item shift.open_date is exist - process it [13:47:28]req_shift_open_date [13:47:28]req_shift_open_date done [13:47:28]produce_requested_data done [13:47:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67272,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [13:47:28]process_action_free close_receipt [13:47:28]json_value_free [13:47:28]json_value_free done [13:47:28]process_json_proto returns [13:47:28]Send response to host [13:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67272,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [13:47:28]free response buf [13:47:28]execute_script done [13:47:28]execute_script returns [13:47:28]free content buf [13:47:28]Sock 9.Close socket [13:47:28]Sock 9.Thread stoped [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:08]accept exits with 7 [14:10:08]New connection [14:10:08]New thread 3067174244 created [14:10:08]Thread 3067030884 joined [14:10:08]Waiting for new connection... [14:10:08] Sock 7.Parse request [14:10:08]Sock 7.Check first char [14:10:08]Sock 7.First char is OK [14:10:08]request: POST /json_proto HTTP/1.0 [14:10:08]Method: POST [14:10:08]URL: /json_proto [14:10:08]Method is POST - this is cgi request [14:10:08]url: /json_proto [14:10:08]query_string will be loaded in cgi processing [14:10:08]execute_cgi json_proto POST (null) [14:10:08]execute_cgi path=json_proto method=POST [14:10:08]POST find Content-Length [14:10:08]Host: 172.17.41.195:8080 [14:10:08]Content-Length: 793 [14:10:08]Content-Type: application/json [14:10:08] [14:10:08]POST finish read [14:10:08]Found Content-Length = 793 [14:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507251", "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" : 8.850, "sum" : 600.03, "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]execute_script... [14:10:08]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)507251", "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" : 8.850, "sum" : 600.03, "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.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]POST & json_proto [14:10:08]process_json_proto [14:10:08]json parsed OK: [14:10:08]protocol is kg_v1.0 [14:10:08]action value=close_receipt [14:10:08]process_action close_receipt [14:10:08]cmd_close_receipt [14:10:08]MH_GetDate [14:10:08]Write to MH i2c: F0 00 00 D1 0F CF [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 09 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 09 00 D1 0F 00 41 C2 44 66 FC 21 6F 64 75 [14:10:08]GetLastDocTimeStamp 1715780844 [14:10:08]current date 1715782209 [14:10:08]FM_GetShiftState [14:10:08]SAM_PROTO_GetShiftState [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 01 00 [14:10:08]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [14:10:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:10:08]wFMCommunicate OK [14:10:08]SAM_PROTO_GetShiftState done [14:10:08]FM_GetShiftState done [14:10:08]opened in 1715732471 [14:10:08]opened+sec_in_day 1715818871 [14:10:08]quantity*price = 60003 [14:10:08]sum+1 = 60004 [14:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 91 15.05.2024 14:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67273 ФПД: 171809815815915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67273&fm=171809815815915&tin=02508201610067®Number=0000000000091845&sum=60003 [14:10:09]StoreToDocumentArchive [14:10:09]shift 356 fd 67273 [14:10:09]save to /storage/0356/doc_00067273 [14:10:09]save last doc name /storage/0356/doc_00067273 to /storage/kkm_last_doc_name [14:10:09]save OK [14:10:09]Clear old archive folders... [14:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:10:09]tlvbuf is 00AE8C60 [14:10:09]SAM_PROTO_ClearQueue [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 09 00 00 [14:10:09]Write to MH i2c: E2 08 00 DF 0F 80 09 00 00 00 00 00 00 60 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [14:10:09]RAPDU: 90 00 [14:10:09]wFMCommunicate OK [14:10:09]SAM_PROTO_ClearQueue done [14:10:09]KKMCreateOFDPacket [14:10:09]OFDProtocolAddRootSTLVToBuf [14:10:09]FM_MakeSignedData [14:10:09]FM_MakeSignedData [14:10:09]SAM_PROTO_SignData [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 0D 01 02 [14:10:09]Write to MH i2c: E2 08 00 E0 0F 80 0D 01 02 00 00 00 00 68 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [14:10:09]RAPDU: 90 00 [14:10:09]wFMCommunicate OK [14:10:09]wFMCommunicate request_size=255 [14:10:09]MH_SAM_APDU [14:10:09]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 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 5B 00 00 00 F4 03 04 00 41 C2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [14:10:09]Write to MH i2c: E2 02 01 E1 0F 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 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 5B 00 00 00 F4 03 04 00 41 C2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 20 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=11 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 06 9C 42 97 0A 66 EB [14:10:10]Write to MH i2c: E2 0E 00 E2 0F 80 0D 02 02 06 00 9C 42 97 0A 66 EB 00 00 47 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 03 02 [14:10:10]Write to MH i2c: E2 08 00 E3 0F 80 0D 03 02 00 00 00 00 6D [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 E3 0F 00 E5 38 3B 0F 13 80 47 DB 90 00 8A [14:10:10]RAPDU: E5 38 3B 0F 13 80 47 DB 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_SignData done [14:10:10]FM_MakeSignedData done [14:10:10]CreateOFDProtocolMessage [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 11 00 00 [14:10:10]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [14:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:10:10]wFMCommunicate OK [14:10:10]CreateOFDProtocolMessage done [14:10:10]OFDSenderStorePacket 67273 [14:10:10]StoreOFDPacket docnum=67273 [14:10: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 10 01 00 00 79 C2 08 01 33 F1 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 5B 00 00 00 F4 03 04 00 41 C2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9C 42 97 0A 66 EB E5 38 3B 0F 13 80 47 DB [14:10:10]CheckFolder [14:10:10]dirname=/storage/ofd_packets [14:10:10]CheckFolder done [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00067273 [14:10:10]NVStorageSaveData ofd_packets/00067273 [14:10:10]File name is /storage/ofd_packets/00067273 [14:10:10]Write 302 bytes [14:10:10]NVStorageSaveData done [14:10:10]OFDSenderStorePacket done [14:10:10]KKMCreateOFDPacket done [14:10:10]NVStorageSaveData kkm_last_timestamp [14:10:10]File name is /storage/kkm_last_timestamp [14:10:10]Write 4 bytes [14:10:10]NVStorageSaveData done [14:10:10]ExternCall_PrintAddStr [14:10:10]wPrintStart [14:10:10]Write to MH i2c: 01 00 00 E5 0F F4 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 FF 0F 09 [14:10:10]RasterBufferAndPrint [14:10:10]line Счет N : (1)507251 [14:10:10]line ИНН: 02508201610067 [14:10:10]line Контрольно-Кассовый Чек [14:10:10]line ПРОДАЖА [14:10:10]line ТРК (МРК, ГНК) : 32 [14:10:10]line Товар: 2710124130 [14:10:10]line Super-92-К-5 [14:10:10]line 8.850 * 67.80 [14:10:10]line = 600.03 [14:10:10]line НДС 12% НСП 1% [14:10:10]line > о реализуемом товаре [14:10:10]line ИТОГО: 600.03 [14:10:10]line НСП 1% : 5.31 [14:10:10]line НДС 12% : 63.72 [14:10:10]line Наличными: 0.00 [14:10:10]line Безнал.: 600.03 [14:10:10]line Место: АЗС № 91 "Партнер Нефть" [14:10:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:10:10]line СНО: Общий режим [14:10:10]line Чек 91 15.05.2024 14:10 [14:10:10]line Смена: 356 ФФД: 1.0 [14:10:10]line ЗНМ: 0300000119 [14:10:10]line РНМ: 0000000000091845 [14:10:10]line Версия ККМ: 001 [14:10:10]line Платежная система: O! деньги [14:10:10]line ФМ: 0000000000871829 [14:10:10]line ФД: 67273 [14:10:10]line ФПД: 171809815815915 [14:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67273&fm=171809815815915&tin=02508201610067®Number=0000000000091845&sum=60003 [14:10:10]OFD Sender: Processing packet 67273 [packets to send 35, broken 34] [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00067273 [14:10:10]OFD Sender: To server: pG, [14:10:10]CommunicateWithHost lk.salyk.kg:30040 [14:10:10]ConnectInit lk.salyk.kg [14:10:10]written 0, free lines is 4095 [14:10:10]Connected sock=10 [14:10: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 10 01 00 00 79 C2 08 01 33 F1 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 5B 00 00 00 F4 03 04 00 41 C2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9C 42 97 0A 66 EB E5 38 3B 0F 13 80 47 DB [14:10: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 09 D9 47 00 FD 4D 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 06 01 00 F4 03 04 00 1E 6A 44 66 B6 04 01 00 00 A7 88 5C F1 A5 C0 86 0F [14:10:11]CommunicateWithHost err = 0 [14:10:11]CheckOFDResponse [14:10:11]1017 (14) - 77093643461234 [14:10:11]1041 (16) - 0000000000871829 [14:10:11]1040 (4) - 67273 [14:10:11]1012 (4) - 15.05.2024 07:54 [14:10:11]1206 (1) - 0 [14:10:11]OFD Sender: Remove packet 67273 [14:10:11]ProducePacketName [14:10:11]name=ofd_packets/00067273 [14:10:11]NVStorageDeleteData [14:10:11]Write to MH i2c: 01 00 00 0E 10 1E [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 E2 0C 13 [14:10:11]RasterBufferAndPrint [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]written 0, free lines is 3303 [14:10:11]MH_Cut [14:10:11]Write to MH i2c: D1 01 00 15 10 01 F7 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 01 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: D1 01 00 15 10 00 F6 [14:10:11]Write to MH i2c: 01 00 00 16 10 26 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]OFD Sender: No OFD packet to send [14:10:11]*** Cut start [14:10:11]*** Purtial cut [14:10:11]*** Stage 1: CUTSNS_PIN = 1 [14:10:12]Read from MH i2c: 01 [14:10:12]MH_I2C_Read... [14:10:12]*** Stop cut motor [14:10:12]*** Cut end [14:10:12]Read from MH i2c: 01 07 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 FF 0F 3B [14:10:12]process_action close_receipt done [14:10:12]requested_data is exist [14:10:12]produce_requested_data [14:10:12]requested_item fm.sn is exist - process it [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 11 00 00 [14:10:12]Write to MH i2c: E2 08 00 17 10 80 11 00 00 00 00 00 00 A1 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 17 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 17 00 17 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [14:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:10:12]wFMCommunicate OK [14:10:12]requested_item fd.num is exist - process it [14:10:12]SAM_PROTO_GetFieldsCounters [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 13 00 00 [14:10:12]Write to MH i2c: E2 08 00 18 10 80 13 00 00 00 00 00 00 A4 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 62 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 62 00 18 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 C9 06 01 00 0E 04 04 00 64 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 10 [14:10: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 C9 06 01 00 0E 04 04 00 64 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 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_GetFieldsCounters done [14:10:12]requested_item shift.num is exist - process it [14:10:12]requested_item shift.opened is exist - process it [14:10:12]req_shift_opened [14:10:12]FM_GetShiftState [14:10:12]SAM_PROTO_GetShiftState [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 13 01 00 [14:10:12]Write to MH i2c: E2 08 00 19 10 80 13 01 00 00 00 00 00 A6 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0E 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0E 00 19 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 51 [14:10:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_GetShiftState done [14:10:12]FM_GetShiftState done [14:10:12]req_shift_opened done [14:10:12]requested_item shift.open_date is exist - process it [14:10:12]req_shift_open_date [14:10:12]req_shift_open_date done [14:10:12]produce_requested_data done [14:10:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67273,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:10:12]process_action_free close_receipt [14:10:12]json_value_free [14:10:12]json_value_free done [14:10:12]process_json_proto returns [14:10:12]Send response to host [14:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67273,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:10:12]free response buf [14:10:12]execute_script done [14:10:12]execute_script returns [14:10:12]free content buf [14:10:12]Sock 7.Close socket [14:10:12]Sock 7.Thread stoped [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:55]accept exits with 9 [14:18:55]New connection [14:18:55]New thread 3067030884 created [14:18:55]Thread 3067174244 joined [14:18:55]Waiting for new connection... [14:18:55] Sock 9.Parse request [14:18:55]Sock 9.Check first char [14:18:55]Sock 9.First char is OK [14:18:55]request: POST /json_proto HTTP/1.0 [14:18:55]Method: POST [14:18:55]URL: /json_proto [14:18:55]Method is POST - this is cgi request [14:18:55]url: /json_proto [14:18:55]query_string will be loaded in cgi processing [14:18:55]execute_cgi json_proto POST (null) [14:18:55]execute_cgi path=json_proto method=POST [14:18:55]POST find Content-Length [14:18:55]Host: 172.17.41.195:8080 [14:18:55]Content-Length: 800 [14:18:55]Content-Type: application/json [14:18:55] [14:18:55]POST finish read [14:18:55]Found Content-Length = 800 [14:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507252", "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" : 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" ] } } [14:18:55]execute_script... [14:18: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)507252", "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" : 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" ] } } [14:18:55]POST & json_proto [14:18:55]process_json_proto [14:18:55]json parsed OK: [14:18:55]protocol is kg_v1.0 [14:18:55]action value=close_receipt [14:18:55]process_action close_receipt [14:18:55]cmd_close_receipt [14:18:55]MH_GetDate [14:18:55]Write to MH i2c: F0 00 00 1A 10 19 [14:18:55]Write i2c OK [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 09 00 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: F0 09 00 1A 10 00 50 C4 44 66 FC 21 6F 64 D0 [14:18:55]GetLastDocTimeStamp 1715782209 [14:18:55]current date 1715782736 [14:18:55]FM_GetShiftState [14:18:55]SAM_PROTO_GetShiftState [14:18:55]wFMCommunicate request_size=4 [14:18:55]MH_SAM_APDU [14:18:55]CAPDU: 80 13 01 00 [14:18:55]Write to MH i2c: E2 08 00 1B 10 80 13 01 00 00 00 00 00 A8 [14:18:55]Write i2c OK [14:18:55]MH_I2C_Read... [14:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:55]Read from MH i2c: E2 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: E2 0E 00 [14:18:55]MH_I2C_Read... [14:18:55]Read from MH i2c: E2 0E 00 1B 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 53 [14:18:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:18:55]wFMCommunicate OK [14:18:55]SAM_PROTO_GetShiftState done [14:18:55]FM_GetShiftState done [14:18:55]opened in 1715732471 [14:18:55]opened+sec_in_day 1715818871 [14:18:55]quantity*price = 300069 [14:18:55]sum+1 = 300071 [14:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 92 15.05.2024 14:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67274 ФПД: 139056096551714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67274&fm=139056096551714&tin=02508201610067®Number=0000000000091845&sum=300070 [14:18:56]StoreToDocumentArchive [14:18:56]shift 356 fd 67274 [14:18:56]save to /storage/0356/doc_00067274 [14:18:56]save last doc name /storage/0356/doc_00067274 to /storage/kkm_last_doc_name [14:18:56]save OK [14:18:56]Clear old archive folders... [14:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:18:56]tlvbuf is 00B1B360 [14:18:56]SAM_PROTO_ClearQueue [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 09 00 00 [14:18:56]Write to MH i2c: E2 08 00 28 10 80 09 00 00 00 00 00 00 AA [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]SAM_PROTO_ClearQueue done [14:18:56]KKMCreateOFDPacket [14:18:56]OFDProtocolAddRootSTLVToBuf [14:18:56]FM_MakeSignedData [14:18:56]FM_MakeSignedData [14:18:56]SAM_PROTO_SignData [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 0D 01 02 [14:18:56]Write to MH i2c: E2 08 00 29 10 80 0D 01 02 00 00 00 00 B2 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]wFMCommunicate request_size=255 [14:18:56]MH_SAM_APDU [14:18:56]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 5C 00 00 00 F4 03 04 00 50 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7E 78 85 3D [14:18:56]Write to MH i2c: E2 02 01 2A 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 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 5C 00 00 00 F4 03 04 00 50 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7E 78 85 3D 00 00 86 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]wFMCommunicate request_size=7 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 0D 02 02 02 23 22 [14:18:56]Write to MH i2c: E2 0A 00 2B 10 80 0D 02 02 02 00 23 22 00 00 FE [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [14:18:56]RAPDU: 90 00 [14:18:56]wFMCommunicate OK [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 0D 03 02 [14:18:56]Write to MH i2c: E2 08 00 2C 10 80 0D 03 02 00 00 00 00 B7 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 0B 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 0B 00 2C 10 00 94 30 19 E3 DE 63 7E 3F 90 00 76 [14:18:56]RAPDU: 94 30 19 E3 DE 63 7E 3F 90 00 [14:18:56]wFMCommunicate OK [14:18:56]SAM_PROTO_SignData done [14:18:56]FM_MakeSignedData done [14:18:56]CreateOFDProtocolMessage [14:18:56]wFMCommunicate request_size=4 [14:18:56]MH_SAM_APDU [14:18:56]CAPDU: 80 11 00 00 [14:18:56]Write to MH i2c: E2 08 00 2D 10 80 11 00 00 00 00 00 00 B7 [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:56]Read from MH i2c: E2 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 17 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: E2 17 00 2D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [14:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:18:56]wFMCommunicate OK [14:18:56]CreateOFDProtocolMessage done [14:18:56]OFDSenderStorePacket 67274 [14:18:56]StoreOFDPacket docnum=67274 [14:18: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 16 B4 04 01 A1 D0 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 5C 00 00 00 F4 03 04 00 50 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7E 78 85 3D 23 22 94 30 19 E3 DE 63 7E 3F [14:18:56]CheckFolder [14:18:56]dirname=/storage/ofd_packets [14:18:56]CheckFolder done [14:18:56]ProducePacketName [14:18:56]name=ofd_packets/00067274 [14:18:56]NVStorageSaveData ofd_packets/00067274 [14:18:56]File name is /storage/ofd_packets/00067274 [14:18:56]Write 298 bytes [14:18:56]NVStorageSaveData done [14:18:56]OFDSenderStorePacket done [14:18:56]KKMCreateOFDPacket done [14:18:56]NVStorageSaveData kkm_last_timestamp [14:18:56]File name is /storage/kkm_last_timestamp [14:18:56]Write 4 bytes [14:18:56]NVStorageSaveData done [14:18:56]ExternCall_PrintAddStr [14:18:56]wPrintStart [14:18:56]Write to MH i2c: 01 00 00 2E 10 3E [14:18:56]Write i2c OK [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: 01 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: 01 07 00 [14:18:56]MH_I2C_Read... [14:18:56]Read from MH i2c: 01 07 00 2E 10 00 00 00 00 00 FF 0F 53 [14:18:56]RasterBufferAndPrint [14:18:56]line Счет N : (1)507252 [14:18:56]line ИНН: 02508201610067 [14:18:56]line Контрольно-Кассовый Чек [14:18:56]line ПРОДАЖА [14:18:56]line ТРК (МРК, ГНК) : 31 [14:18:56]line Товар: 2710194210 [14:18:56]line ДТ-К-5 [14:18:56]line 40.170 * 74.70 [14:18:56]line = 3000.70 [14:18:56]line НДС 12% НСП 1% [14:18:56]line > о реализуемом товаре [14:18:56]line ИТОГО: 3000.70 [14:18:56]line НСП 1% : 26.55 [14:18:56]line НДС 12% : 318.66 [14:18:56]line Наличными: 0.00 [14:18:56]line Безнал.: 3000.70 [14:18:56]line Место: АЗС № 91 "Партнер Нефть" [14:18:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:18:56]line СНО: Общий режим [14:18:56]line Чек 92 15.05.2024 14:18 [14:18:56]line Смена: 356 ФФД: 1.0 [14:18:57]line ЗНМ: 0300000119 [14:18:57]line РНМ: 0000000000091845 [14:18:57]line Версия ККМ: 001 [14:18:57]line Платежная система: O! деньги [14:18:57]line ФМ: 0000000000871829 [14:18:57]line ФД: 67274 [14:18:57]line ФПД: 139056096551714 [14:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67274&fm=139056096551714&tin=02508201610067®Number=0000000000091845&sum=300070 [14:18:57]OFD Sender: Processing packet 67274 [packets to send 35, broken 34] [14:18:57]ProducePacketName [14:18:57]name=ofd_packets/00067274 [14:18:57]OFD Sender: To server: pG, [14:18:57]CommunicateWithHost lk.salyk.kg:30040 [14:18:57]ConnectInit lk.salyk.kg [14:18:57]written 0, free lines is 4095 [14:18:57]Connected sock=10 [14:18:57]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 16 B4 04 01 A1 D0 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 5C 00 00 00 F4 03 04 00 50 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7E 78 85 3D 23 22 94 30 19 E3 DE 63 7E 3F [14:18: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 BB 61 47 00 13 13 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 06 01 00 F4 03 04 00 2D 6C 44 66 B6 04 01 00 00 FB A3 4B C6 74 15 EC 04 [14:18:57]CommunicateWithHost err = 0 [14:18:57]CheckOFDResponse [14:18:57]1017 (14) - 77093643461234 [14:18:57]1041 (16) - 0000000000871829 [14:18:57]1040 (4) - 67274 [14:18:57]1012 (4) - 15.05.2024 08:02 [14:18:57]1206 (1) - 0 [14:18:57]OFD Sender: Remove packet 67274 [14:18:57]ProducePacketName [14:18:57]name=ofd_packets/00067274 [14:18:57]NVStorageDeleteData [14:18:57]Write to MH i2c: 01 00 00 57 10 67 [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 07 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: 01 07 00 57 10 00 00 00 00 00 EB 0C 65 [14:18:57]RasterBufferAndPrint [14:18:57]line [14:18:57]line [14:18:57]line [14:18:57]line [14:18:57]line [14:18:57]written 0, free lines is 3313 [14:18:57]MH_Cut [14:18:57]Write to MH i2c: D1 01 00 5E 10 01 40 [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: D1 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: D1 01 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: D1 01 00 5E 10 00 3F [14:18:57]Write to MH i2c: 01 00 00 5F 10 6F [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:58]OFD Sender: No OFD packet to send [14:18:58]*** Cut start [14:18:58]*** Purtial cut [14:18:58]*** CUTSNS_PIN = 0 [14:18:58]*** Stage 1: CUTSNS_PIN = 1 [14:19:00]Read from MH i2c: 01 [14:19:00]MH_I2C_Read... [14:19:00]*** Stop cut motor [14:19:00]*** Cut end [14:19:00]Read from MH i2c: 01 07 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 FF 0F 84 [14:19:00]process_action close_receipt done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item fm.sn is exist - process it [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 11 00 00 [14:19:00]Write to MH i2c: E2 08 00 60 10 80 11 00 00 00 00 00 00 EA [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 60 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [14:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:19:00]wFMCommunicate OK [14:19:00]requested_item fd.num is exist - process it [14:19:00]SAM_PROTO_GetFieldsCounters [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 00 00 [14:19:00]Write to MH i2c: E2 08 00 61 10 80 13 00 00 00 00 00 00 ED [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 61 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 CA 06 01 00 0E 04 04 00 64 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 5D [14:19: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 CA 06 01 00 0E 04 04 00 64 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 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetFieldsCounters done [14:19:00]requested_item shift.num is exist - process it [14:19:00]requested_item shift.opened is exist - process it [14:19:00]req_shift_opened [14:19:00]FM_GetShiftState [14:19:00]SAM_PROTO_GetShiftState [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 01 00 [14:19:00]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9A [14:19:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetShiftState done [14:19:00]FM_GetShiftState done [14:19:00]req_shift_opened done [14:19:00]requested_item shift.open_date is exist - process it [14:19:00]req_shift_open_date [14:19:00]req_shift_open_date done [14:19:00]produce_requested_data done [14:19:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67274,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:19:00]process_action_free close_receipt [14:19:00]json_value_free [14:19:00]json_value_free done [14:19:00]process_json_proto returns [14:19:00]Send response to host [14:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67274,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:19:00]free response buf [14:19:00]execute_script done [14:19:00]execute_script returns [14:19:00]free content buf [14:19:00]Sock 9.Close socket [14:19:00]Sock 9.Thread stoped [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:44]accept exits with 7 [14:19:44]New connection [14:19:44]New thread 3067174244 created [14:19:44]Thread 3067030884 joined [14:19:44]Waiting for new connection... [14:19:44] Sock 7.Parse request [14:19:44]Sock 7.Check first char [14:19:44]Sock 7.First char is OK [14:19:44]request: POST /json_proto HTTP/1.0 [14:19:44]Method: POST [14:19:44]URL: /json_proto [14:19:44]Method is POST - this is cgi request [14:19:44]url: /json_proto [14:19:44]query_string will be loaded in cgi processing [14:19:44]execute_cgi json_proto POST (null) [14:19:44]execute_cgi path=json_proto method=POST [14:19:44]POST find Content-Length [14:19:44]Host: 172.17.41.195:8080 [14:19:44]Content-Length: 800 [14:19:44]Content-Type: application/json [14:19:44] [14:19:44]POST finish read [14:19:44]Found Content-Length = 800 [14:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507253", "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" : 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" ] } } [14:19:44]execute_script... [14:19: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)507253", "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" : 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" ] } } [14:19:44]POST & json_proto [14:19:44]process_json_proto [14:19:44]json parsed OK: [14:19:44]protocol is kg_v1.0 [14:19:44]action value=close_receipt [14:19:44]process_action close_receipt [14:19:44]cmd_close_receipt [14:19:44]MH_GetDate [14:19:44]Write to MH i2c: F0 00 00 63 10 62 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: F0 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: F0 09 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: F0 09 00 63 10 00 81 C4 44 66 FC 21 6F 64 4A [14:19:44]GetLastDocTimeStamp 1715782736 [14:19:44]current date 1715782785 [14:19:44]FM_GetShiftState [14:19:44]SAM_PROTO_GetShiftState [14:19:44]wFMCommunicate request_size=4 [14:19:44]MH_SAM_APDU [14:19:44]CAPDU: 80 13 01 00 [14:19:44]Write to MH i2c: E2 08 00 64 10 80 13 01 00 00 00 00 00 F1 [14:19:44]Write i2c OK [14:19:44]MH_I2C_Read... [14:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:44]Read from MH i2c: E2 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 0E 00 [14:19:44]MH_I2C_Read... [14:19:44]Read from MH i2c: E2 0E 00 64 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9C [14:19:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:19:44]wFMCommunicate OK [14:19:44]SAM_PROTO_GetShiftState done [14:19:44]FM_GetShiftState done [14:19:44]opened in 1715732471 [14:19:44]opened+sec_in_day 1715818871 [14:19:44]quantity*price = 150072 [14:19:44]sum+1 = 150073 [14:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 93 15.05.2024 14:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67275 ФПД: 11795481510715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141945&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67275&fm=11795481510715&tin=02508201610067®Number=0000000000091845&sum=150072 [14:19:45]StoreToDocumentArchive [14:19:45]shift 356 fd 67275 [14:19:45]save to /storage/0356/doc_00067275 [14:19:45]save last doc name /storage/0356/doc_00067275 to /storage/kkm_last_doc_name [14:19:45]save OK [14:19:45]Clear old archive folders... [14:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:45]tlvbuf is 00B1B000 [14:19:45]SAM_PROTO_ClearQueue [14:19:45]wFMCommunicate request_size=4 [14:19:45]MH_SAM_APDU [14:19:45]CAPDU: 80 09 00 00 [14:19:45]Write to MH i2c: E2 08 00 71 10 80 09 00 00 00 00 00 00 F3 [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 [14:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 03 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [14:19:45]RAPDU: 90 00 [14:19:45]wFMCommunicate OK [14:19:45]SAM_PROTO_ClearQueue done [14:19:45]KKMCreateOFDPacket [14:19:45]OFDProtocolAddRootSTLVToBuf [14:19:45]FM_MakeSignedData [14:19:45]FM_MakeSignedData [14:19:45]SAM_PROTO_SignData [14:19:45]wFMCommunicate request_size=4 [14:19:45]MH_SAM_APDU [14:19:45]CAPDU: 80 0D 01 02 [14:19:45]Write to MH i2c: E2 08 00 72 10 80 0D 01 02 00 00 00 00 FB [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:45]Read from MH i2c: E2 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 03 00 [14:19:45]MH_I2C_Read... [14:19:45]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [14:19:45]RAPDU: 90 00 [14:19:45]wFMCommunicate OK [14:19:45]wFMCommunicate request_size=255 [14:19:45]MH_SAM_APDU [14:19: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 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 5D 00 00 00 F4 03 04 00 81 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0A BA 59 7C [14:19:45]Write to MH i2c: E2 02 01 73 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 5D 00 00 00 F4 03 04 00 81 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0A BA 59 7C 00 00 CC [14:19:45]Write i2c OK [14:19:45]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 03 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [14:19:46]RAPDU: 90 00 [14:19:46]wFMCommunicate OK [14:19:46]wFMCommunicate request_size=7 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 0D 02 02 02 43 3B [14:19:46]Write to MH i2c: E2 0A 00 74 10 80 0D 02 02 02 00 43 3B 00 00 80 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 03 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [14:19:46]RAPDU: 90 00 [14:19:46]wFMCommunicate OK [14:19:46]wFMCommunicate request_size=4 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 0D 03 02 [14:19:46]Write to MH i2c: E2 08 00 75 10 80 0D 03 02 00 00 00 00 00 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 0B 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 0B 00 75 10 00 C4 82 DD E4 FD 7B 29 3F 90 00 E8 [14:19:46]RAPDU: C4 82 DD E4 FD 7B 29 3F 90 00 [14:19:46]wFMCommunicate OK [14:19:46]SAM_PROTO_SignData done [14:19:46]FM_MakeSignedData done [14:19:46]CreateOFDProtocolMessage [14:19:46]wFMCommunicate request_size=4 [14:19:46]MH_SAM_APDU [14:19:46]CAPDU: 80 11 00 00 [14:19:46]Write to MH i2c: E2 08 00 76 10 80 11 00 00 00 00 00 00 00 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:46]Read from MH i2c: E2 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 17 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: E2 17 00 76 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 56 [14:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:19:46]wFMCommunicate OK [14:19:46]CreateOFDProtocolMessage done [14:19:46]OFDSenderStorePacket 67275 [14:19:46]StoreOFDPacket docnum=67275 [14:19: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 E1 E9 04 01 A7 DC 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 5D 00 00 00 F4 03 04 00 81 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0A BA 59 7C 43 3B C4 82 DD E4 FD 7B 29 3F [14:19:46]CheckFolder [14:19:46]dirname=/storage/ofd_packets [14:19:46]CheckFolder done [14:19:46]ProducePacketName [14:19:46]name=ofd_packets/00067275 [14:19:46]NVStorageSaveData ofd_packets/00067275 [14:19:46]File name is /storage/ofd_packets/00067275 [14:19:46]Write 298 bytes [14:19:46]NVStorageSaveData done [14:19:46]OFDSenderStorePacket done [14:19:46]KKMCreateOFDPacket done [14:19:46]NVStorageSaveData kkm_last_timestamp [14:19:46]File name is /storage/kkm_last_timestamp [14:19:46]Write 4 bytes [14:19:46]NVStorageSaveData done [14:19:46]ExternCall_PrintAddStr [14:19:46]wPrintStart [14:19:46]Write to MH i2c: 01 00 00 77 10 87 [14:19:46]Write i2c OK [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: 01 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: 01 07 00 [14:19:46]MH_I2C_Read... [14:19:46]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [14:19:46]RasterBufferAndPrint [14:19:46]line Счет N : (1)507253 [14:19:46]line ИНН: 02508201610067 [14:19:46]line Контрольно-Кассовый Чек [14:19:46]line ПРОДАЖА [14:19:46]line ТРК (МРК, ГНК) : 11 [14:19:46]line Товар: 2710194210 [14:19:46]line ДТ-К-5 [14:19:46]line 20.090 * 74.70 [14:19:46]line = 1500.72 [14:19:46]line НДС 12% НСП 1% [14:19:46]line > о реализуемом товаре [14:19:46]line ИТОГО: 1500.72 [14:19:46]line НСП 1% : 13.28 [14:19:46]line НДС 12% : 159.37 [14:19:46]line Наличными: 0.00 [14:19:46]line Безнал.: 1500.72 [14:19:46]line Место: АЗС № 91 "Партнер Нефть" [14:19:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:19:46]line СНО: Общий режим [14:19:46]line Чек 93 15.05.2024 14:19 [14:19:46]line Смена: 356 ФФД: 1.0 [14:19:46]line ЗНМ: 0300000119 [14:19:46]line РНМ: 0000000000091845 [14:19:46]line Версия ККМ: 001 [14:19:46]line Платежная система: O! деньги [14:19:46]line ФМ: 0000000000871829 [14:19:46]line ФД: 67275 [14:19:46]line ФПД: 11795481510715 [14:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T141945&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67275&fm=11795481510715&tin=02508201610067®Number=0000000000091845&sum=150072 [14:19:46]OFD Sender: Processing packet 67275 [packets to send 35, broken 34] [14:19:46]ProducePacketName [14:19:46]name=ofd_packets/00067275 [14:19:46]OFD Sender: To server: pG, [14:19:46]CommunicateWithHost lk.salyk.kg:30040 [14:19:46]ConnectInit lk.salyk.kg [14:19:46]written 0, free lines is 4095 [14:19:46]Connected sock=10 [14:19: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 E1 E9 04 01 A7 DC 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 5D 00 00 00 F4 03 04 00 81 C4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0A BA 59 7C 43 3B C4 82 DD E4 FD 7B 29 3F [14:19: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 57 ED 47 00 0E 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 CB 06 01 00 F4 03 04 00 5E 6C 44 66 B6 04 01 00 00 F5 DB 47 4E D8 B3 1C BD [14:19:47]CommunicateWithHost err = 0 [14:19:47]CheckOFDResponse [14:19:47]1017 (14) - 77093643461234 [14:19:47]1041 (16) - 0000000000871829 [14:19:47]1040 (4) - 67275 [14:19:47]1012 (4) - 15.05.2024 08:03 [14:19:47]1206 (1) - 0 [14:19:47]OFD Sender: Remove packet 67275 [14:19:47]ProducePacketName [14:19:47]name=ofd_packets/00067275 [14:19:47]NVStorageDeleteData [14:19:47]Write to MH i2c: 01 00 00 A0 10 B0 [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: 01 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: 01 07 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 F1 0C B4 [14:19:47]RasterBufferAndPrint [14:19:47]line [14:19:47]line [14:19:47]line [14:19:47]line [14:19:47]line [14:19:47]written 0, free lines is 3319 [14:19:47]MH_Cut [14:19:47]Write to MH i2c: D1 01 00 A7 10 01 89 [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: D1 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: D1 01 00 [14:19:47]MH_I2C_Read... [14:19:47]Read from MH i2c: D1 01 00 A7 10 00 88 [14:19:47]Write to MH i2c: 01 00 00 A8 10 B8 [14:19:47]Write i2c OK [14:19:47]MH_I2C_Read... [14:19:47]OFD Sender: No OFD packet to send [14:19:47]*** Cut start [14:19:47]*** Purtial cut [14:19:47]*** Stage 1: CUTSNS_PIN = 1 [14:19:48]Read from MH i2c: 01 [14:19:48]MH_I2C_Read... [14:19:48]*** Stop cut motor [14:19:48]*** Cut end [14:19:48]Read from MH i2c: 01 07 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 FF 0F CD [14:19:48]process_action close_receipt done [14:19:48]requested_data is exist [14:19:48]produce_requested_data [14:19:48]requested_item fm.sn is exist - process it [14:19:48]wFMCommunicate request_size=4 [14:19:48]MH_SAM_APDU [14:19:48]CAPDU: 80 11 00 00 [14:19:48]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:48]Read from MH i2c: E2 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 17 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [14:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:19:48]wFMCommunicate OK [14:19:48]requested_item fd.num is exist - process it [14:19:48]SAM_PROTO_GetFieldsCounters [14:19:48]wFMCommunicate request_size=4 [14:19:48]MH_SAM_APDU [14:19:48]CAPDU: 80 13 00 00 [14:19:48]Write to MH i2c: E2 08 00 AA 10 80 13 00 00 00 00 00 00 36 [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:48]Read from MH i2c: E2 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 62 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 62 00 AA 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 CB 06 01 00 0E 04 04 00 64 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 AA [14:19: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 CB 06 01 00 0E 04 04 00 64 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 [14:19:48]wFMCommunicate OK [14:19:48]SAM_PROTO_GetFieldsCounters done [14:19:48]requested_item shift.num is exist - process it [14:19:48]requested_item shift.opened is exist - process it [14:19:48]req_shift_opened [14:19:48]FM_GetShiftState [14:19:48]SAM_PROTO_GetShiftState [14:19:48]wFMCommunicate request_size=4 [14:19:48]MH_SAM_APDU [14:19:48]CAPDU: 80 13 01 00 [14:19:48]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:48]Read from MH i2c: E2 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E3 [14:19:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:19:48]wFMCommunicate OK [14:19:48]SAM_PROTO_GetShiftState done [14:19:48]FM_GetShiftState done [14:19:48]req_shift_opened done [14:19:48]requested_item shift.open_date is exist - process it [14:19:48]req_shift_open_date [14:19:48]req_shift_open_date done [14:19:48]produce_requested_data done [14:19:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67275,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:19:48]process_action_free close_receipt [14:19:48]json_value_free [14:19:48]json_value_free done [14:19:48]process_json_proto returns [14:19:48]Send response to host [14:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67275,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:19:48]free response buf [14:19:48]execute_script done [14:19:48]execute_script returns [14:19:48]free content buf [14:19:48]Sock 7.Close socket [14:19:48]Sock 7.Thread stoped [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:32]accept exits with 9 [14:35:32]New connection [14:35:32]New thread 3067030884 created [14:35:32]Thread 3067174244 joined [14:35:32]Waiting for new connection... [14:35:32] Sock 9.Parse request [14:35:32]Sock 9.Check first char [14:35:32]Sock 9.First char is OK [14:35:32]request: POST /json_proto HTTP/1.0 [14:35:32]Method: POST [14:35:32]URL: /json_proto [14:35:32]Method is POST - this is cgi request [14:35:32]url: /json_proto [14:35:32]query_string will be loaded in cgi processing [14:35:32]execute_cgi json_proto POST (null) [14:35:32]execute_cgi path=json_proto method=POST [14:35:32]POST find Content-Length [14:35:32]Host: 172.17.41.195:8080 [14:35:32]Content-Length: 675 [14:35:32]Content-Type: application/json [14:35:32] [14:35:32]POST finish read [14:35:32]Found Content-Length = 675 [14:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507254", "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 }]} ], "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" ] } } [14:35:32]execute_script... [14:35:32]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)507254", "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 }]} ], "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" ] } } [14:35:32]POST & json_proto [14:35:32]process_json_proto [14:35:32]json parsed OK: [14:35:32]protocol is kg_v1.0 [14:35:32]action value=close_receipt [14:35:32]process_action close_receipt [14:35:32]cmd_close_receipt [14:35:32]MH_GetDate [14:35:32]Write to MH i2c: F0 00 00 AC 10 AB [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 AC 10 00 36 C8 44 66 FC 21 6F 64 4C [14:35:32]GetLastDocTimeStamp 1715782785 [14:35:32]current date 1715783734 [14:35:32]FM_GetShiftState [14:35:32]SAM_PROTO_GetShiftState [14:35:32]wFMCommunicate request_size=4 [14:35:32]MH_SAM_APDU [14:35:32]CAPDU: 80 13 01 00 [14:35:32]Write to MH i2c: E2 08 00 AD 10 80 13 01 00 00 00 00 00 3A [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 0E 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 0E 00 AD 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E5 [14:35:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:35:33]wFMCommunicate OK [14:35:33]SAM_PROTO_GetShiftState done [14:35:33]FM_GetShiftState done [14:35:33]opened in 1715732471 [14:35:33]opened+sec_in_day 1715818871 [14:35:33]quantity*price = 80003 [14:35:33]sum+1 = 80005 [14:35:33]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 СНО: Общий режим Чек 94 15.05.2024 14:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67276 ФПД: 241261682654147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T143534&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67276&fm=241261682654147&tin=02508201610067®Number=0000000000091845&sum=80000 [14:35:34]StoreToDocumentArchive [14:35:34]shift 356 fd 67276 [14:35:34]save to /storage/0356/doc_00067276 [14:35:34]save last doc name /storage/0356/doc_00067276 to /storage/kkm_last_doc_name [14:35:34]save OK [14:35:34]Clear old archive folders... [14:35:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:34]tlvbuf is 00B43980 [14:35:34]SAM_PROTO_ClearQueue [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 09 00 00 [14:35:34]Write to MH i2c: E2 08 00 BA 10 80 09 00 00 00 00 00 00 3C [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 BA 10 00 90 00 3E [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]SAM_PROTO_ClearQueue done [14:35:34]KKMCreateOFDPacket [14:35:34]OFDProtocolAddRootSTLVToBuf [14:35:34]FM_MakeSignedData [14:35:34]FM_MakeSignedData [14:35:34]SAM_PROTO_SignData [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 0D 01 02 [14:35:34]Write to MH i2c: E2 08 00 BB 10 80 0D 01 02 00 00 00 00 44 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 BB 10 00 90 00 3F [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]wFMCommunicate request_size=255 [14:35:34]MH_SAM_APDU [14:35:34]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 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 5E 00 00 00 F4 03 04 00 36 C8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DB 6D 1C E4 [14:35:34]Write to MH i2c: E2 02 01 BC 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 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 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 5E 00 00 00 F4 03 04 00 36 C8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DB 6D 1C E4 00 00 BC [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 BC 10 00 90 00 40 [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]wFMCommunicate request_size=7 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 0D 02 02 02 7B C3 [14:35:34]Write to MH i2c: E2 0A 00 BD 10 80 0D 02 02 02 00 7B C3 00 00 89 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 0D 03 02 [14:35:34]Write to MH i2c: E2 08 00 BE 10 80 0D 03 02 00 00 00 00 49 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 BE 10 00 DF 7B 44 3A 7F 29 4E FC 90 00 14 [14:35:34]RAPDU: DF 7B 44 3A 7F 29 4E FC 90 00 [14:35:34]wFMCommunicate OK [14:35:34]SAM_PROTO_SignData done [14:35:34]FM_MakeSignedData done [14:35:34]CreateOFDProtocolMessage [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 11 00 00 [14:35:34]Write to MH i2c: E2 08 00 BF 10 80 11 00 00 00 00 00 00 49 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 BF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [14:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:35:34]wFMCommunicate OK [14:35:34]CreateOFDProtocolMessage done [14:35:34]OFDSenderStorePacket 67276 [14:35:34]StoreOFDPacket docnum=67276 [14:35: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 0C 01 00 00 9A 20 04 01 E5 C7 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 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 5E 00 00 00 F4 03 04 00 36 C8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DB 6D 1C E4 7B C3 DF 7B 44 3A 7F 29 4E FC [14:35:34]CheckFolder [14:35:34]dirname=/storage/ofd_packets [14:35:34]CheckFolder done [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00067276 [14:35:34]NVStorageSaveData ofd_packets/00067276 [14:35:34]File name is /storage/ofd_packets/00067276 [14:35:34]Write 298 bytes [14:35:34]NVStorageSaveData done [14:35:34]OFDSenderStorePacket done [14:35:34]KKMCreateOFDPacket done [14:35:34]NVStorageSaveData kkm_last_timestamp [14:35:34]File name is /storage/kkm_last_timestamp [14:35:34]Write 4 bytes [14:35:34]NVStorageSaveData done [14:35:34]ExternCall_PrintAddStr [14:35:34]wPrintStart [14:35:34]Write to MH i2c: 01 00 00 C0 10 D0 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 C0 10 00 00 00 00 00 FF 0F E5 [14:35:34]RasterBufferAndPrint [14:35:34]line Счет N : (1)507254 [14:35:34]line ИНН: 02508201610067 [14:35:34]line Контрольно-Кассовый Чек [14:35:34]line ПРОДАЖА [14:35:34]line ТРК (МРК, ГНК) : 31 [14:35:34]line Товар: 2710194210 [14:35:34]line ДТ-К-5 [14:35:34]line 10.710 * 74.70 [14:35:34]line = 800.04 [14:35:34]line НДС 12% НСП 1% [14:35:34]line > о реализуемом товаре [14:35:34]line ОКРУГЛЕНИЕ: -0.04 [14:35:34]line ИТОГО: 800.00 [14:35:34]line Внесено: 800.00 [14:35:34]line СДАЧА: 0.00 [14:35:34]line НСП 1% : 7.08 [14:35:34]line НДС 12% : 84.96 [14:35:34]line Наличными: 800.00 [14:35:34]line Безнал.: 0.00 [14:35:34]line Место: АЗС № 91 "Партнер Нефть" [14:35:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:35:34]line СНО: Общий режим [14:35:34]line Чек 94 15.05.2024 14:35 [14:35:34]line Смена: 356 ФФД: 1.0 [14:35:34]line ЗНМ: 0300000119 [14:35:34]line РНМ: 0000000000091845 [14:35:34]line Версия ККМ: 001 [14:35:34]line ФМ: 0000000000871829 [14:35:34]line ФД: 67276 [14:35:34]line ФПД: 241261682654147 [14:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T143534&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67276&fm=241261682654147&tin=02508201610067®Number=0000000000091845&sum=80000 [14:35:34]OFD Sender: Processing packet 67276 [packets to send 35, broken 34] [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00067276 [14:35:34]OFD Sender: To server: pG, [14:35:34]CommunicateWithHost lk.salyk.kg:30040 [14:35:34]ConnectInit lk.salyk.kg [14:35:34]written 0, free lines is 4095 [14:35:35]Connected sock=10 [14:35: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 9A 20 04 01 E5 C7 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 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 5E 00 00 00 F4 03 04 00 36 C8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DB 6D 1C E4 7B C3 DF 7B 44 3A 7F 29 4E FC [14:35: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 B7 A2 47 00 C6 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 CC 06 01 00 F4 03 04 00 13 70 44 66 B6 04 01 00 00 C6 55 94 E2 B2 F0 F8 AB [14:35:35]CommunicateWithHost err = 0 [14:35:35]CheckOFDResponse [14:35:35]1017 (14) - 77093643461234 [14:35:35]1041 (16) - 0000000000871829 [14:35:35]1040 (4) - 67276 [14:35:35]1012 (4) - 15.05.2024 08:19 [14:35:35]1206 (1) - 0 [14:35:35]OFD Sender: Remove packet 67276 [14:35:35]ProducePacketName [14:35:35]name=ofd_packets/00067276 [14:35:35]NVStorageDeleteData [14:35:35]Write to MH i2c: 01 00 00 EA 10 FA [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 07 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: 01 07 00 EA 10 00 00 00 00 00 BE 0C CB [14:35:35]RasterBufferAndPrint [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]line [14:35:35]written 0, free lines is 3268 [14:35:35]MH_Cut [14:35:35]Write to MH i2c: D1 01 00 F1 10 01 D3 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 01 00 [14:35:35]MH_I2C_Read... [14:35:35]Read from MH i2c: D1 01 00 F1 10 00 D2 [14:35:35]Write to MH i2c: 01 00 00 F2 10 02 [14:35:35]Write i2c OK [14:35:35]MH_I2C_Read... [14:35:35]OFD Sender: No OFD packet to send [14:35:36]*** Cut start [14:35:36]*** Purtial cut [14:35:36]*** CUTSNS_PIN = 0 [14:35:36]*** Stage 1: CUTSNS_PIN = 1 [14:35:38]Read from MH i2c: 01 [14:35:38]MH_I2C_Read... [14:35:38]*** Stop cut motor [14:35:38]*** Cut end [14:35:38]Read from MH i2c: 01 07 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 FF 0F 17 [14:35:38]process_action close_receipt done [14:35:38]requested_data is exist [14:35:38]produce_requested_data [14:35:38]requested_item fm.sn is exist - process it [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 11 00 00 [14:35:38]Write to MH i2c: E2 08 00 F3 10 80 11 00 00 00 00 00 00 7D [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 17 00 F3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [14: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 [14:35:38]wFMCommunicate OK [14:35:38]requested_item fd.num is exist - process it [14:35:38]SAM_PROTO_GetFieldsCounters [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 00 00 [14:35:38]Write to MH i2c: E2 08 00 F4 10 80 13 00 00 00 00 00 00 80 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 62 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 62 00 F4 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 CC 06 01 00 0E 04 04 00 64 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 F8 [14:35: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 CC 06 01 00 0E 04 04 00 64 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 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_GetFieldsCounters done [14:35:38]requested_item shift.num is exist - process it [14:35:38]requested_item shift.opened is exist - process it [14:35:38]req_shift_opened [14:35:38]FM_GetShiftState [14:35:38]SAM_PROTO_GetShiftState [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 01 00 [14:35:38]Write to MH i2c: E2 08 00 F5 10 80 13 01 00 00 00 00 00 82 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0E 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0E 00 F5 10 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2D [14:35:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_GetShiftState done [14:35:38]FM_GetShiftState done [14:35:38]req_shift_opened done [14:35:38]requested_item shift.open_date is exist - process it [14:35:38]req_shift_open_date [14:35:38]req_shift_open_date done [14:35:38]produce_requested_data done [14:35:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67276,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:35:38]process_action_free close_receipt [14:35:38]json_value_free [14:35:38]json_value_free done [14:35:38]process_json_proto returns [14:35:38]Send response to host [14:35:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67276,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:35:38]free response buf [14:35:38]execute_script done [14:35:38]execute_script returns [14:35:38]free content buf [14:35:38]Sock 9.Close socket [14:35:38]Sock 9.Thread stoped [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:38:59]accept exits with 7 [14:38:59]New connection [14:38:59]New thread 3067174244 created [14:38:59]Thread 3067030884 joined [14:38:59]Waiting for new connection... [14:38:59] Sock 7.Parse request [14:38:59]Sock 7.Check first char [14:38:59]Sock 7.First char is OK [14:38:59]request: POST /json_proto HTTP/1.0 [14:38:59]Method: POST [14:38:59]URL: /json_proto [14:38:59]Method is POST - this is cgi request [14:38:59]url: /json_proto [14:38:59]query_string will be loaded in cgi processing [14:38:59]execute_cgi json_proto POST (null) [14:38:59]execute_cgi path=json_proto method=POST [14:38:59]POST find Content-Length [14:38:59]Host: 172.17.41.195:8080 [14:38:59]Content-Length: 1174 [14:38:59]Content-Type: application/json [14:38:59] [14:38:59]POST finish read [14:38:59]Found Content-Length = 1174 [14:38:59]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)507255\u000A15.05.2024 14:21\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 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:59]execute_script... [14:38:59]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)507255\u000A15.05.2024 14:21\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 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:59]POST & json_proto [14:38:59]process_json_proto [14:38:59]json parsed OK: [14:38:59]protocol is kg_v1.0 [14:38:59]action value=print_text [14:38:59]process_action print_text [14:38:59]cmd_print_text [14:38:59]ExternCall_PrintAddStr [14:38:59]wPrintStart [14:38:59]Write to MH i2c: 01 00 00 F6 10 06 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 F6 10 00 00 00 00 00 FF 0F 1B [14:38:59]RasterBufferAndPrint [14:38:59]line *****ТОВАРНЫЙ ЧЕК***** [14:38:59]line АЗС-91 [14:38:59]line Партнер нефть [14:38:59]line 02508201610067 [14:38:59]line Кассир : Арстанбеков Н. [14:38:59]line Счет N : (1)507255 [14:38:59]line 15.05.2024 14:21 [14:38:59]line ПРОДАЖА [14:38:59]line ТРК (МРК, ГНК): 43 [14:38:59]line Вид ГСМ : 2710124130 [14:38:59]line Аи-92-К-5 [14:38:59]line 50.000 x 66.80 [14:38:59]line ИТОГ: 3340.00 [14:38:59]line Тип оплаты: Талоны: ТК ГПНА Online [14:38:59]line 30083978 [14:38:59]line ______________________ [14:38:59]line (подпись) [14:38:59]written 0, free lines is 4095 [14:38:59]Write to MH i2c: 01 00 00 0A 11 1B [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: 01 07 00 0A 11 00 00 00 00 00 11 0E 41 [14:38:59]RasterBufferAndPrint [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]line [14:38:59]written 0, free lines is 3602 [14:38:59]MH_Cut [14:38:59]Write to MH i2c: D1 01 00 11 11 01 F4 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 [14:38:59]MH_I2C_Read... [14:38:59]Read from MH i2c: D1 01 00 11 11 00 F3 [14:38:59]Write to MH i2c: 01 00 00 12 11 23 [14:38:59]Write i2c OK [14:38:59]MH_I2C_Read... [14:39:00]*** Cut start [14:39:00]*** Purtial cut [14:39:00]*** Stage 1: CUTSNS_PIN = 1 [14:39:00]Read from MH i2c: 01 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: 01 07 00 [14:39:00]MH_I2C_Read... [14:39:00]*** Stop cut motor [14:39:00]*** Cut end [14:39:00]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 FF 0F 38 [14:39:00]process_action print_text done [14:39:00]requested_data is exist [14:39:00]produce_requested_data [14:39:00]requested_item fm.sn is exist - process it [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 11 00 00 [14:39:00]Write to MH i2c: E2 08 00 13 11 80 11 00 00 00 00 00 00 9E [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 17 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 17 00 13 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [14:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:39:00]wFMCommunicate OK [14:39:00]requested_item fd.num is exist - process it [14:39:00]SAM_PROTO_GetFieldsCounters [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 13 00 00 [14:39:00]Write to MH i2c: E2 08 00 14 11 80 13 00 00 00 00 00 00 A1 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 62 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 62 00 14 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 CC 06 01 00 0E 04 04 00 64 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 19 [14:39: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 CC 06 01 00 0E 04 04 00 64 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 [14:39:00]wFMCommunicate OK [14:39:00]SAM_PROTO_GetFieldsCounters done [14:39:00]requested_item shift.num is exist - process it [14:39:00]requested_item shift.opened is exist - process it [14:39:00]req_shift_opened [14:39:00]FM_GetShiftState [14:39:00]SAM_PROTO_GetShiftState [14:39:00]wFMCommunicate request_size=4 [14:39:00]MH_SAM_APDU [14:39:00]CAPDU: 80 13 01 00 [14:39:00]Write to MH i2c: E2 08 00 15 11 80 13 01 00 00 00 00 00 A3 [14:39:00]Write i2c OK [14:39:00]MH_I2C_Read... [14:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:00]Read from MH i2c: E2 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 [14:39:00]MH_I2C_Read... [14:39:00]Read from MH i2c: E2 0E 00 15 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4E [14:39:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:39:00]wFMCommunicate OK [14:39:00]SAM_PROTO_GetShiftState done [14:39:00]FM_GetShiftState done [14:39:00]req_shift_opened done [14:39:00]requested_item shift.open_date is exist - process it [14:39:00]req_shift_open_date [14:39:00]req_shift_open_date done [14:39:00]produce_requested_data done [14:39:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67276,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:39:00]process_action_free print_text [14:39:00]json_value_free [14:39:00]json_value_free done [14:39:00]process_json_proto returns [14:39:00]Send response to host [14:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67276,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:39:00]free response buf [14:39:00]execute_script done [14:39:00]execute_script returns [14:39:00]free content buf [14:39:00]Sock 7.Close socket [14:39:00]Sock 7.Thread stoped [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:30]accept exits with 9 [14:40:30]New connection [14:40:30]New thread 3067030884 created [14:40:30]Thread 3067174244 joined [14:40:30]Waiting for new connection... [14:40:30] Sock 9.Parse request [14:40:30]Sock 9.Check first char [14:40:30]Sock 9.First char is OK [14:40:30]request: POST /json_proto HTTP/1.0 [14:40:30]Method: POST [14:40:30]URL: /json_proto [14:40:30]Method is POST - this is cgi request [14:40:30]url: /json_proto [14:40:30]query_string will be loaded in cgi processing [14:40:30]execute_cgi json_proto POST (null) [14:40:30]execute_cgi path=json_proto method=POST [14:40:30]POST find Content-Length [14:40:30]Host: 172.17.41.195:8080 [14:40:30]Content-Length: 687 [14:40:30]Content-Type: application/json [14:40:30] [14:40:30]POST finish read [14:40:30]Found Content-Length = 687 [14:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12073", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:30]execute_script... [14:40: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 : (3)12073", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:30]POST & json_proto [14:40:30]process_json_proto [14:40:30]json parsed OK: [14:40:30]protocol is kg_v1.0 [14:40:30]action value=close_receipt [14:40:30]process_action close_receipt [14:40:30]cmd_close_receipt [14:40:30]MH_GetDate [14:40:30]Write to MH i2c: F0 00 00 16 11 16 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: F0 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: F0 09 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: F0 09 00 16 11 00 5F C9 44 66 FC 21 6F 64 E1 [14:40:30]GetLastDocTimeStamp 1715783734 [14:40:30]current date 1715784031 [14:40:30]FM_GetShiftState [14:40:30]SAM_PROTO_GetShiftState [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 13 01 00 [14:40:30]Write to MH i2c: E2 08 00 17 11 80 13 01 00 00 00 00 00 A5 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0E 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0E 00 17 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 50 [14:40:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:40:30]wFMCommunicate OK [14:40:30]SAM_PROTO_GetShiftState done [14:40:30]FM_GetShiftState done [14:40:30]opened in 1715732471 [14:40:30]opened+sec_in_day 1715818871 [14:40:30]quantity*price = 9500 [14:40:30]sum+1 = 9501 [14:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 95 15.05.2024 14:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67277 ФПД: 224322829714810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144031&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67277&fm=224322829714810&tin=02508201610067®Number=0000000000091845&sum=9500 0 [14:40:31]StoreToDocumentArchive [14:40:31]shift 356 fd 67277 [14:40:31]save to /storage/0356/doc_00067277 [14:40:31]save last doc name /storage/0356/doc_00067277 to /storage/kkm_last_doc_name [14:40:31]save OK [14:40:31]Clear old archive folders... [14:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=299 [14:40:31]tlvbuf is 00B0F250 [14:40:31]SAM_PROTO_ClearQueue [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 09 00 00 [14:40:31]Write to MH i2c: E2 08 00 24 11 80 09 00 00 00 00 00 00 A7 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [14:40:31]RAPDU: 90 00 [14:40:31]wFMCommunicate OK [14:40:31]SAM_PROTO_ClearQueue done [14:40:31]KKMCreateOFDPacket [14:40:31]OFDProtocolAddRootSTLVToBuf [14:40:31]FM_MakeSignedData [14:40:31]FM_MakeSignedData [14:40:31]SAM_PROTO_SignData [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 0D 01 02 [14:40:31]Write to MH i2c: E2 08 00 25 11 80 0D 01 02 00 00 00 00 AF [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [14:40:31]RAPDU: 90 00 [14:40:31]wFMCommunicate OK [14:40:31]wFMCommunicate request_size=255 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [14:40:31]Write to MH i2c: E2 02 01 26 11 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 EC [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [14:40:31]RAPDU: 90 00 [14:40:31]wFMCommunicate OK [14:40:31]wFMCommunicate request_size=58 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC 05 3A 94 85 7A [14:40:31]Write to MH i2c: E2 3D 00 27 11 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC 05 3A 94 85 7A 00 00 18 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:31]Read from MH i2c: E2 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 [14:40:31]MH_I2C_Read... [14:40:31]Read from MH i2c: E2 03 00 27 11 00 90 00 AC [14:40:31]RAPDU: 90 00 [14:40:31]wFMCommunicate OK [14:40:31]wFMCommunicate request_size=4 [14:40:31]MH_SAM_APDU [14:40:31]CAPDU: 80 0D 03 02 [14:40:31]Write to MH i2c: E2 08 00 28 11 80 0D 03 02 00 00 00 00 B4 [14:40:31]Write i2c OK [14:40:31]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0B 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0B 00 28 11 00 25 51 4B 98 06 2E C4 6D 90 00 73 [14:40:32]RAPDU: 25 51 4B 98 06 2E C4 6D 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_SignData done [14:40:32]FM_MakeSignedData done [14:40:32]CreateOFDProtocolMessage [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 11 00 00 [14:40:32]Write to MH i2c: E2 08 00 29 11 80 11 00 00 00 00 00 00 B4 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 29 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [14:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:40:32]wFMCommunicate OK [14:40:32]CreateOFDProtocolMessage done [14:40:32]OFDSenderStorePacket 67277 [14:40:32]StoreOFDPacket docnum=67277 [14:40: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 3F 01 00 00 4F E8 37 01 8E FC 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC 05 3A 94 85 7A 25 51 4B 98 06 2E C4 6D [14:40:32]CheckFolder [14:40:32]dirname=/storage/ofd_packets [14:40:32]CheckFolder done [14:40:32]ProducePacketName [14:40:32]name=ofd_packets/00067277 [14:40:32]NVStorageSaveData ofd_packets/00067277 [14:40:32]File name is /storage/ofd_packets/00067277 [14:40:32]Write 349 bytes [14:40:32]NVStorageSaveData done [14:40:32]OFDSenderStorePacket done [14:40:32]KKMCreateOFDPacket done [14:40:32]NVStorageSaveData kkm_last_timestamp [14:40:32]File name is /storage/kkm_last_timestamp [14:40:32]Write 4 bytes [14:40:32]NVStorageSaveData done [14:40:32]ExternCall_PrintAddStr [14:40:32]wPrintStart [14:40:32]Write to MH i2c: 01 00 00 2A 11 3B [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 FF 0F 50 [14:40:32]RasterBufferAndPrint [14:40:32]line Счет N : (3)12073 [14:40:32]line ИНН: 02508201610067 [14:40:32]line Контрольно-Кассовый Чек [14:40:32]line ПРОДАЖА [14:40:32]line Товар: 4700003010070 [14:40:32]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [14:40:32]line 1.000 * 95.00 [14:40:32]line = 95.00 [14:40:32]line НДС 12% НСП 1% [14:40:32]line > о реализуемом товаре [14:40:32]line ИТОГО: 95.00 [14:40:32]line НСП 1% : 0.84 [14:40:32]line НДС 12% : 10.09 [14:40:32]line Наличными: 95.00 [14:40:32]line Безнал.: 0.00 [14:40:32]line Место: АЗС № 91 "Партнер Нефть" [14:40:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:40:32]line СНО: Общий режим [14:40:32]line Чек 95 15.05.2024 14:40 [14:40:32]line Смена: 356 ФФД: 1.0 [14:40:32]line ЗНМ: 0300000119 [14:40:32]line РНМ: 0000000000091845 [14:40:32]line Версия ККМ: 001 [14:40:32]line ФМ: 0000000000871829 [14:40:32]line ФД: 67277 [14:40:32]line ФПД: 224322829714810 [14:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144031&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67277&fm=224322829714810&tin=02508201610067®Number=0000000000091845&sum=9500 [14:40:32]line 0 [14:40:32]OFD Sender: Processing packet 67277 [packets to send 35, broken 34] [14:40:32]ProducePacketName [14:40:32]name=ofd_packets/00067277 [14:40:32]OFD Sender: To server: pG, [14:40:32]CommunicateWithHost lk.salyk.kg:30040 [14:40:32]ConnectInit lk.salyk.kg [14:40:32]written 0, free lines is 4095 [14:40:32]Connected sock=10 [14:40: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 3F 01 00 00 4F E8 37 01 8E FC 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5F C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC 05 3A 94 85 7A 25 51 4B 98 06 2E C4 6D [14:40: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 F2 24 47 00 D5 A3 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 06 01 00 F4 03 04 00 3C 71 44 66 B6 04 01 00 00 7D CA 88 CF 21 79 53 CE [14:40:32]CommunicateWithHost err = 0 [14:40:32]CheckOFDResponse [14:40:32]1017 (14) - 77093643461234 [14:40:32]1041 (16) - 0000000000871829 [14:40:32]1040 (4) - 67277 [14:40:32]1012 (4) - 15.05.2024 08:24 [14:40:32]1206 (1) - 0 [14:40:32]OFD Sender: Remove packet 67277 [14:40:32]ProducePacketName [14:40:32]name=ofd_packets/00067277 [14:40:32]NVStorageDeleteData [14:40:32]Write to MH i2c: 01 00 00 52 11 63 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 D0 0C 46 [14:40:32]RasterBufferAndPrint [14:40:32]line [14:40:32]line [14:40:32]line [14:40:32]line [14:40:32]line [14:40:32]written 0, free lines is 3284 [14:40:32]MH_Cut [14:40:32]Write to MH i2c: D1 01 00 59 11 01 3C [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: D1 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: D1 01 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: D1 01 00 59 11 00 3B [14:40:32]Write to MH i2c: 01 00 00 5A 11 6B [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:33]OFD Sender: No OFD packet to send [14:40:33]*** Cut start [14:40:33]*** Purtial cut [14:40:33]*** CUTSNS_PIN = 0 [14:40:33]*** Stage 1: CUTSNS_PIN = 1 [14:40:35]Read from MH i2c: 01 [14:40:35]MH_I2C_Read... [14:40:35]*** Stop cut motor [14:40:35]*** Cut end [14:40:35]Read from MH i2c: 01 07 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 5A 11 00 00 00 00 00 FF 0F 80 [14:40:35]process_action close_receipt done [14:40:35]requested_data is exist [14:40:35]produce_requested_data [14:40:35]requested_item fm.sn is exist - process it [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 11 00 00 [14:40:35]Write to MH i2c: E2 08 00 5B 11 80 11 00 00 00 00 00 00 E6 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 5B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [14:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:40:35]wFMCommunicate OK [14:40:35]requested_item fd.num is exist - process it [14:40:35]SAM_PROTO_GetFieldsCounters [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 13 00 00 [14:40:35]Write to MH i2c: E2 08 00 5C 11 80 13 00 00 00 00 00 00 E9 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 62 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 62 00 5C 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 CD 06 01 00 0E 04 04 00 64 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 65 [14:40: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 CD 06 01 00 0E 04 04 00 64 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 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_GetFieldsCounters done [14:40:35]requested_item shift.num is exist - process it [14:40:35]requested_item shift.opened is exist - process it [14:40:35]req_shift_opened [14:40:35]FM_GetShiftState [14:40:35]SAM_PROTO_GetShiftState [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 13 01 00 [14:40:35]Write to MH i2c: E2 08 00 5D 11 80 13 01 00 00 00 00 00 EB [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0E 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0E 00 5D 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 96 [14:40:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_GetShiftState done [14:40:35]FM_GetShiftState done [14:40:35]req_shift_opened done [14:40:35]requested_item shift.open_date is exist - process it [14:40:35]req_shift_open_date [14:40:35]req_shift_open_date done [14:40:35]produce_requested_data done [14:40:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67277,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:40:35]process_action_free close_receipt [14:40:35]json_value_free [14:40:35]json_value_free done [14:40:35]process_json_proto returns [14:40:35]Send response to host [14:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67277,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:40:35]free response buf [14:40:35]execute_script done [14:40:35]execute_script returns [14:40:35]free content buf [14:40:35]Sock 9.Close socket [14:40:35]Sock 9.Thread stoped [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:15]accept exits with 7 [14:42:15]New connection [14:42:15]New thread 3067174244 created [14:42:15]Thread 3067030884 joined [14:42:15]Waiting for new connection... [14:42:15] Sock 7.Parse request [14:42:15]Sock 7.Check first char [14:42:15]Sock 7.First char is OK [14:42:15]request: POST /json_proto HTTP/1.0 [14:42:15]Method: POST [14:42:15]URL: /json_proto [14:42:15]Method is POST - this is cgi request [14:42:15]url: /json_proto [14:42:15]query_string will be loaded in cgi processing [14:42:15]execute_cgi json_proto POST (null) [14:42:15]execute_cgi path=json_proto method=POST [14:42:15]POST find Content-Length [14:42:15]Host: 172.17.41.195:8080 [14:42:15]Content-Length: 801 [14:42:15]Content-Type: application/json [14:42:15] [14:42:15]POST finish read [14:42:15]Found Content-Length = 801 [14:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507256", "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" ] } } [14:42:15]execute_script... [14:42: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)507256", "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" ] } } [14:42:15]POST & json_proto [14:42:15]process_json_proto [14:42:15]json parsed OK: [14:42:15]protocol is kg_v1.0 [14:42:15]action value=close_receipt [14:42:15]process_action close_receipt [14:42:15]cmd_close_receipt [14:42:15]MH_GetDate [14:42:15]Write to MH i2c: F0 00 00 5E 11 5E [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 5E 11 00 C8 C9 44 66 FC 21 6F 64 92 [14:42:15]GetLastDocTimeStamp 1715784031 [14:42:15]current date 1715784136 [14:42:15]FM_GetShiftState [14:42:15]SAM_PROTO_GetShiftState [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 13 01 00 [14:42:15]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 98 [14:42:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_GetShiftState done [14:42:15]FM_GetShiftState done [14:42:15]opened in 1715732471 [14:42:15]opened+sec_in_day 1715818871 [14:42:15]quantity*price = 80026 [14:42:15]sum+1 = 80027 [14:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 96 15.05.2024 14:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67278 ФПД: 14820769681358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67278&fm=14820769681358&tin=02508201610067®Number=0000000000091845&sum=80026 [14:42:16]StoreToDocumentArchive [14:42:16]shift 356 fd 67278 [14:42:16]save to /storage/0356/doc_00067278 [14:42:16]save last doc name /storage/0356/doc_00067278 to /storage/kkm_last_doc_name [14:42:16]save OK [14:42:16]Clear old archive folders... [14:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:16]tlvbuf is 00B1DB80 [14:42:16]SAM_PROTO_ClearQueue [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 09 00 00 [14:42:16]Write to MH i2c: E2 08 00 6C 11 80 09 00 00 00 00 00 00 EF [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_ClearQueue done [14:42:16]KKMCreateOFDPacket [14:42:16]OFDProtocolAddRootSTLVToBuf [14:42:16]FM_MakeSignedData [14:42:16]FM_MakeSignedData [14:42:16]SAM_PROTO_SignData [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 01 02 [14:42:16]Write to MH i2c: E2 08 00 6D 11 80 0D 01 02 00 00 00 00 F7 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=255 [14:42:16]MH_SAM_APDU [14:42:16]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 60 00 00 00 F4 03 04 00 C8 C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0D [14:42:16]Write to MH i2c: E2 02 01 6E 11 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 60 00 00 00 F4 03 04 00 C8 C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0D 00 00 A6 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=10 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 02 02 05 7A BA B6 4F CE [14:42:16]Write to MH i2c: E2 0D 00 6F 11 80 0D 02 02 05 00 7A BA B6 4F CE 00 00 0B [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 03 02 [14:42:16]Write to MH i2c: E2 08 00 70 11 80 0D 03 02 00 00 00 00 FC [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0B 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 0B 00 70 11 00 88 42 BC 04 D3 1D 44 06 90 00 C1 [14:42:16]RAPDU: 88 42 BC 04 D3 1D 44 06 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_SignData done [14:42:16]FM_MakeSignedData done [14:42:16]CreateOFDProtocolMessage [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 11 00 00 [14:42:16]Write to MH i2c: E2 08 00 71 11 80 11 00 00 00 00 00 00 FC [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 17 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 17 00 71 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 52 [14:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:42:16]wFMCommunicate OK [14:42:16]CreateOFDProtocolMessage done [14:42:16]OFDSenderStorePacket 67278 [14:42:16]StoreOFDPacket docnum=67278 [14:42: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 0F 01 00 00 41 F4 07 01 98 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 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 60 00 00 00 F4 03 04 00 C8 C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0D 7A BA B6 4F CE 88 42 BC 04 D3 1D 44 06 [14:42:16]CheckFolder [14:42:16]dirname=/storage/ofd_packets [14:42:16]CheckFolder done [14:42:16]ProducePacketName [14:42:16]name=ofd_packets/00067278 [14:42:16]NVStorageSaveData ofd_packets/00067278 [14:42:16]File name is /storage/ofd_packets/00067278 [14:42:16]Write 301 bytes [14:42:16]NVStorageSaveData done [14:42:16]OFDSenderStorePacket done [14:42:16]KKMCreateOFDPacket done [14:42:16]NVStorageSaveData kkm_last_timestamp [14:42:16]File name is /storage/kkm_last_timestamp [14:42:16]Write 4 bytes [14:42:16]NVStorageSaveData done [14:42:16]ExternCall_PrintAddStr [14:42:16]wPrintStart [14:42:16]Write to MH i2c: 01 00 00 72 11 83 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: 01 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: 01 07 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FF 0F 98 [14:42:16]RasterBufferAndPrint [14:42:16]line Счет N : (1)507256 [14:42:16]line ИНН: 02508201610067 [14:42:16]line Контрольно-Кассовый Чек [14:42:16]line ПРОДАЖА [14:42:16]line ТРК (МРК, ГНК) : 33 [14:42:16]line Товар: 2710124130 [14:42:16]line Аи-92-К-5 [14:42:16]line 11.980 * 66.80 [14:42:16]line = 800.26 [14:42:16]line НДС 12% НСП 1% [14:42:16]line > о реализуемом товаре [14:42:16]line ИТОГО: 800.26 [14:42:16]line НСП 1% : 7.08 [14:42:16]line НДС 12% : 84.98 [14:42:16]line Наличными: 0.00 [14:42:16]line Безнал.: 800.26 [14:42:16]line Место: АЗС № 91 "Партнер Нефть" [14:42:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:42:16]line СНО: Общий режим [14:42:16]line Чек 96 15.05.2024 14:42 [14:42:16]line Смена: 356 ФФД: 1.0 [14:42:16]line ЗНМ: 0300000119 [14:42:16]line РНМ: 0000000000091845 [14:42:16]line Версия ККМ: 001 [14:42:16]line Платежная система: O! деньги [14:42:16]line ФМ: 0000000000871829 [14:42:16]line ФД: 67278 [14:42:16]line ФПД: 14820769681358 [14:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67278&fm=14820769681358&tin=02508201610067®Number=0000000000091845&sum=80026 [14:42:17]OFD Sender: Processing packet 67278 [packets to send 35, broken 34] [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00067278 [14:42:17]OFD Sender: To server: pG, [14:42:17]CommunicateWithHost lk.salyk.kg:30040 [14:42:17]ConnectInit lk.salyk.kg [14:42:17]written 0, free lines is 4095 [14:42:17]Connected sock=10 [14:42: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 0F 01 00 00 41 F4 07 01 98 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 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 60 00 00 00 F4 03 04 00 C8 C9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0D 7A BA B6 4F CE 88 42 BC 04 D3 1D 44 06 [14:42: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 66 0B 47 00 00 52 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 06 01 00 F4 03 04 00 A5 71 44 66 B6 04 01 00 00 E8 3C 38 1D 53 6E AD C7 [14:42:17]CommunicateWithHost err = 0 [14:42:17]CheckOFDResponse [14:42:17]1017 (14) - 77093643461234 [14:42:17]1041 (16) - 0000000000871829 [14:42:17]1040 (4) - 67278 [14:42:17]1012 (4) - 15.05.2024 08:26 [14:42:17]1206 (1) - 0 [14:42:17]OFD Sender: Remove packet 67278 [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00067278 [14:42:17]NVStorageDeleteData [14:42:17]Write to MH i2c: 01 00 00 9B 11 AC [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 9B 11 00 00 00 00 00 E0 0C 9F [14:42:17]RasterBufferAndPrint [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]written 0, free lines is 3302 [14:42:17]MH_Cut [14:42:17]Write to MH i2c: D1 01 00 A2 11 01 85 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 01 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 01 00 A2 11 00 84 [14:42:17]Write to MH i2c: 01 00 00 A3 11 B4 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:18]OFD Sender: No OFD packet to send [14:42:18]*** Cut start [14:42:18]*** Purtial cut [14:42:18]*** Stage 1: CUTSNS_PIN = 1 [14:42:18]Read from MH i2c: 01 [14:42:18]MH_I2C_Read... [14:42:18]*** Stop cut motor [14:42:18]*** Cut end [14:42:18]Read from MH i2c: 01 07 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: 01 07 00 A3 11 00 00 00 00 00 FF 0F C9 [14:42:18]process_action close_receipt done [14:42:18]requested_data is exist [14:42:18]produce_requested_data [14:42:18]requested_item fm.sn is exist - process it [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 11 00 00 [14:42:18]Write to MH i2c: E2 08 00 A4 11 80 11 00 00 00 00 00 00 2F [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 17 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 17 00 A4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [14:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:42:18]wFMCommunicate OK [14:42:18]requested_item fd.num is exist - process it [14:42:18]SAM_PROTO_GetFieldsCounters [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 13 00 00 [14:42:18]Write to MH i2c: E2 08 00 A5 11 80 13 00 00 00 00 00 00 32 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 62 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 62 00 A5 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 CE 06 01 00 0E 04 04 00 64 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 B2 [14:42: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 CE 06 01 00 0E 04 04 00 64 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 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_GetFieldsCounters done [14:42:18]requested_item shift.num is exist - process it [14:42:18]requested_item shift.opened is exist - process it [14:42:18]req_shift_opened [14:42:18]FM_GetShiftState [14:42:18]SAM_PROTO_GetShiftState [14:42:18]wFMCommunicate request_size=4 [14:42:18]MH_SAM_APDU [14:42:18]CAPDU: 80 13 01 00 [14:42:18]Write to MH i2c: E2 08 00 A6 11 80 13 01 00 00 00 00 00 34 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:18]Read from MH i2c: E2 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0E 00 [14:42:18]MH_I2C_Read... [14:42:18]Read from MH i2c: E2 0E 00 A6 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DF [14:42:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:42:18]wFMCommunicate OK [14:42:18]SAM_PROTO_GetShiftState done [14:42:18]FM_GetShiftState done [14:42:18]req_shift_opened done [14:42:18]requested_item shift.open_date is exist - process it [14:42:18]req_shift_open_date [14:42:18]req_shift_open_date done [14:42:18]produce_requested_data done [14:42:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67278,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:42:18]process_action_free close_receipt [14:42:18]json_value_free [14:42:18]json_value_free done [14:42:18]process_json_proto returns [14:42:18]Send response to host [14:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67278,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:42:18]free response buf [14:42:18]execute_script done [14:42:18]execute_script returns [14:42:18]free content buf [14:42:18]Sock 7.Close socket [14:42:18]Sock 7.Thread stoped [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]accept exits with 9 [14:46:13]New connection [14:46:13]New thread 3067030884 created [14:46:13]Thread 3067174244 joined [14:46:13]Waiting for new connection... [14:46:13] Sock 9.Parse request [14:46:13]Sock 9.Check first char [14:46:13]Sock 9.First char is OK [14:46:13]request: POST /json_proto HTTP/1.0 [14:46:13]Method: POST [14:46:13]URL: /json_proto [14:46:13]Method is POST - this is cgi request [14:46:13]url: /json_proto [14:46:13]query_string will be loaded in cgi processing [14:46:13]execute_cgi json_proto POST (null) [14:46:13]execute_cgi path=json_proto method=POST [14:46:13]POST find Content-Length [14:46:13]Host: 172.17.41.195:8080 [14:46:13]Content-Length: 800 [14:46:13]Content-Type: application/json [14:46:13] [14:46:13]POST finish read [14:46:13]Found Content-Length = 800 [14:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507257", "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" ] } } [14:46:13]execute_script... [14:46: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)507257", "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" ] } } [14:46:13]POST & json_proto [14:46:13]process_json_proto [14:46:13]json parsed OK: [14:46:13]protocol is kg_v1.0 [14:46:13]action value=close_receipt [14:46:13]process_action close_receipt [14:46:13]cmd_close_receipt [14:46:13]MH_GetDate [14:46:13]Write to MH i2c: F0 00 00 A7 11 A7 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: F0 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: F0 09 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: F0 09 00 A7 11 00 B6 CA 44 66 FC 21 6F 64 CA [14:46:13]GetLastDocTimeStamp 1715784136 [14:46:13]current date 1715784374 [14:46:13]FM_GetShiftState [14:46:13]SAM_PROTO_GetShiftState [14:46:13]wFMCommunicate request_size=4 [14:46:13]MH_SAM_APDU [14:46:13]CAPDU: 80 13 01 00 [14:46:13]Write to MH i2c: E2 08 00 A8 11 80 13 01 00 00 00 00 00 36 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:13]Read from MH i2c: E2 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0E 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: E2 0E 00 A8 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E1 [14:46:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:46:13]wFMCommunicate OK [14:46:13]SAM_PROTO_GetShiftState done [14:46:13]FM_GetShiftState done [14:46:13]opened in 1715732471 [14:46:13]opened+sec_in_day 1715818871 [14:46:13]quantity*price = 30060 [14:46:13]sum+1 = 30061 [14:46: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 СНО: Общий режим Чек 97 15.05.2024 14:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67279 ФПД: 204806274998830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144614&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67279&fm=204806274998830&tin=02508201610067®Number=0000000000091845&sum=30060 [14:46:14]StoreToDocumentArchive [14:46:14]shift 356 fd 67279 [14:46:14]save to /storage/0356/doc_00067279 [14:46:14]save last doc name /storage/0356/doc_00067279 to /storage/kkm_last_doc_name [14:46:14]save OK [14:46:14]Clear old archive folders... [14:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:14]tlvbuf is 00B5FE70 [14:46:14]SAM_PROTO_ClearQueue [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 09 00 00 [14:46:14]Write to MH i2c: E2 08 00 B5 11 80 09 00 00 00 00 00 00 38 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:14]Read from MH i2c: E2 03 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 B5 11 00 90 00 3A [14:46:14]RAPDU: 90 00 [14:46:14]wFMCommunicate OK [14:46:14]SAM_PROTO_ClearQueue done [14:46:14]KKMCreateOFDPacket [14:46:14]OFDProtocolAddRootSTLVToBuf [14:46:14]FM_MakeSignedData [14:46:14]FM_MakeSignedData [14:46:14]SAM_PROTO_SignData [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 0D 01 02 [14:46:14]Write to MH i2c: E2 08 00 B6 11 80 0D 01 02 00 00 00 00 40 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 B6 11 00 90 00 3B [14:46:14]RAPDU: 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=255 [14:46:14]MH_SAM_APDU [14:46: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 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 61 00 00 00 F4 03 04 00 B6 CA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA [14:46:14]Write to MH i2c: E2 02 01 B7 11 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 61 00 00 00 F4 03 04 00 B6 CA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 00 00 D8 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 B7 11 00 90 00 3C [14:46:14]RAPDU: 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=10 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 0D 02 02 05 45 2D 44 E2 2E [14:46:14]Write to MH i2c: E2 0D 00 B8 11 80 0D 02 02 05 00 45 2D 44 E2 2E 00 00 13 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [14:46:14]RAPDU: 90 00 [14:46:14]wFMCommunicate OK [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 0D 03 02 [14:46:14]Write to MH i2c: E2 08 00 B9 11 80 0D 03 02 00 00 00 00 45 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 0B 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 0B 00 B9 11 00 B8 1F 95 7A 3C C2 89 EB 90 00 9E [14:46:14]RAPDU: B8 1F 95 7A 3C C2 89 EB 90 00 [14:46:14]wFMCommunicate OK [14:46:14]SAM_PROTO_SignData done [14:46:14]FM_MakeSignedData done [14:46:14]CreateOFDProtocolMessage [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 11 00 00 [14:46:14]Write to MH i2c: E2 08 00 BA 11 80 11 00 00 00 00 00 00 45 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 BA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [14:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:46:14]wFMCommunicate OK [14:46:14]CreateOFDProtocolMessage done [14:46:14]OFDSenderStorePacket 67279 [14:46:14]StoreOFDPacket docnum=67279 [14:46: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 5B B7 07 01 56 07 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 61 00 00 00 F4 03 04 00 B6 CA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 45 2D 44 E2 2E B8 1F 95 7A 3C C2 89 EB [14:46:14]CheckFolder [14:46:14]dirname=/storage/ofd_packets [14:46:14]CheckFolder done [14:46:14]ProducePacketName [14:46:14]name=ofd_packets/00067279 [14:46:14]NVStorageSaveData ofd_packets/00067279 [14:46:14]File name is /storage/ofd_packets/00067279 [14:46:14]Write 301 bytes [14:46:14]NVStorageSaveData done [14:46:14]OFDSenderStorePacket done [14:46:14]KKMCreateOFDPacket done [14:46:14]NVStorageSaveData kkm_last_timestamp [14:46:14]File name is /storage/kkm_last_timestamp [14:46:14]Write 4 bytes [14:46:14]NVStorageSaveData done [14:46:14]ExternCall_PrintAddStr [14:46:14]wPrintStart [14:46:14]Write to MH i2c: 01 00 00 BB 11 CC [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 FF 0F E1 [14:46:14]RasterBufferAndPrint [14:46:14]line Счет N : (1)507257 [14:46:14]line ИНН: 02508201610067 [14:46:14]line Контрольно-Кассовый Чек [14:46:14]line ПРОДАЖА [14:46:14]line ТРК (МРК, ГНК) : 43 [14:46:14]line Товар: 2710124130 [14:46:14]line Аи-92-К-5 [14:46:14]line 4.500 * 66.80 [14:46:14]line = 300.60 [14:46:14]line НДС 12% НСП 1% [14:46:14]line > о реализуемом товаре [14:46:14]line ИТОГО: 300.60 [14:46:14]line НСП 1% : 2.66 [14:46:14]line НДС 12% : 31.92 [14:46:14]line Наличными: 0.00 [14:46:14]line Безнал.: 300.60 [14:46:14]line Место: АЗС № 91 "Партнер Нефть" [14:46:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:46:14]line СНО: Общий режим [14:46:14]line Чек 97 15.05.2024 14:46 [14:46:14]line Смена: 356 ФФД: 1.0 [14:46:14]line ЗНМ: 0300000119 [14:46:14]line РНМ: 0000000000091845 [14:46:14]line Версия ККМ: 001 [14:46:14]line Платежная система: O! деньги [14:46:14]line ФМ: 0000000000871829 [14:46:14]line ФД: 67279 [14:46:14]line ФПД: 204806274998830 [14:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T144614&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67279&fm=204806274998830&tin=02508201610067®Number=0000000000091845&sum=30060 [14:46:15]OFD Sender: Processing packet 67279 [packets to send 35, broken 34] [14:46:15]ProducePacketName [14:46:15]name=ofd_packets/00067279 [14:46:15]OFD Sender: To server: pG, [14:46:15]CommunicateWithHost lk.salyk.kg:30040 [14:46:15]ConnectInit lk.salyk.kg [14:46:15]written 0, free lines is 4095 [14:46:15]Connected sock=10 [14:46: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 5B B7 07 01 56 07 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 61 00 00 00 F4 03 04 00 B6 CA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 45 2D 44 E2 2E B8 1F 95 7A 3C C2 89 EB [14:46: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 47 02 47 00 CD 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 CF 06 01 00 F4 03 04 00 93 72 44 66 B6 04 01 00 00 26 5A 2F 2B 3F 4F 5C 07 [14:46:15]CommunicateWithHost err = 0 [14:46:15]CheckOFDResponse [14:46:15]1017 (14) - 77093643461234 [14:46:15]1041 (16) - 0000000000871829 [14:46:15]1040 (4) - 67279 [14:46:15]1012 (4) - 15.05.2024 08:30 [14:46:15]1206 (1) - 0 [14:46:15]OFD Sender: Remove packet 67279 [14:46:15]ProducePacketName [14:46:15]name=ofd_packets/00067279 [14:46:15]NVStorageDeleteData [14:46:15]Write to MH i2c: 01 00 00 E4 11 F5 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: 01 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: 01 07 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 E6 0C EE [14:46:15]RasterBufferAndPrint [14:46:15]line [14:46:15]line [14:46:15]line [14:46:15]line [14:46:15]line [14:46:15]written 0, free lines is 3309 [14:46:15]MH_Cut [14:46:15]Write to MH i2c: D1 01 00 EB 11 01 CE [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: D1 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: D1 01 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: D1 01 00 EB 11 00 CD [14:46:15]Write to MH i2c: 01 00 00 EC 11 FD [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]OFD Sender: No OFD packet to send [14:46:16]*** Cut start [14:46:16]*** Purtial cut [14:46:16]*** CUTSNS_PIN = 0 [14:46:16]*** Stage 1: CUTSNS_PIN = 1 [14:46:18]Read from MH i2c: 01 [14:46:18]MH_I2C_Read... [14:46:18]*** Stop cut motor [14:46:18]*** Cut end [14:46:18]Read from MH i2c: 01 07 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 FF 0F 12 [14:46:18]process_action close_receipt done [14:46:18]requested_data is exist [14:46:18]produce_requested_data [14:46:18]requested_item fm.sn is exist - process it [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 11 00 00 [14:46:18]Write to MH i2c: E2 08 00 ED 11 80 11 00 00 00 00 00 00 78 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 17 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 17 00 ED 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [14:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:46:18]wFMCommunicate OK [14:46:18]requested_item fd.num is exist - process it [14:46:18]SAM_PROTO_GetFieldsCounters [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 13 00 00 [14:46:18]Write to MH i2c: E2 08 00 EE 11 80 13 00 00 00 00 00 00 7B [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 62 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 62 00 EE 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 CF 06 01 00 0E 04 04 00 64 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 [14:46: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 CF 06 01 00 0E 04 04 00 64 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 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_GetFieldsCounters done [14:46:18]requested_item shift.num is exist - process it [14:46:18]requested_item shift.opened is exist - process it [14:46:18]req_shift_opened [14:46:18]FM_GetShiftState [14:46:18]SAM_PROTO_GetShiftState [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 13 01 00 [14:46:18]Write to MH i2c: E2 08 00 EF 11 80 13 01 00 00 00 00 00 7D [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0E 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0E 00 EF 11 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 28 [14:46:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_GetShiftState done [14:46:18]FM_GetShiftState done [14:46:18]req_shift_opened done [14:46:18]requested_item shift.open_date is exist - process it [14:46:18]req_shift_open_date [14:46:18]req_shift_open_date done [14:46:18]produce_requested_data done [14:46:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67279,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:46:18]process_action_free close_receipt [14:46:18]json_value_free [14:46:18]json_value_free done [14:46:18]process_json_proto returns [14:46:18]Send response to host [14:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67279,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:46:18]free response buf [14:46:18]execute_script done [14:46:18]execute_script returns [14:46:18]free content buf [14:46:18]Sock 9.Close socket [14:46:18]Sock 9.Thread stoped [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:15]accept exits with 7 [14:56:15]New connection [14:56:15]New thread 3067174244 created [14:56:15]Thread 3067030884 joined [14:56:15]Waiting for new connection... [14:56:15] Sock 7.Parse request [14:56:15]Sock 7.Check first char [14:56:15]Sock 7.First char is OK [14:56:15]request: POST /json_proto HTTP/1.0 [14:56:15]Method: POST [14:56:15]URL: /json_proto [14:56:15]Method is POST - this is cgi request [14:56:15]url: /json_proto [14:56:15]query_string will be loaded in cgi processing [14:56:15]execute_cgi json_proto POST (null) [14:56:15]execute_cgi path=json_proto method=POST [14:56:15]POST find Content-Length [14:56:15]Host: 172.17.41.195:8080 [14:56:15]Content-Length: 1209 [14:56:15]Content-Type: application/json [14:56:15] [14:56:15]POST finish read [14:56:15]Found Content-Length = 1209 [14: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)507258\u000A15.05.2024 14:38\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" ] } } [14:56:15]execute_script... [14: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)507258\u000A15.05.2024 14:38\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" ] } } [14:56:15]POST & json_proto [14:56:15]process_json_proto [14:56:15]json parsed OK: [14:56:15]protocol is kg_v1.0 [14:56:15]action value=print_text [14:56:15]process_action print_text [14:56:15]cmd_print_text [14:56:15]ExternCall_PrintAddStr [14:56:15]wPrintStart [14:56:15]Write to MH i2c: 01 00 00 F0 11 01 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 FF 0F 16 [14:56:15]RasterBufferAndPrint [14:56:15]line *****ТОВАРНЫЙ ЧЕК***** [14:56:15]line АЗС-91 [14:56:15]line Партнер нефть [14:56:15]line 02508201610067 [14:56:15]line Кассир : Арстанбеков Н. [14:56:15]line Счет N : (1)507258 [14:56:15]line 15.05.2024 14:38 [14:56:15]line ПРОДАЖА [14:56:15]line ТРК (МРК, ГНК): 21 [14:56:15]line Вид ГСМ : 2710194210 [14:56:15]line ДТ-К-5 [14:56:15]line 13.390 x 74.70 [14:56:15]line ИТОГ: 1000.23 [14:56:15]line Тип оплаты: Талоны: Топливная Карта [14:56:15]line 02750 [14:56:15]line ______________________ [14:56:15]line (подпись) [14:56:15]written 0, free lines is 4095 [14:56:15]Write to MH i2c: 01 00 00 04 12 16 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 0F 0E 3A [14:56:15]RasterBufferAndPrint [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]written 0, free lines is 3600 [14:56:15]MH_Cut [14:56:15]Write to MH i2c: D1 01 00 0B 12 01 EF [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 01 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 01 00 0B 12 00 EE [14:56:15]Write to MH i2c: 01 00 00 0C 12 1E [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:16]OFD Sender: No OFD packet to send [14:56:16]*** Cut start [14:56:16]*** Purtial cut [14:56:16]*** Stage 1: CUTSNS_PIN = 1 [14:56:16]Read from MH i2c: 01 [14:56:16]MH_I2C_Read... [14:56:16]*** Stop cut motor [14:56:16]*** Cut end [14:56:16]Read from MH i2c: 01 07 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [14:56:16]process_action print_text done [14:56:16]requested_data is exist [14:56:16]produce_requested_data [14:56:16]requested_item fm.sn is exist - process it [14:56:16]wFMCommunicate request_size=4 [14:56:16]MH_SAM_APDU [14:56:16]CAPDU: 80 11 00 00 [14:56:16]Write to MH i2c: E2 08 00 0D 12 80 11 00 00 00 00 00 00 99 [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:16]Read from MH i2c: E2 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 17 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 17 00 0D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [14: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 [14:56:16]wFMCommunicate OK [14:56:16]requested_item fd.num is exist - process it [14:56:16]SAM_PROTO_GetFieldsCounters [14:56:16]wFMCommunicate request_size=4 [14:56:16]MH_SAM_APDU [14:56:16]CAPDU: 80 13 00 00 [14:56:16]Write to MH i2c: E2 08 00 0E 12 80 13 00 00 00 00 00 00 9C [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:16]Read from MH i2c: E2 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 62 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: E2 62 00 0E 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 CF 06 01 00 0E 04 04 00 64 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 20 [14:56: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 CF 06 01 00 0E 04 04 00 64 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 [14:56:16]wFMCommunicate OK [14:56:16]SAM_PROTO_GetFieldsCounters done [14:56:16]requested_item shift.num is exist - process it [14:56:16]requested_item shift.opened is exist - process it [14:56:16]req_shift_opened [14:56:16]FM_GetShiftState [14:56:16]SAM_PROTO_GetShiftState [14:56:16]wFMCommunicate request_size=4 [14:56:16]MH_SAM_APDU [14:56:16]CAPDU: 80 13 01 00 [14:56:16]Write to MH i2c: E2 08 00 0F 12 80 13 01 00 00 00 00 00 9E [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0E 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0E 00 0F 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 49 [14:56:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [14:56:17]wFMCommunicate OK [14:56:17]SAM_PROTO_GetShiftState done [14:56:17]FM_GetShiftState done [14:56:17]req_shift_opened done [14:56:17]requested_item shift.open_date is exist - process it [14:56:17]req_shift_open_date [14:56:17]req_shift_open_date done [14:56:17]produce_requested_data done [14:56:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67279,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [14:56:17]process_action_free print_text [14:56:17]json_value_free [14:56:17]json_value_free done [14:56:17]process_json_proto returns [14:56:17]Send response to host [14:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67279,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [14:56:17]free response buf [14:56:17]execute_script done [14:56:17]execute_script returns [14:56:17]free content buf [14:56:17]Sock 7.Close socket [14:56:17]Sock 7.Thread stoped [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:24]accept exits with 10 [15:06:24]New connection [15:06:24]New thread 3067030884 created [15:06:24]Thread 3067174244 joined [15:06:24]Waiting for new connection... [15:06:24] Sock 10.Parse request [15:06:24]Sock 10.Check first char [15:06:24]Sock 10.First char is OK [15:06:24]request: POST /json_proto HTTP/1.0 [15:06:24]Method: POST [15:06:24]URL: /json_proto [15:06:24]Method is POST - this is cgi request [15:06:24]url: /json_proto [15:06:24]query_string will be loaded in cgi processing [15:06:24]execute_cgi json_proto POST (null) [15:06:24]execute_cgi path=json_proto method=POST [15:06:24]POST find Content-Length [15:06:24]Host: 172.17.41.195:8080 [15:06:24]Content-Length: 803 [15:06:24]Content-Type: application/json [15:06:24] [15:06:24]POST finish read [15:06:24]Found Content-Length = 803 [15:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507259", "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.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" ] } } [15:06:24]execute_script... [15:06: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)507259", "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.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" ] } } [15:06:24]POST & json_proto [15:06:24]process_json_proto [15:06:24]json parsed OK: [15:06:24]protocol is kg_v1.0 [15:06:24]action value=close_receipt [15:06:24]process_action close_receipt [15:06:24]cmd_close_receipt [15:06:24]MH_GetDate [15:06:24]Write to MH i2c: F0 00 00 10 12 11 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: F0 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: F0 09 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: F0 09 00 10 12 00 71 CF 44 66 FC 21 6F 64 F4 [15:06:24]GetLastDocTimeStamp 1715784374 [15:06:24]current date 1715785585 [15:06:24]FM_GetShiftState [15:06:24]SAM_PROTO_GetShiftState [15:06:24]wFMCommunicate request_size=4 [15:06:24]MH_SAM_APDU [15:06:24]CAPDU: 80 13 01 00 [15:06:24]Write to MH i2c: E2 08 00 11 12 80 13 01 00 00 00 00 00 A0 [15:06:24]Write i2c OK [15:06:24]MH_I2C_Read... [15:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:24]Read from MH i2c: E2 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0E 00 [15:06:24]MH_I2C_Read... [15:06:24]Read from MH i2c: E2 0E 00 11 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4B [15:06:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:06:24]wFMCommunicate OK [15:06:24]SAM_PROTO_GetShiftState done [15:06:24]FM_GetShiftState done [15:06:24]opened in 1715732471 [15:06:24]opened+sec_in_day 1715818871 [15:06:24]quantity*price = 150032 [15:06:24]sum+1 = 150034 [15:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 98 15.05.2024 15:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67280 ФПД: 266689016797830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67280&fm=266689016797830&tin=02508201610067®Number=0000000000091845&sum=150033 [15:06:25]StoreToDocumentArchive [15:06:25]shift 356 fd 67280 [15:06:25]save to /storage/0356/doc_00067280 [15:06:25]save last doc name /storage/0356/doc_00067280 to /storage/kkm_last_doc_name [15:06:25]save OK [15:06:25]Clear old archive folders... [15:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:25]tlvbuf is 00B30940 [15:06:25]SAM_PROTO_ClearQueue [15:06:25]wFMCommunicate request_size=4 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 09 00 00 [15:06:25]Write to MH i2c: E2 08 00 1E 12 80 09 00 00 00 00 00 00 A2 [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:25]Read from MH i2c: E2 03 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [15:06:25]RAPDU: 90 00 [15:06:25]wFMCommunicate OK [15:06:25]SAM_PROTO_ClearQueue done [15:06:25]KKMCreateOFDPacket [15:06:25]OFDProtocolAddRootSTLVToBuf [15:06:25]FM_MakeSignedData [15:06:25]FM_MakeSignedData [15:06:25]SAM_PROTO_SignData [15:06:25]wFMCommunicate request_size=4 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 0D 01 02 [15:06:25]Write to MH i2c: E2 08 00 1F 12 80 0D 01 02 00 00 00 00 AA [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [15:06:25]RAPDU: 90 00 [15:06:25]wFMCommunicate OK [15:06:25]wFMCommunicate request_size=255 [15:06:25]MH_SAM_APDU [15:06: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 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 62 00 00 00 F4 03 04 00 71 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 [15:06:25]Write to MH i2c: E2 02 01 20 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 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 62 00 00 00 F4 03 04 00 71 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 00 00 3F [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [15:06:25]RAPDU: 90 00 [15:06:25]wFMCommunicate OK [15:06:25]wFMCommunicate request_size=10 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 0D 02 02 05 8D 60 1C 9A 86 [15:06:25]Write to MH i2c: E2 0D 00 21 12 80 0D 02 02 05 00 8D 60 1C 9A 86 00 00 E0 [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [15:06:25]RAPDU: 90 00 [15:06:25]wFMCommunicate OK [15:06:25]wFMCommunicate request_size=4 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 0D 03 02 [15:06:25]Write to MH i2c: E2 08 00 22 12 80 0D 03 02 00 00 00 00 AF [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 0B 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 0B 00 22 12 00 4D 84 44 1E 20 DE 07 1E 90 00 06 [15:06:25]RAPDU: 4D 84 44 1E 20 DE 07 1E 90 00 [15:06:25]wFMCommunicate OK [15:06:25]SAM_PROTO_SignData done [15:06:25]FM_MakeSignedData done [15:06:25]CreateOFDProtocolMessage [15:06:25]wFMCommunicate request_size=4 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 11 00 00 [15:06:25]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 17 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 05 [15:06: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:06:25]wFMCommunicate OK [15:06:25]CreateOFDProtocolMessage done [15:06:25]OFDSenderStorePacket 67280 [15:06:25]StoreOFDPacket docnum=67280 [15:06: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 AF C2 07 01 48 CD 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 62 00 00 00 F4 03 04 00 71 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 8D 60 1C 9A 86 4D 84 44 1E 20 DE 07 1E [15:06:25]CheckFolder [15:06:25]dirname=/storage/ofd_packets [15:06:25]CheckFolder done [15:06:25]ProducePacketName [15:06:25]name=ofd_packets/00067280 [15:06:25]NVStorageSaveData ofd_packets/00067280 [15:06:25]File name is /storage/ofd_packets/00067280 [15:06:25]Write 301 bytes [15:06:25]NVStorageSaveData done [15:06:25]OFDSenderStorePacket done [15:06:25]KKMCreateOFDPacket done [15:06:25]NVStorageSaveData kkm_last_timestamp [15:06:25]File name is /storage/kkm_last_timestamp [15:06:25]Write 4 bytes [15:06:25]NVStorageSaveData done [15:06:25]ExternCall_PrintAddStr [15:06:25]wPrintStart [15:06:25]Write to MH i2c: 01 00 00 24 12 36 [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: 01 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: 01 07 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [15:06:25]RasterBufferAndPrint [15:06:25]line Счет N : (1)507259 [15:06:25]line ИНН: 02508201610067 [15:06:25]line Контрольно-Кассовый Чек [15:06:25]line ПРОДАЖА [15:06:25]line ТРК (МРК, ГНК) : 13 [15:06:25]line Товар: 2710124130 [15:06:25]line Аи-92-К-5 [15:06:25]line 22.460 * 66.80 [15:06:25]line = 1500.33 [15:06:25]line НДС 12% НСП 1% [15:06:25]line > о реализуемом товаре [15:06:25]line ИТОГО: 1500.33 [15:06:25]line НСП 1% : 13.28 [15:06:25]line НДС 12% : 159.33 [15:06:25]line Наличными: 0.00 [15:06:25]line Безнал.: 1500.33 [15:06:25]line Место: АЗС № 91 "Партнер Нефть" [15:06:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:06:25]line СНО: Общий режим [15:06:25]line Чек 98 15.05.2024 15:06 [15:06:25]line Смена: 356 ФФД: 1.0 [15:06:25]line ЗНМ: 0300000119 [15:06:25]line РНМ: 0000000000091845 [15:06:25]line Версия ККМ: 001 [15:06:25]line Платежная система: O! деньги [15:06:25]line ФМ: 0000000000871829 [15:06:25]line ФД: 67280 [15:06:25]line ФПД: 266689016797830 [15:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67280&fm=266689016797830&tin=02508201610067®Number=0000000000091845&sum=150033 [15:06:26]OFD Sender: Processing packet 67280 [packets to send 35, broken 34] [15:06:26]ProducePacketName [15:06:26]name=ofd_packets/00067280 [15:06:26]OFD Sender: To server: pG, [15:06:26]CommunicateWithHost lk.salyk.kg:30040 [15:06:26]ConnectInit lk.salyk.kg [15:06:26]written 0, free lines is 4095 [15:06:26]Connected sock=9 [15:06: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 AF C2 07 01 48 CD 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 62 00 00 00 F4 03 04 00 71 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 8D 60 1C 9A 86 4D 84 44 1E 20 DE 07 1E [15:06: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 81 AE 47 00 E8 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 D0 06 01 00 F4 03 04 00 4E 77 44 66 B6 04 01 00 00 97 E2 44 E6 A2 38 B0 18 [15:06:26]CommunicateWithHost err = 0 [15:06:26]CheckOFDResponse [15:06:26]1017 (14) - 77093643461234 [15:06:26]1041 (16) - 0000000000871829 [15:06:26]1040 (4) - 67280 [15:06:26]1012 (4) - 15.05.2024 08:50 [15:06:26]1206 (1) - 0 [15:06:26]OFD Sender: Remove packet 67280 [15:06:26]ProducePacketName [15:06:26]name=ofd_packets/00067280 [15:06:26]NVStorageDeleteData [15:06:26]Write to MH i2c: 01 00 00 4D 12 5F [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: 01 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: 01 07 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: 01 07 00 4D 12 00 00 00 00 00 DA 0C 4C [15:06:26]RasterBufferAndPrint [15:06:26]line [15:06:26]line [15:06:26]line [15:06:26]line [15:06:26]line [15:06:26]written 0, free lines is 3299 [15:06:26]MH_Cut [15:06:26]Write to MH i2c: D1 01 00 54 12 01 38 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: D1 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: D1 01 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: D1 01 00 54 12 00 37 [15:06:26]Write to MH i2c: 01 00 00 55 12 67 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]OFD Sender: No OFD packet to send [15:06:27]*** Cut start [15:06:27]*** Purtial cut [15:06:27]*** CUTSNS_PIN = 0 [15:06:27]*** Stage 1: CUTSNS_PIN = 1 [15:06:29]Read from MH i2c: 01 [15:06:29]MH_I2C_Read... [15:06:29]*** Stop cut motor [15:06:29]*** Cut end [15:06:29]Read from MH i2c: 01 07 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: 01 07 00 55 12 00 00 00 00 00 FF 0F 7C [15:06:29]process_action close_receipt done [15:06:29]requested_data is exist [15:06:29]produce_requested_data [15:06:29]requested_item fm.sn is exist - process it [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 11 00 00 [15:06:29]Write to MH i2c: E2 08 00 56 12 80 11 00 00 00 00 00 00 E2 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 17 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 17 00 56 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [15:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:06:29]wFMCommunicate OK [15:06:29]requested_item fd.num is exist - process it [15:06:29]SAM_PROTO_GetFieldsCounters [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 13 00 00 [15:06:29]Write to MH i2c: E2 08 00 57 12 80 13 00 00 00 00 00 00 E5 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 62 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 62 00 57 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 D0 06 01 00 0E 04 04 00 64 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 6D [15:06: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 D0 06 01 00 0E 04 04 00 64 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 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_GetFieldsCounters done [15:06:29]requested_item shift.num is exist - process it [15:06:29]requested_item shift.opened is exist - process it [15:06:29]req_shift_opened [15:06:29]FM_GetShiftState [15:06:29]SAM_PROTO_GetShiftState [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 13 01 00 [15:06:29]Write to MH i2c: E2 08 00 58 12 80 13 01 00 00 00 00 00 E7 [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 58 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 92 [15:06:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_GetShiftState done [15:06:29]FM_GetShiftState done [15:06:29]req_shift_opened done [15:06:29]requested_item shift.open_date is exist - process it [15:06:29]req_shift_open_date [15:06:29]req_shift_open_date done [15:06:29]produce_requested_data done [15:06:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67280,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:06:29]process_action_free close_receipt [15:06:29]json_value_free [15:06:29]json_value_free done [15:06:29]process_json_proto returns [15:06:29]Send response to host [15:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67280,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:06:29]free response buf [15:06:29]execute_script done [15:06:29]execute_script returns [15:06:29]free content buf [15:06:29]Sock 10.Close socket [15:06:29]Sock 10.Thread stoped [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:34]accept exits with 7 [15:07:34]New connection [15:07:34]New thread 3067174244 created [15:07:34]Thread 3067030884 joined [15:07:34]Waiting for new connection... [15:07:34] Sock 7.Parse request [15:07:34]Sock 7.Check first char [15:07:34]Sock 7.First char is OK [15:07:34]request: POST /json_proto HTTP/1.0 [15:07:34]Method: POST [15:07:34]URL: /json_proto [15:07:34]Method is POST - this is cgi request [15:07:34]url: /json_proto [15:07:34]query_string will be loaded in cgi processing [15:07:34]execute_cgi json_proto POST (null) [15:07:34]execute_cgi path=json_proto method=POST [15:07:34]POST find Content-Length [15:07:34]Host: 172.17.41.195:8080 [15:07:34]Content-Length: 803 [15:07:34]Content-Type: application/json [15:07:34] [15:07:34]POST finish read [15:07:34]Found Content-Length = 803 [15:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507260", "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" : 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" ] } } [15:07:34]execute_script... [15:07: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)507260", "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" : 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" ] } } [15:07:34]POST & json_proto [15:07:34]process_json_proto [15:07:34]json parsed OK: [15:07:34]protocol is kg_v1.0 [15:07:34]action value=close_receipt [15:07:34]process_action close_receipt [15:07:34]cmd_close_receipt [15:07:34]MH_GetDate [15:07:34]Write to MH i2c: F0 00 00 59 12 5A [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: F0 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: F0 09 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: F0 09 00 59 12 00 B8 CF 44 66 FC 21 6F 64 84 [15:07:34]GetLastDocTimeStamp 1715785585 [15:07:34]current date 1715785656 [15:07:34]FM_GetShiftState [15:07:34]SAM_PROTO_GetShiftState [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 13 01 00 [15:07:34]Write to MH i2c: E2 08 00 5A 12 80 13 01 00 00 00 00 00 E9 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:35]Read from MH i2c: E2 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: E2 0E 00 5A 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 94 [15:07:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:07:35]wFMCommunicate OK [15:07:35]SAM_PROTO_GetShiftState done [15:07:35]FM_GetShiftState done [15:07:35]opened in 1715732471 [15:07:35]opened+sec_in_day 1715818871 [15:07:35]quantity*price = 150032 [15:07:35]sum+1 = 150034 [15:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 99 15.05.2024 15:07 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67281 ФПД: 240700210904620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67281&fm=240700210904620&tin=02508201610067®Number=0000000000091845&sum=150033 [15:07:36]StoreToDocumentArchive [15:07:36]shift 356 fd 67281 [15:07:36]save to /storage/0356/doc_00067281 [15:07:36]save last doc name /storage/0356/doc_00067281 to /storage/kkm_last_doc_name [15:07:36]save OK [15:07:36]Clear old archive folders... [15:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:36]tlvbuf is 00B0A990 [15:07:36]SAM_PROTO_ClearQueue [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 09 00 00 [15:07:36]Write to MH i2c: E2 08 00 67 12 80 09 00 00 00 00 00 00 EB [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [15:07:36]RAPDU: 90 00 [15:07:36]wFMCommunicate OK [15:07:36]SAM_PROTO_ClearQueue done [15:07:36]KKMCreateOFDPacket [15:07:36]OFDProtocolAddRootSTLVToBuf [15:07:36]FM_MakeSignedData [15:07:36]FM_MakeSignedData [15:07:36]SAM_PROTO_SignData [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 0D 01 02 [15:07:36]Write to MH i2c: E2 08 00 68 12 80 0D 01 02 00 00 00 00 F3 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [15:07:36]RAPDU: 90 00 [15:07:36]wFMCommunicate OK [15:07:36]wFMCommunicate request_size=255 [15:07:36]MH_SAM_APDU [15:07: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 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 63 00 00 00 F4 03 04 00 B8 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA [15:07:36]Write to MH i2c: E2 02 01 69 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 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 63 00 00 00 F4 03 04 00 B8 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA 00 00 B9 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [15:07:36]RAPDU: 90 00 [15:07:36]wFMCommunicate OK [15:07:36]wFMCommunicate request_size=10 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 0D 02 02 05 EA 62 91 7E 2C [15:07:36]Write to MH i2c: E2 0D 00 6A 12 80 0D 02 02 05 00 EA 62 91 7E 2C 00 00 87 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 03 00 6A 12 00 90 00 F0 [15:07:36]RAPDU: 90 00 [15:07:36]wFMCommunicate OK [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 0D 03 02 [15:07:36]Write to MH i2c: E2 08 00 6B 12 80 0D 03 02 00 00 00 00 F8 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 0B 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 0B 00 6B 12 00 64 D5 73 6C 43 A8 2C BA 90 00 E2 [15:07:36]RAPDU: 64 D5 73 6C 43 A8 2C BA 90 00 [15:07:36]wFMCommunicate OK [15:07:36]SAM_PROTO_SignData done [15:07:36]FM_MakeSignedData done [15:07:36]CreateOFDProtocolMessage [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 11 00 00 [15:07:36]Write to MH i2c: E2 08 00 6C 12 80 11 00 00 00 00 00 00 F8 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 17 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 17 00 6C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [15:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:07:36]wFMCommunicate OK [15:07:36]CreateOFDProtocolMessage done [15:07:36]OFDSenderStorePacket 67281 [15:07:36]StoreOFDPacket docnum=67281 [15:07:36]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 FD 6F 07 01 CF F9 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 63 00 00 00 F4 03 04 00 B8 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA EA 62 91 7E 2C 64 D5 73 6C 43 A8 2C BA [15:07:36]CheckFolder [15:07:36]dirname=/storage/ofd_packets [15:07:36]CheckFolder done [15:07:36]ProducePacketName [15:07:36]name=ofd_packets/00067281 [15:07:36]NVStorageSaveData ofd_packets/00067281 [15:07:36]File name is /storage/ofd_packets/00067281 [15:07:36]Write 301 bytes [15:07:36]NVStorageSaveData done [15:07:36]OFDSenderStorePacket done [15:07:36]KKMCreateOFDPacket done [15:07:36]NVStorageSaveData kkm_last_timestamp [15:07:36]File name is /storage/kkm_last_timestamp [15:07:36]Write 4 bytes [15:07:36]NVStorageSaveData done [15:07:36]ExternCall_PrintAddStr [15:07:36]wPrintStart [15:07:36]Write to MH i2c: 01 00 00 6D 12 7F [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: 01 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: 01 07 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [15:07:36]RasterBufferAndPrint [15:07:36]line Счет N : (1)507260 [15:07:36]line ИНН: 02508201610067 [15:07:36]line Контрольно-Кассовый Чек [15:07:36]line ПРОДАЖА [15:07:36]line ТРК (МРК, ГНК) : 33 [15:07:36]line Товар: 2710124130 [15:07:36]line Аи-92-К-5 [15:07:36]line 22.460 * 66.80 [15:07:36]line = 1500.33 [15:07:36]line НДС 12% НСП 1% [15:07:36]line > о реализуемом товаре [15:07:36]line ИТОГО: 1500.33 [15:07:36]line НСП 1% : 13.28 [15:07:36]line НДС 12% : 159.33 [15:07:36]line Наличными: 0.00 [15:07:36]line Безнал.: 1500.33 [15:07:36]line Место: АЗС № 91 "Партнер Нефть" [15:07:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:07:36]line СНО: Общий режим [15:07:36]line Чек 99 15.05.2024 15:07 [15:07:36]line Смена: 356 ФФД: 1.0 [15:07:36]line ЗНМ: 0300000119 [15:07:36]line РНМ: 0000000000091845 [15:07:36]line Версия ККМ: 001 [15:07:36]line Платежная система: O! деньги [15:07:36]line ФМ: 0000000000871829 [15:07:36]line ФД: 67281 [15:07:36]line ФПД: 240700210904620 [15:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67281&fm=240700210904620&tin=02508201610067®Number=0000000000091845&sum=150033 [15:07:36]written 0, free lines is 4095 [15:07:36]OFD Sender: Processing packet 67281 [packets to send 35, broken 34] [15:07:36]ProducePacketName [15:07:36]name=ofd_packets/00067281 [15:07:36]OFD Sender: To server: pG, [15:07:36]CommunicateWithHost lk.salyk.kg:30040 [15:07:36]ConnectInit lk.salyk.kg [15:07:36]Connected sock=10 [15:07: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 0F 01 00 00 FD 6F 07 01 CF F9 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 63 00 00 00 F4 03 04 00 B8 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA EA 62 91 7E 2C 64 D5 73 6C 43 A8 2C BA [15:07: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 E9 A9 47 00 F0 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 D1 06 01 00 F4 03 04 00 95 77 44 66 B6 04 01 00 00 63 F6 19 00 2F 8A 37 ED [15:07:37]CommunicateWithHost err = 0 [15:07:37]CheckOFDResponse [15:07:37]1017 (14) - 77093643461234 [15:07:37]1041 (16) - 0000000000871829 [15:07:37]1040 (4) - 67281 [15:07:37]1012 (4) - 15.05.2024 08:51 [15:07:37]1206 (1) - 0 [15:07:37]OFD Sender: Remove packet 67281 [15:07:37]ProducePacketName [15:07:37]name=ofd_packets/00067281 [15:07:37]NVStorageDeleteData [15:07:37]Write to MH i2c: 01 00 00 96 12 A8 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 07 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 EB 0C A6 [15:07:37]RasterBufferAndPrint [15:07:37]line [15:07:37]line [15:07:37]line [15:07:37]line [15:07:37]line [15:07:37]written 0, free lines is 3313 [15:07:37]MH_Cut [15:07:37]Write to MH i2c: D1 01 00 9D 12 01 81 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: D1 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: D1 01 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: D1 01 00 9D 12 00 80 [15:07:37]Write to MH i2c: 01 00 00 9E 12 B0 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]OFD Sender: No OFD packet to send [15:07:37]*** Cut start [15:07:37]*** Purtial cut [15:07:37]*** Stage 1: CUTSNS_PIN = 1 [15:07:38]Read from MH i2c: 01 [15:07:38]MH_I2C_Read... [15:07:38]*** Stop cut motor [15:07:38]*** Cut end [15:07:38]Read from MH i2c: 01 07 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: 01 07 00 9E 12 00 00 00 00 00 FF 0F C5 [15:07:38]process_action close_receipt done [15:07:38]requested_data is exist [15:07:38]produce_requested_data [15:07:38]requested_item fm.sn is exist - process it [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 11 00 00 [15:07:38]Write to MH i2c: E2 08 00 9F 12 80 11 00 00 00 00 00 00 2B [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 17 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 17 00 9F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [15:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:07:38]wFMCommunicate OK [15:07:38]requested_item fd.num is exist - process it [15:07:38]SAM_PROTO_GetFieldsCounters [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 13 00 00 [15:07:38]Write to MH i2c: E2 08 00 A0 12 80 13 00 00 00 00 00 00 2E [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 62 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 62 00 A0 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 D1 06 01 00 0E 04 04 00 64 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 BA [15:07: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 D1 06 01 00 0E 04 04 00 64 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 [15:07:38]wFMCommunicate OK [15:07:38]SAM_PROTO_GetFieldsCounters done [15:07:38]requested_item shift.num is exist - process it [15:07:38]requested_item shift.opened is exist - process it [15:07:38]req_shift_opened [15:07:38]FM_GetShiftState [15:07:38]SAM_PROTO_GetShiftState [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 13 01 00 [15:07:38]Write to MH i2c: E2 08 00 A1 12 80 13 01 00 00 00 00 00 30 [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 0E 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 0E 00 A1 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DB [15:07:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:07:38]wFMCommunicate OK [15:07:38]SAM_PROTO_GetShiftState done [15:07:38]FM_GetShiftState done [15:07:38]req_shift_opened done [15:07:38]requested_item shift.open_date is exist - process it [15:07:38]req_shift_open_date [15:07:38]req_shift_open_date done [15:07:38]produce_requested_data done [15:07:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67281,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:07:38]process_action_free close_receipt [15:07:38]json_value_free [15:07:38]json_value_free done [15:07:38]process_json_proto returns [15:07:38]Send response to host [15:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67281,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:07:38]free response buf [15:07:38]execute_script done [15:07:38]execute_script returns [15:07:38]free content buf [15:07:38]Sock 7.Close socket [15:07:38]Sock 7.Thread stoped [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]accept exits with 9 [15:08:37]New connection [15:08:37]New thread 3067030884 created [15:08:37]Thread 3067174244 joined [15:08:37]Waiting for new connection... [15:08:37] Sock 9.Parse request [15:08:37]Sock 9.Check first char [15:08:37]Sock 9.First char is OK [15:08:37]request: POST /json_proto HTTP/1.0 [15:08:37]Method: POST [15:08:37]URL: /json_proto [15:08:37]Method is POST - this is cgi request [15:08:37]url: /json_proto [15:08:37]query_string will be loaded in cgi processing [15:08:37]execute_cgi json_proto POST (null) [15:08:37]execute_cgi path=json_proto method=POST [15:08:37]POST find Content-Length [15:08:37]Host: 172.17.41.195:8080 [15:08:37]Content-Length: 803 [15:08:37]Content-Type: application/json [15:08:37] [15:08:37]POST finish read [15:08:37]Found Content-Length = 803 [15:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507261", "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" : 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" ] } } [15:08:37]execute_script... [15:08: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)507261", "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" : 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" ] } } [15:08:37]POST & json_proto [15:08:37]process_json_proto [15:08:37]json parsed OK: [15:08:37]protocol is kg_v1.0 [15:08:37]action value=close_receipt [15:08:37]process_action close_receipt [15:08:37]cmd_close_receipt [15:08:37]MH_GetDate [15:08:37]Write to MH i2c: F0 00 00 A2 12 A3 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 09 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: F0 09 00 A2 12 00 F6 CF 44 66 FC 21 6F 64 0B [15:08:37]GetLastDocTimeStamp 1715785656 [15:08:37]current date 1715785718 [15:08:37]FM_GetShiftState [15:08:37]SAM_PROTO_GetShiftState [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 13 01 00 [15:08:37]Write to MH i2c: E2 08 00 A3 12 80 13 01 00 00 00 00 00 32 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]OFD Sender: No OFD packet to send [15:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 A3 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DD [15:08:37]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:08:37]wFMCommunicate OK [15:08:37]SAM_PROTO_GetShiftState done [15:08:37]FM_GetShiftState done [15:08:37]opened in 1715732471 [15:08:37]opened+sec_in_day 1715818871 [15:08:37]quantity*price = 100066 [15:08:37]sum+1 = 100067 [15:08: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 СНО: Общий режим Чек 100 15.05.2024 15:08 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67282 ФПД: 119475300582135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67282&fm=119475300582135&tin=02508201610067®Number=0000000000091845&sum=100066 [15:08:38]StoreToDocumentArchive [15:08:38]shift 356 fd 67282 [15:08:38]save to /storage/0356/doc_00067282 [15:08:38]save last doc name /storage/0356/doc_00067282 to /storage/kkm_last_doc_name [15:08:38]save OK [15:08:38]Clear old archive folders... [15:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:38]tlvbuf is B6F8EA50 [15:08:38]SAM_PROTO_ClearQueue [15:08:38]wFMCommunicate request_size=4 [15:08:38]MH_SAM_APDU [15:08:38]CAPDU: 80 09 00 00 [15:08:38]Write to MH i2c: E2 08 00 B0 12 80 09 00 00 00 00 00 00 34 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:38]Read from MH i2c: E2 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 03 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [15:08:38]RAPDU: 90 00 [15:08:38]wFMCommunicate OK [15:08:38]SAM_PROTO_ClearQueue done [15:08:38]KKMCreateOFDPacket [15:08:38]OFDProtocolAddRootSTLVToBuf [15:08:38]FM_MakeSignedData [15:08:38]FM_MakeSignedData [15:08:38]SAM_PROTO_SignData [15:08:38]wFMCommunicate request_size=4 [15:08:38]MH_SAM_APDU [15:08:38]CAPDU: 80 0D 01 02 [15:08:38]Write to MH i2c: E2 08 00 B1 12 80 0D 01 02 00 00 00 00 3C [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:38]Read from MH i2c: E2 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 03 00 [15:08:38]MH_I2C_Read... [15:08:38]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [15:08:38]RAPDU: 90 00 [15:08:38]wFMCommunicate OK [15:08:38]wFMCommunicate request_size=255 [15:08:38]MH_SAM_APDU [15:08: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 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 F6 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6C [15:08:38]Write to MH i2c: E2 02 01 B2 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 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 F6 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6C 00 00 16 [15:08:38]Write i2c OK [15:08:38]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]wFMCommunicate request_size=10 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 02 02 05 A9 82 D9 C2 F7 [15:08:39]Write to MH i2c: E2 0D 00 B3 12 80 0D 02 02 05 00 A9 82 D9 C2 F7 00 00 06 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [15:08:39]RAPDU: 90 00 [15:08:39]wFMCommunicate OK [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 0D 03 02 [15:08:39]Write to MH i2c: E2 08 00 B4 12 80 0D 03 02 00 00 00 00 41 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 0B 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 0B 00 B4 12 00 BC F9 8A 4F 9F 5E A4 64 90 00 D5 [15:08:39]RAPDU: BC F9 8A 4F 9F 5E A4 64 90 00 [15:08:39]wFMCommunicate OK [15:08:39]SAM_PROTO_SignData done [15:08:39]FM_MakeSignedData done [15:08:39]CreateOFDProtocolMessage [15:08:39]wFMCommunicate request_size=4 [15:08:39]MH_SAM_APDU [15:08:39]CAPDU: 80 11 00 00 [15:08:39]Write to MH i2c: E2 08 00 B5 12 80 11 00 00 00 00 00 00 41 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:39]Read from MH i2c: E2 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 17 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: E2 17 00 B5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [15:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:08:39]wFMCommunicate OK [15:08:39]CreateOFDProtocolMessage done [15:08:39]OFDSenderStorePacket 67282 [15:08:39]StoreOFDPacket docnum=67282 [15:08: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 EA A5 07 01 E2 12 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 F6 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6C A9 82 D9 C2 F7 BC F9 8A 4F 9F 5E A4 64 [15:08:39]CheckFolder [15:08:39]dirname=/storage/ofd_packets [15:08:39]CheckFolder done [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00067282 [15:08:39]NVStorageSaveData ofd_packets/00067282 [15:08:39]File name is /storage/ofd_packets/00067282 [15:08:39]Write 301 bytes [15:08:39]NVStorageSaveData done [15:08:39]OFDSenderStorePacket done [15:08:39]KKMCreateOFDPacket done [15:08:39]NVStorageSaveData kkm_last_timestamp [15:08:39]File name is /storage/kkm_last_timestamp [15:08:39]Write 4 bytes [15:08:39]NVStorageSaveData done [15:08:39]ExternCall_PrintAddStr [15:08:39]wPrintStart [15:08:39]Write to MH i2c: 01 00 00 B6 12 C8 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 FF 0F DD [15:08:39]RasterBufferAndPrint [15:08:39]line Счет N : (1)507261 [15:08:39]line ИНН: 02508201610067 [15:08:39]line Контрольно-Кассовый Чек [15:08:39]line ПРОДАЖА [15:08:39]line ТРК (МРК, ГНК) : 13 [15:08:39]line Товар: 2710124130 [15:08:39]line Аи-92-К-5 [15:08:39]line 14.980 * 66.80 [15:08:39]line = 1000.66 [15:08:39]line НДС 12% НСП 1% [15:08:39]line > о реализуемом товаре [15:08:39]line ИТОГО: 1000.66 [15:08:39]line НСП 1% : 8.85 [15:08:39]line НДС 12% : 106.26 [15:08:39]line Наличными: 0.00 [15:08:39]line Безнал.: 1000.66 [15:08:39]line Место: АЗС № 91 "Партнер Нефть" [15:08:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:08:39]line СНО: Общий режим [15:08:39]line Чек 100 15.05.2024 15:08 [15:08:39]line Смена: 356 ФФД: 1.0 [15:08:39]line ЗНМ: 0300000119 [15:08:39]line РНМ: 0000000000091845 [15:08:39]line Версия ККМ: 001 [15:08:39]line Платежная система: O! деньги [15:08:39]line ФМ: 0000000000871829 [15:08:39]line ФД: 67282 [15:08:39]line ФПД: 119475300582135 [15:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T150838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67282&fm=119475300582135&tin=02508201610067®Number=0000000000091845&sum=100066 [15:08:39]written 0, free lines is 4095 [15:08:39]OFD Sender: Processing packet 67282 [packets to send 35, broken 34] [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00067282 [15:08:39]OFD Sender: To server: pG, [15:08:39]CommunicateWithHost lk.salyk.kg:30040 [15:08:39]ConnectInit lk.salyk.kg [15:08:39]Write to MH i2c: 01 00 00 DF 12 F1 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: 01 07 00 DF 12 00 00 00 00 00 E3 0C E7 [15:08:39]RasterBufferAndPrint [15:08:39]line [15:08:39]line [15:08:39]line [15:08:39]line [15:08:39]line [15:08:39]Connected sock=11 [15:08: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 EA A5 07 01 E2 12 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 F6 CF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6C A9 82 D9 C2 F7 BC F9 8A 4F 9F 5E A4 64 [15:08:39]written 0, free lines is 3302 [15:08:39]MH_Cut [15:08:39]Write to MH i2c: D1 01 00 E6 12 01 CA [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: D1 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: D1 01 00 [15:08:39]MH_I2C_Read... [15:08:39]Read from MH i2c: D1 01 00 E6 12 00 C9 [15:08:39]Write to MH i2c: 01 00 00 E7 12 F9 [15:08:39]Write i2c OK [15:08:39]MH_I2C_Read... [15:08: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 82 E6 47 00 CE 9D 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 06 01 00 F4 03 04 00 D3 77 44 66 B6 04 01 00 00 02 BC 27 F8 20 15 FC 7B [15:08:39]CommunicateWithHost err = 0 [15:08:39]CheckOFDResponse [15:08:39]1017 (14) - 77093643461234 [15:08:39]1041 (16) - 0000000000871829 [15:08:39]1040 (4) - 67282 [15:08:39]1012 (4) - 15.05.2024 08:52 [15:08:39]1206 (1) - 0 [15:08:39]OFD Sender: Remove packet 67282 [15:08:39]ProducePacketName [15:08:39]name=ofd_packets/00067282 [15:08:39]NVStorageDeleteData [15:08:40]OFD Sender: No OFD packet to send [15:08:40]*** Cut start [15:08:40]*** Purtial cut [15:08:40]*** CUTSNS_PIN = 0 [15:08:40]*** Stage 1: CUTSNS_PIN = 1 [15:08:42]Read from MH i2c: 01 [15:08:42]MH_I2C_Read... [15:08:42]*** Stop cut motor [15:08:42]*** Cut end [15:08:42]Read from MH i2c: 01 07 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: 01 07 00 E7 12 00 00 00 00 00 FF 0F 0E [15:08:42]process_action close_receipt done [15:08:42]requested_data is exist [15:08:42]produce_requested_data [15:08:42]requested_item fm.sn is exist - process it [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 11 00 00 [15:08:42]Write to MH i2c: E2 08 00 E8 12 80 11 00 00 00 00 00 00 74 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 17 00 E8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [15:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:08:42]wFMCommunicate OK [15:08:42]requested_item fd.num is exist - process it [15:08:42]SAM_PROTO_GetFieldsCounters [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 13 00 00 [15:08:42]Write to MH i2c: E2 08 00 E9 12 80 13 00 00 00 00 00 00 77 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 62 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 62 00 E9 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 D2 06 01 00 0E 04 04 00 64 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 07 [15:08: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 D2 06 01 00 0E 04 04 00 64 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 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_GetFieldsCounters done [15:08:42]requested_item shift.num is exist - process it [15:08:42]requested_item shift.opened is exist - process it [15:08:42]req_shift_opened [15:08:42]FM_GetShiftState [15:08:42]SAM_PROTO_GetShiftState [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 13 01 00 [15:08:42]Write to MH i2c: E2 08 00 EA 12 80 13 01 00 00 00 00 00 79 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 EA 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 24 [15:08:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_GetShiftState done [15:08:42]FM_GetShiftState done [15:08:42]req_shift_opened done [15:08:42]requested_item shift.open_date is exist - process it [15:08:42]req_shift_open_date [15:08:42]req_shift_open_date done [15:08:42]produce_requested_data done [15:08:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67282,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:08:42]process_action_free close_receipt [15:08:42]json_value_free [15:08:42]json_value_free done [15:08:42]process_json_proto returns [15:08:42]Send response to host [15:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67282,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:08:42]free response buf [15:08:42]execute_script done [15:08:42]execute_script returns [15:08:42]free content buf [15:08:42]Sock 9.Close socket [15:08:42]Sock 9.Thread stoped [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:51]accept exits with 7 [15:13:51]New connection [15:13:51]New thread 3067174244 created [15:13:51]Thread 3067030884 joined [15:13:51]Waiting for new connection... [15:13:51] Sock 7.Parse request [15:13:51]Sock 7.Check first char [15:13:51]Sock 7.First char is OK [15:13:51]request: POST /json_proto HTTP/1.0 [15:13:51]Method: POST [15:13:51]URL: /json_proto [15:13:51]Method is POST - this is cgi request [15:13:51]url: /json_proto [15:13:51]query_string will be loaded in cgi processing [15:13:51]execute_cgi json_proto POST (null) [15:13:51]execute_cgi path=json_proto method=POST [15:13:51]POST find Content-Length [15:13:51]Host: 172.17.41.195:8080 [15:13:51]Content-Length: 812 [15:13:51]Content-Type: application/json [15:13:51] [15:13:51]POST finish read [15:13:51]Found Content-Length = 812 [15:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507262", "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: \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" ] } } [15:13:51]execute_script... [15: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)507262", "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: \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" ] } } [15:13:51]POST & json_proto [15:13:51]process_json_proto [15:13:51]json parsed OK: [15:13:51]protocol is kg_v1.0 [15:13:51]action value=close_receipt [15:13:51]process_action close_receipt [15:13:51]cmd_close_receipt [15:13:51]MH_GetDate [15:13:51]Write to MH i2c: F0 00 00 EB 12 EC [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: F0 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: F0 09 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: F0 09 00 EB 12 00 31 D1 44 66 FC 21 6F 64 91 [15:13:51]GetLastDocTimeStamp 1715785718 [15:13:51]current date 1715786033 [15:13:51]FM_GetShiftState [15:13:51]SAM_PROTO_GetShiftState [15:13:51]wFMCommunicate request_size=4 [15:13:51]MH_SAM_APDU [15:13:51]CAPDU: 80 13 01 00 [15:13:51]Write to MH i2c: E2 08 00 EC 12 80 13 01 00 00 00 00 00 7B [15:13:51]Write i2c OK [15:13:51]MH_I2C_Read... [15:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:51]Read from MH i2c: E2 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0E 00 [15:13:51]MH_I2C_Read... [15:13:51]Read from MH i2c: E2 0E 00 EC 12 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 26 [15:13:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:13:51]wFMCommunicate OK [15:13:51]SAM_PROTO_GetShiftState done [15:13:51]FM_GetShiftState done [15:13:51]opened in 1715732471 [15:13:51]opened+sec_in_day 1715818871 [15:13:51]quantity*price = 100005 [15:13:51]sum+1 = 100006 [15:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 101 15.05.2024 15:13 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67283 ФПД: 252333893968746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T151353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67283&fm=252333893968746&tin=02508201610067®Number=0000000000091845&sum=100005 [15:13:53]StoreToDocumentArchive [15:13:53]shift 356 fd 67283 [15:13:53]save to /storage/0356/doc_00067283 [15:13:53]save last doc name /storage/0356/doc_00067283 to /storage/kkm_last_doc_name [15:13:53]save OK [15:13:53]Clear old archive folders... [15:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:13:53]tlvbuf is 00B7BF00 [15:13:53]SAM_PROTO_ClearQueue [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 09 00 00 [15:13:53]Write to MH i2c: E2 08 00 F9 12 80 09 00 00 00 00 00 00 7D [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:53]Read from MH i2c: E2 03 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [15:13:53]RAPDU: 90 00 [15:13:53]wFMCommunicate OK [15:13:53]SAM_PROTO_ClearQueue done [15:13:53]KKMCreateOFDPacket [15:13:53]OFDProtocolAddRootSTLVToBuf [15:13:53]FM_MakeSignedData [15:13:53]FM_MakeSignedData [15:13:53]SAM_PROTO_SignData [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 0D 01 02 [15:13:53]Write to MH i2c: E2 08 00 FA 12 80 0D 01 02 00 00 00 00 85 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [15:13:53]RAPDU: 90 00 [15:13:53]wFMCommunicate OK [15:13:53]wFMCommunicate request_size=255 [15:13:53]MH_SAM_APDU [15:13:53]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 65 00 00 00 F4 03 04 00 31 D1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [15:13:53]Write to MH i2c: E2 02 01 FB 12 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 65 00 00 00 F4 03 04 00 31 D1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 1C [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [15:13:53]RAPDU: 90 00 [15:13:53]wFMCommunicate OK [15:13:53]wFMCommunicate request_size=11 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 0D 02 02 06 E5 7F 10 1D 63 6A [15:13:53]Write to MH i2c: E2 0E 00 FC 12 80 0D 02 02 06 00 E5 7F 10 1D 63 6A 00 00 F2 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [15:13:53]RAPDU: 90 00 [15:13:53]wFMCommunicate OK [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 0D 03 02 [15:13:53]Write to MH i2c: E2 08 00 FD 12 80 0D 03 02 00 00 00 00 8A [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 0B 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 0B 00 FD 12 00 99 A3 84 12 59 E5 78 37 90 00 4A [15:13:53]RAPDU: 99 A3 84 12 59 E5 78 37 90 00 [15:13:53]wFMCommunicate OK [15:13:53]SAM_PROTO_SignData done [15:13:53]FM_MakeSignedData done [15:13:53]CreateOFDProtocolMessage [15:13:53]wFMCommunicate request_size=4 [15:13:53]MH_SAM_APDU [15:13:53]CAPDU: 80 11 00 00 [15:13:53]Write to MH i2c: E2 08 00 FE 12 80 11 00 00 00 00 00 00 8A [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:53]Read from MH i2c: E2 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 17 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: E2 17 00 FE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [15: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 [15:13:53]wFMCommunicate OK [15:13:53]CreateOFDProtocolMessage done [15:13:53]OFDSenderStorePacket 67283 [15:13:53]StoreOFDPacket docnum=67283 [15: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 10 01 00 00 40 A1 08 01 D6 A2 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 65 00 00 00 F4 03 04 00 31 D1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E5 7F 10 1D 63 6A 99 A3 84 12 59 E5 78 37 [15:13:53]CheckFolder [15:13:53]dirname=/storage/ofd_packets [15:13:53]CheckFolder done [15:13:53]ProducePacketName [15:13:53]name=ofd_packets/00067283 [15:13:53]NVStorageSaveData ofd_packets/00067283 [15:13:53]File name is /storage/ofd_packets/00067283 [15:13:53]Write 302 bytes [15:13:53]NVStorageSaveData done [15:13:53]OFDSenderStorePacket done [15:13:53]KKMCreateOFDPacket done [15:13:53]NVStorageSaveData kkm_last_timestamp [15:13:53]File name is /storage/kkm_last_timestamp [15:13:53]Write 4 bytes [15:13:53]NVStorageSaveData done [15:13:53]ExternCall_PrintAddStr [15:13:53]wPrintStart [15:13:53]Write to MH i2c: 01 00 00 FF 12 11 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 07 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 FF 0F 26 [15:13:53]RasterBufferAndPrint [15:13:53]line Счет N : (1)507262 [15:13:53]line ИНН: 02508201610067 [15:13:53]line Контрольно-Кассовый Чек [15:13:53]line ПРОДАЖА [15:13:53]line ТРК (МРК, ГНК) : 42 [15:13:53]line Товар: 2710124130 [15:13:53]line Super-92-К-5 [15:13:53]line 14.750 * 67.80 [15:13:53]line = 1000.05 [15:13:53]line НДС 12% НСП 1% [15:13:53]line > о реализуемом товаре [15:13:53]line ИТОГО: 1000.05 [15:13:53]line НСП 1% : 8.85 [15:13:53]line НДС 12% : 106.20 [15:13:53]line Наличными: 0.00 [15:13:53]line Безнал.: 1000.05 [15:13:53]line Место: АЗС № 91 "Партнер Нефть" [15:13:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:13:53]line СНО: Общий режим [15:13:53]line Чек 101 15.05.2024 15:13 [15:13:53]line Смена: 356 ФФД: 1.0 [15:13:53]line ЗНМ: 0300000119 [15:13:53]line РНМ: 0000000000091845 [15:13:53]line Версия ККМ: 001 [15:13:53]line Платежная система: Бакай Банк [15:13:53]line ФМ: 0000000000871829 [15:13:53]line ФД: 67283 [15:13:53]line ФПД: 252333893968746 [15:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T151353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67283&fm=252333893968746&tin=02508201610067®Number=0000000000091845&sum=100005 [15:13:53]OFD Sender: Processing packet 67283 [packets to send 35, broken 34] [15:13:53]ProducePacketName [15:13:53]name=ofd_packets/00067283 [15:13:53]OFD Sender: To server: pG, [15:13:53]CommunicateWithHost lk.salyk.kg:30040 [15:13:53]ConnectInit lk.salyk.kg [15:13:53]written 0, free lines is 4095 [15:13:54]Connected sock=10 [15:13: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 10 01 00 00 40 A1 08 01 D6 A2 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 65 00 00 00 F4 03 04 00 31 D1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E5 7F 10 1D 63 6A 99 A3 84 12 59 E5 78 37 [15:13: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 D2 9E 47 00 E0 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 D3 06 01 00 F4 03 04 00 0E 79 44 66 B6 04 01 00 00 AC EE 91 2A 59 84 40 62 [15:13:54]CommunicateWithHost err = 0 [15:13:54]CheckOFDResponse [15:13:54]1017 (14) - 77093643461234 [15:13:54]1041 (16) - 0000000000871829 [15:13:54]1040 (4) - 67283 [15:13:54]1012 (4) - 15.05.2024 08:57 [15:13:54]1206 (1) - 0 [15:13:54]OFD Sender: Remove packet 67283 [15:13:54]ProducePacketName [15:13:54]name=ofd_packets/00067283 [15:13:54]NVStorageDeleteData [15:13:54]Write to MH i2c: 01 00 00 28 13 3B [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: 01 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: 01 07 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FA 0C 48 [15:13:54]RasterBufferAndPrint [15:13:54]line [15:13:54]line [15:13:54]line [15:13:54]line [15:13:54]line [15:13:54]written 0, free lines is 3327 [15:13:54]MH_Cut [15:13:54]Write to MH i2c: D1 01 00 2F 13 01 14 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: D1 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: D1 01 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: D1 01 00 2F 13 00 13 [15:13:54]Write to MH i2c: 01 00 00 30 13 43 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]OFD Sender: No OFD packet to send [15:13:55]*** Cut start [15:13:55]*** Purtial cut [15:13:55]*** Stage 1: CUTSNS_PIN = 1 [15:13:55]Read from MH i2c: 01 [15:13:55]MH_I2C_Read... [15:13:55]*** Stop cut motor [15:13:55]*** Cut end [15:13:55]Read from MH i2c: 01 07 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 FF 0F 58 [15:13:55]process_action close_receipt done [15:13:55]requested_data is exist [15:13:55]produce_requested_data [15:13:55]requested_item fm.sn is exist - process it [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 11 00 00 [15:13:55]Write to MH i2c: E2 08 00 31 13 80 11 00 00 00 00 00 00 BE [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 17 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 17 00 31 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [15: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 [15:13:55]wFMCommunicate OK [15:13:55]requested_item fd.num is exist - process it [15:13:55]SAM_PROTO_GetFieldsCounters [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 13 00 00 [15:13:55]Write to MH i2c: E2 08 00 32 13 80 13 00 00 00 00 00 00 C1 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 62 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 62 00 32 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 D3 06 01 00 0E 04 04 00 64 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 55 [15: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 D3 06 01 00 0E 04 04 00 64 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 [15:13:55]wFMCommunicate OK [15:13:55]SAM_PROTO_GetFieldsCounters done [15:13:55]requested_item shift.num is exist - process it [15:13:55]requested_item shift.opened is exist - process it [15:13:55]req_shift_opened [15:13:55]FM_GetShiftState [15:13:55]SAM_PROTO_GetShiftState [15:13:55]wFMCommunicate request_size=4 [15:13:55]MH_SAM_APDU [15:13:55]CAPDU: 80 13 01 00 [15:13:55]Write to MH i2c: E2 08 00 33 13 80 13 01 00 00 00 00 00 C3 [15:13:55]Write i2c OK [15:13:55]MH_I2C_Read... [15:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:55]Read from MH i2c: E2 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 0E 00 [15:13:55]MH_I2C_Read... [15:13:55]Read from MH i2c: E2 0E 00 33 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6E [15:13:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:13:55]wFMCommunicate OK [15:13:55]SAM_PROTO_GetShiftState done [15:13:55]FM_GetShiftState done [15:13:55]req_shift_opened done [15:13:55]requested_item shift.open_date is exist - process it [15:13:55]req_shift_open_date [15:13:55]req_shift_open_date done [15:13:55]produce_requested_data done [15:13:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67283,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:13:55]process_action_free close_receipt [15:13:55]json_value_free [15:13:55]json_value_free done [15:13:55]process_json_proto returns [15:13:55]Send response to host [15:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67283,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:13:55]free response buf [15:13:55]execute_script done [15:13:55]execute_script returns [15:13:55]free content buf [15:13:55]Sock 7.Close socket [15:13:55]Sock 7.Thread stoped [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:08]accept exits with 9 [15:29:08]New connection [15:29:08]New thread 3067030884 created [15:29:08]Thread 3067174244 joined [15:29:08]Waiting for new connection... [15:29:08] Sock 9.Parse request [15:29:08]Sock 9.Check first char [15:29:08]Sock 9.First char is OK [15:29:08]request: POST /json_proto HTTP/1.0 [15:29:08]Method: POST [15:29:08]URL: /json_proto [15:29:08]Method is POST - this is cgi request [15:29:08]url: /json_proto [15:29:08]query_string will be loaded in cgi processing [15:29:08]execute_cgi json_proto POST (null) [15:29:08]execute_cgi path=json_proto method=POST [15:29:08]POST find Content-Length [15:29:08]Host: 172.17.41.195:8080 [15:29:08]Content-Length: 677 [15:29:08]Content-Type: application/json [15:29:08] [15:29:08]POST finish read [15:29:08]Found Content-Length = 677 [15:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507263", "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" ] } } [15:29:08]execute_script... [15:29:08]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)507263", "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" ] } } [15:29:08]POST & json_proto [15:29:08]process_json_proto [15:29:08]json parsed OK: [15:29:08]protocol is kg_v1.0 [15:29:08]action value=close_receipt [15:29:08]process_action close_receipt [15:29:08]cmd_close_receipt [15:29:08]MH_GetDate [15:29:08]Write to MH i2c: F0 00 00 34 13 36 [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 09 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: F0 09 00 34 13 00 C5 D4 44 66 FC 21 6F 64 72 [15:29:08]GetLastDocTimeStamp 1715786033 [15:29:08]current date 1715786949 [15:29:08]FM_GetShiftState [15:29:08]SAM_PROTO_GetShiftState [15:29:08]wFMCommunicate request_size=4 [15:29:08]MH_SAM_APDU [15:29:08]CAPDU: 80 13 01 00 [15:29:08]Write to MH i2c: E2 08 00 35 13 80 13 01 00 00 00 00 00 C5 [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:08]Read from MH i2c: E2 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: E2 0E 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: E2 0E 00 35 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 70 [15:29:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:29:08]wFMCommunicate OK [15:29:08]SAM_PROTO_GetShiftState done [15:29:08]FM_GetShiftState done [15:29:08]opened in 1715732471 [15:29:08]opened+sec_in_day 1715818871 [15:29:08]quantity*price = 60053 [15:29:08]sum+1 = 60054 [15:29:08]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 СНО: Общий режим Чек 102 15.05.2024 15:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67284 ФПД: 142138993420326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T152909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67284&fm=142138993420326&tin=02508201610067®Number=0000000000091845&sum=60000 [15:29:09]StoreToDocumentArchive [15:29:09]shift 356 fd 67284 [15:29:09]save to /storage/0356/doc_00067284 [15:29:09]save last doc name /storage/0356/doc_00067284 to /storage/kkm_last_doc_name [15:29:09]save OK [15:29:09]Clear old archive folders... [15:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:09]tlvbuf is B6EF7D80 [15:29:09]SAM_PROTO_ClearQueue [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 09 00 00 [15:29:09]Write to MH i2c: E2 08 00 42 13 80 09 00 00 00 00 00 00 C7 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [15:29:09]RAPDU: 90 00 [15:29:09]wFMCommunicate OK [15:29:09]SAM_PROTO_ClearQueue done [15:29:09]KKMCreateOFDPacket [15:29:09]OFDProtocolAddRootSTLVToBuf [15:29:09]FM_MakeSignedData [15:29:09]FM_MakeSignedData [15:29:09]SAM_PROTO_SignData [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 0D 01 02 [15:29:09]Write to MH i2c: E2 08 00 43 13 80 0D 01 02 00 00 00 00 CF [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [15:29:09]RAPDU: 90 00 [15:29:09]wFMCommunicate OK [15:29:09]wFMCommunicate request_size=255 [15:29:09]MH_SAM_APDU [15:29: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 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 66 00 00 00 F4 03 04 00 C5 D4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 [15:29:09]Write to MH i2c: E2 02 01 44 13 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 66 00 00 00 F4 03 04 00 C5 D4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 00 00 E4 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [15:29:09]RAPDU: 90 00 [15:29:09]wFMCommunicate OK [15:29:09]wFMCommunicate request_size=10 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 0D 02 02 05 46 50 36 28 26 [15:29:09]Write to MH i2c: E2 0D 00 45 13 80 0D 02 02 05 00 46 50 36 28 26 00 00 F6 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [15:29:09]RAPDU: 90 00 [15:29:09]wFMCommunicate OK [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 0D 03 02 [15:29:09]Write to MH i2c: E2 08 00 46 13 80 0D 03 02 00 00 00 00 D4 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0B 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0B 00 46 13 00 67 B8 6E 76 06 88 97 6F 90 00 6C [15:29:09]RAPDU: 67 B8 6E 76 06 88 97 6F 90 00 [15:29:09]wFMCommunicate OK [15:29:09]SAM_PROTO_SignData done [15:29:09]FM_MakeSignedData done [15:29:09]CreateOFDProtocolMessage [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 11 00 00 [15:29:09]Write to MH i2c: E2 08 00 47 13 80 11 00 00 00 00 00 00 D4 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 17 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 17 00 47 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [15:29: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:29:09]wFMCommunicate OK [15:29:09]CreateOFDProtocolMessage done [15:29:09]OFDSenderStorePacket 67284 [15:29:09]StoreOFDPacket docnum=67284 [15:29: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 39 51 07 01 9C 10 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 66 00 00 00 F4 03 04 00 C5 D4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 46 50 36 28 26 67 B8 6E 76 06 88 97 6F [15:29:09]CheckFolder [15:29:09]dirname=/storage/ofd_packets [15:29:09]CheckFolder done [15:29:09]ProducePacketName [15:29:09]name=ofd_packets/00067284 [15:29:09]NVStorageSaveData ofd_packets/00067284 [15:29:09]File name is /storage/ofd_packets/00067284 [15:29:09]Write 301 bytes [15:29:09]NVStorageSaveData done [15:29:09]OFDSenderStorePacket done [15:29:09]KKMCreateOFDPacket done [15:29:09]NVStorageSaveData kkm_last_timestamp [15:29:09]File name is /storage/kkm_last_timestamp [15:29:09]Write 4 bytes [15:29:09]NVStorageSaveData done [15:29:09]ExternCall_PrintAddStr [15:29:09]wPrintStart [15:29:09]Write to MH i2c: 01 00 00 48 13 5B [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: 01 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: 01 07 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 FF 0F 70 [15:29:09]RasterBufferAndPrint [15:29:09]line Счет N : (1)507263 [15:29:09]line ИНН: 02508201610067 [15:29:09]line Контрольно-Кассовый Чек [15:29:09]line ПРОДАЖА [15:29:09]line ТРК (МРК, ГНК) : 33 [15:29:09]line Товар: 2710124130 [15:29:09]line Аи-92-К-5 [15:29:09]line 8.990 * 66.80 [15:29:09]line = 600.53 [15:29:09]line НДС 12% НСП 1% [15:29:09]line > о реализуемом товаре [15:29:09]line ОКРУГЛЕНИЕ: -0.53 [15:29:09]line ИТОГО: 600.00 [15:29:09]line Внесено: 600.00 [15:29:09]line СДАЧА: 0.00 [15:29:09]line НСП 1% : 5.31 [15:29:09]line НДС 12% : 63.77 [15:29:09]line Наличными: 600.00 [15:29:09]line Безнал.: 0.00 [15:29:09]line Место: АЗС № 91 "Партнер Нефть" [15:29:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:29:09]line СНО: Общий режим [15:29:09]line Чек 102 15.05.2024 15:29 [15:29:09]line Смена: 356 ФФД: 1.0 [15:29:09]line ЗНМ: 0300000119 [15:29:09]line РНМ: 0000000000091845 [15:29:09]line Версия ККМ: 001 [15:29:09]line ФМ: 0000000000871829 [15:29:09]line ФД: 67284 [15:29:09]line ФПД: 142138993420326 [15:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T152909&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67284&fm=142138993420326&tin=02508201610067®Number=0000000000091845&sum=60000 [15:29:10]OFD Sender: Processing packet 67284 [packets to send 35, broken 34] [15:29:10]ProducePacketName [15:29:10]name=ofd_packets/00067284 [15:29:10]OFD Sender: To server: pG, [15:29:10]CommunicateWithHost lk.salyk.kg:30040 [15:29:10]ConnectInit lk.salyk.kg [15:29:10]written 0, free lines is 4095 [15:29:10]Connected sock=10 [15:29: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 39 51 07 01 9C 10 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 66 00 00 00 F4 03 04 00 C5 D4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 46 50 36 28 26 67 B8 6E 76 06 88 97 6F [15:29: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 E8 5D 47 00 23 42 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 06 01 00 F4 03 04 00 A2 7C 44 66 B6 04 01 00 00 55 1D C4 60 A8 ED 43 9A [15:29:10]CommunicateWithHost err = 0 [15:29:10]CheckOFDResponse [15:29:10]1017 (14) - 77093643461234 [15:29:10]1041 (16) - 0000000000871829 [15:29:10]1040 (4) - 67284 [15:29:10]1012 (4) - 15.05.2024 09:13 [15:29:10]1206 (1) - 0 [15:29:10]OFD Sender: Remove packet 67284 [15:29:10]ProducePacketName [15:29:10]name=ofd_packets/00067284 [15:29:10]NVStorageDeleteData [15:29:10]Write to MH i2c: 01 00 00 72 13 85 [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: 01 07 00 72 13 00 00 00 00 00 D8 0C 70 [15:29:10]RasterBufferAndPrint [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]line [15:29:10]written 0, free lines is 3294 [15:29:10]MH_Cut [15:29:10]Write to MH i2c: D1 01 00 79 13 01 5E [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 01 00 [15:29:10]MH_I2C_Read... [15:29:10]Read from MH i2c: D1 01 00 79 13 00 5D [15:29:10]Write to MH i2c: 01 00 00 7A 13 8D [15:29:10]Write i2c OK [15:29:10]MH_I2C_Read... [15:29:10]OFD Sender: No OFD packet to send [15:29:11]*** Cut start [15:29:11]*** Purtial cut [15:29:11]*** CUTSNS_PIN = 0 [15:29:11]*** Stage 1: CUTSNS_PIN = 1 [15:29:13]Read from MH i2c: 01 [15:29:13]MH_I2C_Read... [15:29:13]*** Stop cut motor [15:29:13]*** Cut end [15:29:13]Read from MH i2c: 01 07 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: 01 07 00 7A 13 00 00 00 00 00 FF 0F A2 [15:29:13]process_action close_receipt done [15:29:13]requested_data is exist [15:29:13]produce_requested_data [15:29:13]requested_item fm.sn is exist - process it [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 11 00 00 [15:29:13]Write to MH i2c: E2 08 00 7B 13 80 11 00 00 00 00 00 00 08 [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 17 00 7B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [15:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:29:13]wFMCommunicate OK [15:29:13]requested_item fd.num is exist - process it [15:29:13]SAM_PROTO_GetFieldsCounters [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 13 00 00 [15:29:13]Write to MH i2c: E2 08 00 7C 13 80 13 00 00 00 00 00 00 0B [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 62 00 7C 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 D4 06 01 00 0E 04 04 00 64 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 A3 [15:29: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 D4 06 01 00 0E 04 04 00 64 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 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetFieldsCounters done [15:29:13]requested_item shift.num is exist - process it [15:29:13]requested_item shift.opened is exist - process it [15:29:13]req_shift_opened [15:29:13]FM_GetShiftState [15:29:13]SAM_PROTO_GetShiftState [15:29:13]wFMCommunicate request_size=4 [15:29:13]MH_SAM_APDU [15:29:13]CAPDU: 80 13 01 00 [15:29:13]Write to MH i2c: E2 08 00 7D 13 80 13 01 00 00 00 00 00 0D [15:29:13]Write i2c OK [15:29:13]MH_I2C_Read... [15:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:13]Read from MH i2c: E2 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 [15:29:13]MH_I2C_Read... [15:29:13]Read from MH i2c: E2 0E 00 7D 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B8 [15:29:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:29:13]wFMCommunicate OK [15:29:13]SAM_PROTO_GetShiftState done [15:29:13]FM_GetShiftState done [15:29:13]req_shift_opened done [15:29:13]requested_item shift.open_date is exist - process it [15:29:13]req_shift_open_date [15:29:13]req_shift_open_date done [15:29:13]produce_requested_data done [15:29:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67284,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:29:13]process_action_free close_receipt [15:29:13]json_value_free [15:29:13]json_value_free done [15:29:13]process_json_proto returns [15:29:13]Send response to host [15:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67284,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:29:13]free response buf [15:29:13]execute_script done [15:29:13]execute_script returns [15:29:13]free content buf [15:29:13]Sock 9.Close socket [15:29:13]Sock 9.Thread stoped [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:34]accept exits with 7 [15:31:34]New connection [15:31:34]New thread 3067174244 created [15:31:34]Thread 3067030884 joined [15:31:34]Waiting for new connection... [15:31:34] Sock 7.Parse request [15:31:34]Sock 7.Check first char [15:31:34]Sock 7.First char is OK [15:31:34]request: POST /json_proto HTTP/1.0 [15:31:34]Method: POST [15:31:34]URL: /json_proto [15:31:34]Method is POST - this is cgi request [15:31:34]url: /json_proto [15:31:34]query_string will be loaded in cgi processing [15:31:34]execute_cgi json_proto POST (null) [15:31:34]execute_cgi path=json_proto method=POST [15:31:34]POST find Content-Length [15:31:34]Host: 172.17.41.195:8080 [15:31:34]Content-Length: 809 [15:31:34]Content-Type: application/json [15:31:34] [15:31:34]POST finish read [15:31:34]Found Content-Length = 809 [15:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507264", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:34]execute_script... [15:31: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)507264", "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" : 7.380, "sum" : 500.36, "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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:34]POST & json_proto [15:31:34]process_json_proto [15:31:34]json parsed OK: [15:31:34]protocol is kg_v1.0 [15:31:34]action value=close_receipt [15:31:34]process_action close_receipt [15:31:34]cmd_close_receipt [15:31:34]MH_GetDate [15:31:34]Write to MH i2c: F0 00 00 7E 13 80 [15:31:34]Write i2c OK [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 09 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: F0 09 00 7E 13 00 57 D5 44 66 FC 21 6F 64 4F [15:31:34]GetLastDocTimeStamp 1715786949 [15:31:34]current date 1715787095 [15:31:34]FM_GetShiftState [15:31:34]SAM_PROTO_GetShiftState [15:31:34]wFMCommunicate request_size=4 [15:31:34]MH_SAM_APDU [15:31:34]CAPDU: 80 13 01 00 [15:31:34]Write to MH i2c: E2 08 00 7F 13 80 13 01 00 00 00 00 00 0F [15:31:34]Write i2c OK [15:31:34]MH_I2C_Read... [15:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:34]Read from MH i2c: E2 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 0E 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 0E 00 7F 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BA [15:31:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:31:34]wFMCommunicate OK [15:31:34]SAM_PROTO_GetShiftState done [15:31:34]FM_GetShiftState done [15:31:34]opened in 1715732471 [15:31:34]opened+sec_in_day 1715818871 [15:31:34]quantity*price = 50036 [15:31:34]sum+1 = 50037 [15:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 103 15.05.2024 15:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67285 ФПД: 163963341137747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153135&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67285&fm=163963341137747&tin=02508201610067®Number=0000000000091845&sum=50036 [15:31:35]StoreToDocumentArchive [15:31:35]shift 356 fd 67285 [15:31:35]save to /storage/0356/doc_00067285 [15:31:35]save last doc name /storage/0356/doc_00067285 to /storage/kkm_last_doc_name [15:31:35]save OK [15:31:35]Clear old archive folders... [15:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:31:35]tlvbuf is 00B2D2F0 [15:31:35]SAM_PROTO_ClearQueue [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 09 00 00 [15:31:35]Write to MH i2c: E2 08 00 8C 13 80 09 00 00 00 00 00 00 11 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 8C 13 00 90 00 13 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]SAM_PROTO_ClearQueue done [15:31:35]KKMCreateOFDPacket [15:31:35]OFDProtocolAddRootSTLVToBuf [15:31:35]FM_MakeSignedData [15:31:35]FM_MakeSignedData [15:31:35]SAM_PROTO_SignData [15:31:35]wFMCommunicate request_size=4 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 01 02 [15:31:35]Write to MH i2c: E2 08 00 8D 13 80 0D 01 02 00 00 00 00 19 [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]wFMCommunicate request_size=255 [15:31:35]MH_SAM_APDU [15:31:35]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 57 D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [15:31:35]Write to MH i2c: E2 02 01 8E 13 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 57 D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 8D [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:35]Read from MH i2c: E2 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 [15:31:35]MH_I2C_Read... [15:31:35]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [15:31:35]RAPDU: 90 00 [15:31:35]wFMCommunicate OK [15:31:35]wFMCommunicate request_size=11 [15:31:35]MH_SAM_APDU [15:31:35]CAPDU: 80 0D 02 02 06 95 1F B0 B4 67 53 [15:31:35]Write to MH i2c: E2 0E 00 8F 13 80 0D 02 02 06 00 95 1F B0 B4 67 53 00 00 FA [15:31:35]Write i2c OK [15:31:35]MH_I2C_Read... [15:31:36]OFD Sender: No OFD packet to send [15:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:36]Read from MH i2c: E2 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 03 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [15:31:36]RAPDU: 90 00 [15:31:36]wFMCommunicate OK [15:31:36]wFMCommunicate request_size=4 [15:31:36]MH_SAM_APDU [15:31:36]CAPDU: 80 0D 03 02 [15:31:36]Write to MH i2c: E2 08 00 90 13 80 0D 03 02 00 00 00 00 1E [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:36]Read from MH i2c: E2 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 0B 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 0B 00 90 13 00 F8 F7 10 FE F9 4E 12 82 90 00 F7 [15:31:36]RAPDU: F8 F7 10 FE F9 4E 12 82 90 00 [15:31:36]wFMCommunicate OK [15:31:36]SAM_PROTO_SignData done [15:31:36]FM_MakeSignedData done [15:31:36]CreateOFDProtocolMessage [15:31:36]wFMCommunicate request_size=4 [15:31:36]MH_SAM_APDU [15:31:36]CAPDU: 80 11 00 00 [15:31:36]Write to MH i2c: E2 08 00 91 13 80 11 00 00 00 00 00 00 1E [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:36]Read from MH i2c: E2 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 17 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 17 00 91 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [15:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:31:36]wFMCommunicate OK [15:31:36]CreateOFDProtocolMessage done [15:31:36]OFDSenderStorePacket 67285 [15:31:36]StoreOFDPacket docnum=67285 [15:31:36]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 E6 08 01 33 2C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 57 D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 95 1F B0 B4 67 53 F8 F7 10 FE F9 4E 12 82 [15:31:36]CheckFolder [15:31:36]dirname=/storage/ofd_packets [15:31:36]CheckFolder done [15:31:36]ProducePacketName [15:31:36]name=ofd_packets/00067285 [15:31:36]NVStorageSaveData ofd_packets/00067285 [15:31:36]File name is /storage/ofd_packets/00067285 [15:31:36]Write 302 bytes [15:31:36]NVStorageSaveData done [15:31:36]OFDSenderStorePacket done [15:31:36]KKMCreateOFDPacket done [15:31:36]NVStorageSaveData kkm_last_timestamp [15:31:36]File name is /storage/kkm_last_timestamp [15:31:36]Write 4 bytes [15:31:36]NVStorageSaveData done [15:31:36]ExternCall_PrintAddStr [15:31:36]wPrintStart [15:31:36]Write to MH i2c: 01 00 00 92 13 A5 [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 92 13 00 00 00 00 00 FF 0F BA [15:31:36]RasterBufferAndPrint [15:31:36]line Счет N : (1)507264 [15:31:36]line ИНН: 02508201610067 [15:31:36]line Контрольно-Кассовый Чек [15:31:36]line ПРОДАЖА [15:31:36]line ТРК (МРК, ГНК) : 42 [15:31:36]line Товар: 2710124130 [15:31:36]line Super-92-К-5 [15:31:36]line 7.380 * 67.80 [15:31:36]line = 500.36 [15:31:36]line НДС 12% НСП 1% [15:31:36]line > о реализуемом товаре [15:31:36]line ИТОГО: 500.36 [15:31:36]line НСП 1% : 4.43 [15:31:36]line НДС 12% : 53.14 [15:31:36]line Наличными: 0.00 [15:31:36]line Безнал.: 500.36 [15:31:36]line Место: АЗС № 91 "Партнер Нефть" [15:31:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:31:36]line СНО: Общий режим [15:31:36]line Чек 103 15.05.2024 15:31 [15:31:36]line Смена: 356 ФФД: 1.0 [15:31:36]line ЗНМ: 0300000119 [15:31:36]line РНМ: 0000000000091845 [15:31:36]line Версия ККМ: 001 [15:31:36]line Платежная система: Бакай Банк [15:31:36]line ФМ: 0000000000871829 [15:31:36]line ФД: 67285 [15:31:36]line ФПД: 163963341137747 [15:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153135&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67285&fm=163963341137747&tin=02508201610067®Number=0000000000091845&sum=50036 [15:31:36]OFD Sender: Processing packet 67285 [packets to send 35, broken 34] [15:31:36]ProducePacketName [15:31:36]name=ofd_packets/00067285 [15:31:36]OFD Sender: To server: pG, [15:31:36]CommunicateWithHost lk.salyk.kg:30040 [15:31:36]ConnectInit lk.salyk.kg [15:31:36]written 0, free lines is 4095 [15:31:36]Connected sock=10 [15:31: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 10 01 00 00 F1 E6 08 01 33 2C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 57 D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 95 1F B0 B4 67 53 F8 F7 10 FE F9 4E 12 82 [15:31: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 A4 A0 47 00 32 18 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 06 01 00 F4 03 04 00 34 7D 44 66 B6 04 01 00 00 04 B0 2F 9F 63 9D 8E 6D [15:31:36]CommunicateWithHost err = 0 [15:31:36]CheckOFDResponse [15:31:36]1017 (14) - 77093643461234 [15:31:36]1041 (16) - 0000000000871829 [15:31:36]1040 (4) - 67285 [15:31:36]1012 (4) - 15.05.2024 09:15 [15:31:36]1206 (1) - 0 [15:31:36]OFD Sender: Remove packet 67285 [15:31:36]ProducePacketName [15:31:36]name=ofd_packets/00067285 [15:31:36]NVStorageDeleteData [15:31:36]Write to MH i2c: 01 00 00 BB 13 CE [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 DF 0C C0 [15:31:36]RasterBufferAndPrint [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]line [15:31:36]written 0, free lines is 3301 [15:31:36]MH_Cut [15:31:36]Write to MH i2c: D1 01 00 C2 13 01 A7 [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 01 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: D1 01 00 C2 13 00 A6 [15:31:36]Write to MH i2c: 01 00 00 C3 13 D6 [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:37]OFD Sender: No OFD packet to send [15:31:37]*** Cut start [15:31:37]*** Purtial cut [15:31:37]*** Stage 1: CUTSNS_PIN = 1 [15:31:38]Read from MH i2c: 01 [15:31:38]MH_I2C_Read... [15:31:38]*** Stop cut motor [15:31:38]*** Cut end [15:31:38]Read from MH i2c: 01 07 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: 01 07 00 C3 13 00 00 00 00 00 FF 0F EB [15:31:38]process_action close_receipt done [15:31:38]requested_data is exist [15:31:38]produce_requested_data [15:31:38]requested_item fm.sn is exist - process it [15:31:38]wFMCommunicate request_size=4 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 11 00 00 [15:31:38]Write to MH i2c: E2 08 00 C4 13 80 11 00 00 00 00 00 00 51 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 17 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 17 00 C4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [15:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:31:38]wFMCommunicate OK [15:31:38]requested_item fd.num is exist - process it [15:31:38]SAM_PROTO_GetFieldsCounters [15:31:38]wFMCommunicate request_size=4 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 13 00 00 [15:31:38]Write to MH i2c: E2 08 00 C5 13 80 13 00 00 00 00 00 00 54 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 62 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 62 00 C5 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 D5 06 01 00 0E 04 04 00 64 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 F0 [15:31: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 D5 06 01 00 0E 04 04 00 64 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 [15:31:38]wFMCommunicate OK [15:31:38]SAM_PROTO_GetFieldsCounters done [15:31:38]requested_item shift.num is exist - process it [15:31:38]requested_item shift.opened is exist - process it [15:31:38]req_shift_opened [15:31:38]FM_GetShiftState [15:31:38]SAM_PROTO_GetShiftState [15:31:38]wFMCommunicate request_size=4 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 13 01 00 [15:31:38]Write to MH i2c: E2 08 00 C6 13 80 13 01 00 00 00 00 00 56 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 0E 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 0E 00 C6 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 01 [15:31:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:31:38]wFMCommunicate OK [15:31:38]SAM_PROTO_GetShiftState done [15:31:38]FM_GetShiftState done [15:31:38]req_shift_opened done [15:31:38]requested_item shift.open_date is exist - process it [15:31:38]req_shift_open_date [15:31:38]req_shift_open_date done [15:31:38]produce_requested_data done [15:31:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67285,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:31:38]process_action_free close_receipt [15:31:38]json_value_free [15:31:38]json_value_free done [15:31:38]process_json_proto returns [15:31:38]Send response to host [15:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67285,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:31:38]free response buf [15:31:38]execute_script done [15:31:38]execute_script returns [15:31:38]free content buf [15:31:38]Sock 7.Close socket [15:31:38]Sock 7.Thread stoped [15:31:39]accept exits with 9 [15:31:39]New connection [15:31:39]New thread 3067030884 created [15:31:39]Thread 3067174244 joined [15:31:39]Waiting for new connection... [15:31:39] Sock 9.Parse request [15:31:39]Sock 9.Check first char [15:31:39]Sock 9.First char is OK [15:31:39]request: POST /json_proto HTTP/1.0 [15:31:39]Method: POST [15:31:39]URL: /json_proto [15:31:39]Method is POST - this is cgi request [15:31:39]url: /json_proto [15:31:39]query_string will be loaded in cgi processing [15:31:39]execute_cgi json_proto POST (null) [15:31:39]execute_cgi path=json_proto method=POST [15:31:39]POST find Content-Length [15:31:39]Host: 172.17.41.195:8080 [15:31:39]Content-Length: 629 [15:31:39]Content-Type: application/json [15:31:39] [15:31:39]POST finish read [15:31:39]Found Content-Length = 629 [15:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12074", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:39]execute_script... [15:31: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)12074", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:39]POST & json_proto [15:31:39]process_json_proto [15:31:39]json parsed OK: [15:31:39]protocol is kg_v1.0 [15:31:39]action value=close_receipt [15:31:39]process_action close_receipt [15:31:39]cmd_close_receipt [15:31:39]MH_GetDate [15:31:39]Write to MH i2c: F0 00 00 C7 13 C9 [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: F0 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: F0 09 00 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: F0 09 00 C7 13 00 5C D5 44 66 FC 21 6F 64 9D [15:31:39]GetLastDocTimeStamp 1715787095 [15:31:39]current date 1715787100 [15:31:39]FM_GetShiftState [15:31:39]SAM_PROTO_GetShiftState [15:31:39]wFMCommunicate request_size=4 [15:31:39]MH_SAM_APDU [15:31:39]CAPDU: 80 13 01 00 [15:31:39]Write to MH i2c: E2 08 00 C8 13 80 13 01 00 00 00 00 00 58 [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:39]Read from MH i2c: E2 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: E2 0E 00 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: E2 0E 00 C8 13 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 03 [15:31:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:31:39]wFMCommunicate OK [15:31:39]SAM_PROTO_GetShiftState done [15:31:39]FM_GetShiftState done [15:31:39]opened in 1715732471 [15:31:39]opened+sec_in_day 1715818871 [15:31:39]quantity*price = 9000 [15:31:39]sum+1 = 9001 [15:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 104 15.05.2024 15:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67286 ФПД: 218333286731167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67286&fm=218333286731167&tin=02508201610067®Number=0000000000091845&sum=9000 0 [15:31:40]StoreToDocumentArchive [15:31:40]shift 356 fd 67286 [15:31:40]save to /storage/0356/doc_00067286 [15:31:40]save last doc name /storage/0356/doc_00067286 to /storage/kkm_last_doc_name [15:31:40]save OK [15:31:40]Clear old archive folders... [15:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:31:40]tlvbuf is 00B92E50 [15:31:40]SAM_PROTO_ClearQueue [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 09 00 00 [15:31:40]Write to MH i2c: E2 08 00 D5 13 80 09 00 00 00 00 00 00 5A [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [15:31:40]RAPDU: 90 00 [15:31:40]wFMCommunicate OK [15:31:40]SAM_PROTO_ClearQueue done [15:31:40]KKMCreateOFDPacket [15:31:40]OFDProtocolAddRootSTLVToBuf [15:31:40]FM_MakeSignedData [15:31:40]FM_MakeSignedData [15:31:40]SAM_PROTO_SignData [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 0D 01 02 [15:31:40]Write to MH i2c: E2 08 00 D6 13 80 0D 01 02 00 00 00 00 62 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [15:31:40]RAPDU: 90 00 [15:31:40]wFMCommunicate OK [15:31:40]wFMCommunicate request_size=255 [15:31:40]MH_SAM_APDU [15:31:40]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 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 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 5C D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:31:40]Write to MH i2c: E2 02 01 D7 13 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 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 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 5C D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 F7 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [15:31:40]RAPDU: 90 00 [15:31:40]wFMCommunicate OK [15:31:40]wFMCommunicate request_size=28 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 0D 02 02 17 37 31 38 32 39 10 04 04 00 D6 06 01 00 35 04 06 00 C6 92 AD FF 8D 9F [15:31:40]Write to MH i2c: E2 1F 00 D8 13 80 0D 02 02 17 00 37 31 38 32 39 10 04 04 00 D6 06 01 00 35 04 06 00 C6 92 AD FF 8D 9F 00 00 02 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [15:31:40]RAPDU: 90 00 [15:31:40]wFMCommunicate OK [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 0D 03 02 [15:31:40]Write to MH i2c: E2 08 00 D9 13 80 0D 03 02 00 00 00 00 67 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:41]Read from MH i2c: E2 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 0B 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 0B 00 D9 13 00 0B 6D CE 85 77 AD 43 2A 90 00 C4 [15:31:41]RAPDU: 0B 6D CE 85 77 AD 43 2A 90 00 [15:31:41]wFMCommunicate OK [15:31:41]SAM_PROTO_SignData done [15:31:41]FM_MakeSignedData done [15:31:41]CreateOFDProtocolMessage [15:31:41]wFMCommunicate request_size=4 [15:31:41]MH_SAM_APDU [15:31:41]CAPDU: 80 11 00 00 [15:31:41]Write to MH i2c: E2 08 00 DA 13 80 11 00 00 00 00 00 00 67 [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:41]Read from MH i2c: E2 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 17 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: E2 17 00 DA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [15:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:31:41]wFMCommunicate OK [15:31:41]CreateOFDProtocolMessage done [15:31:41]OFDSenderStorePacket 67286 [15:31:41]StoreOFDPacket docnum=67286 [15:31: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 21 01 00 00 BE EC 19 01 69 BC 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 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 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 5C D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 92 AD FF 8D 9F 0B 6D CE 85 77 AD 43 2A [15:31:41]CheckFolder [15:31:41]dirname=/storage/ofd_packets [15:31:41]CheckFolder done [15:31:41]ProducePacketName [15:31:41]name=ofd_packets/00067286 [15:31:41]NVStorageSaveData ofd_packets/00067286 [15:31:41]File name is /storage/ofd_packets/00067286 [15:31:41]Write 319 bytes [15:31:41]NVStorageSaveData done [15:31:41]OFDSenderStorePacket done [15:31:41]KKMCreateOFDPacket done [15:31:41]NVStorageSaveData kkm_last_timestamp [15:31:41]File name is /storage/kkm_last_timestamp [15:31:41]Write 4 bytes [15:31:41]NVStorageSaveData done [15:31:41]ExternCall_PrintAddStr [15:31:41]wPrintStart [15:31:41]Write to MH i2c: 01 00 00 DB 13 EE [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 07 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 07 00 DB 13 00 00 00 00 00 FF 0F 03 [15:31:41]RasterBufferAndPrint [15:31:41]line Счет N : (3)12074 [15:31:41]line ИНН: 02508201610067 [15:31:41]line Контрольно-Кассовый Чек [15:31:41]line ПРОДАЖА [15:31:41]line Товар: 4700000160358 [15:31:41]line Вода Легенда 1л [15:31:41]line 2.000 * 45.00 [15:31:41]line = 90.00 [15:31:41]line НДС 12% НСП 1% [15:31:41]line > о реализуемом товаре [15:31:41]line ИТОГО: 90.00 [15:31:41]line НСП 1% : 0.80 [15:31:41]line НДС 12% : 9.56 [15:31:41]line Наличными: 90.00 [15:31:41]line Безнал.: 0.00 [15:31:41]line Место: АЗС № 91 "Партнер Нефть" [15:31:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:31:41]line СНО: Общий режим [15:31:41]line Чек 104 15.05.2024 15:31 [15:31:41]line Смена: 356 ФФД: 1.0 [15:31:41]line ЗНМ: 0300000119 [15:31:41]line РНМ: 0000000000091845 [15:31:41]line Версия ККМ: 001 [15:31:41]line ФМ: 0000000000871829 [15:31:41]line ФД: 67286 [15:31:41]line ФПД: 218333286731167 [15:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67286&fm=218333286731167&tin=02508201610067®Number=0000000000091845&sum=9000 [15:31:41]line 0 [15:31:41]written 0, free lines is 4095 [15:31:41]OFD Sender: Processing packet 67286 [packets to send 35, broken 34] [15:31:41]ProducePacketName [15:31:41]name=ofd_packets/00067286 [15:31:41]OFD Sender: To server: pG, [15:31:41]CommunicateWithHost lk.salyk.kg:30040 [15:31:41]ConnectInit lk.salyk.kg [15:31:41]Connected sock=10 [15:31: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 21 01 00 00 BE EC 19 01 69 BC 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 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 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 5C D5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 92 AD FF 8D 9F 0B 6D CE 85 77 AD 43 2A [15:31: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 BC 4E 47 00 BC 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 D6 06 01 00 F4 03 04 00 39 7D 44 66 B6 04 01 00 00 1E C9 63 5C EA 9F B8 A9 [15:31:41]CommunicateWithHost err = 0 [15:31:41]CheckOFDResponse [15:31:41]1017 (14) - 77093643461234 [15:31:41]1041 (16) - 0000000000871829 [15:31:41]1040 (4) - 67286 [15:31:41]1012 (4) - 15.05.2024 09:15 [15:31:41]1206 (1) - 0 [15:31:41]OFD Sender: Remove packet 67286 [15:31:41]ProducePacketName [15:31:41]name=ofd_packets/00067286 [15:31:41]NVStorageDeleteData [15:31:41]Write to MH i2c: 01 00 00 02 14 16 [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 07 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 03 0D 2D [15:31:41]RasterBufferAndPrint [15:31:41]line [15:31:41]line [15:31:41]line [15:31:41]line [15:31:41]line [15:31:41]written 0, free lines is 3339 [15:31:41]MH_Cut [15:31:41]Write to MH i2c: D1 01 00 09 14 01 EF [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: D1 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: D1 01 00 [15:31:41]MH_I2C_Read... [15:31:41]Read from MH i2c: D1 01 00 09 14 00 EE [15:31:41]Write to MH i2c: 01 00 00 0A 14 1E [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:42]OFD Sender: No OFD packet to send [15:31:42]*** Cut start [15:31:42]*** Purtial cut [15:31:42]*** CUTSNS_PIN = 0 [15:31:42]*** Stage 1: CUTSNS_PIN = 1 [15:31:44]Read from MH i2c: 01 [15:31:44]MH_I2C_Read... [15:31:44]*** Stop cut motor [15:31:44]*** Cut end [15:31:44]Read from MH i2c: 01 07 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: 01 07 00 0A 14 00 00 00 00 00 FF 0F 33 [15:31:44]process_action close_receipt done [15:31:44]requested_data is exist [15:31:44]produce_requested_data [15:31:44]requested_item fm.sn is exist - process it [15:31:44]wFMCommunicate request_size=4 [15:31:44]MH_SAM_APDU [15:31:44]CAPDU: 80 11 00 00 [15:31:44]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:44]Read from MH i2c: E2 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 17 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 17 00 0B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [15:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:31:44]wFMCommunicate OK [15:31:44]requested_item fd.num is exist - process it [15:31:44]SAM_PROTO_GetFieldsCounters [15:31:44]wFMCommunicate request_size=4 [15:31:44]MH_SAM_APDU [15:31:44]CAPDU: 80 13 00 00 [15:31:44]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:44]Read from MH i2c: E2 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 62 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 62 00 0C 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 D6 06 01 00 0E 04 04 00 64 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 3C [15:31: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 D6 06 01 00 0E 04 04 00 64 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 [15:31:44]wFMCommunicate OK [15:31:44]SAM_PROTO_GetFieldsCounters done [15:31:44]requested_item shift.num is exist - process it [15:31:44]requested_item shift.opened is exist - process it [15:31:44]req_shift_opened [15:31:44]FM_GetShiftState [15:31:44]SAM_PROTO_GetShiftState [15:31:44]wFMCommunicate request_size=4 [15:31:44]MH_SAM_APDU [15:31:44]CAPDU: 80 13 01 00 [15:31:44]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [15:31:44]Write i2c OK [15:31:44]MH_I2C_Read... [15:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:44]Read from MH i2c: E2 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 0E 00 [15:31:44]MH_I2C_Read... [15:31:44]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 49 [15:31:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:31:44]wFMCommunicate OK [15:31:44]SAM_PROTO_GetShiftState done [15:31:44]FM_GetShiftState done [15:31:44]req_shift_opened done [15:31:44]requested_item shift.open_date is exist - process it [15:31:44]req_shift_open_date [15:31:44]req_shift_open_date done [15:31:44]produce_requested_data done [15:31:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67286,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:31:44]process_action_free close_receipt [15:31:44]json_value_free [15:31:44]json_value_free done [15:31:44]process_json_proto returns [15:31:44]Send response to host [15:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67286,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:31:44]free response buf [15:31:44]execute_script done [15:31:44]execute_script returns [15:31:44]free content buf [15:31:44]Sock 9.Close socket [15:31:44]Sock 9.Thread stoped [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:08]accept exits with 7 [15:38:08]New connection [15:38:08]New thread 3067174244 created [15:38:08]Thread 3067030884 joined [15:38:08]Waiting for new connection... [15:38:08] Sock 7.Parse request [15:38:08]Sock 7.Check first char [15:38:08]Sock 7.First char is OK [15:38:08]request: POST /json_proto HTTP/1.0 [15:38:08]Method: POST [15:38:08]URL: /json_proto [15:38:08]Method is POST - this is cgi request [15:38:08]url: /json_proto [15:38:08]query_string will be loaded in cgi processing [15:38:08]execute_cgi json_proto POST (null) [15:38:08]execute_cgi path=json_proto method=POST [15:38:08]POST find Content-Length [15:38:08]Host: 172.17.41.195:8080 [15:38:08]Content-Length: 1220 [15:38:08]Content-Type: application/json [15:38:08] [15:38:08]POST finish read [15:38:08]Found Content-Length = 1220 [15:38: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)507265\u000A15.05.2024 15:20\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 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3563304\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]execute_script... [15:38: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)507265\u000A15.05.2024 15:20\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 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3563304\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]POST & json_proto [15:38:08]process_json_proto [15:38:08]json parsed OK: [15:38:08]protocol is kg_v1.0 [15:38:08]action value=print_text [15:38:08]process_action print_text [15:38:08]cmd_print_text [15:38:08]ExternCall_PrintAddStr [15:38:08]wPrintStart [15:38:08]Write to MH i2c: 01 00 00 0E 14 22 [15:38:08]Write i2c OK [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: 01 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: 01 07 00 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: 01 07 00 0E 14 00 00 00 00 00 FF 0F 37 [15:38:08]RasterBufferAndPrint [15:38:08]line *****ТОВАРНЫЙ ЧЕК***** [15:38:08]line АЗС-91 [15:38:08]line Партнер нефть [15:38:08]line 02508201610067 [15:38:08]line Кассир : Арстанбеков Н. [15:38:08]line Счет N : (1)507265 [15:38:08]line 15.05.2024 15:20 [15:38:08]line ПРОДАЖА [15:38:08]line ТРК (МРК, ГНК): 33 [15:38:08]line Вид ГСМ : 2710124130 [15:38:08]line Аи-92-К-5 [15:38:08]line 20.000 x 66.80 [15:38:08]line ИТОГ: 1336.00 [15:38:08]line Тип оплаты: Талоны: Топливные Талоны [15:38:08]line 3563304 [15:38:08]line ______________________ [15:38:08]line (подпись) [15:38:08]written 0, free lines is 4095 [15:38:09]Write to MH i2c: 01 00 00 22 14 36 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 12 0E 5D [15:38:09]RasterBufferAndPrint [15:38:09]line [15:38:09]line [15:38:09]line [15:38:09]line [15:38:09]line [15:38:09]written 0, free lines is 3604 [15:38:09]MH_Cut [15:38:09]Write to MH i2c: D1 01 00 29 14 01 0F [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: D1 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: D1 01 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: D1 01 00 29 14 00 0E [15:38:09]Write to MH i2c: 01 00 00 2A 14 3E [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** Cut start [15:38:09]*** Purtial cut [15:38:09]*** Stage 1: CUTSNS_PIN = 1 [15:38:09]Read from MH i2c: 01 [15:38:09]MH_I2C_Read... [15:38:09]*** Stop cut motor [15:38:09]*** Cut end [15:38:09]Read from MH i2c: 01 07 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 2A 14 00 00 00 00 00 FF 0F 53 [15:38:09]process_action print_text done [15:38:09]requested_data is exist [15:38:09]produce_requested_data [15:38:09]requested_item fm.sn is exist - process it [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 11 00 00 [15:38:09]Write to MH i2c: E2 08 00 2B 14 80 11 00 00 00 00 00 00 B9 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 2B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [15:38: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:38:09]wFMCommunicate OK [15:38:09]requested_item fd.num is exist - process it [15:38:09]SAM_PROTO_GetFieldsCounters [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 13 00 00 [15:38:09]Write to MH i2c: E2 08 00 2C 14 80 13 00 00 00 00 00 00 BC [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 62 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 62 00 2C 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 D6 06 01 00 0E 04 04 00 64 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 5C [15:38: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 D6 06 01 00 0E 04 04 00 64 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 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_GetFieldsCounters done [15:38:10]requested_item shift.num is exist - process it [15:38:10]requested_item shift.opened is exist - process it [15:38:10]req_shift_opened [15:38:10]FM_GetShiftState [15:38:10]SAM_PROTO_GetShiftState [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 13 01 00 [15:38:10]Write to MH i2c: E2 08 00 2D 14 80 13 01 00 00 00 00 00 BE [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 2D 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 69 [15:38:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_GetShiftState done [15:38:10]FM_GetShiftState done [15:38:10]req_shift_opened done [15:38:10]requested_item shift.open_date is exist - process it [15:38:10]req_shift_open_date [15:38:10]req_shift_open_date done [15:38:10]produce_requested_data done [15:38:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67286,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:38:10]process_action_free print_text [15:38:10]json_value_free [15:38:10]json_value_free done [15:38:10]process_json_proto returns [15:38:10]Send response to host [15:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67286,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:38:10]free response buf [15:38:10]execute_script done [15:38:10]execute_script returns [15:38:10]free content buf [15:38:10]Sock 7.Close socket [15:38:10]Sock 7.Thread stoped [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:24]accept exits with 9 [15:39:24]New connection [15:39:24]New thread 3067030884 created [15:39:24]Thread 3067174244 joined [15:39:24]Waiting for new connection... [15:39:24] Sock 9.Parse request [15:39:24]Sock 9.Check first char [15:39:24]Sock 9.First char is OK [15:39:24]request: POST /json_proto HTTP/1.0 [15:39:24]Method: POST [15:39:24]URL: /json_proto [15:39:24]Method is POST - this is cgi request [15:39:24]url: /json_proto [15:39:24]query_string will be loaded in cgi processing [15:39:24]execute_cgi json_proto POST (null) [15:39:24]execute_cgi path=json_proto method=POST [15:39:24]POST find Content-Length [15:39:24]Host: 172.17.41.195:8080 [15:39:24]Content-Length: 800 [15:39:24]Content-Type: application/json [15:39:24] [15:39:24]POST finish read [15:39:24]Found Content-Length = 800 [15:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507267", "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" ] } } [15:39:24]execute_script... [15:39: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)507267", "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" ] } } [15:39:24]POST & json_proto [15:39:24]process_json_proto [15:39:24]json parsed OK: [15:39:24]protocol is kg_v1.0 [15:39:24]action value=close_receipt [15:39:24]process_action close_receipt [15:39:24]cmd_close_receipt [15:39:24]MH_GetDate [15:39:24]Write to MH i2c: F0 00 00 2E 14 31 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: F0 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: F0 09 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: F0 09 00 2E 14 00 2E D7 44 66 FC 21 6F 64 D9 [15:39:24]GetLastDocTimeStamp 1715787100 [15:39:24]current date 1715787566 [15:39:24]FM_GetShiftState [15:39:24]SAM_PROTO_GetShiftState [15:39:24]wFMCommunicate request_size=4 [15:39:24]MH_SAM_APDU [15:39:24]CAPDU: 80 13 01 00 [15:39:24]Write to MH i2c: E2 08 00 2F 14 80 13 01 00 00 00 00 00 C0 [15:39:24]Write i2c OK [15:39:24]MH_I2C_Read... [15:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:24]Read from MH i2c: E2 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0E 00 [15:39:24]MH_I2C_Read... [15:39:24]Read from MH i2c: E2 0E 00 2F 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6B [15:39:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:39:24]wFMCommunicate OK [15:39:24]SAM_PROTO_GetShiftState done [15:39:24]FM_GetShiftState done [15:39:24]opened in 1715732471 [15:39:24]opened+sec_in_day 1715818871 [15:39:24]quantity*price = 50033 [15:39:24]sum+1 = 50034 [15:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 105 15.05.2024 15:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67287 ФПД: 113167096758791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67287&fm=113167096758791&tin=02508201610067®Number=0000000000091845&sum=50033 [15:39:25]StoreToDocumentArchive [15:39:25]shift 356 fd 67287 [15:39:25]save to /storage/0356/doc_00067287 [15:39:25]save last doc name /storage/0356/doc_00067287 to /storage/kkm_last_doc_name [15:39:25]save OK [15:39:25]Clear old archive folders... [15:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:26]tlvbuf is B6EF77C0 [15:39:26]SAM_PROTO_ClearQueue [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 09 00 00 [15:39:26]Write to MH i2c: E2 08 00 3C 14 80 09 00 00 00 00 00 00 C2 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [15:39:26]RAPDU: 90 00 [15:39:26]wFMCommunicate OK [15:39:26]SAM_PROTO_ClearQueue done [15:39:26]KKMCreateOFDPacket [15:39:26]OFDProtocolAddRootSTLVToBuf [15:39:26]FM_MakeSignedData [15:39:26]FM_MakeSignedData [15:39:26]SAM_PROTO_SignData [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 0D 01 02 [15:39:26]Write to MH i2c: E2 08 00 3D 14 80 0D 01 02 00 00 00 00 CA [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [15:39:26]RAPDU: 90 00 [15:39:26]wFMCommunicate OK [15:39:26]wFMCommunicate request_size=255 [15:39:26]MH_SAM_APDU [15:39:26]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 69 00 00 00 F4 03 04 00 2E D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 [15:39:26]Write to MH i2c: E2 02 01 3E 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 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 69 00 00 00 F4 03 04 00 2E D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 00 00 58 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 3E 14 00 90 00 C6 [15:39:26]RAPDU: 90 00 [15:39:26]wFMCommunicate OK [15:39:26]wFMCommunicate request_size=10 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 0D 02 02 05 EC C4 9A 42 07 [15:39:26]Write to MH i2c: E2 0D 00 3F 14 80 0D 02 02 05 00 EC C4 9A 42 07 00 00 6A [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 03 00 3F 14 00 90 00 C7 [15:39:26]RAPDU: 90 00 [15:39:26]wFMCommunicate OK [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 0D 03 02 [15:39:26]Write to MH i2c: E2 08 00 40 14 80 0D 03 02 00 00 00 00 CF [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 0B 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 0B 00 40 14 00 69 32 F3 6B A2 B8 C7 67 90 00 51 [15:39:26]RAPDU: 69 32 F3 6B A2 B8 C7 67 90 00 [15:39:26]wFMCommunicate OK [15:39:26]SAM_PROTO_SignData done [15:39:26]FM_MakeSignedData done [15:39:26]CreateOFDProtocolMessage [15:39:26]wFMCommunicate request_size=4 [15:39:26]MH_SAM_APDU [15:39:26]CAPDU: 80 11 00 00 [15:39:26]Write to MH i2c: E2 08 00 41 14 80 11 00 00 00 00 00 00 CF [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:26]Read from MH i2c: E2 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 17 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: E2 17 00 41 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [15:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:39:26]wFMCommunicate OK [15:39:26]CreateOFDProtocolMessage done [15:39:26]OFDSenderStorePacket 67287 [15:39:26]StoreOFDPacket docnum=67287 [15:39: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 FB 4E 07 01 1C 4F 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 69 00 00 00 F4 03 04 00 2E D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 EC C4 9A 42 07 69 32 F3 6B A2 B8 C7 67 [15:39:26]CheckFolder [15:39:26]dirname=/storage/ofd_packets [15:39:26]CheckFolder done [15:39:26]ProducePacketName [15:39:26]name=ofd_packets/00067287 [15:39:26]NVStorageSaveData ofd_packets/00067287 [15:39:26]File name is /storage/ofd_packets/00067287 [15:39:26]Write 301 bytes [15:39:26]NVStorageSaveData done [15:39:26]OFDSenderStorePacket done [15:39:26]KKMCreateOFDPacket done [15:39:26]NVStorageSaveData kkm_last_timestamp [15:39:26]File name is /storage/kkm_last_timestamp [15:39:26]Write 4 bytes [15:39:26]NVStorageSaveData done [15:39:26]ExternCall_PrintAddStr [15:39:26]wPrintStart [15:39:26]Write to MH i2c: 01 00 00 42 14 56 [15:39:26]Write i2c OK [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 07 00 [15:39:26]MH_I2C_Read... [15:39:26]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 FF 0F 6B [15:39:26]RasterBufferAndPrint [15:39:26]line Счет N : (1)507267 [15:39:26]line ИНН: 02508201610067 [15:39:26]line Контрольно-Кассовый Чек [15:39:26]line ПРОДАЖА [15:39:26]line ТРК (МРК, ГНК) : 23 [15:39:26]line Товар: 2710124130 [15:39:26]line Аи-92-К-5 [15:39:26]line 7.490 * 66.80 [15:39:26]line = 500.33 [15:39:26]line НДС 12% НСП 1% [15:39:26]line > о реализуемом товаре [15:39:26]line ИТОГО: 500.33 [15:39:26]line НСП 1% : 4.43 [15:39:26]line НДС 12% : 53.13 [15:39:26]line Наличными: 0.00 [15:39:26]line Безнал.: 500.33 [15:39:26]line Место: АЗС № 91 "Партнер Нефть" [15:39:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:39:26]line СНО: Общий режим [15:39:26]line Чек 105 15.05.2024 15:39 [15:39:26]line Смена: 356 ФФД: 1.0 [15:39:26]line ЗНМ: 0300000119 [15:39:26]line РНМ: 0000000000091845 [15:39:26]line Версия ККМ: 001 [15:39:26]line Платежная система: O! деньги [15:39:26]line ФМ: 0000000000871829 [15:39:26]line ФД: 67287 [15:39:26]line ФПД: 113167096758791 [15:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67287&fm=113167096758791&tin=02508201610067®Number=0000000000091845&sum=50033 [15:39:26]OFD Sender: Processing packet 67287 [packets to send 35, broken 34] [15:39:26]ProducePacketName [15:39:26]name=ofd_packets/00067287 [15:39:26]OFD Sender: To server: pG, [15:39:26]CommunicateWithHost lk.salyk.kg:30040 [15:39:26]ConnectInit lk.salyk.kg [15:39:26]written 0, free lines is 4095 [15:39:26]Connected sock=10 [15:39: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 FB 4E 07 01 1C 4F 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 69 00 00 00 F4 03 04 00 2E D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 EC C4 9A 42 07 69 32 F3 6B A2 B8 C7 67 [15:39: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 96 75 47 00 23 7C 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 06 01 00 F4 03 04 00 0B 7F 44 66 B6 04 01 00 00 58 D3 FA FC 33 EC 35 EC [15:39:27]CommunicateWithHost err = 0 [15:39:27]CheckOFDResponse [15:39:27]1017 (14) - 77093643461234 [15:39:27]1041 (16) - 0000000000871829 [15:39:27]1040 (4) - 67287 [15:39:27]1012 (4) - 15.05.2024 09:23 [15:39:27]1206 (1) - 0 [15:39:27]OFD Sender: Remove packet 67287 [15:39:27]ProducePacketName [15:39:27]name=ofd_packets/00067287 [15:39:27]NVStorageDeleteData [15:39:27]Write to MH i2c: 01 00 00 6B 14 7F [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 07 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 DE 0C 70 [15:39:27]RasterBufferAndPrint [15:39:27]line [15:39:27]line [15:39:27]line [15:39:27]line [15:39:27]line [15:39:27]written 0, free lines is 3300 [15:39:27]MH_Cut [15:39:27]Write to MH i2c: D1 01 00 72 14 01 58 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: D1 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: D1 01 00 [15:39:27]MH_I2C_Read... [15:39:27]Read from MH i2c: D1 01 00 72 14 00 57 [15:39:27]Write to MH i2c: 01 00 00 73 14 87 [15:39:27]Write i2c OK [15:39:27]MH_I2C_Read... [15:39:27]OFD Sender: No OFD packet to send [15:39:28]*** Cut start [15:39:28]*** Purtial cut [15:39:28]*** CUTSNS_PIN = 0 [15:39:28]*** Stage 1: CUTSNS_PIN = 1 [15:39:30]Read from MH i2c: 01 [15:39:30]MH_I2C_Read... [15:39:30]*** Stop cut motor [15:39:30]*** Cut end [15:39:30]Read from MH i2c: 01 07 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: 01 07 00 73 14 00 00 00 00 00 FF 0F 9C [15:39:30]process_action close_receipt done [15:39:30]requested_data is exist [15:39:30]produce_requested_data [15:39:30]requested_item fm.sn is exist - process it [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 11 00 00 [15:39:30]Write to MH i2c: E2 08 00 74 14 80 11 00 00 00 00 00 00 02 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 17 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 17 00 74 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [15:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:39:30]wFMCommunicate OK [15:39:30]requested_item fd.num is exist - process it [15:39:30]SAM_PROTO_GetFieldsCounters [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 13 00 00 [15:39:30]Write to MH i2c: E2 08 00 75 14 80 13 00 00 00 00 00 00 05 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 62 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 62 00 75 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 D7 06 01 00 0E 04 04 00 64 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 A9 [15:39: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 06 01 00 0E 04 04 00 64 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 [15:39:30]wFMCommunicate OK [15:39:30]SAM_PROTO_GetFieldsCounters done [15:39:30]requested_item shift.num is exist - process it [15:39:30]requested_item shift.opened is exist - process it [15:39:30]req_shift_opened [15:39:30]FM_GetShiftState [15:39:30]SAM_PROTO_GetShiftState [15:39:30]wFMCommunicate request_size=4 [15:39:30]MH_SAM_APDU [15:39:30]CAPDU: 80 13 01 00 [15:39:30]Write to MH i2c: E2 08 00 76 14 80 13 01 00 00 00 00 00 07 [15:39:30]Write i2c OK [15:39:30]MH_I2C_Read... [15:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:30]Read from MH i2c: E2 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 [15:39:30]MH_I2C_Read... [15:39:30]Read from MH i2c: E2 0E 00 76 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B2 [15:39:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:39:30]wFMCommunicate OK [15:39:30]SAM_PROTO_GetShiftState done [15:39:30]FM_GetShiftState done [15:39:30]req_shift_opened done [15:39:30]requested_item shift.open_date is exist - process it [15:39:30]req_shift_open_date [15:39:30]req_shift_open_date done [15:39:30]produce_requested_data done [15:39:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67287,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:39:30]process_action_free close_receipt [15:39:30]json_value_free [15:39:30]json_value_free done [15:39:30]process_json_proto returns [15:39:30]Send response to host [15:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67287,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:39:30]free response buf [15:39:30]execute_script done [15:39:30]execute_script returns [15:39:30]free content buf [15:39:30]Sock 9.Close socket [15:39:30]Sock 9.Thread stoped [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:56]accept exits with 7 [15:39:56]New connection [15:39:56]New thread 3067174244 created [15:39:56]Thread 3067030884 joined [15:39:56]Waiting for new connection... [15:39:56] Sock 7.Parse request [15:39:56]Sock 7.Check first char [15:39:56]Sock 7.First char is OK [15:39:56]request: POST /json_proto HTTP/1.0 [15:39:56]Method: POST [15:39:56]URL: /json_proto [15:39:56]Method is POST - this is cgi request [15:39:56]url: /json_proto [15:39:56]query_string will be loaded in cgi processing [15:39:56]execute_cgi json_proto POST (null) [15:39:56]execute_cgi path=json_proto method=POST [15:39:56]POST find Content-Length [15:39:56]Host: 172.17.41.195:8080 [15:39:56]Content-Length: 800 [15:39:56]Content-Type: application/json [15:39:56] [15:39:56]POST finish read [15:39:56]Found Content-Length = 800 [15:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507266", "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" : 22.760, "sum" : 1700.17, "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" : 1700.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:56]execute_script... [15:39: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)507266", "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" : 22.760, "sum" : 1700.17, "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" : 1700.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:56]POST & json_proto [15:39:56]process_json_proto [15:39:56]json parsed OK: [15:39:56]protocol is kg_v1.0 [15:39:56]action value=close_receipt [15:39:56]process_action close_receipt [15:39:56]cmd_close_receipt [15:39:56]MH_GetDate [15:39:56]Write to MH i2c: F0 00 00 77 14 7A [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: F0 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: F0 09 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: F0 09 00 77 14 00 4D D7 44 66 FC 21 6F 64 41 [15:39:56]GetLastDocTimeStamp 1715787566 [15:39:56]current date 1715787597 [15:39:56]FM_GetShiftState [15:39:56]SAM_PROTO_GetShiftState [15:39:56]wFMCommunicate request_size=4 [15:39:56]MH_SAM_APDU [15:39:56]CAPDU: 80 13 01 00 [15:39:56]Write to MH i2c: E2 08 00 78 14 80 13 01 00 00 00 00 00 09 [15:39:56]Write i2c OK [15:39:56]MH_I2C_Read... [15:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:56]Read from MH i2c: E2 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 0E 00 [15:39:56]MH_I2C_Read... [15:39:56]Read from MH i2c: E2 0E 00 78 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B4 [15:39:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:39:56]wFMCommunicate OK [15:39:56]SAM_PROTO_GetShiftState done [15:39:56]FM_GetShiftState done [15:39:56]opened in 1715732471 [15:39:56]opened+sec_in_day 1715818871 [15:39:56]quantity*price = 170017 [15:39:56]sum+1 = 170018 [15:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.17 НСП 1% : 15.05 НДС 12% : 180.55 Наличными: 0.00 Безнал.: 1700.17 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 106 15.05.2024 15:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67288 ФПД: 175979052210110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67288&fm=175979052210110&tin=02508201610067®Number=0000000000091845&sum=170017 [15:39:57]StoreToDocumentArchive [15:39:57]shift 356 fd 67288 [15:39:57]save to /storage/0356/doc_00067288 [15:39:57]save last doc name /storage/0356/doc_00067288 to /storage/kkm_last_doc_name [15:39:57]save OK [15:39:57]Clear old archive folders... [15:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:39:57]tlvbuf is 00B0A820 [15:39:57]SAM_PROTO_ClearQueue [15:39:57]wFMCommunicate request_size=4 [15:39:57]MH_SAM_APDU [15:39:57]CAPDU: 80 09 00 00 [15:39:57]Write to MH i2c: E2 08 00 85 14 80 09 00 00 00 00 00 00 0B [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [15:39:57]RAPDU: 90 00 [15:39:57]wFMCommunicate OK [15:39:57]SAM_PROTO_ClearQueue done [15:39:57]KKMCreateOFDPacket [15:39:57]OFDProtocolAddRootSTLVToBuf [15:39:57]FM_MakeSignedData [15:39:57]FM_MakeSignedData [15:39:57]SAM_PROTO_SignData [15:39:57]wFMCommunicate request_size=4 [15:39:57]MH_SAM_APDU [15:39:57]CAPDU: 80 0D 01 02 [15:39:57]Write to MH i2c: E2 08 00 86 14 80 0D 01 02 00 00 00 00 13 [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 86 14 00 90 00 0E [15:39:57]RAPDU: 90 00 [15:39:57]wFMCommunicate OK [15:39:57]wFMCommunicate request_size=255 [15:39:57]MH_SAM_APDU [15:39: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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4D D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 0D 50 E5 [15:39:57]Write to MH i2c: E2 02 01 87 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4D D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 0D 50 E5 00 00 42 [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 87 14 00 90 00 0F [15:39:57]RAPDU: 90 00 [15:39:57]wFMCommunicate OK [15:39:57]wFMCommunicate request_size=7 [15:39:57]MH_SAM_APDU [15:39:57]CAPDU: 80 0D 02 02 02 17 BE [15:39:57]Write to MH i2c: E2 0A 00 88 14 80 0D 02 02 02 00 17 BE 00 00 EF [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 03 00 88 14 00 90 00 10 [15:39:57]RAPDU: 90 00 [15:39:57]wFMCommunicate OK [15:39:57]wFMCommunicate request_size=4 [15:39:57]MH_SAM_APDU [15:39:57]CAPDU: 80 0D 03 02 [15:39:57]Write to MH i2c: E2 08 00 89 14 80 0D 03 02 00 00 00 00 18 [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 0B 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 0B 00 89 14 00 7F A8 AF 39 9C 43 E9 DC 90 00 CC [15:39:57]RAPDU: 7F A8 AF 39 9C 43 E9 DC 90 00 [15:39:57]wFMCommunicate OK [15:39:57]SAM_PROTO_SignData done [15:39:57]FM_MakeSignedData done [15:39:57]CreateOFDProtocolMessage [15:39:57]wFMCommunicate request_size=4 [15:39:57]MH_SAM_APDU [15:39:57]CAPDU: 80 11 00 00 [15:39:57]Write to MH i2c: E2 08 00 8A 14 80 11 00 00 00 00 00 00 18 [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]OFD Sender: No OFD packet to send [15:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:57]Read from MH i2c: E2 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 17 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: E2 17 00 8A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [15:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:39:57]wFMCommunicate OK [15:39:57]CreateOFDProtocolMessage done [15:39:57]OFDSenderStorePacket 67288 [15:39:57]StoreOFDPacket docnum=67288 [15:39: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 44 2C 04 01 2C 7C 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4D D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 0D 50 E5 17 BE 7F A8 AF 39 9C 43 E9 DC [15:39:57]CheckFolder [15:39:57]dirname=/storage/ofd_packets [15:39:57]CheckFolder done [15:39:57]ProducePacketName [15:39:57]name=ofd_packets/00067288 [15:39:57]NVStorageSaveData ofd_packets/00067288 [15:39:57]File name is /storage/ofd_packets/00067288 [15:39:57]Write 298 bytes [15:39:57]NVStorageSaveData done [15:39:57]OFDSenderStorePacket done [15:39:57]KKMCreateOFDPacket done [15:39:57]NVStorageSaveData kkm_last_timestamp [15:39:57]File name is /storage/kkm_last_timestamp [15:39:57]Write 4 bytes [15:39:57]NVStorageSaveData done [15:39:57]ExternCall_PrintAddStr [15:39:57]wPrintStart [15:39:57]Write to MH i2c: 01 00 00 8B 14 9F [15:39:57]Write i2c OK [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: 01 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: 01 07 00 [15:39:57]MH_I2C_Read... [15:39:57]Read from MH i2c: 01 07 00 8B 14 00 00 00 00 00 FF 0F B4 [15:39:57]RasterBufferAndPrint [15:39:57]line Счет N : (1)507266 [15:39:57]line ИНН: 02508201610067 [15:39:57]line Контрольно-Кассовый Чек [15:39:57]line ПРОДАЖА [15:39:57]line ТРК (МРК, ГНК) : 11 [15:39:57]line Товар: 2710194210 [15:39:57]line ДТ-К-5 [15:39:57]line 22.760 * 74.70 [15:39:57]line = 1700.17 [15:39:57]line НДС 12% НСП 1% [15:39:57]line > о реализуемом товаре [15:39:57]line ИТОГО: 1700.17 [15:39:57]line НСП 1% : 15.05 [15:39:57]line НДС 12% : 180.55 [15:39:57]line Наличными: 0.00 [15:39:57]line Безнал.: 1700.17 [15:39:57]line Место: АЗС № 91 "Партнер Нефть" [15:39:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:39:58]line СНО: Общий режим [15:39:58]line Чек 106 15.05.2024 15:39 [15:39:58]line Смена: 356 ФФД: 1.0 [15:39:58]line ЗНМ: 0300000119 [15:39:58]line РНМ: 0000000000091845 [15:39:58]line Версия ККМ: 001 [15:39:58]line Платежная система: O! деньги [15:39:58]line ФМ: 0000000000871829 [15:39:58]line ФД: 67288 [15:39:58]line ФПД: 175979052210110 [15:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T153957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67288&fm=175979052210110&tin=02508201610067®Number=0000000000091845&sum=170017 [15:39:58]OFD Sender: Processing packet 67288 [packets to send 35, broken 34] [15:39:58]ProducePacketName [15:39:58]name=ofd_packets/00067288 [15:39:58]OFD Sender: To server: pG, [15:39:58]CommunicateWithHost lk.salyk.kg:30040 [15:39:58]ConnectInit lk.salyk.kg [15:39:58]written 0, free lines is 4095 [15:39:58]Connected sock=10 [15:39: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 44 2C 04 01 2C 7C 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 E8 58 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 21 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4D D7 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 0D 50 E5 17 BE 7F A8 AF 39 9C 43 E9 DC [15:39: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 0A 43 47 00 E8 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 D8 06 01 00 F4 03 04 00 2A 7F 44 66 B6 04 01 00 00 28 37 A3 53 F4 FF 93 24 [15:39:58]CommunicateWithHost err = 0 [15:39:58]CheckOFDResponse [15:39:58]1017 (14) - 77093643461234 [15:39:58]1041 (16) - 0000000000871829 [15:39:58]1040 (4) - 67288 [15:39:58]1012 (4) - 15.05.2024 09:23 [15:39:58]1206 (1) - 0 [15:39:58]OFD Sender: Remove packet 67288 [15:39:58]ProducePacketName [15:39:58]name=ofd_packets/00067288 [15:39:58]NVStorageDeleteData [15:39:58]Write to MH i2c: 01 00 00 B4 14 C8 [15:39:58]Write i2c OK [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: 01 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: 01 07 00 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 F1 0C CC [15:39:58]RasterBufferAndPrint [15:39:58]line [15:39:58]line [15:39:58]line [15:39:58]line [15:39:58]line [15:39:58]written 0, free lines is 3319 [15:39:58]MH_Cut [15:39:58]Write to MH i2c: D1 01 00 BB 14 01 A1 [15:39:58]Write i2c OK [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: D1 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: D1 01 00 [15:39:58]MH_I2C_Read... [15:39:58]Read from MH i2c: D1 01 00 BB 14 00 A0 [15:39:58]Write to MH i2c: 01 00 00 BC 14 D0 [15:39:58]Write i2c OK [15:39:58]MH_I2C_Read... [15:39:58]OFD Sender: No OFD packet to send [15:39:59]*** Cut start [15:39:59]*** Purtial cut [15:39:59]*** Stage 1: CUTSNS_PIN = 1 [15:39:59]Read from MH i2c: 01 [15:39:59]MH_I2C_Read... [15:39:59]*** Stop cut motor [15:39:59]*** Cut end [15:39:59]Read from MH i2c: 01 07 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: 01 07 00 BC 14 00 00 00 00 00 FF 0F E5 [15:39:59]process_action close_receipt done [15:39:59]requested_data is exist [15:39:59]produce_requested_data [15:39:59]requested_item fm.sn is exist - process it [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 11 00 00 [15:39:59]Write to MH i2c: E2 08 00 BD 14 80 11 00 00 00 00 00 00 4B [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 17 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 17 00 BD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [15:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:39:59]wFMCommunicate OK [15:39:59]requested_item fd.num is exist - process it [15:39:59]SAM_PROTO_GetFieldsCounters [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 13 00 00 [15:39:59]Write to MH i2c: E2 08 00 BE 14 80 13 00 00 00 00 00 00 4E [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 62 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 62 00 BE 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 D8 06 01 00 0E 04 04 00 64 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 F6 [15:39: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 D8 06 01 00 0E 04 04 00 64 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 [15:39:59]wFMCommunicate OK [15:39:59]SAM_PROTO_GetFieldsCounters done [15:39:59]requested_item shift.num is exist - process it [15:39:59]requested_item shift.opened is exist - process it [15:39:59]req_shift_opened [15:39:59]FM_GetShiftState [15:39:59]SAM_PROTO_GetShiftState [15:39:59]wFMCommunicate request_size=4 [15:39:59]MH_SAM_APDU [15:39:59]CAPDU: 80 13 01 00 [15:39:59]Write to MH i2c: E2 08 00 BF 14 80 13 01 00 00 00 00 00 50 [15:39:59]Write i2c OK [15:39:59]MH_I2C_Read... [15:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:59]Read from MH i2c: E2 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 0E 00 [15:39:59]MH_I2C_Read... [15:39:59]Read from MH i2c: E2 0E 00 BF 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FB [15:39:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:39:59]wFMCommunicate OK [15:39:59]SAM_PROTO_GetShiftState done [15:39:59]FM_GetShiftState done [15:39:59]req_shift_opened done [15:39:59]requested_item shift.open_date is exist - process it [15:39:59]req_shift_open_date [15:39:59]req_shift_open_date done [15:39:59]produce_requested_data done [15:39:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67288,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:39:59]process_action_free close_receipt [15:39:59]json_value_free [15:39:59]json_value_free done [15:39:59]process_json_proto returns [15:39:59]Send response to host [15:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67288,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:39:59]free response buf [15:39:59]execute_script done [15:39:59]execute_script returns [15:39:59]free content buf [15:39:59]Sock 7.Close socket [15:39:59]Sock 7.Thread stoped [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]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:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:26]accept exits with 9 [15:46:26]New connection [15:46:26]New thread 3067030884 created [15:46:26]Thread 3067174244 joined [15:46:26]Waiting for new connection... [15:46:26] Sock 9.Parse request [15:46:26]Sock 9.Check first char [15:46:26]Sock 9.First char is OK [15:46:26]request: POST /json_proto HTTP/1.0 [15:46:26]Method: POST [15:46:26]URL: /json_proto [15:46:26]Method is POST - this is cgi request [15:46:26]url: /json_proto [15:46:26]query_string will be loaded in cgi processing [15:46:26]execute_cgi json_proto POST (null) [15:46:26]execute_cgi path=json_proto method=POST [15:46:26]POST find Content-Length [15:46:26]Host: 172.17.41.195:8080 [15:46:26]Content-Length: 803 [15:46:26]Content-Type: application/json [15:46:26] [15:46:26]POST finish read [15:46:26]Found Content-Length = 803 [15:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507268", "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" ] } } [15:46:26]execute_script... [15:46: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)507268", "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" ] } } [15:46:26]POST & json_proto [15:46:26]process_json_proto [15:46:26]json parsed OK: [15:46:26]protocol is kg_v1.0 [15:46:26]action value=close_receipt [15:46:26]process_action close_receipt [15:46:26]cmd_close_receipt [15:46:26]MH_GetDate [15:46:26]Write to MH i2c: F0 00 00 C0 14 C3 [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 09 00 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 09 00 C0 14 00 D4 D8 44 66 FC 21 6F 64 12 [15:46:26]GetLastDocTimeStamp 1715787597 [15:46:26]current date 1715787988 [15:46:26]FM_GetShiftState [15:46:26]SAM_PROTO_GetShiftState [15:46:26]wFMCommunicate request_size=4 [15:46:26]MH_SAM_APDU [15:46:26]CAPDU: 80 13 01 00 [15:46:26]Write to MH i2c: E2 08 00 C1 14 80 13 01 00 00 00 00 00 52 [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:26]Read from MH i2c: E2 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: E2 0E 00 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: E2 0E 00 C1 14 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FD [15:46:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:46:26]wFMCommunicate OK [15:46:26]SAM_PROTO_GetShiftState done [15:46:26]FM_GetShiftState done [15:46:26]opened in 1715732471 [15:46:26]opened+sec_in_day 1715818871 [15:46:26]quantity*price = 100066 [15:46:26]sum+1 = 100067 [15:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 107 15.05.2024 15:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67289 ФПД: 191975702838214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T154628&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67289&fm=191975702838214&tin=02508201610067®Number=0000000000091845&sum=100066 [15:46:27]StoreToDocumentArchive [15:46:27]shift 356 fd 67289 [15:46:27]save to /storage/0356/doc_00067289 [15:46:27]save last doc name /storage/0356/doc_00067289 to /storage/kkm_last_doc_name [15:46:27]save OK [15:46:27]Clear old archive folders... [15:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:27]tlvbuf is 00B7F260 [15:46:27]SAM_PROTO_ClearQueue [15:46:27]wFMCommunicate request_size=4 [15:46:27]MH_SAM_APDU [15:46:27]CAPDU: 80 09 00 00 [15:46:27]Write to MH i2c: E2 08 00 CE 14 80 09 00 00 00 00 00 00 54 [15:46:27]Write i2c OK [15:46:27]MH_I2C_Read... [15:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:27]Read from MH i2c: E2 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 03 00 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [15:46:27]RAPDU: 90 00 [15:46:27]wFMCommunicate OK [15:46:27]SAM_PROTO_ClearQueue done [15:46:27]KKMCreateOFDPacket [15:46:27]OFDProtocolAddRootSTLVToBuf [15:46:27]FM_MakeSignedData [15:46:27]FM_MakeSignedData [15:46:27]SAM_PROTO_SignData [15:46:27]wFMCommunicate request_size=4 [15:46:27]MH_SAM_APDU [15:46:27]CAPDU: 80 0D 01 02 [15:46:27]Write to MH i2c: E2 08 00 CF 14 80 0D 01 02 00 00 00 00 5C [15:46:27]Write i2c OK [15:46:27]MH_I2C_Read... [15:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:27]Read from MH i2c: E2 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 03 00 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 03 00 CF 14 00 90 00 57 [15:46:27]RAPDU: 90 00 [15:46:27]wFMCommunicate OK [15:46:27]wFMCommunicate request_size=255 [15:46:27]MH_SAM_APDU [15:46:27]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 6B 00 00 00 F4 03 04 00 D4 D8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE [15:46:27]Write to MH i2c: E2 02 01 D0 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 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 6B 00 00 00 F4 03 04 00 D4 D8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 00 00 6D [15:46:27]Write i2c OK [15:46:27]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=10 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 02 02 05 99 D3 92 BB C6 [15:46:28]Write to MH i2c: E2 0D 00 D1 14 80 0D 02 02 05 00 99 D3 92 BB C6 00 00 E8 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 D1 14 00 90 00 59 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 03 02 [15:46:28]Write to MH i2c: E2 08 00 D2 14 80 0D 03 02 00 00 00 00 61 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0B 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0B 00 D2 14 00 47 73 93 44 15 DF A3 A6 90 00 30 [15:46:28]RAPDU: 47 73 93 44 15 DF A3 A6 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_SignData done [15:46:28]FM_MakeSignedData done [15:46:28]CreateOFDProtocolMessage [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 11 00 00 [15:46:28]Write to MH i2c: E2 08 00 D3 14 80 11 00 00 00 00 00 00 61 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 D3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [15:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:46:28]wFMCommunicate OK [15:46:28]CreateOFDProtocolMessage done [15:46:28]OFDSenderStorePacket 67289 [15:46:28]StoreOFDPacket docnum=67289 [15:46: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 0F 01 00 00 1D 67 07 01 9F 78 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 6B 00 00 00 F4 03 04 00 D4 D8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 99 D3 92 BB C6 47 73 93 44 15 DF A3 A6 [15:46:28]CheckFolder [15:46:28]dirname=/storage/ofd_packets [15:46:28]CheckFolder done [15:46:28]ProducePacketName [15:46:28]name=ofd_packets/00067289 [15:46:28]NVStorageSaveData ofd_packets/00067289 [15:46:28]File name is /storage/ofd_packets/00067289 [15:46:28]Write 301 bytes [15:46:28]NVStorageSaveData done [15:46:28]OFDSenderStorePacket done [15:46:28]KKMCreateOFDPacket done [15:46:28]NVStorageSaveData kkm_last_timestamp [15:46:28]File name is /storage/kkm_last_timestamp [15:46:28]Write 4 bytes [15:46:28]NVStorageSaveData done [15:46:28]ExternCall_PrintAddStr [15:46:28]wPrintStart [15:46:28]Write to MH i2c: 01 00 00 D4 14 E8 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 07 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 07 00 D4 14 00 00 00 00 00 FF 0F FD [15:46:28]RasterBufferAndPrint [15:46:28]line Счет N : (1)507268 [15:46:28]line ИНН: 02508201610067 [15:46:28]line Контрольно-Кассовый Чек [15:46:28]line ПРОДАЖА [15:46:28]line ТРК (МРК, ГНК) : 43 [15:46:28]line Товар: 2710124130 [15:46:28]line Аи-92-К-5 [15:46:28]line 14.980 * 66.80 [15:46:28]line = 1000.66 [15:46:28]line НДС 12% НСП 1% [15:46:28]line > о реализуемом товаре [15:46:28]line ИТОГО: 1000.66 [15:46:28]line НСП 1% : 8.85 [15:46:28]line НДС 12% : 106.26 [15:46:28]line Наличными: 0.00 [15:46:28]line Безнал.: 1000.66 [15:46:28]line Место: АЗС № 91 "Партнер Нефть" [15:46:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:46:28]line СНО: Общий режим [15:46:28]line Чек 107 15.05.2024 15:46 [15:46:28]line Смена: 356 ФФД: 1.0 [15:46:28]line ЗНМ: 0300000119 [15:46:28]line РНМ: 0000000000091845 [15:46:28]line Версия ККМ: 001 [15:46:28]line Платежная система: O! деньги [15:46:28]line ФМ: 0000000000871829 [15:46:28]line ФД: 67289 [15:46:28]line ФПД: 191975702838214 [15:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T154628&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67289&fm=191975702838214&tin=02508201610067®Number=0000000000091845&sum=100066 [15:46:28]OFD Sender: Processing packet 67289 [packets to send 35, broken 34] [15:46:28]ProducePacketName [15:46:28]name=ofd_packets/00067289 [15:46:28]OFD Sender: To server: pG, [15:46:28]CommunicateWithHost lk.salyk.kg:30040 [15:46:28]ConnectInit lk.salyk.kg [15:46:28]written 0, free lines is 4095 [15:46:28]Connected sock=10 [15:46: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 0F 01 00 00 1D 67 07 01 9F 78 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 6B 00 00 00 F4 03 04 00 D4 D8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 99 D3 92 BB C6 47 73 93 44 15 DF A3 A6 [15:46: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 79 C6 47 00 19 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 D9 06 01 00 F4 03 04 00 B1 80 44 66 B6 04 01 00 00 AE B4 AE 35 36 37 D5 5F [15:46:29]CommunicateWithHost err = 0 [15:46:29]CheckOFDResponse [15:46:29]1017 (14) - 77093643461234 [15:46:29]1041 (16) - 0000000000871829 [15:46:29]1040 (4) - 67289 [15:46:29]1012 (4) - 15.05.2024 09:30 [15:46:29]1206 (1) - 0 [15:46:29]OFD Sender: Remove packet 67289 [15:46:29]ProducePacketName [15:46:29]name=ofd_packets/00067289 [15:46:29]NVStorageDeleteData [15:46:29]Write to MH i2c: 01 00 00 FD 14 11 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 F3 0C 17 [15:46:29]RasterBufferAndPrint [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]written 0, free lines is 3320 [15:46:29]MH_Cut [15:46:29]Write to MH i2c: D1 01 00 04 15 01 EB [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 01 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 01 00 04 15 00 EA [15:46:29]Write to MH i2c: 01 00 00 05 15 1A [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]OFD Sender: No OFD packet to send [15:46:29]*** Cut start [15:46:29]*** Purtial cut [15:46:29]*** CUTSNS_PIN = 0 [15:46:30]*** Stage 1: CUTSNS_PIN = 1 [15:46:31]Read from MH i2c: 01 [15:46:31]MH_I2C_Read... [15:46:31]*** Stop cut motor [15:46:31]*** Cut end [15:46:31]Read from MH i2c: 01 07 00 [15:46:31]MH_I2C_Read... [15:46:31]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [15:46:31]process_action close_receipt done [15:46:31]requested_data is exist [15:46:31]produce_requested_data [15:46:31]requested_item fm.sn is exist - process it [15:46:31]wFMCommunicate request_size=4 [15:46:31]MH_SAM_APDU [15:46:31]CAPDU: 80 11 00 00 [15:46:31]Write to MH i2c: E2 08 00 06 15 80 11 00 00 00 00 00 00 95 [15:46:31]Write i2c OK [15:46:31]MH_I2C_Read... [15:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:32]Read from MH i2c: E2 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 17 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 17 00 06 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [15:46: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:46:32]wFMCommunicate OK [15:46:32]requested_item fd.num is exist - process it [15:46:32]SAM_PROTO_GetFieldsCounters [15:46:32]wFMCommunicate request_size=4 [15:46:32]MH_SAM_APDU [15:46:32]CAPDU: 80 13 00 00 [15:46:32]Write to MH i2c: E2 08 00 07 15 80 13 00 00 00 00 00 00 98 [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:32]Read from MH i2c: E2 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 62 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 62 00 07 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 D9 06 01 00 0E 04 04 00 64 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 44 [15:46: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 D9 06 01 00 0E 04 04 00 64 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 [15:46:32]wFMCommunicate OK [15:46:32]SAM_PROTO_GetFieldsCounters done [15:46:32]requested_item shift.num is exist - process it [15:46:32]requested_item shift.opened is exist - process it [15:46:32]req_shift_opened [15:46:32]FM_GetShiftState [15:46:32]SAM_PROTO_GetShiftState [15:46:32]wFMCommunicate request_size=4 [15:46:32]MH_SAM_APDU [15:46:32]CAPDU: 80 13 01 00 [15:46:32]Write to MH i2c: E2 08 00 08 15 80 13 01 00 00 00 00 00 9A [15:46:32]Write i2c OK [15:46:32]MH_I2C_Read... [15:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:32]Read from MH i2c: E2 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 0E 00 [15:46:32]MH_I2C_Read... [15:46:32]Read from MH i2c: E2 0E 00 08 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 45 [15:46:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:46:32]wFMCommunicate OK [15:46:32]SAM_PROTO_GetShiftState done [15:46:32]FM_GetShiftState done [15:46:32]req_shift_opened done [15:46:32]requested_item shift.open_date is exist - process it [15:46:32]req_shift_open_date [15:46:32]req_shift_open_date done [15:46:32]produce_requested_data done [15:46:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:46:32]process_action_free close_receipt [15:46:32]json_value_free [15:46:32]json_value_free done [15:46:32]process_json_proto returns [15:46:32]Send response to host [15:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:46:32]free response buf [15:46:32]execute_script done [15:46:32]execute_script returns [15:46:32]free content buf [15:46:32]Sock 9.Close socket [15:46:32]Sock 9.Thread stoped [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:07]accept exits with 7 [15:54:07]New connection [15:54:07]New thread 3067174244 created [15:54:07]Thread 3067030884 joined [15:54:07]Waiting for new connection... [15:54:07] Sock 7.Parse request [15:54:07]Sock 7.Check first char [15:54:07]Sock 7.First char is OK [15:54:07]request: POST /json_proto HTTP/1.0 [15:54:07]Method: POST [15:54:07]URL: /json_proto [15:54:07]Method is POST - this is cgi request [15:54:07]url: /json_proto [15:54:07]query_string will be loaded in cgi processing [15:54:07]execute_cgi json_proto POST (null) [15:54:07]execute_cgi path=json_proto method=POST [15:54:07]POST find Content-Length [15:54:07]Host: 172.17.41.195:8080 [15:54:07]Content-Length: 1209 [15:54:07]Content-Type: application/json [15:54:07] [15:54:07]POST finish read [15:54:07]Found Content-Length = 1209 [15: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)507269\u000A15.05.2024 15: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 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" ] } } [15:54:07]execute_script... [15: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)507269\u000A15.05.2024 15: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 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" ] } } [15:54:07]POST & json_proto [15:54:07]process_json_proto [15:54:07]json parsed OK: [15:54:07]protocol is kg_v1.0 [15:54:07]action value=print_text [15:54:07]process_action print_text [15:54:07]cmd_print_text [15:54:07]ExternCall_PrintAddStr [15:54:07]wPrintStart [15:54:07]Write to MH i2c: 01 00 00 09 15 1E [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 09 15 00 00 00 00 00 FF 0F 33 [15:54:07]RasterBufferAndPrint [15:54:07]line *****ТОВАРНЫЙ ЧЕК***** [15:54:07]line АЗС-91 [15:54:07]line Партнер нефть [15:54:07]line 02508201610067 [15:54:07]line Кассир : Арстанбеков Н. [15:54:07]line Счет N : (1)507269 [15:54:07]line 15.05.2024 15:36 [15:54:07]line ПРОДАЖА [15:54:07]line ТРК (МРК, ГНК): 11 [15:54:07]line Вид ГСМ : 2710194210 [15:54:07]line ДТ-К-5 [15:54:07]line 20.000 x 74.70 [15:54:07]line ИТОГ: 1494.00 [15:54:07]line Тип оплаты: Талоны: Топливная Карта [15:54:07]line 02750 [15:54:07]line ______________________ [15:54:07]line (подпись) [15:54:07]written 0, free lines is 4095 [15:54:07]Write to MH i2c: 01 00 00 1D 15 32 [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 0E 0E 55 [15:54:07]RasterBufferAndPrint [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]line [15:54:07]written 0, free lines is 3600 [15:54:07]MH_Cut [15:54:07]Write to MH i2c: D1 01 00 24 15 01 0B [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 01 00 [15:54:07]MH_I2C_Read... [15:54:07]Read from MH i2c: D1 01 00 24 15 00 0A [15:54:07]Write to MH i2c: 01 00 00 25 15 3A [15:54:07]Write i2c OK [15:54:07]MH_I2C_Read... [15:54:07]*** Cut start [15:54:07]*** Purtial cut [15:54:07]*** Stage 1: CUTSNS_PIN = 1 [15:54:08]Read from MH i2c: 01 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: 01 07 00 [15:54:08]MH_I2C_Read... [15:54:08]*** Stop cut motor [15:54:08]*** Cut end [15:54:08]Read from MH i2c: 01 07 00 25 15 00 00 00 00 00 FF 0F 4F [15:54:08]process_action print_text done [15:54:08]requested_data is exist [15:54:08]produce_requested_data [15:54:08]requested_item fm.sn is exist - process it [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 11 00 00 [15:54:08]Write to MH i2c: E2 08 00 26 15 80 11 00 00 00 00 00 00 B5 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 17 00 26 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0B [15:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:54:08]wFMCommunicate OK [15:54:08]requested_item fd.num is exist - process it [15:54:08]SAM_PROTO_GetFieldsCounters [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 00 00 [15:54:08]Write to MH i2c: E2 08 00 27 15 80 13 00 00 00 00 00 00 B8 [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 62 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 62 00 27 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 D9 06 01 00 0E 04 04 00 64 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 64 [15:54: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 D9 06 01 00 0E 04 04 00 64 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 [15:54:08]wFMCommunicate OK [15:54:08]SAM_PROTO_GetFieldsCounters done [15:54:08]requested_item shift.num is exist - process it [15:54:08]requested_item shift.opened is exist - process it [15:54:08]req_shift_opened [15:54:08]FM_GetShiftState [15:54:08]SAM_PROTO_GetShiftState [15:54:08]wFMCommunicate request_size=4 [15:54:08]MH_SAM_APDU [15:54:08]CAPDU: 80 13 01 00 [15:54:08]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [15:54:08]Write i2c OK [15:54:08]MH_I2C_Read... [15:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:08]Read from MH i2c: E2 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 0E 00 [15:54:08]MH_I2C_Read... [15:54:08]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 65 [15:54:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [15:54:08]wFMCommunicate OK [15:54:08]SAM_PROTO_GetShiftState done [15:54:08]FM_GetShiftState done [15:54:08]req_shift_opened done [15:54:08]requested_item shift.open_date is exist - process it [15:54:08]req_shift_open_date [15:54:08]req_shift_open_date done [15:54:08]produce_requested_data done [15:54:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [15:54:08]process_action_free print_text [15:54:08]json_value_free [15:54:08]json_value_free done [15:54:08]process_json_proto returns [15:54:08]Send response to host [15:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [15:54:08]free response buf [15:54:08]execute_script done [15:54:08]execute_script returns [15:54:08]free content buf [15:54:08]Sock 7.Close socket [15:54:08]Sock 7.Thread stoped [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]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]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:22]accept exits with 9 [16:01:22]New connection [16:01:22]New thread 3067030884 created [16:01:22]Thread 3067174244 joined [16:01:22]Waiting for new connection... [16:01:22] Sock 9.Parse request [16:01:22]Sock 9.Check first char [16:01:22]Sock 9.First char is OK [16:01:22]request: POST /json_proto HTTP/1.0 [16:01:22]Method: POST [16:01:22]URL: /json_proto [16:01:22]Method is POST - this is cgi request [16:01:22]url: /json_proto [16:01:22]query_string will be loaded in cgi processing [16:01:22]execute_cgi json_proto POST (null) [16:01:22]execute_cgi path=json_proto method=POST [16:01:22]POST find Content-Length [16:01:22]Host: 172.17.41.195:8080 [16:01:22]Content-Length: 1209 [16:01:22]Content-Type: application/json [16:01:22] [16:01:22]POST finish read [16:01:22]Found Content-Length = 1209 [16:01: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)507270\u000A15.05.2024 15:43\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.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" ] } } [16:01:22]execute_script... [16:01: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)507270\u000A15.05.2024 15:43\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.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" ] } } [16:01:22]POST & json_proto [16:01:22]process_json_proto [16:01:22]json parsed OK: [16:01:22]protocol is kg_v1.0 [16:01:22]action value=print_text [16:01:22]process_action print_text [16:01:22]cmd_print_text [16:01:22]ExternCall_PrintAddStr [16:01:22]wPrintStart [16:01:22]Write to MH i2c: 01 00 00 29 15 3E [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 FF 0F 53 [16:01:22]RasterBufferAndPrint [16:01:22]line *****ТОВАРНЫЙ ЧЕК***** [16:01:22]line АЗС-91 [16:01:22]line Партнер нефть [16:01:22]line 02508201610067 [16:01:22]line Кассир : Арстанбеков Н. [16:01:22]line Счет N : (1)507270 [16:01:22]line 15.05.2024 15:43 [16:01:22]line ПРОДАЖА [16:01:22]line ТРК (МРК, ГНК): 21 [16:01:22]line Вид ГСМ : 2710194210 [16:01:22]line ДТ-К-5 [16:01:22]line 35.000 x 74.70 [16:01:22]line ИТОГ: 2614.50 [16:01:22]line Тип оплаты: Талоны: Топливная Карта [16:01:22]line 02750 [16:01:22]line ______________________ [16:01:22]line (подпись) [16:01:22]written 0, free lines is 4095 [16:01:23]Write to MH i2c: 01 00 00 3D 15 52 [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 0E 0E 75 [16:01:23]RasterBufferAndPrint [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]line [16:01:23]written 0, free lines is 3600 [16:01:23]MH_Cut [16:01:23]Write to MH i2c: D1 01 00 44 15 01 2B [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 [16:01:23]MH_I2C_Read... [16:01:23]Read from MH i2c: D1 01 00 44 15 00 2A [16:01:23]Write to MH i2c: 01 00 00 45 15 5A [16:01:23]Write i2c OK [16:01:23]MH_I2C_Read... [16:01:23]*** Cut start [16:01:23]*** Purtial cut [16:01:23]*** CUTSNS_PIN = 0 [16:01:23]*** Stage 1: CUTSNS_PIN = 1 [16:01:25]OFD Sender: No OFD packet to send [16:01:25]Read from MH i2c: 01 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: 01 07 00 [16:01:25]MH_I2C_Read... [16:01:25]*** Stop cut motor [16:01:25]*** Cut end [16:01:25]Read from MH i2c: 01 07 00 45 15 00 00 00 00 00 FF 0F 6F [16:01:25]process_action print_text done [16:01:25]requested_data is exist [16:01:25]produce_requested_data [16:01:25]requested_item fm.sn is exist - process it [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 11 00 00 [16:01:25]Write to MH i2c: E2 08 00 46 15 80 11 00 00 00 00 00 00 D5 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 17 00 46 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [16:01:25]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:25]wFMCommunicate OK [16:01:25]requested_item fd.num is exist - process it [16:01:25]SAM_PROTO_GetFieldsCounters [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 00 00 [16:01:25]Write to MH i2c: E2 08 00 47 15 80 13 00 00 00 00 00 00 D8 [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 62 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 62 00 47 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 D9 06 01 00 0E 04 04 00 64 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 84 [16:01: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 D9 06 01 00 0E 04 04 00 64 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 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetFieldsCounters done [16:01:25]requested_item shift.num is exist - process it [16:01:25]requested_item shift.opened is exist - process it [16:01:25]req_shift_opened [16:01:25]FM_GetShiftState [16:01:25]SAM_PROTO_GetShiftState [16:01:25]wFMCommunicate request_size=4 [16:01:25]MH_SAM_APDU [16:01:25]CAPDU: 80 13 01 00 [16:01:25]Write to MH i2c: E2 08 00 48 15 80 13 01 00 00 00 00 00 DA [16:01:25]Write i2c OK [16:01:25]MH_I2C_Read... [16:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:25]Read from MH i2c: E2 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 [16:01:25]MH_I2C_Read... [16:01:25]Read from MH i2c: E2 0E 00 48 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 85 [16:01:25]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:01:25]wFMCommunicate OK [16:01:25]SAM_PROTO_GetShiftState done [16:01:25]FM_GetShiftState done [16:01:25]req_shift_opened done [16:01:25]requested_item shift.open_date is exist - process it [16:01:25]req_shift_open_date [16:01:25]req_shift_open_date done [16:01:25]produce_requested_data done [16:01:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:01:25]process_action_free print_text [16:01:25]json_value_free [16:01:25]json_value_free done [16:01:25]process_json_proto returns [16:01:25]Send response to host [16:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:01:25]free response buf [16:01:25]execute_script done [16:01:25]execute_script returns [16:01:25]free content buf [16:01:25]Sock 9.Close socket [16:01:25]Sock 9.Thread stoped [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:08:58]accept exits with 7 [16:08:58]New connection [16:08:58]New thread 3067174244 created [16:08:58]Thread 3067030884 joined [16:08:58]Waiting for new connection... [16:08:58] Sock 7.Parse request [16:08:58]Sock 7.Check first char [16:08:58]Sock 7.First char is OK [16:08:58]request: POST /json_proto HTTP/1.0 [16:08:58]Method: POST [16:08:58]URL: /json_proto [16:08:58]Method is POST - this is cgi request [16:08:58]url: /json_proto [16:08:58]query_string will be loaded in cgi processing [16:08:58]execute_cgi json_proto POST (null) [16:08:58]execute_cgi path=json_proto method=POST [16:08:58]POST find Content-Length [16:08:58]Host: 172.17.41.195:8080 [16:08:58]Content-Length: 1209 [16:08:58]Content-Type: application/json [16:08:58] [16:08:58]POST finish read [16:08:58]Found Content-Length = 1209 [16:08: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)507271\u000A15.05.2024 15:51\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 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\u000A65692\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:58]execute_script... [16:08: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)507271\u000A15.05.2024 15:51\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 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\u000A65692\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:58]POST & json_proto [16:08:58]process_json_proto [16:08:58]json parsed OK: [16:08:58]protocol is kg_v1.0 [16:08:58]action value=print_text [16:08:58]process_action print_text [16:08:58]cmd_print_text [16:08:58]ExternCall_PrintAddStr [16:08:58]wPrintStart [16:08:58]Write to MH i2c: 01 00 00 49 15 5E [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 FF 0F 73 [16:08:58]RasterBufferAndPrint [16:08:58]line *****ТОВАРНЫЙ ЧЕК***** [16:08:58]line АЗС-91 [16:08:58]line Партнер нефть [16:08:58]line 02508201610067 [16:08:58]line Кассир : Арстанбеков Н. [16:08:58]line Счет N : (1)507271 [16:08:58]line 15.05.2024 15:51 [16:08:58]line ПРОДАЖА [16:08:58]line ТРК (МРК, ГНК): 21 [16:08:58]line Вид ГСМ : 2710194210 [16:08:58]line ДТ-К-5 [16:08:58]line 50.000 x 74.70 [16:08:58]line ИТОГ: 3735.00 [16:08:58]line Тип оплаты: Талоны: Топливная Карта [16:08:58]line 65692 [16:08:58]line ______________________ [16:08:58]line (подпись) [16:08:58]written 0, free lines is 4095 [16:08:58]Write to MH i2c: 01 00 00 5D 15 72 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 5D 15 00 00 00 00 00 0E 0E 95 [16:08:58]RasterBufferAndPrint [16:08:58]line [16:08:58]line [16:08:58]line [16:08:58]line [16:08:58]line [16:08:58]written 0, free lines is 3600 [16:08:58]MH_Cut [16:08:58]Write to MH i2c: D1 01 00 64 15 01 4B [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: D1 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: D1 01 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: D1 01 00 64 15 00 4A [16:08:58]Write to MH i2c: 01 00 00 65 15 7A [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:59]*** Cut start [16:08:59]*** Purtial cut [16:08:59]*** Stage 1: CUTSNS_PIN = 1 [16:08:59]Read from MH i2c: 01 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: 01 07 00 [16:08:59]MH_I2C_Read... [16:08:59]*** Stop cut motor [16:08:59]*** Cut end [16:08:59]Read from MH i2c: 01 07 00 65 15 00 00 00 00 00 FF 0F 8F [16:08:59]process_action print_text done [16:08:59]requested_data is exist [16:08:59]produce_requested_data [16:08:59]requested_item fm.sn is exist - process it [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 11 00 00 [16:08:59]Write to MH i2c: E2 08 00 66 15 80 11 00 00 00 00 00 00 F5 [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:59]Read from MH i2c: E2 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 17 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 17 00 66 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [16:08: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:08:59]wFMCommunicate OK [16:08:59]requested_item fd.num is exist - process it [16:08:59]SAM_PROTO_GetFieldsCounters [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 13 00 00 [16:08:59]Write to MH i2c: E2 08 00 67 15 80 13 00 00 00 00 00 00 F8 [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:59]Read from MH i2c: E2 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 62 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 62 00 67 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 D9 06 01 00 0E 04 04 00 64 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 A4 [16:08: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 D9 06 01 00 0E 04 04 00 64 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 [16:08:59]wFMCommunicate OK [16:08:59]SAM_PROTO_GetFieldsCounters done [16:08:59]requested_item shift.num is exist - process it [16:08:59]requested_item shift.opened is exist - process it [16:08:59]req_shift_opened [16:08:59]FM_GetShiftState [16:08:59]SAM_PROTO_GetShiftState [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 13 01 00 [16:08:59]Write to MH i2c: E2 08 00 68 15 80 13 01 00 00 00 00 00 FA [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:59]Read from MH i2c: E2 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 0E 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 0E 00 68 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A5 [16:08:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:08:59]wFMCommunicate OK [16:08:59]SAM_PROTO_GetShiftState done [16:08:59]FM_GetShiftState done [16:08:59]req_shift_opened done [16:08:59]requested_item shift.open_date is exist - process it [16:08:59]req_shift_open_date [16:08:59]req_shift_open_date done [16:08:59]produce_requested_data done [16:08:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:08:59]process_action_free print_text [16:08:59]json_value_free [16:08:59]json_value_free done [16:08:59]process_json_proto returns [16:08:59]Send response to host [16:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67289,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:08:59]free response buf [16:08:59]execute_script done [16:08:59]execute_script returns [16:08:59]free content buf [16:08:59]Sock 7.Close socket [16:08:59]Sock 7.Thread stoped [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:24]accept exits with 10 [16:11:24]New connection [16:11:24]New thread 3067030884 created [16:11:24]Thread 3067174244 joined [16:11:24]Waiting for new connection... [16:11:24] Sock 10.Parse request [16:11:24]Sock 10.Check first char [16:11:24]Sock 10.First char is OK [16:11:24]request: POST /json_proto HTTP/1.0 [16:11:24]Method: POST [16:11:24]URL: /json_proto [16:11:24]Method is POST - this is cgi request [16:11:24]url: /json_proto [16:11:24]query_string will be loaded in cgi processing [16:11:24]execute_cgi json_proto POST (null) [16:11:24]execute_cgi path=json_proto method=POST [16:11:24]POST find Content-Length [16:11:24]Host: 172.17.41.195:8080 [16:11:24]Content-Length: 800 [16:11:24]Content-Type: application/json [16:11:24] [16:11:24]POST finish read [16:11:24]Found Content-Length = 800 [16:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507272", "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" : 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" ] } } [16:11:24]execute_script... [16:11: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)507272", "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" : 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" ] } } [16:11:24]POST & json_proto [16:11:24]process_json_proto [16:11:24]json parsed OK: [16:11:24]protocol is kg_v1.0 [16:11:24]action value=close_receipt [16:11:24]process_action close_receipt [16:11:24]cmd_close_receipt [16:11:24]MH_GetDate [16:11:24]Write to MH i2c: F0 00 00 69 15 6D [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: F0 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: F0 09 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: F0 09 00 69 15 00 AD DE 44 66 FC 21 6F 64 9B [16:11:24]GetLastDocTimeStamp 1715787988 [16:11:24]current date 1715789485 [16:11:24]FM_GetShiftState [16:11:24]SAM_PROTO_GetShiftState [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 13 01 00 [16:11:24]Write to MH i2c: E2 08 00 6A 15 80 13 01 00 00 00 00 00 FC [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:24]Read from MH i2c: E2 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 0E 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: E2 0E 00 6A 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A7 [16:11:24]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:11:24]wFMCommunicate OK [16:11:24]SAM_PROTO_GetShiftState done [16:11:24]FM_GetShiftState done [16:11:24]opened in 1715732471 [16:11:24]opened+sec_in_day 1715818871 [16:11:24]quantity*price = 300069 [16:11:24]sum+1 = 300071 [16:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 108 15.05.2024 16:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67290 ФПД: 225376605637950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T161125&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67290&fm=225376605637950&tin=02508201610067®Number=0000000000091845&sum=300070 [16:11:25]StoreToDocumentArchive [16:11:25]shift 356 fd 67290 [16:11:25]save to /storage/0356/doc_00067290 [16:11:25]save last doc name /storage/0356/doc_00067290 to /storage/kkm_last_doc_name [16:11:25]save OK [16:11:25]Clear old archive folders... [16:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:25]tlvbuf is 00B5C9F0 [16:11:25]SAM_PROTO_ClearQueue [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 09 00 00 [16:11:25]Write to MH i2c: E2 08 00 77 15 80 09 00 00 00 00 00 00 FE [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 03 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 03 00 77 15 00 90 00 00 [16:11:25]RAPDU: 90 00 [16:11:25]wFMCommunicate OK [16:11:25]SAM_PROTO_ClearQueue done [16:11:25]KKMCreateOFDPacket [16:11:25]OFDProtocolAddRootSTLVToBuf [16:11:25]FM_MakeSignedData [16:11:25]FM_MakeSignedData [16:11:25]SAM_PROTO_SignData [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 0D 01 02 [16:11:25]Write to MH i2c: E2 08 00 78 15 80 0D 01 02 00 00 00 00 06 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 03 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 03 00 78 15 00 90 00 01 [16:11:25]RAPDU: 90 00 [16:11:25]wFMCommunicate OK [16:11:25]wFMCommunicate request_size=255 [16:11:25]MH_SAM_APDU [16:11:25]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 6C 00 00 00 F4 03 04 00 AD DE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC FA 94 85 [16:11:25]Write to MH i2c: E2 02 01 79 15 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 6C 00 00 00 F4 03 04 00 AD DE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC FA 94 85 00 00 98 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]OFD Sender: No OFD packet to send [16:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:26]Read from MH i2c: E2 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 03 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 03 00 79 15 00 90 00 02 [16:11:26]RAPDU: 90 00 [16:11:26]wFMCommunicate OK [16:11:26]wFMCommunicate request_size=7 [16:11:26]MH_SAM_APDU [16:11:26]CAPDU: 80 0D 02 02 02 0D 3E [16:11:26]Write to MH i2c: E2 0A 00 7A 15 80 0D 02 02 02 00 0D 3E 00 00 58 [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:26]Read from MH i2c: E2 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 03 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 03 00 7A 15 00 90 00 03 [16:11:26]RAPDU: 90 00 [16:11:26]wFMCommunicate OK [16:11:26]wFMCommunicate request_size=4 [16:11:26]MH_SAM_APDU [16:11:26]CAPDU: 80 0D 03 02 [16:11:26]Write to MH i2c: E2 08 00 7B 15 80 0D 03 02 00 00 00 00 0B [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:26]Read from MH i2c: E2 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 0B 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 0B 00 7B 15 00 29 6D D5 CB 13 6F DD 2C 90 00 CD [16:11:26]RAPDU: 29 6D D5 CB 13 6F DD 2C 90 00 [16:11:26]wFMCommunicate OK [16:11:26]SAM_PROTO_SignData done [16:11:26]FM_MakeSignedData done [16:11:26]CreateOFDProtocolMessage [16:11:26]wFMCommunicate request_size=4 [16:11:26]MH_SAM_APDU [16:11:26]CAPDU: 80 11 00 00 [16:11:26]Write to MH i2c: E2 08 00 7C 15 80 11 00 00 00 00 00 00 0B [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:26]Read from MH i2c: E2 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 17 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: E2 17 00 7C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [16:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:11:26]wFMCommunicate OK [16:11:26]CreateOFDProtocolMessage done [16:11:26]OFDSenderStorePacket 67290 [16:11:26]StoreOFDPacket docnum=67290 [16:11: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 13 7B 04 01 3B 6F 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 6C 00 00 00 F4 03 04 00 AD DE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC FA 94 85 0D 3E 29 6D D5 CB 13 6F DD 2C [16:11:26]CheckFolder [16:11:26]dirname=/storage/ofd_packets [16:11:26]CheckFolder done [16:11:26]ProducePacketName [16:11:26]name=ofd_packets/00067290 [16:11:26]NVStorageSaveData ofd_packets/00067290 [16:11:26]File name is /storage/ofd_packets/00067290 [16:11:26]Write 298 bytes [16:11:26]NVStorageSaveData done [16:11:26]OFDSenderStorePacket done [16:11:26]KKMCreateOFDPacket done [16:11:26]NVStorageSaveData kkm_last_timestamp [16:11:26]File name is /storage/kkm_last_timestamp [16:11:26]Write 4 bytes [16:11:26]NVStorageSaveData done [16:11:26]ExternCall_PrintAddStr [16:11:26]wPrintStart [16:11:26]Write to MH i2c: 01 00 00 7D 15 92 [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 07 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 FF 0F A7 [16:11:26]RasterBufferAndPrint [16:11:26]line Счет N : (1)507272 [16:11:26]line ИНН: 02508201610067 [16:11:26]line Контрольно-Кассовый Чек [16:11:26]line ПРОДАЖА [16:11:26]line ТРК (МРК, ГНК) : 41 [16:11:26]line Товар: 2710194210 [16:11:26]line ДТ-К-5 [16:11:26]line 40.170 * 74.70 [16:11:26]line = 3000.70 [16:11:26]line НДС 12% НСП 1% [16:11:26]line > о реализуемом товаре [16:11:26]line ИТОГО: 3000.70 [16:11:26]line НСП 1% : 26.55 [16:11:26]line НДС 12% : 318.66 [16:11:26]line Наличными: 0.00 [16:11:26]line Безнал.: 3000.70 [16:11:26]line Место: АЗС № 91 "Партнер Нефть" [16:11:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:11:26]line СНО: Общий режим [16:11:26]line Чек 108 15.05.2024 16:11 [16:11:26]line Смена: 356 ФФД: 1.0 [16:11:26]line ЗНМ: 0300000119 [16:11:26]line РНМ: 0000000000091845 [16:11:26]line Версия ККМ: 001 [16:11:26]line Платежная система: O! деньги [16:11:26]line ФМ: 0000000000871829 [16:11:26]line ФД: 67290 [16:11:26]line ФПД: 225376605637950 [16:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T161125&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67290&fm=225376605637950&tin=02508201610067®Number=0000000000091845&sum=300070 [16:11:26]OFD Sender: Processing packet 67290 [packets to send 35, broken 34] [16:11:26]ProducePacketName [16:11:26]name=ofd_packets/00067290 [16:11:26]OFD Sender: To server: pG, [16:11:26]CommunicateWithHost lk.salyk.kg:30040 [16:11:26]ConnectInit lk.salyk.kg [16:11:26]written 0, free lines is 4095 [16:11:26]Connected sock=9 [16:11: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 0C 01 00 00 13 7B 04 01 3B 6F 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 6C 00 00 00 F4 03 04 00 AD DE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CC FA 94 85 0D 3E 29 6D D5 CB 13 6F DD 2C [16:11: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 34 55 47 00 2C 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 DA 06 01 00 F4 03 04 00 8A 86 44 66 B6 04 01 00 00 09 07 A9 89 D4 6D 09 C5 [16:11:26]CommunicateWithHost err = 0 [16:11:26]CheckOFDResponse [16:11:26]1017 (14) - 77093643461234 [16:11:26]1041 (16) - 0000000000871829 [16:11:26]1040 (4) - 67290 [16:11:26]1012 (4) - 15.05.2024 09:55 [16:11:26]1206 (1) - 0 [16:11:26]OFD Sender: Remove packet 67290 [16:11:26]ProducePacketName [16:11:26]name=ofd_packets/00067290 [16:11:26]NVStorageDeleteData [16:11:26]Write to MH i2c: 01 00 00 A6 15 BB [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 07 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: 01 07 00 A6 15 00 00 00 00 00 DC 0C AA [16:11:26]RasterBufferAndPrint [16:11:26]line [16:11:26]line [16:11:26]line [16:11:26]line [16:11:26]line [16:11:26]written 0, free lines is 3298 [16:11:26]MH_Cut [16:11:26]Write to MH i2c: D1 01 00 AD 15 01 94 [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: D1 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: D1 01 00 [16:11:26]MH_I2C_Read... [16:11:26]Read from MH i2c: D1 01 00 AD 15 00 93 [16:11:26]Write to MH i2c: 01 00 00 AE 15 C3 [16:11:26]Write i2c OK [16:11:26]MH_I2C_Read... [16:11:27]OFD Sender: No OFD packet to send [16:11:27]*** Cut start [16:11:27]*** Purtial cut [16:11:27]*** CUTSNS_PIN = 0 [16:11:27]*** Stage 1: CUTSNS_PIN = 1 [16:11:29]Read from MH i2c: 01 [16:11:29]MH_I2C_Read... [16:11:29]*** Stop cut motor [16:11:29]*** Cut end [16:11:29]Read from MH i2c: 01 07 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: 01 07 00 AE 15 00 00 00 00 00 FF 0F D8 [16:11:29]process_action close_receipt done [16:11:29]requested_data is exist [16:11:29]produce_requested_data [16:11:29]requested_item fm.sn is exist - process it [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 11 00 00 [16:11:29]Write to MH i2c: E2 08 00 AF 15 80 11 00 00 00 00 00 00 3E [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 17 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 17 00 AF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [16:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:11:29]wFMCommunicate OK [16:11:29]requested_item fd.num is exist - process it [16:11:29]SAM_PROTO_GetFieldsCounters [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 13 00 00 [16:11:29]Write to MH i2c: E2 08 00 B0 15 80 13 00 00 00 00 00 00 41 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:29]Read from MH i2c: E2 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 62 00 [16:11:29]MH_I2C_Read... [16:11:29]Read from MH i2c: E2 62 00 B0 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 DA 06 01 00 0E 04 04 00 64 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 F1 [16:11: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 DA 06 01 00 0E 04 04 00 64 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 [16:11:29]wFMCommunicate OK [16:11:29]SAM_PROTO_GetFieldsCounters done [16:11:29]requested_item shift.num is exist - process it [16:11:29]requested_item shift.opened is exist - process it [16:11:29]req_shift_opened [16:11:29]FM_GetShiftState [16:11:29]SAM_PROTO_GetShiftState [16:11:29]wFMCommunicate request_size=4 [16:11:29]MH_SAM_APDU [16:11:29]CAPDU: 80 13 01 00 [16:11:29]Write to MH i2c: E2 08 00 B1 15 80 13 01 00 00 00 00 00 43 [16:11:29]Write i2c OK [16:11:29]MH_I2C_Read... [16:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:30]Read from MH i2c: E2 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 0E 00 [16:11:30]MH_I2C_Read... [16:11:30]Read from MH i2c: E2 0E 00 B1 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EE [16:11:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:11:30]wFMCommunicate OK [16:11:30]SAM_PROTO_GetShiftState done [16:11:30]FM_GetShiftState done [16:11:30]req_shift_opened done [16:11:30]requested_item shift.open_date is exist - process it [16:11:30]req_shift_open_date [16:11:30]req_shift_open_date done [16:11:30]produce_requested_data done [16:11:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67290,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:11:30]process_action_free close_receipt [16:11:30]json_value_free [16:11:30]json_value_free done [16:11:30]process_json_proto returns [16:11:30]Send response to host [16:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67290,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:11:30]free response buf [16:11:30]execute_script done [16:11:30]execute_script returns [16:11:30]free content buf [16:11:30]Sock 10.Close socket [16:11:30]Sock 10.Thread stoped [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:29]accept exits with 7 [16:18:29]New connection [16:18:29]New thread 3067174244 created [16:18:29]Thread 3067030884 joined [16:18:29]Waiting for new connection... [16:18:29] Sock 7.Parse request [16:18:29]Sock 7.Check first char [16:18:29]Sock 7.First char is OK [16:18:29]request: POST /json_proto HTTP/1.0 [16:18:29]Method: POST [16:18:29]URL: /json_proto [16:18:29]Method is POST - this is cgi request [16:18:29]url: /json_proto [16:18:29]query_string will be loaded in cgi processing [16:18:29]execute_cgi json_proto POST (null) [16:18:29]execute_cgi path=json_proto method=POST [16:18:29]POST find Content-Length [16:18:29]Host: 172.17.41.195:8080 [16:18:29]Content-Length: 796 [16:18:29]Content-Type: application/json [16:18:29] [16:18:29]POST finish read [16:18:29]Found Content-Length = 796 [16:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507273", "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" : 59.000, "sum" : 4000.20, "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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:29]execute_script... [16:18: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)507273", "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" : 59.000, "sum" : 4000.20, "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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:29]POST & json_proto [16:18:29]process_json_proto [16:18:29]json parsed OK: [16:18:29]protocol is kg_v1.0 [16:18:29]action value=close_receipt [16:18:29]process_action close_receipt [16:18:29]cmd_close_receipt [16:18:29]MH_GetDate [16:18:29]Write to MH i2c: F0 00 00 B2 15 B6 [16:18:29]Write i2c OK [16:18:29]MH_I2C_Read... [16:18:29]Read from MH i2c: F0 [16:18:29]MH_I2C_Read... [16:18:29]Read from MH i2c: F0 09 00 [16:18:29]MH_I2C_Read... [16:18:29]Read from MH i2c: F0 09 00 B2 15 00 57 E0 44 66 FC 21 6F 64 90 [16:18:29]GetLastDocTimeStamp 1715789485 [16:18:29]current date 1715789911 [16:18:29]FM_GetShiftState [16:18:29]SAM_PROTO_GetShiftState [16:18:29]wFMCommunicate request_size=4 [16:18:29]MH_SAM_APDU [16:18:29]CAPDU: 80 13 01 00 [16:18:29]Write to MH i2c: E2 08 00 B3 15 80 13 01 00 00 00 00 00 45 [16:18:29]Write i2c OK [16:18:29]MH_I2C_Read... [16:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:29]Read from MH i2c: E2 [16:18:29]MH_I2C_Read... [16:18:29]Read from MH i2c: E2 0E 00 [16:18:29]MH_I2C_Read... [16:18:29]Read from MH i2c: E2 0E 00 B3 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F0 [16:18:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:18:29]wFMCommunicate OK [16:18:29]SAM_PROTO_GetShiftState done [16:18:29]FM_GetShiftState done [16:18:29]opened in 1715732471 [16:18:29]opened+sec_in_day 1715818871 [16:18:29]quantity*price = 400020 [16:18:29]sum+1 = 400021 [16:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.20 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.20 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 109 15.05.2024 16:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67291 ФПД: 172119454757669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T161831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67291&fm=172119454757669&tin=02508201610067®Number=0000000000091845&sum=400020 [16:18:30]StoreToDocumentArchive [16:18:30]shift 356 fd 67291 [16:18:30]save to /storage/0356/doc_00067291 [16:18:30]save last doc name /storage/0356/doc_00067291 to /storage/kkm_last_doc_name [16:18:30]save OK [16:18:30]Clear old archive folders... [16:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:18:30]tlvbuf is 00B43300 [16:18:30]SAM_PROTO_ClearQueue [16:18:30]wFMCommunicate request_size=4 [16:18:30]MH_SAM_APDU [16:18:30]CAPDU: 80 09 00 00 [16:18:30]Write to MH i2c: E2 08 00 C0 15 80 09 00 00 00 00 00 00 47 [16:18:30]Write i2c OK [16:18:30]MH_I2C_Read... [16:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:30]Read from MH i2c: E2 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 03 00 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [16:18:30]RAPDU: 90 00 [16:18:30]wFMCommunicate OK [16:18:30]SAM_PROTO_ClearQueue done [16:18:30]KKMCreateOFDPacket [16:18:30]OFDProtocolAddRootSTLVToBuf [16:18:30]FM_MakeSignedData [16:18:30]FM_MakeSignedData [16:18:30]SAM_PROTO_SignData [16:18:30]wFMCommunicate request_size=4 [16:18:30]MH_SAM_APDU [16:18:30]CAPDU: 80 0D 01 02 [16:18:30]Write to MH i2c: E2 08 00 C1 15 80 0D 01 02 00 00 00 00 4F [16:18:30]Write i2c OK [16:18:30]MH_I2C_Read... [16:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:30]Read from MH i2c: E2 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 03 00 [16:18:30]MH_I2C_Read... [16:18:30]Read from MH i2c: E2 03 00 C1 15 00 90 00 4A [16:18:30]RAPDU: 90 00 [16:18:30]wFMCommunicate OK [16:18:30]wFMCommunicate request_size=255 [16:18:30]MH_SAM_APDU [16:18:30]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 78 E6 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 94 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 57 E0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [16:18:30]Write to MH i2c: E2 02 01 C2 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 78 E6 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 94 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 57 E0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 A3 [16:18:30]Write i2c OK [16:18:30]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 C2 15 00 90 00 4B [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]wFMCommunicate request_size=11 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 02 02 06 9C 8A AE F5 B3 25 [16:18:31]Write to MH i2c: E2 0E 00 C3 15 80 0D 02 02 06 00 9C 8A AE F5 B3 25 00 00 FF [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 03 00 C3 15 00 90 00 4C [16:18:31]RAPDU: 90 00 [16:18:31]wFMCommunicate OK [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 0D 03 02 [16:18:31]Write to MH i2c: E2 08 00 C4 15 80 0D 03 02 00 00 00 00 54 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0B 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 0B 00 C4 15 00 E1 07 86 0A 34 84 8A 89 90 00 98 [16:18:31]RAPDU: E1 07 86 0A 34 84 8A 89 90 00 [16:18:31]wFMCommunicate OK [16:18:31]SAM_PROTO_SignData done [16:18:31]FM_MakeSignedData done [16:18:31]CreateOFDProtocolMessage [16:18:31]wFMCommunicate request_size=4 [16:18:31]MH_SAM_APDU [16:18:31]CAPDU: 80 11 00 00 [16:18:31]Write to MH i2c: E2 08 00 C5 15 80 11 00 00 00 00 00 00 54 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:31]Read from MH i2c: E2 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 17 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: E2 17 00 C5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [16:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:18:31]wFMCommunicate OK [16:18:31]CreateOFDProtocolMessage done [16:18:31]OFDSenderStorePacket 67291 [16:18:31]StoreOFDPacket docnum=67291 [16:18: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 10 01 00 00 89 D6 08 01 06 AB 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 78 E6 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 94 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 57 E0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9C 8A AE F5 B3 25 E1 07 86 0A 34 84 8A 89 [16:18:31]CheckFolder [16:18:31]dirname=/storage/ofd_packets [16:18:31]CheckFolder done [16:18:31]ProducePacketName [16:18:31]name=ofd_packets/00067291 [16:18:31]NVStorageSaveData ofd_packets/00067291 [16:18:31]File name is /storage/ofd_packets/00067291 [16:18:31]Write 302 bytes [16:18:31]NVStorageSaveData done [16:18:31]OFDSenderStorePacket done [16:18:31]KKMCreateOFDPacket done [16:18:31]NVStorageSaveData kkm_last_timestamp [16:18:31]File name is /storage/kkm_last_timestamp [16:18:31]Write 4 bytes [16:18:31]NVStorageSaveData done [16:18:31]ExternCall_PrintAddStr [16:18:31]wPrintStart [16:18:31]Write to MH i2c: 01 00 00 C6 15 DB [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 C6 15 00 00 00 00 00 FF 0F F0 [16:18:31]RasterBufferAndPrint [16:18:31]line Счет N : (1)507273 [16:18:31]line ИНН: 02508201610067 [16:18:31]line Контрольно-Кассовый Чек [16:18:31]line ПРОДАЖА [16:18:31]line ТРК (МРК, ГНК) : 42 [16:18:31]line Товар: 2710124130 [16:18:31]line Super-92-К-5 [16:18:31]line 59.000 * 67.80 [16:18:31]line = 4000.20 [16:18:31]line НДС 12% НСП 1% [16:18:31]line > о реализуемом товаре [16:18:31]line ИТОГО: 4000.20 [16:18:31]line НСП 1% : 35.40 [16:18:31]line НДС 12% : 424.80 [16:18:31]line Наличными: 0.00 [16:18:31]line Безнал.: 4000.20 [16:18:31]line Место: АЗС № 91 "Партнер Нефть" [16:18:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:18:31]line СНО: Общий режим [16:18:31]line Чек 109 15.05.2024 16:18 [16:18:31]line Смена: 356 ФФД: 1.0 [16:18:31]line ЗНМ: 0300000119 [16:18:31]line РНМ: 0000000000091845 [16:18:31]line Версия ККМ: 001 [16:18:31]line Платежная система: O! деньги [16:18:31]line ФМ: 0000000000871829 [16:18:31]line ФД: 67291 [16:18:31]line ФПД: 172119454757669 [16:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T161831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67291&fm=172119454757669&tin=02508201610067®Number=0000000000091845&sum=400020 [16:18:31]written 0, free lines is 4095 [16:18:31]OFD Sender: Processing packet 67291 [packets to send 35, broken 34] [16:18:31]ProducePacketName [16:18:31]name=ofd_packets/00067291 [16:18:31]OFD Sender: To server: pG, [16:18:31]CommunicateWithHost lk.salyk.kg:30040 [16:18:31]ConnectInit lk.salyk.kg [16:18:31]Connected sock=10 [16:18: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 10 01 00 00 89 D6 08 01 06 AB 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 78 E6 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 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 94 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 57 E0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9C 8A AE F5 B3 25 E1 07 86 0A 34 84 8A 89 [16:18:31]Write to MH i2c: 01 00 00 EF 15 04 [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 ED 0C 04 [16:18:31]RasterBufferAndPrint [16:18:31]line [16:18:31]line [16:18:31]line [16:18:31]line [16:18:31]line [16:18:31]written 0, free lines is 3315 [16:18:31]MH_Cut [16:18:31]Write to MH i2c: D1 01 00 F6 15 01 DD [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: D1 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: D1 01 00 [16:18:31]MH_I2C_Read... [16:18:31]Read from MH i2c: D1 01 00 F6 15 00 DC [16:18:31]Write to MH i2c: 01 00 00 F7 15 0C [16:18:31]Write i2c OK [16:18:31]MH_I2C_Read... [16:18: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 82 37 47 00 2A 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 DB 06 01 00 F4 03 04 00 34 88 44 66 B6 04 01 00 00 76 B2 DB 8D 13 98 A5 6B [16:18:32]CommunicateWithHost err = 0 [16:18:32]CheckOFDResponse [16:18:32]1017 (14) - 77093643461234 [16:18:32]1041 (16) - 0000000000871829 [16:18:32]1040 (4) - 67291 [16:18:32]1012 (4) - 15.05.2024 10:02 [16:18:32]1206 (1) - 0 [16:18:32]OFD Sender: Remove packet 67291 [16:18:32]ProducePacketName [16:18:32]name=ofd_packets/00067291 [16:18:32]NVStorageDeleteData [16:18:32]OFD Sender: No OFD packet to send [16:18:32]*** Cut start [16:18:32]*** Purtial cut [16:18:32]*** Stage 1: CUTSNS_PIN = 1 [16:18:32]Read from MH i2c: 01 [16:18:32]MH_I2C_Read... [16:18:32]*** Stop cut motor [16:18:32]*** Cut end [16:18:32]Read from MH i2c: 01 07 00 [16:18:32]MH_I2C_Read... [16:18:32]Read from MH i2c: 01 07 00 F7 15 00 00 00 00 00 FF 0F 21 [16:18:32]process_action close_receipt done [16:18:32]requested_data is exist [16:18:32]produce_requested_data [16:18:32]requested_item fm.sn is exist - process it [16:18:32]wFMCommunicate request_size=4 [16:18:32]MH_SAM_APDU [16:18:32]CAPDU: 80 11 00 00 [16:18:32]Write to MH i2c: E2 08 00 F8 15 80 11 00 00 00 00 00 00 87 [16:18:32]Write i2c OK [16:18:32]MH_I2C_Read... [16:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 17 00 F8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [16:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:18:33]wFMCommunicate OK [16:18:33]requested_item fd.num is exist - process it [16:18:33]SAM_PROTO_GetFieldsCounters [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 13 00 00 [16:18:33]Write to MH i2c: E2 08 00 F9 15 80 13 00 00 00 00 00 00 8A [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 62 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 62 00 F9 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 DB 06 01 00 0E 04 04 00 64 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 3E [16:18: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 DB 06 01 00 0E 04 04 00 64 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 [16:18:33]wFMCommunicate OK [16:18:33]SAM_PROTO_GetFieldsCounters done [16:18:33]requested_item shift.num is exist - process it [16:18:33]requested_item shift.opened is exist - process it [16:18:33]req_shift_opened [16:18:33]FM_GetShiftState [16:18:33]SAM_PROTO_GetShiftState [16:18:33]wFMCommunicate request_size=4 [16:18:33]MH_SAM_APDU [16:18:33]CAPDU: 80 13 01 00 [16:18:33]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [16:18:33]Write i2c OK [16:18:33]MH_I2C_Read... [16:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:33]Read from MH i2c: E2 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 0E 00 [16:18:33]MH_I2C_Read... [16:18:33]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 37 [16:18:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:18:33]wFMCommunicate OK [16:18:33]SAM_PROTO_GetShiftState done [16:18:33]FM_GetShiftState done [16:18:33]req_shift_opened done [16:18:33]requested_item shift.open_date is exist - process it [16:18:33]req_shift_open_date [16:18:33]req_shift_open_date done [16:18:33]produce_requested_data done [16:18:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:18:33]process_action_free close_receipt [16:18:33]json_value_free [16:18:33]json_value_free done [16:18:33]process_json_proto returns [16:18:33]Send response to host [16:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:18:33]free response buf [16:18:33]execute_script done [16:18:33]execute_script returns [16:18:33]free content buf [16:18:33]Sock 7.Close socket [16:18:33]Sock 7.Thread stoped [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]accept exits with 9 [16:22:37]New connection [16:22:37]New thread 3067030884 created [16:22:37]Thread 3067174244 joined [16:22:37]Waiting for new connection... [16:22:37] Sock 9.Parse request [16:22:37]Sock 9.Check first char [16:22:37]Sock 9.First char is OK [16:22:37]request: POST /json_proto HTTP/1.0 [16:22:37]Method: POST [16:22:37]URL: /json_proto [16:22:37]Method is POST - this is cgi request [16:22:37]url: /json_proto [16:22:37]query_string will be loaded in cgi processing [16:22:37]execute_cgi json_proto POST (null) [16:22:37]execute_cgi path=json_proto method=POST [16:22:37]POST find Content-Length [16:22:37]Host: 172.17.41.195:8080 [16:22:37]Content-Length: 1174 [16:22:37]Content-Type: application/json [16:22:37] [16:22:37]POST finish read [16:22:37]Found Content-Length = 1174 [16:22: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)507274\u000A15.05.2024 16:05\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 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\u000A30084000\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:37]execute_script... [16:22: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)507274\u000A15.05.2024 16:05\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 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\u000A30084000\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:37]POST & json_proto [16:22:37]process_json_proto [16:22:37]json parsed OK: [16:22:37]protocol is kg_v1.0 [16:22:37]action value=print_text [16:22:37]process_action print_text [16:22:37]cmd_print_text [16:22:37]ExternCall_PrintAddStr [16:22:37]wPrintStart [16:22:37]Write to MH i2c: 01 00 00 FB 15 10 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 FB 15 00 00 00 00 00 FF 0F 25 [16:22:37]RasterBufferAndPrint [16:22:37]line *****ТОВАРНЫЙ ЧЕК***** [16:22:37]line АЗС-91 [16:22:37]line Партнер нефть [16:22:37]line 02508201610067 [16:22:37]line Кассир : Арстанбеков Н. [16:22:37]line Счет N : (1)507274 [16:22:37]line 15.05.2024 16:05 [16:22:37]line ПРОДАЖА [16:22:37]line ТРК (МРК, ГНК): 33 [16:22:37]line Вид ГСМ : 2710124130 [16:22:37]line Аи-92-К-5 [16:22:37]line 30.000 x 66.80 [16:22:37]line ИТОГ: 2004.00 [16:22:37]line Тип оплаты: Талоны: ТК ГПНА Online [16:22:37]line 30084000 [16:22:37]line ______________________ [16:22:37]line (подпись) [16:22:37]written 0, free lines is 4095 [16:22:37]Write to MH i2c: 01 00 00 0F 16 25 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 11 0E 4B [16:22:37]RasterBufferAndPrint [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]line [16:22:37]written 0, free lines is 3602 [16:22:37]MH_Cut [16:22:37]Write to MH i2c: D1 01 00 16 16 01 FE [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: D1 01 00 16 16 00 FD [16:22:37]Write to MH i2c: 01 00 00 17 16 2D [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]OFD Sender: No OFD packet to send [16:22:37]*** Cut start [16:22:37]*** Purtial cut [16:22:37]*** CUTSNS_PIN = 0 [16:22:38]*** Stage 1: CUTSNS_PIN = 1 [16:22:39]Read from MH i2c: 01 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: 01 07 00 [16:22:39]MH_I2C_Read... [16:22:39]*** Stop cut motor [16:22:39]*** Cut end [16:22:39]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [16:22:39]process_action print_text done [16:22:39]requested_data is exist [16:22:39]produce_requested_data [16:22:39]requested_item fm.sn is exist - process it [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 11 00 00 [16:22:39]Write to MH i2c: E2 08 00 18 16 80 11 00 00 00 00 00 00 A8 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 18 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [16:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:22:39]wFMCommunicate OK [16:22:39]requested_item fd.num is exist - process it [16:22:39]SAM_PROTO_GetFieldsCounters [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 00 00 [16:22:39]Write to MH i2c: E2 08 00 19 16 80 13 00 00 00 00 00 00 AB [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 62 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 62 00 19 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 DB 06 01 00 0E 04 04 00 64 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 5F [16:22: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 DB 06 01 00 0E 04 04 00 64 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 [16:22:40]wFMCommunicate OK [16:22:40]SAM_PROTO_GetFieldsCounters done [16:22:40]requested_item shift.num is exist - process it [16:22:40]requested_item shift.opened is exist - process it [16:22:40]req_shift_opened [16:22:40]FM_GetShiftState [16:22:40]SAM_PROTO_GetShiftState [16:22:40]wFMCommunicate request_size=4 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 13 01 00 [16:22:40]Write to MH i2c: E2 08 00 1A 16 80 13 01 00 00 00 00 00 AD [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 0E 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 0E 00 1A 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 58 [16:22:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:22:40]wFMCommunicate OK [16:22:40]SAM_PROTO_GetShiftState done [16:22:40]FM_GetShiftState done [16:22:40]req_shift_opened done [16:22:40]requested_item shift.open_date is exist - process it [16:22:40]req_shift_open_date [16:22:40]req_shift_open_date done [16:22:40]produce_requested_data done [16:22:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:22:40]process_action_free print_text [16:22:40]json_value_free [16:22:40]json_value_free done [16:22:40]process_json_proto returns [16:22:40]Send response to host [16:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:22:40]free response buf [16:22:40]execute_script done [16:22:40]execute_script returns [16:22:40]free content buf [16:22:40]Sock 9.Close socket [16:22:40]Sock 9.Thread stoped [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:41]accept exits with 7 [16:23:41]New connection [16:23:41]New thread 3067174244 created [16:23:41]Thread 3067030884 joined [16:23:41]Waiting for new connection... [16:23:41] Sock 7.Parse request [16:23:41]Sock 7.Check first char [16:23:41]Sock 7.First char is OK [16:23:41]request: POST /json_proto HTTP/1.0 [16:23:41]Method: POST [16:23:41]URL: /json_proto [16:23:41]Method is POST - this is cgi request [16:23:41]url: /json_proto [16:23:41]query_string will be loaded in cgi processing [16:23:41]execute_cgi json_proto POST (null) [16:23:41]execute_cgi path=json_proto method=POST [16:23:41]POST find Content-Length [16:23:41]Host: 172.17.41.195:8080 [16:23:41]Content-Length: 1174 [16:23:41]Content-Type: application/json [16:23:41] [16:23:41]POST finish read [16:23:41]Found Content-Length = 1174 [16:23: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)507275\u000A15.05.2024 16:06\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 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083994\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:41]execute_script... [16:23: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)507275\u000A15.05.2024 16:06\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 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30083994\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:41]POST & json_proto [16:23:41]process_json_proto [16:23:41]json parsed OK: [16:23:41]protocol is kg_v1.0 [16:23:41]action value=print_text [16:23:41]process_action print_text [16:23:41]cmd_print_text [16:23:41]ExternCall_PrintAddStr [16:23:41]wPrintStart [16:23:41]Write to MH i2c: 01 00 00 1B 16 31 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 FF 0F 46 [16:23:41]RasterBufferAndPrint [16:23:41]line *****ТОВАРНЫЙ ЧЕК***** [16:23:41]line АЗС-91 [16:23:41]line Партнер нефть [16:23:41]line 02508201610067 [16:23:41]line Кассир : Арстанбеков Н. [16:23:41]line Счет N : (1)507275 [16:23:41]line 15.05.2024 16:06 [16:23:41]line ПРОДАЖА [16:23:41]line ТРК (МРК, ГНК): 13 [16:23:41]line Вид ГСМ : 2710124130 [16:23:41]line Аи-92-К-5 [16:23:41]line 50.000 x 66.80 [16:23:41]line ИТОГ: 3340.00 [16:23:41]line Тип оплаты: Талоны: ТК ГПНА Online [16:23:41]line 30083994 [16:23:41]line ______________________ [16:23:41]line (подпись) [16:23:41]written 0, free lines is 4095 [16:23:41]Write to MH i2c: 01 00 00 2F 16 45 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: 01 07 00 2F 16 00 00 00 00 00 11 0E 6B [16:23:41]RasterBufferAndPrint [16:23:41]line [16:23:41]line [16:23:41]line [16:23:41]line [16:23:41]line [16:23:41]written 0, free lines is 3602 [16:23:41]MH_Cut [16:23:41]Write to MH i2c: D1 01 00 36 16 01 1E [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: D1 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: D1 01 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: D1 01 00 36 16 00 1D [16:23:41]Write to MH i2c: 01 00 00 37 16 4D [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:42]*** Cut start [16:23:42]*** Purtial cut [16:23:42]*** Stage 1: CUTSNS_PIN = 1 [16:23:42]Read from MH i2c: 01 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: 01 07 00 [16:23:42]MH_I2C_Read... [16:23:42]*** Stop cut motor [16:23:42]*** Cut end [16:23:42]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 FF 0F 62 [16:23:42]process_action print_text done [16:23:42]requested_data is exist [16:23:42]produce_requested_data [16:23:42]requested_item fm.sn is exist - process it [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 11 00 00 [16:23:42]Write to MH i2c: E2 08 00 38 16 80 11 00 00 00 00 00 00 C8 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]OFD Sender: No OFD packet to send [16:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 17 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 17 00 38 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [16:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:23:42]wFMCommunicate OK [16:23:42]requested_item fd.num is exist - process it [16:23:42]SAM_PROTO_GetFieldsCounters [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 13 00 00 [16:23:42]Write to MH i2c: E2 08 00 39 16 80 13 00 00 00 00 00 00 CB [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 62 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 62 00 39 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 DB 06 01 00 0E 04 04 00 64 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 7F [16:23: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 DB 06 01 00 0E 04 04 00 64 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 [16:23:42]wFMCommunicate OK [16:23:42]SAM_PROTO_GetFieldsCounters done [16:23:42]requested_item shift.num is exist - process it [16:23:42]requested_item shift.opened is exist - process it [16:23:42]req_shift_opened [16:23:42]FM_GetShiftState [16:23:42]SAM_PROTO_GetShiftState [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 13 01 00 [16:23:42]Write to MH i2c: E2 08 00 3A 16 80 13 01 00 00 00 00 00 CD [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0E 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0E 00 3A 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 78 [16:23:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_GetShiftState done [16:23:43]FM_GetShiftState done [16:23:43]req_shift_opened done [16:23:43]requested_item shift.open_date is exist - process it [16:23:43]req_shift_open_date [16:23:43]req_shift_open_date done [16:23:43]produce_requested_data done [16:23:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:23:43]process_action_free print_text [16:23:43]json_value_free [16:23:43]json_value_free done [16:23:43]process_json_proto returns [16:23:43]Send response to host [16:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67291,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:23:43]free response buf [16:23:43]execute_script done [16:23:43]execute_script returns [16:23:43]free content buf [16:23:43]Sock 7.Close socket [16:23:43]Sock 7.Thread stoped [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:23]accept exits with 9 [16:27:23]New connection [16:27:23]New thread 3067030884 created [16:27:23]Thread 3067174244 joined [16:27:23]Waiting for new connection... [16:27:23] Sock 9.Parse request [16:27:23]Sock 9.Check first char [16:27:23]Sock 9.First char is OK [16:27:23]request: POST /json_proto HTTP/1.0 [16:27:23]Method: POST [16:27:23]URL: /json_proto [16:27:23]Method is POST - this is cgi request [16:27:23]url: /json_proto [16:27:23]query_string will be loaded in cgi processing [16:27:23]execute_cgi json_proto POST (null) [16:27:23]execute_cgi path=json_proto method=POST [16:27:23]POST find Content-Length [16:27:23]Host: 172.17.41.195:8080 [16:27:23]Content-Length: 977 [16:27:23]Content-Type: application/json [16:27:23] [16:27:23]POST finish read [16:27:23]Found Content-Length = 977 [16:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507276", "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" : 73.70, "quantity" : 50.220, "sum" : 3701.21, "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\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.22 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3701.00, "payments": [ { "type": 0, "sum" : 3701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:23]execute_script... [16:27: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)507276", "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" : 73.70, "quantity" : 50.220, "sum" : 3701.21, "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\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 50.22 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3701.00, "payments": [ { "type": 0, "sum" : 3701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:23]POST & json_proto [16:27:23]process_json_proto [16:27:23]json parsed OK: [16:27:23]protocol is kg_v1.0 [16:27:23]action value=close_receipt [16:27:23]process_action close_receipt [16:27:23]cmd_close_receipt [16:27:23]MH_GetDate [16:27:23]Write to MH i2c: F0 00 00 3B 16 40 [16:27:23]Write i2c OK [16:27:23]MH_I2C_Read... [16:27:23]Read from MH i2c: F0 [16:27:23]MH_I2C_Read... [16:27:23]Read from MH i2c: F0 09 00 [16:27:23]MH_I2C_Read... [16:27:23]Read from MH i2c: F0 09 00 3B 16 00 6C E2 44 66 FC 21 6F 64 31 [16:27:23]GetLastDocTimeStamp 1715789911 [16:27:23]current date 1715790444 [16:27:23]FM_GetShiftState [16:27:23]SAM_PROTO_GetShiftState [16:27:23]wFMCommunicate request_size=4 [16:27:23]MH_SAM_APDU [16:27:23]CAPDU: 80 13 01 00 [16:27:23]Write to MH i2c: E2 08 00 3C 16 80 13 01 00 00 00 00 00 CF [16:27:23]Write i2c OK [16:27:23]MH_I2C_Read... [16:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:23]Read from MH i2c: E2 [16:27:23]MH_I2C_Read... [16:27:23]Read from MH i2c: E2 0E 00 [16:27:23]MH_I2C_Read... [16:27:23]Read from MH i2c: E2 0E 00 3C 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7A [16:27:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:27:23]wFMCommunicate OK [16:27:23]SAM_PROTO_GetShiftState done [16:27:23]FM_GetShiftState done [16:27:23]opened in 1715732471 [16:27:23]opened+sec_in_day 1715818871 [16:27:23]quantity*price = 370121 [16:27:23]sum+1 = 370122 [16:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 3701.00 Внесено: 4000.00 СДАЧА: 299.00 НСП 1% : 32.75 НДС 12% : 393.05 Наличными: 3701.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 110 15.05.2024 16:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 50.22 сом ФМ: 0000000000871829 ФД: 67292 ФПД: 150638196148984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T162724&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67292&fm=150638196148984&tin=02508201610067®Number=0000000000091845&sum=370100 [16:27:24]StoreToDocumentArchive [16:27:24]shift 356 fd 67292 [16:27:24]save to /storage/0356/doc_00067292 [16:27:24]save last doc name /storage/0356/doc_00067292 to /storage/kkm_last_doc_name [16:27:24]save OK [16:27:24]Clear old archive folders... [16:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:27:24]tlvbuf is 00B43010 [16:27:24]SAM_PROTO_ClearQueue [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 09 00 00 [16:27:24]Write to MH i2c: E2 08 00 49 16 80 09 00 00 00 00 00 00 D1 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [16:27:24]RAPDU: 90 00 [16:27:24]wFMCommunicate OK [16:27:24]SAM_PROTO_ClearQueue done [16:27:24]KKMCreateOFDPacket [16:27:24]OFDProtocolAddRootSTLVToBuf [16:27:24]FM_MakeSignedData [16:27:24]FM_MakeSignedData [16:27:24]SAM_PROTO_SignData [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 0D 01 02 [16:27:24]Write to MH i2c: E2 08 00 4A 16 80 0D 01 02 00 00 00 00 D9 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 4A 16 00 90 00 D4 [16:27:24]RAPDU: 90 00 [16:27:24]wFMCommunicate OK [16:27:24]wFMCommunicate request_size=255 [16:27:24]MH_SAM_APDU [16:27: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 2C C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 C9 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 99 00 00 00 00 07 04 06 00 B4 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C E2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 01 30 2B [16:27:24]Write to MH i2c: E2 02 01 4B 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 2C C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 C9 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 99 00 00 00 00 07 04 06 00 B4 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C E2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 01 30 2B 00 00 CC [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [16:27:24]RAPDU: 90 00 [16:27:24]wFMCommunicate OK [16:27:24]wFMCommunicate request_size=7 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 0D 02 02 02 CA F8 [16:27:24]Write to MH i2c: E2 0A 00 4C 16 80 0D 02 02 02 00 CA F8 00 00 A2 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 03 00 4C 16 00 90 00 D6 [16:27:24]RAPDU: 90 00 [16:27:24]wFMCommunicate OK [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 0D 03 02 [16:27:24]Write to MH i2c: E2 08 00 4D 16 80 0D 03 02 00 00 00 00 DE [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0B 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0B 00 4D 16 00 9F 17 18 0F 18 27 1D 00 90 00 18 [16:27:24]RAPDU: 9F 17 18 0F 18 27 1D 00 90 00 [16:27:24]wFMCommunicate OK [16:27:24]SAM_PROTO_SignData done [16:27:24]FM_MakeSignedData done [16:27:24]CreateOFDProtocolMessage [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 11 00 00 [16:27:24]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 17 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [16:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:27:24]wFMCommunicate OK [16:27:24]CreateOFDProtocolMessage done [16:27:24]OFDSenderStorePacket 67292 [16:27:24]StoreOFDPacket docnum=67292 [16:27:24]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 3E 72 04 01 20 39 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 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 C9 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 99 00 00 00 00 07 04 06 00 B4 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C E2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 01 30 2B CA F8 9F 17 18 0F 18 27 1D 00 [16:27:24]CheckFolder [16:27:24]dirname=/storage/ofd_packets [16:27:24]CheckFolder done [16:27:24]ProducePacketName [16:27:24]name=ofd_packets/00067292 [16:27:24]NVStorageSaveData ofd_packets/00067292 [16:27:24]File name is /storage/ofd_packets/00067292 [16:27:24]Write 298 bytes [16:27:24]NVStorageSaveData done [16:27:24]OFDSenderStorePacket done [16:27:24]KKMCreateOFDPacket done [16:27:24]NVStorageSaveData kkm_last_timestamp [16:27:24]File name is /storage/kkm_last_timestamp [16:27:24]Write 4 bytes [16:27:24]NVStorageSaveData done [16:27:24]ExternCall_PrintAddStr [16:27:24]wPrintStart [16:27:24]Write to MH i2c: 01 00 00 4F 16 65 [16:27:24]OFD Sender: Processing packet 67292 [packets to send 35, broken 34] [16:27:24]ProducePacketName [16:27:24]name=ofd_packets/00067292 [16:27:24]OFD Sender: To server: pG, [16:27:24]CommunicateWithHost lk.salyk.kg:30040 [16:27:24]ConnectInit lk.salyk.kg [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: 01 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: 01 07 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: 01 07 00 4F 16 00 00 00 00 00 FF 0F 7A [16:27:24]RasterBufferAndPrint [16:27:24]line Счет N : (1)507276 [16:27:24]line ИНН: 02508201610067 [16:27:24]line Контрольно-Кассовый Чек [16:27:24]line ПРОДАЖА [16:27:24]line ТРК (МРК, ГНК) : 31 [16:27:24]line Товар: 2710194210 [16:27:24]line ДТ-К-5 [16:27:24]line 50.220 * 73.70 [16:27:24]line = 3701.21 [16:27:24]line НДС 12% НСП 1% [16:27:24]line > о реализуемом товаре [16:27:24]line ОКРУГЛЕНИЕ: -0.21 [16:27:24]line ИТОГО: 3701.00 [16:27:24]line Внесено: 4000.00 [16:27:24]line СДАЧА: 299.00 [16:27:24]line НСП 1% : 32.75 [16:27:24]line НДС 12% : 393.05 [16:27:24]line Наличными: 3701.00 [16:27:24]line Безнал.: 0.00 [16:27:24]line Место: АЗС № 91 "Партнер Нефть" [16:27:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:27:24]line СНО: Общий режим [16:27:24]line Чек 110 15.05.2024 16:27 [16:27:24]line Смена: 356 ФФД: 1.0 [16:27:24]line ЗНМ: 0300000119 [16:27:24]line РНМ: 0000000000091845 [16:27:24]line Версия ККМ: 001 [16:27:25]line [16:27:25]line Дисконтная программа [16:27:25]line ДТ [16:27:25]line номер 91 [16:27:25]line сэкономлено 50.22 сом [16:27:25]line ФМ: 0000000000871829 [16:27:25]line ФД: 67292 [16:27:25]line ФПД: 150638196148984 [16:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T162724&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67292&fm=150638196148984&tin=02508201610067®Number=0000000000091845&sum=370100 [16:27:25]Connected sock=11 [16:27: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 3E 72 04 01 20 39 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 C4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 C9 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 99 00 00 00 00 07 04 06 00 B4 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6C E2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 01 30 2B CA F8 9F 17 18 0F 18 27 1D 00 [16:27:25]written 0, free lines is 4095 [16:27: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 62 F5 47 00 A9 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 DC 06 01 00 F4 03 04 00 49 8A 44 66 B6 04 01 00 00 2F 7A 2B EC 8B 18 90 50 [16:27:25]CommunicateWithHost err = 0 [16:27:25]CheckOFDResponse [16:27:25]1017 (14) - 77093643461234 [16:27:25]1041 (16) - 0000000000871829 [16:27:25]1040 (4) - 67292 [16:27:25]1012 (4) - 15.05.2024 10:11 [16:27:25]1206 (1) - 0 [16:27:25]OFD Sender: Remove packet 67292 [16:27:25]ProducePacketName [16:27:25]name=ofd_packets/00067292 [16:27:25]NVStorageDeleteData [16:27:25]Write to MH i2c: 01 00 00 7E 16 94 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 6E 0C 15 [16:27:25]RasterBufferAndPrint [16:27:25]line [16:27:25]line [16:27:25]line [16:27:25]line [16:27:25]line [16:27:25]written 0, free lines is 3187 [16:27:25]MH_Cut [16:27:25]Write to MH i2c: D1 01 00 85 16 01 6D [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: D1 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: D1 01 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: D1 01 00 85 16 00 6C [16:27:25]Write to MH i2c: 01 00 00 86 16 9C [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]OFD Sender: No OFD packet to send [16:27:26]*** Cut start [16:27:26]*** Purtial cut [16:27:26]*** CUTSNS_PIN = 0 [16:27:26]*** Stage 1: CUTSNS_PIN = 1 [16:27:28]Read from MH i2c: 01 [16:27:28]MH_I2C_Read... [16:27:28]*** Stop cut motor [16:27:28]*** Cut end [16:27:28]Read from MH i2c: 01 07 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [16:27:28]process_action close_receipt done [16:27:28]requested_data is exist [16:27:28]produce_requested_data [16:27:28]requested_item fm.sn is exist - process it [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 11 00 00 [16:27:28]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:28]Read from MH i2c: E2 17 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [16:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:27:28]wFMCommunicate OK [16:27:28]requested_item fd.num is exist - process it [16:27:28]SAM_PROTO_GetFieldsCounters [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 00 00 [16:27:28]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 88 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 DC 06 01 00 0E 04 04 00 64 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 D2 [16:27:28]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 06 01 00 0E 04 04 00 64 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 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetFieldsCounters done [16:27:28]requested_item shift.num is exist - process it [16:27:28]requested_item shift.opened is exist - process it [16:27:28]req_shift_opened [16:27:28]FM_GetShiftState [16:27:28]SAM_PROTO_GetShiftState [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 01 00 [16:27:28]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [16:27:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetShiftState done [16:27:28]FM_GetShiftState done [16:27:28]req_shift_opened done [16:27:28]requested_item shift.open_date is exist - process it [16:27:28]req_shift_open_date [16:27:28]req_shift_open_date done [16:27:28]produce_requested_data done [16:27:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67292,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:27:28]process_action_free close_receipt [16:27:28]json_value_free [16:27:28]json_value_free done [16:27:28]process_json_proto returns [16:27:28]Send response to host [16:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67292,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:27:28]free response buf [16:27:28]execute_script done [16:27:28]execute_script returns [16:27:28]free content buf [16:27:28]Sock 9.Close socket [16:27:28]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:21]accept exits with 7 [16:30:21]New connection [16:30:21]New thread 3067174244 created [16:30:21]Thread 3067030884 joined [16:30:21]Waiting for new connection... [16:30:21] Sock 7.Parse request [16:30:21]Sock 7.Check first char [16:30:21]Sock 7.First char is OK [16:30:21]request: POST /json_proto HTTP/1.0 [16:30:21]Method: POST [16:30:21]URL: /json_proto [16:30:21]Method is POST - this is cgi request [16:30:21]url: /json_proto [16:30:21]query_string will be loaded in cgi processing [16:30:21]execute_cgi json_proto POST (null) [16:30:21]execute_cgi path=json_proto method=POST [16:30:21]POST find Content-Length [16:30:21]Host: 172.17.41.195:8080 [16:30:21]Content-Length: 800 [16:30:21]Content-Type: application/json [16:30:21] [16:30:21]POST finish read [16:30:21]Found Content-Length = 800 [16:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507277", "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" ] } } [16:30:21]execute_script... [16:30: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)507277", "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" ] } } [16:30:21]POST & json_proto [16:30:21]process_json_proto [16:30:21]json parsed OK: [16:30:21]protocol is kg_v1.0 [16:30:21]action value=close_receipt [16:30:21]process_action close_receipt [16:30:21]cmd_close_receipt [16:30:21]MH_GetDate [16:30:21]Write to MH i2c: F0 00 00 8A 16 8F [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 09 00 [16:30:21]MH_I2C_Read... [16:30:21]Read from MH i2c: F0 09 00 8A 16 00 1F E3 44 66 FC 21 6F 64 34 [16:30:21]GetLastDocTimeStamp 1715790444 [16:30:21]current date 1715790623 [16:30:21]FM_GetShiftState [16:30:21]SAM_PROTO_GetShiftState [16:30:21]wFMCommunicate request_size=4 [16:30:21]MH_SAM_APDU [16:30:21]CAPDU: 80 13 01 00 [16:30:21]Write to MH i2c: E2 08 00 8B 16 80 13 01 00 00 00 00 00 1E [16:30:21]Write i2c OK [16:30:21]MH_I2C_Read... [16:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:22]Read from MH i2c: E2 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0E 00 [16:30:22]MH_I2C_Read... [16:30:22]Read from MH i2c: E2 0E 00 8B 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [16:30:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:30:22]wFMCommunicate OK [16:30:22]SAM_PROTO_GetShiftState done [16:30:22]FM_GetShiftState done [16:30:22]opened in 1715732471 [16:30:22]opened+sec_in_day 1715818871 [16:30:22]quantity*price = 50033 [16:30:22]sum+1 = 50034 [16:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 111 15.05.2024 16:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67293 ФПД: 113490380248130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163023&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67293&fm=113490380248130&tin=02508201610067®Number=0000000000091845&sum=50033 [16:30:23]StoreToDocumentArchive [16:30:23]shift 356 fd 67293 [16:30:23]save to /storage/0356/doc_00067293 [16:30:23]save last doc name /storage/0356/doc_00067293 to /storage/kkm_last_doc_name [16:30:23]save OK [16:30:23]Clear old archive folders... [16:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:23]tlvbuf is 00B5DB90 [16:30:23]SAM_PROTO_ClearQueue [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 09 00 00 [16:30:23]Write to MH i2c: E2 08 00 98 16 80 09 00 00 00 00 00 00 20 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]SAM_PROTO_ClearQueue done [16:30:23]KKMCreateOFDPacket [16:30:23]OFDProtocolAddRootSTLVToBuf [16:30:23]FM_MakeSignedData [16:30:23]FM_MakeSignedData [16:30:23]SAM_PROTO_SignData [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 01 02 [16:30:23]Write to MH i2c: E2 08 00 99 16 80 0D 01 02 00 00 00 00 28 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=255 [16:30:23]MH_SAM_APDU [16:30: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 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 6F 00 00 00 F4 03 04 00 1F E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 67 [16:30:23]Write to MH i2c: E2 02 01 9A 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 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 6F 00 00 00 F4 03 04 00 1F E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 67 00 00 C0 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=10 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 02 02 05 38 09 CC D4 42 [16:30:23]Write to MH i2c: E2 0D 00 9B 16 80 0D 02 02 05 00 38 09 CC D4 42 00 00 58 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [16:30:23]RAPDU: 90 00 [16:30:23]wFMCommunicate OK [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 0D 03 02 [16:30:23]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 0B 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 0B 00 9C 16 00 93 53 E0 F9 07 FD 59 8A 90 00 D4 [16:30:23]RAPDU: 93 53 E0 F9 07 FD 59 8A 90 00 [16:30:23]wFMCommunicate OK [16:30:23]SAM_PROTO_SignData done [16:30:23]FM_MakeSignedData done [16:30:23]CreateOFDProtocolMessage [16:30:23]wFMCommunicate request_size=4 [16:30:23]MH_SAM_APDU [16:30:23]CAPDU: 80 11 00 00 [16:30:23]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:23]Read from MH i2c: E2 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 17 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [16:30:23]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:23]wFMCommunicate OK [16:30:23]CreateOFDProtocolMessage done [16:30:23]OFDSenderStorePacket 67293 [16:30:23]StoreOFDPacket docnum=67293 [16:30: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 DB 9D 07 01 9D 23 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 6F 00 00 00 F4 03 04 00 1F E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 67 38 09 CC D4 42 93 53 E0 F9 07 FD 59 8A [16:30:23]CheckFolder [16:30:23]dirname=/storage/ofd_packets [16:30:23]CheckFolder done [16:30:23]ProducePacketName [16:30:23]name=ofd_packets/00067293 [16:30:23]NVStorageSaveData ofd_packets/00067293 [16:30:23]File name is /storage/ofd_packets/00067293 [16:30:23]Write 301 bytes [16:30:23]NVStorageSaveData done [16:30:23]OFDSenderStorePacket done [16:30:23]KKMCreateOFDPacket done [16:30:23]NVStorageSaveData kkm_last_timestamp [16:30:23]File name is /storage/kkm_last_timestamp [16:30:23]Write 4 bytes [16:30:23]NVStorageSaveData done [16:30:23]ExternCall_PrintAddStr [16:30:23]wPrintStart [16:30:23]Write to MH i2c: 01 00 00 9E 16 B4 [16:30:23]Write i2c OK [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 [16:30:23]MH_I2C_Read... [16:30:23]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [16:30:23]RasterBufferAndPrint [16:30:23]line Счет N : (1)507277 [16:30:23]line ИНН: 02508201610067 [16:30:23]line Контрольно-Кассовый Чек [16:30:23]line ПРОДАЖА [16:30:23]line ТРК (МРК, ГНК) : 23 [16:30:23]line Товар: 2710124130 [16:30:23]line Аи-92-К-5 [16:30:23]line 7.490 * 66.80 [16:30:23]line = 500.33 [16:30:23]line НДС 12% НСП 1% [16:30:23]line > о реализуемом товаре [16:30:23]line ИТОГО: 500.33 [16:30:23]line НСП 1% : 4.43 [16:30:23]line НДС 12% : 53.13 [16:30:23]line Наличными: 0.00 [16:30:23]line Безнал.: 500.33 [16:30:23]line Место: АЗС № 91 "Партнер Нефть" [16:30:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:30:23]line СНО: Общий режим [16:30:23]line Чек 111 15.05.2024 16:30 [16:30:23]line Смена: 356 ФФД: 1.0 [16:30:23]line ЗНМ: 0300000119 [16:30:23]line РНМ: 0000000000091845 [16:30:23]line Версия ККМ: 001 [16:30:23]line Платежная система: O! деньги [16:30:23]line ФМ: 0000000000871829 [16:30:23]line ФД: 67293 [16:30:23]line ФПД: 113490380248130 [16:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163023&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67293&fm=113490380248130&tin=02508201610067®Number=0000000000091845&sum=50033 [16:30:23]written 0, free lines is 4095 [16:30:23]OFD Sender: Processing packet 67293 [packets to send 35, broken 34] [16:30:23]ProducePacketName [16:30:23]name=ofd_packets/00067293 [16:30:23]OFD Sender: To server: pG, [16:30:23]CommunicateWithHost lk.salyk.kg:30040 [16:30:23]ConnectInit lk.salyk.kg [16:30:23]Connected sock=10 [16:30: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 DB 9D 07 01 9D 23 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 6F 00 00 00 F4 03 04 00 1F E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 67 38 09 CC D4 42 93 53 E0 F9 07 FD 59 8A [16:30: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 07 0F 47 00 D7 E7 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 06 01 00 F4 03 04 00 FC 8A 44 66 B6 04 01 00 00 C9 D4 FB 78 2E 99 C7 20 [16:30:24]CommunicateWithHost err = 0 [16:30:24]CheckOFDResponse [16:30:24]1017 (14) - 77093643461234 [16:30:24]1041 (16) - 0000000000871829 [16:30:24]1040 (4) - 67293 [16:30:24]1012 (4) - 15.05.2024 10:14 [16:30:24]1206 (1) - 0 [16:30:24]OFD Sender: Remove packet 67293 [16:30:24]ProducePacketName [16:30:24]name=ofd_packets/00067293 [16:30:24]NVStorageDeleteData [16:30:24]Write to MH i2c: 01 00 00 C7 16 DD [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 07 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 EB 0C DB [16:30:24]RasterBufferAndPrint [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]line [16:30:24]written 0, free lines is 3313 [16:30:24]MH_Cut [16:30:24]Write to MH i2c: D1 01 00 CE 16 01 B6 [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 01 00 [16:30:24]MH_I2C_Read... [16:30:24]Read from MH i2c: D1 01 00 CE 16 00 B5 [16:30:24]Write to MH i2c: 01 00 00 CF 16 E5 [16:30:24]Write i2c OK [16:30:24]MH_I2C_Read... [16:30:24]OFD Sender: No OFD packet to send [16:30:24]*** Cut start [16:30:24]*** Purtial cut [16:30:24]*** Stage 1: CUTSNS_PIN = 1 [16:30:25]Read from MH i2c: 01 [16:30:25]MH_I2C_Read... [16:30:25]*** Stop cut motor [16:30:25]*** Cut end [16:30:25]Read from MH i2c: 01 07 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [16:30:25]process_action close_receipt done [16:30:25]requested_data is exist [16:30:25]produce_requested_data [16:30:25]requested_item fm.sn is exist - process it [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 11 00 00 [16:30:25]Write to MH i2c: E2 08 00 D0 16 80 11 00 00 00 00 00 00 60 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 17 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 17 00 D0 16 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:25]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:25]wFMCommunicate OK [16:30:25]requested_item fd.num is exist - process it [16:30:25]SAM_PROTO_GetFieldsCounters [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 13 00 00 [16:30:25]Write to MH i2c: E2 08 00 D1 16 80 13 00 00 00 00 00 00 63 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 62 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 62 00 D1 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 DD 06 01 00 0E 04 04 00 64 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 1F [16:30: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 DD 06 01 00 0E 04 04 00 64 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 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_GetFieldsCounters done [16:30:25]requested_item shift.num is exist - process it [16:30:25]requested_item shift.opened is exist - process it [16:30:25]req_shift_opened [16:30:25]FM_GetShiftState [16:30:25]SAM_PROTO_GetShiftState [16:30:25]wFMCommunicate request_size=4 [16:30:25]MH_SAM_APDU [16:30:25]CAPDU: 80 13 01 00 [16:30:25]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [16:30:25]Write i2c OK [16:30:25]MH_I2C_Read... [16:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:25]Read from MH i2c: E2 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0E 00 [16:30:25]MH_I2C_Read... [16:30:25]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 10 [16:30:25]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:30:25]wFMCommunicate OK [16:30:25]SAM_PROTO_GetShiftState done [16:30:25]FM_GetShiftState done [16:30:25]req_shift_opened done [16:30:25]requested_item shift.open_date is exist - process it [16:30:25]req_shift_open_date [16:30:25]req_shift_open_date done [16:30:25]produce_requested_data done [16:30:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67293,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:30:25]process_action_free close_receipt [16:30:25]json_value_free [16:30:25]json_value_free done [16:30:25]process_json_proto returns [16:30:25]Send response to host [16:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67293,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:30:25]free response buf [16:30:25]execute_script done [16:30:25]execute_script returns [16:30:25]free content buf [16:30:25]Sock 7.Close socket [16:30:25]Sock 7.Thread stoped [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]accept exits with 9 [16:32:34]New connection [16:32:34]New thread 3067030884 created [16:32:34]Thread 3067174244 joined [16:32:34]Waiting for new connection... [16:32:34] Sock 9.Parse request [16:32:34]Sock 9.Check first char [16:32:34]Sock 9.First char is OK [16:32:34]request: POST /json_proto HTTP/1.0 [16:32:34]Method: POST [16:32:34]URL: /json_proto [16:32:34]Method is POST - this is cgi request [16:32:34]url: /json_proto [16:32:34]query_string will be loaded in cgi processing [16:32:34]execute_cgi json_proto POST (null) [16:32:34]execute_cgi path=json_proto method=POST [16:32:34]POST find Content-Length [16:32:34]Host: 172.17.41.195:8080 [16:32:34]Content-Length: 803 [16:32:34]Content-Type: application/json [16:32:34] [16:32:34]POST finish read [16:32:34]Found Content-Length = 803 [16:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507279", "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" ] } } [16:32:34]execute_script... [16:32: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)507279", "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" ] } } [16:32:34]POST & json_proto [16:32:34]process_json_proto [16:32:34]json parsed OK: [16:32:34]protocol is kg_v1.0 [16:32:34]action value=close_receipt [16:32:34]process_action close_receipt [16:32:34]cmd_close_receipt [16:32:34]MH_GetDate [16:32:34]Write to MH i2c: F0 00 00 D3 16 D8 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: F0 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: F0 09 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: F0 09 00 D3 16 00 A3 E3 44 66 FC 21 6F 64 01 [16:32:34]GetLastDocTimeStamp 1715790623 [16:32:34]current date 1715790755 [16:32:34]FM_GetShiftState [16:32:34]SAM_PROTO_GetShiftState [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 13 01 00 [16:32:34]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0E 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [16:32:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:32:34]wFMCommunicate OK [16:32:34]SAM_PROTO_GetShiftState done [16:32:34]FM_GetShiftState done [16:32:34]opened in 1715732471 [16:32:34]opened+sec_in_day 1715818871 [16:32:34]quantity*price = 100066 [16:32:34]sum+1 = 100067 [16:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 112 15.05.2024 16:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67294 ФПД: 42879182449274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163235&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67294&fm=42879182449274&tin=02508201610067®Number=0000000000091845&sum=100066 [16:32:35]StoreToDocumentArchive [16:32:35]shift 356 fd 67294 [16:32:35]save to /storage/0356/doc_00067294 [16:32:35]save last doc name /storage/0356/doc_00067294 to /storage/kkm_last_doc_name [16:32:35]save OK [16:32:35]Clear old archive folders... [16:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:35]tlvbuf is 00B75410 [16:32:35]SAM_PROTO_ClearQueue [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 09 00 00 [16:32:35]Write to MH i2c: E2 08 00 E1 16 80 09 00 00 00 00 00 00 69 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [16:32:35]RAPDU: 90 00 [16:32:35]wFMCommunicate OK [16:32:35]SAM_PROTO_ClearQueue done [16:32:35]KKMCreateOFDPacket [16:32:35]OFDProtocolAddRootSTLVToBuf [16:32:35]FM_MakeSignedData [16:32:35]FM_MakeSignedData [16:32:35]SAM_PROTO_SignData [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 0D 01 02 [16:32:35]Write to MH i2c: E2 08 00 E2 16 80 0D 01 02 00 00 00 00 71 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [16:32:35]RAPDU: 90 00 [16:32:35]wFMCommunicate OK [16:32:35]wFMCommunicate request_size=255 [16:32:35]MH_SAM_APDU [16:32:35]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 70 00 00 00 F4 03 04 00 A3 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 26 [16:32:35]Write to MH i2c: E2 02 01 E3 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 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 70 00 00 00 F4 03 04 00 A3 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 26 00 00 DE [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [16:32:35]RAPDU: 90 00 [16:32:35]wFMCommunicate OK [16:32:35]wFMCommunicate request_size=10 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 0D 02 02 05 FF 96 70 2A 7A [16:32:35]Write to MH i2c: E2 0D 00 E4 16 80 0D 02 02 05 00 FF 96 70 2A 7A 00 00 27 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [16:32:35]RAPDU: 90 00 [16:32:35]wFMCommunicate OK [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 0D 03 02 [16:32:35]Write to MH i2c: E2 08 00 E5 16 80 0D 03 02 00 00 00 00 76 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 0B 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 0B 00 E5 16 00 B4 11 8E 88 47 14 8F C7 90 00 03 [16:32:35]RAPDU: B4 11 8E 88 47 14 8F C7 90 00 [16:32:35]wFMCommunicate OK [16:32:35]SAM_PROTO_SignData done [16:32:35]FM_MakeSignedData done [16:32:35]CreateOFDProtocolMessage [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 11 00 00 [16:32:35]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 17 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 17 00 E6 16 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:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:32:35]wFMCommunicate OK [16:32:35]CreateOFDProtocolMessage done [16:32:35]OFDSenderStorePacket 67294 [16:32:35]StoreOFDPacket docnum=67294 [16:32: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 F2 03 07 01 D1 56 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 70 00 00 00 F4 03 04 00 A3 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 26 FF 96 70 2A 7A B4 11 8E 88 47 14 8F C7 [16:32:35]CheckFolder [16:32:35]dirname=/storage/ofd_packets [16:32:35]CheckFolder done [16:32:35]ProducePacketName [16:32:35]name=ofd_packets/00067294 [16:32:35]NVStorageSaveData ofd_packets/00067294 [16:32:35]File name is /storage/ofd_packets/00067294 [16:32:35]Write 301 bytes [16:32:35]NVStorageSaveData done [16:32:35]OFDSenderStorePacket done [16:32:35]KKMCreateOFDPacket done [16:32:35]NVStorageSaveData kkm_last_timestamp [16:32:35]File name is /storage/kkm_last_timestamp [16:32:35]Write 4 bytes [16:32:35]NVStorageSaveData done [16:32:35]ExternCall_PrintAddStr [16:32:35]wPrintStart [16:32:35]Write to MH i2c: 01 00 00 E7 16 FD [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 07 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [16:32:35]RasterBufferAndPrint [16:32:35]line Счет N : (1)507279 [16:32:35]line ИНН: 02508201610067 [16:32:35]line Контрольно-Кассовый Чек [16:32:35]line ПРОДАЖА [16:32:35]line ТРК (МРК, ГНК) : 43 [16:32:35]line Товар: 2710124130 [16:32:35]line Аи-92-К-5 [16:32:35]line 14.980 * 66.80 [16:32:35]line = 1000.66 [16:32:35]line НДС 12% НСП 1% [16:32:35]line > о реализуемом товаре [16:32:35]line ИТОГО: 1000.66 [16:32:35]line НСП 1% : 8.85 [16:32:35]line НДС 12% : 106.26 [16:32:35]line Наличными: 0.00 [16:32:35]line Безнал.: 1000.66 [16:32:35]line Место: АЗС № 91 "Партнер Нефть" [16:32:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:32:35]line СНО: Общий режим [16:32:35]line Чек 112 15.05.2024 16:32 [16:32:35]line Смена: 356 ФФД: 1.0 [16:32:35]line ЗНМ: 0300000119 [16:32:35]line РНМ: 0000000000091845 [16:32:35]line Версия ККМ: 001 [16:32:35]line Платежная система: O! деньги [16:32:35]line ФМ: 0000000000871829 [16:32:35]line ФД: 67294 [16:32:35]line ФПД: 42879182449274 [16:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163235&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67294&fm=42879182449274&tin=02508201610067®Number=0000000000091845&sum=100066 [16:32:35]written 0, free lines is 4095 [16:32:35]OFD Sender: Processing packet 67294 [packets to send 35, broken 34] [16:32:35]ProducePacketName [16:32:35]name=ofd_packets/00067294 [16:32:36]OFD Sender: To server: pG, [16:32:36]CommunicateWithHost lk.salyk.kg:30040 [16:32:36]ConnectInit lk.salyk.kg [16:32:36]Connected sock=10 [16:32: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 0F 01 00 00 F2 03 07 01 D1 56 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 70 00 00 00 F4 03 04 00 A3 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 26 FF 96 70 2A 7A B4 11 8E 88 47 14 8F C7 [16:32:36]Write to MH i2c: 01 00 00 10 17 27 [16:32:36]Write i2c OK [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: 01 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: 01 07 00 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: 01 07 00 10 17 00 00 00 00 00 E6 0C 20 [16:32:36]RasterBufferAndPrint [16:32:36]line [16:32:36]line [16:32:36]line [16:32:36]line [16:32:36]line [16:32:36]written 0, free lines is 3308 [16:32:36]MH_Cut [16:32:36]Write to MH i2c: D1 01 00 17 17 01 00 [16:32:36]Write i2c OK [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: D1 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: D1 01 00 [16:32:36]MH_I2C_Read... [16:32:36]Read from MH i2c: D1 01 00 17 17 00 FF [16:32:36]Write to MH i2c: 01 00 00 18 17 2F [16:32:36]Write i2c OK [16:32:36]MH_I2C_Read... [16:32: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 D8 C1 47 00 07 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 DE 06 01 00 F4 03 04 00 80 8B 44 66 B6 04 01 00 00 25 54 4B A8 84 4F 4A EF [16:32:36]CommunicateWithHost err = 0 [16:32:36]CheckOFDResponse [16:32:36]1017 (14) - 77093643461234 [16:32:36]1041 (16) - 0000000000871829 [16:32:36]1040 (4) - 67294 [16:32:36]1012 (4) - 15.05.2024 10:16 [16:32:36]1206 (1) - 0 [16:32:36]OFD Sender: Remove packet 67294 [16:32:36]ProducePacketName [16:32:36]name=ofd_packets/00067294 [16:32:36]NVStorageDeleteData [16:32:37]OFD Sender: No OFD packet to send [16:32:37]*** Cut start [16:32:37]*** Purtial cut [16:32:37]*** CUTSNS_PIN = 0 [16:32:37]*** Stage 1: CUTSNS_PIN = 1 [16:32:39]Read from MH i2c: 01 [16:32:39]MH_I2C_Read... [16:32:39]*** Stop cut motor [16:32:39]*** Cut end [16:32:39]Read from MH i2c: 01 07 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: 01 07 00 18 17 00 00 00 00 00 FF 0F 44 [16:32:39]process_action close_receipt done [16:32:39]requested_data is exist [16:32:39]produce_requested_data [16:32:39]requested_item fm.sn is exist - process it [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 11 00 00 [16:32:39]Write to MH i2c: E2 08 00 19 17 80 11 00 00 00 00 00 00 AA [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 17 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 17 00 19 17 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:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:32:39]wFMCommunicate OK [16:32:39]requested_item fd.num is exist - process it [16:32:39]SAM_PROTO_GetFieldsCounters [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 13 00 00 [16:32:39]Write to MH i2c: E2 08 00 1A 17 80 13 00 00 00 00 00 00 AD [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 62 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 62 00 1A 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 DE 06 01 00 0E 04 04 00 64 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 6D [16:32: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 DE 06 01 00 0E 04 04 00 64 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 [16:32:39]wFMCommunicate OK [16:32:39]SAM_PROTO_GetFieldsCounters done [16:32:39]requested_item shift.num is exist - process it [16:32:39]requested_item shift.opened is exist - process it [16:32:39]req_shift_opened [16:32:39]FM_GetShiftState [16:32:39]SAM_PROTO_GetShiftState [16:32:39]wFMCommunicate request_size=4 [16:32:39]MH_SAM_APDU [16:32:39]CAPDU: 80 13 01 00 [16:32:39]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [16:32:39]Write i2c OK [16:32:39]MH_I2C_Read... [16:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:39]Read from MH i2c: E2 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 0E 00 [16:32:39]MH_I2C_Read... [16:32:39]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5A [16:32:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:32:39]wFMCommunicate OK [16:32:39]SAM_PROTO_GetShiftState done [16:32:39]FM_GetShiftState done [16:32:39]req_shift_opened done [16:32:39]requested_item shift.open_date is exist - process it [16:32:39]req_shift_open_date [16:32:39]req_shift_open_date done [16:32:39]produce_requested_data done [16:32:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67294,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:32:39]process_action_free close_receipt [16:32:39]json_value_free [16:32:39]json_value_free done [16:32:39]process_json_proto returns [16:32:39]Send response to host [16:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67294,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:32:39]free response buf [16:32:39]execute_script done [16:32:39]execute_script returns [16:32:39]free content buf [16:32:39]Sock 9.Close socket [16:32:39]Sock 9.Thread stoped [16:32:42]OFD Sender: No OFD packet to send [16:32:46]accept exits with 7 [16:32:46]New connection [16:32:46]New thread 3067174244 created [16:32:46]Thread 3067030884 joined [16:32:46]Waiting for new connection... [16:32:46] Sock 7.Parse request [16:32:46]Sock 7.Check first char [16:32:46]Sock 7.First char is OK [16:32:46]request: POST /json_proto HTTP/1.0 [16:32:46]Method: POST [16:32:46]URL: /json_proto [16:32:46]Method is POST - this is cgi request [16:32:46]url: /json_proto [16:32:46]query_string will be loaded in cgi processing [16:32:46]execute_cgi json_proto POST (null) [16:32:46]execute_cgi path=json_proto method=POST [16:32:46]POST find Content-Length [16:32:46]Host: 172.17.41.195:8080 [16:32:46]Content-Length: 800 [16:32:46]Content-Type: application/json [16:32:46] [16:32:46]POST finish read [16:32:46]Found Content-Length = 800 [16:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507278", "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" : 54.170, "sum" : 4046.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" : 4046.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:46]execute_script... [16:32: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)507278", "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" : 54.170, "sum" : 4046.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" : 4046.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:46]POST & json_proto [16:32:46]process_json_proto [16:32:46]json parsed OK: [16:32:46]protocol is kg_v1.0 [16:32:46]action value=close_receipt [16:32:46]process_action close_receipt [16:32:46]cmd_close_receipt [16:32:46]MH_GetDate [16:32:46]Write to MH i2c: F0 00 00 1C 17 22 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: F0 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: F0 09 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: F0 09 00 1C 17 00 B0 E3 44 66 FC 21 6F 64 58 [16:32:46]GetLastDocTimeStamp 1715790755 [16:32:46]current date 1715790768 [16:32:46]FM_GetShiftState [16:32:46]SAM_PROTO_GetShiftState [16:32:46]wFMCommunicate request_size=4 [16:32:46]MH_SAM_APDU [16:32:46]CAPDU: 80 13 01 00 [16:32:46]Write to MH i2c: E2 08 00 1D 17 80 13 01 00 00 00 00 00 B1 [16:32:46]Write i2c OK [16:32:46]MH_I2C_Read... [16:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:46]Read from MH i2c: E2 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 0E 00 [16:32:46]MH_I2C_Read... [16:32:46]Read from MH i2c: E2 0E 00 1D 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5C [16:32:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:32:46]wFMCommunicate OK [16:32:46]SAM_PROTO_GetShiftState done [16:32:46]FM_GetShiftState done [16:32:46]opened in 1715732471 [16:32:46]opened+sec_in_day 1715818871 [16:32:46]quantity*price = 404649 [16:32:46]sum+1 = 404651 [16:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4046.50 НСП 1% : 35.81 НДС 12% : 429.72 Наличными: 0.00 Безнал.: 4046.50 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 113 15.05.2024 16:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67295 ФПД: 279580444362530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163248&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67295&fm=279580444362530&tin=02508201610067®Number=0000000000091845&sum=404650 [16:32:48]StoreToDocumentArchive [16:32:48]shift 356 fd 67295 [16:32:48]save to /storage/0356/doc_00067295 [16:32:48]save last doc name /storage/0356/doc_00067295 to /storage/kkm_last_doc_name [16:32:48]save OK [16:32:48]Clear old archive folders... [16:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:32:48]tlvbuf is 00B1CF80 [16:32:48]SAM_PROTO_ClearQueue [16:32:48]wFMCommunicate request_size=4 [16:32:48]MH_SAM_APDU [16:32:48]CAPDU: 80 09 00 00 [16:32:48]Write to MH i2c: E2 08 00 2A 17 80 09 00 00 00 00 00 00 B3 [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:48]Read from MH i2c: E2 03 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [16:32:48]RAPDU: 90 00 [16:32:48]wFMCommunicate OK [16:32:48]SAM_PROTO_ClearQueue done [16:32:48]KKMCreateOFDPacket [16:32:48]OFDProtocolAddRootSTLVToBuf [16:32:48]FM_MakeSignedData [16:32:48]FM_MakeSignedData [16:32:48]SAM_PROTO_SignData [16:32:48]wFMCommunicate request_size=4 [16:32:48]MH_SAM_APDU [16:32:48]CAPDU: 80 0D 01 02 [16:32:48]Write to MH i2c: E2 08 00 2B 17 80 0D 01 02 00 00 00 00 BB [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [16:32:48]RAPDU: 90 00 [16:32:48]wFMCommunicate OK [16:32:48]wFMCommunicate request_size=255 [16:32:48]MH_SAM_APDU [16:32:48]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 9A D3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 AA 2C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 2C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 2C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B0 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FE 46 E5 12 [16:32:48]Write to MH i2c: E2 02 01 2C 17 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 9A D3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 AA 2C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 2C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 2C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B0 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FE 46 E5 12 00 00 2A [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 2C 17 00 90 00 B7 [16:32:48]RAPDU: 90 00 [16:32:48]wFMCommunicate OK [16:32:48]wFMCommunicate request_size=7 [16:32:48]MH_SAM_APDU [16:32:48]CAPDU: 80 0D 02 02 02 87 22 [16:32:48]Write to MH i2c: E2 0A 00 2D 17 80 0D 02 02 02 00 87 22 00 00 6B [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 03 00 2D 17 00 90 00 B8 [16:32:48]RAPDU: 90 00 [16:32:48]wFMCommunicate OK [16:32:48]wFMCommunicate request_size=4 [16:32:48]MH_SAM_APDU [16:32:48]CAPDU: 80 0D 03 02 [16:32:48]Write to MH i2c: E2 08 00 2E 17 80 0D 03 02 00 00 00 00 C0 [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 0B 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 0B 00 2E 17 00 9D 61 AF F3 90 11 1F 89 90 00 AA [16:32:48]RAPDU: 9D 61 AF F3 90 11 1F 89 90 00 [16:32:48]wFMCommunicate OK [16:32:48]SAM_PROTO_SignData done [16:32:48]FM_MakeSignedData done [16:32:48]CreateOFDProtocolMessage [16:32:48]wFMCommunicate request_size=4 [16:32:48]MH_SAM_APDU [16:32:48]CAPDU: 80 11 00 00 [16:32:48]Write to MH i2c: E2 08 00 2F 17 80 11 00 00 00 00 00 00 C0 [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:48]Read from MH i2c: E2 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 17 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: E2 17 00 2F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [16:32: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:32:48]wFMCommunicate OK [16:32:48]CreateOFDProtocolMessage done [16:32:48]OFDSenderStorePacket 67295 [16:32:48]StoreOFDPacket docnum=67295 [16:32: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 3A A8 04 01 28 B6 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 9A D3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 AA 2C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 2C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 2C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B0 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FE 46 E5 12 87 22 9D 61 AF F3 90 11 1F 89 [16:32:48]CheckFolder [16:32:48]dirname=/storage/ofd_packets [16:32:48]CheckFolder done [16:32:48]ProducePacketName [16:32:48]name=ofd_packets/00067295 [16:32:48]NVStorageSaveData ofd_packets/00067295 [16:32:48]File name is /storage/ofd_packets/00067295 [16:32:48]Write 298 bytes [16:32:48]NVStorageSaveData done [16:32:48]OFDSenderStorePacket done [16:32:48]KKMCreateOFDPacket done [16:32:48]NVStorageSaveData kkm_last_timestamp [16:32:48]File name is /storage/kkm_last_timestamp [16:32:48]Write 4 bytes [16:32:48]NVStorageSaveData done [16:32:48]ExternCall_PrintAddStr [16:32:48]wPrintStart [16:32:48]Write to MH i2c: 01 00 00 30 17 47 [16:32:48]Write i2c OK [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: 01 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: 01 07 00 [16:32:48]MH_I2C_Read... [16:32:48]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [16:32:48]RasterBufferAndPrint [16:32:48]line Счет N : (1)507278 [16:32:48]line ИНН: 02508201610067 [16:32:48]line Контрольно-Кассовый Чек [16:32:48]line ПРОДАЖА [16:32:48]line ТРК (МРК, ГНК) : 31 [16:32:48]line Товар: 2710194210 [16:32:48]line ДТ-К-5 [16:32:48]line 54.170 * 74.70 [16:32:48]line = 4046.50 [16:32:48]line НДС 12% НСП 1% [16:32:48]line > о реализуемом товаре [16:32:48]line ИТОГО: 4046.50 [16:32:48]line НСП 1% : 35.81 [16:32:48]line НДС 12% : 429.72 [16:32:48]line Наличными: 0.00 [16:32:48]line Безнал.: 4046.50 [16:32:48]line Место: АЗС № 91 "Партнер Нефть" [16:32:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:32:48]line СНО: Общий режим [16:32:48]line Чек 113 15.05.2024 16:32 [16:32:48]line Смена: 356 ФФД: 1.0 [16:32:48]line ЗНМ: 0300000119 [16:32:48]line РНМ: 0000000000091845 [16:32:48]line Версия ККМ: 001 [16:32:48]line Платежная система: O! деньги [16:32:48]line ФМ: 0000000000871829 [16:32:48]line ФД: 67295 [16:32:48]line ФПД: 279580444362530 [16:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163248&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67295&fm=279580444362530&tin=02508201610067®Number=0000000000091845&sum=404650 [16:32:48]OFD Sender: Processing packet 67295 [packets to send 35, broken 34] [16:32:48]ProducePacketName [16:32:48]name=ofd_packets/00067295 [16:32:48]OFD Sender: To server: pG, [16:32:48]CommunicateWithHost lk.salyk.kg:30040 [16:32:48]ConnectInit lk.salyk.kg [16:32:48]written 0, free lines is 4095 [16:32:48]Connected sock=10 [16:32: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 3A A8 04 01 28 B6 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 9A D3 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 AA 2C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 2C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 2C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B0 E3 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FE 46 E5 12 87 22 9D 61 AF F3 90 11 1F 89 [16:32: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 B3 F9 47 00 7E E8 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 06 01 00 F4 03 04 00 8D 8B 44 66 B6 04 01 00 00 B7 A3 8B 5D 6A 98 2A 53 [16:32:49]CommunicateWithHost err = 0 [16:32:49]CheckOFDResponse [16:32:49]1017 (14) - 77093643461234 [16:32:49]1041 (16) - 0000000000871829 [16:32:49]1040 (4) - 67295 [16:32:49]1012 (4) - 15.05.2024 10:16 [16:32:49]1206 (1) - 0 [16:32:49]OFD Sender: Remove packet 67295 [16:32:49]ProducePacketName [16:32:49]name=ofd_packets/00067295 [16:32:49]NVStorageDeleteData [16:32:49]Write to MH i2c: 01 00 00 59 17 70 [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 07 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: 01 07 00 59 17 00 00 00 00 00 DF 0C 62 [16:32:49]RasterBufferAndPrint [16:32:49]line [16:32:49]line [16:32:49]line [16:32:49]line [16:32:49]line [16:32:49]written 0, free lines is 3301 [16:32:49]MH_Cut [16:32:49]Write to MH i2c: D1 01 00 60 17 01 49 [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: D1 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: D1 01 00 [16:32:49]MH_I2C_Read... [16:32:49]Read from MH i2c: D1 01 00 60 17 00 48 [16:32:49]Write to MH i2c: 01 00 00 61 17 78 [16:32:49]Write i2c OK [16:32:49]MH_I2C_Read... [16:32:49]OFD Sender: No OFD packet to send [16:32:50]*** Cut start [16:32:50]*** Purtial cut [16:32:50]*** Stage 1: CUTSNS_PIN = 1 [16:32:50]Read from MH i2c: 01 [16:32:50]MH_I2C_Read... [16:32:50]*** Stop cut motor [16:32:50]*** Cut end [16:32:50]Read from MH i2c: 01 07 00 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: 01 07 00 61 17 00 00 00 00 00 FF 0F 8D [16:32:50]process_action close_receipt done [16:32:50]requested_data is exist [16:32:50]produce_requested_data [16:32:50]requested_item fm.sn is exist - process it [16:32:50]wFMCommunicate request_size=4 [16:32:50]MH_SAM_APDU [16:32:50]CAPDU: 80 11 00 00 [16:32:50]Write to MH i2c: E2 08 00 62 17 80 11 00 00 00 00 00 00 F3 [16:32:50]Write i2c OK [16:32:50]MH_I2C_Read... [16:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:50]Read from MH i2c: E2 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 17 00 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 17 00 62 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [16:32: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:32:50]wFMCommunicate OK [16:32:50]requested_item fd.num is exist - process it [16:32:50]SAM_PROTO_GetFieldsCounters [16:32:50]wFMCommunicate request_size=4 [16:32:50]MH_SAM_APDU [16:32:50]CAPDU: 80 13 00 00 [16:32:50]Write to MH i2c: E2 08 00 63 17 80 13 00 00 00 00 00 00 F6 [16:32:50]Write i2c OK [16:32:50]MH_I2C_Read... [16:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:50]Read from MH i2c: E2 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 62 00 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 62 00 63 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 DF 06 01 00 0E 04 04 00 64 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 BA [16:32: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 DF 06 01 00 0E 04 04 00 64 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 [16:32:50]wFMCommunicate OK [16:32:50]SAM_PROTO_GetFieldsCounters done [16:32:50]requested_item shift.num is exist - process it [16:32:50]requested_item shift.opened is exist - process it [16:32:50]req_shift_opened [16:32:50]FM_GetShiftState [16:32:50]SAM_PROTO_GetShiftState [16:32:50]wFMCommunicate request_size=4 [16:32:50]MH_SAM_APDU [16:32:50]CAPDU: 80 13 01 00 [16:32:50]Write to MH i2c: E2 08 00 64 17 80 13 01 00 00 00 00 00 F8 [16:32:50]Write i2c OK [16:32:50]MH_I2C_Read... [16:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:50]Read from MH i2c: E2 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 0E 00 [16:32:50]MH_I2C_Read... [16:32:50]Read from MH i2c: E2 0E 00 64 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A3 [16:32:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:32:50]wFMCommunicate OK [16:32:50]SAM_PROTO_GetShiftState done [16:32:50]FM_GetShiftState done [16:32:50]req_shift_opened done [16:32:50]requested_item shift.open_date is exist - process it [16:32:50]req_shift_open_date [16:32:50]req_shift_open_date done [16:32:50]produce_requested_data done [16:32:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67295,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:32:50]process_action_free close_receipt [16:32:50]json_value_free [16:32:50]json_value_free done [16:32:50]process_json_proto returns [16:32:50]Send response to host [16:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67295,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:32:50]free response buf [16:32:50]execute_script done [16:32:50]execute_script returns [16:32:50]free content buf [16:32:50]Sock 7.Close socket [16:32:50]Sock 7.Thread stoped [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:56]accept exits with 9 [16:35:56]New connection [16:35:56]New thread 3067030884 created [16:35:56]Thread 3067174244 joined [16:35:56]Waiting for new connection... [16:35:56] Sock 9.Parse request [16:35:56]Sock 9.Check first char [16:35:56]Sock 9.First char is OK [16:35:56]request: POST /json_proto HTTP/1.0 [16:35:56]Method: POST [16:35:56]URL: /json_proto [16:35:56]Method is POST - this is cgi request [16:35:56]url: /json_proto [16:35:56]query_string will be loaded in cgi processing [16:35:56]execute_cgi json_proto POST (null) [16:35:56]execute_cgi path=json_proto method=POST [16:35:56]POST find Content-Length [16:35:56]Host: 172.17.41.195:8080 [16:35:56]Content-Length: 803 [16:35:56]Content-Type: application/json [16:35:56] [16:35:56]POST finish read [16:35:56]Found Content-Length = 803 [16:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507280", "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" ] } } [16:35:56]execute_script... [16: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)507280", "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" ] } } [16:35:56]POST & json_proto [16:35:56]process_json_proto [16:35:56]json parsed OK: [16:35:56]protocol is kg_v1.0 [16:35:56]action value=close_receipt [16:35:56]process_action close_receipt [16:35:56]cmd_close_receipt [16:35:56]MH_GetDate [16:35:56]Write to MH i2c: F0 00 00 65 17 6B [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: F0 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: F0 09 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: F0 09 00 65 17 00 6E E4 44 66 FC 21 6F 64 60 [16:35:56]GetLastDocTimeStamp 1715790768 [16:35:56]current date 1715790958 [16:35:56]FM_GetShiftState [16:35:56]SAM_PROTO_GetShiftState [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 13 01 00 [16:35:56]Write to MH i2c: E2 08 00 66 17 80 13 01 00 00 00 00 00 FA [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0E 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0E 00 66 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A5 [16:35:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_GetShiftState done [16:35:56]FM_GetShiftState done [16:35:56]opened in 1715732471 [16:35:56]opened+sec_in_day 1715818871 [16:35:56]quantity*price = 100066 [16:35:56]sum+1 = 100067 [16:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 114 15.05.2024 16:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67296 ФПД: 251009432968580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163558&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67296&fm=251009432968580&tin=02508201610067®Number=0000000000091845&sum=100066 [16:35:57]StoreToDocumentArchive [16:35:57]shift 356 fd 67296 [16:35:57]save to /storage/0356/doc_00067296 [16:35:57]save last doc name /storage/0356/doc_00067296 to /storage/kkm_last_doc_name [16:35:57]save OK [16:35:57]Clear old archive folders... [16:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:57]tlvbuf is 00B7B8D0 [16:35:57]SAM_PROTO_ClearQueue [16:35:57]wFMCommunicate request_size=4 [16:35:57]MH_SAM_APDU [16:35:57]CAPDU: 80 09 00 00 [16:35:57]Write to MH i2c: E2 08 00 73 17 80 09 00 00 00 00 00 00 FC [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: E2 [16:35:57]MH_I2C_Read... [16:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:57]Read from MH i2c: E2 03 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [16:35:57]RAPDU: 90 00 [16:35:57]wFMCommunicate OK [16:35:57]SAM_PROTO_ClearQueue done [16:35:57]KKMCreateOFDPacket [16:35:57]OFDProtocolAddRootSTLVToBuf [16:35:57]FM_MakeSignedData [16:35:57]FM_MakeSignedData [16:35:57]SAM_PROTO_SignData [16:35:57]wFMCommunicate request_size=4 [16:35:57]MH_SAM_APDU [16:35:57]CAPDU: 80 0D 01 02 [16:35:57]Write to MH i2c: E2 08 00 74 17 80 0D 01 02 00 00 00 00 04 [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:57]Read from MH i2c: E2 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: E2 03 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [16:35:57]RAPDU: 90 00 [16:35:57]wFMCommunicate OK [16:35:57]wFMCommunicate request_size=255 [16:35:57]MH_SAM_APDU [16:35:57]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 72 00 00 00 F4 03 04 00 6E E4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E4 [16:35:57]Write to MH i2c: E2 02 01 75 17 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 72 00 00 00 F4 03 04 00 6E E4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E4 00 00 FF [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 03 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [16:35:58]RAPDU: 90 00 [16:35:58]wFMCommunicate OK [16:35:58]wFMCommunicate request_size=10 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 0D 02 02 05 4A B0 16 5D 84 [16:35:58]Write to MH i2c: E2 0D 00 76 17 80 0D 02 02 05 00 4A B0 16 5D 84 00 00 02 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 03 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 03 00 76 17 00 90 00 01 [16:35:58]RAPDU: 90 00 [16:35:58]wFMCommunicate OK [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 0D 03 02 [16:35:58]Write to MH i2c: E2 08 00 77 17 80 0D 03 02 00 00 00 00 09 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 0B 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 0B 00 77 17 00 00 93 55 AF D4 80 9F EE 90 00 82 [16:35:58]RAPDU: 00 93 55 AF D4 80 9F EE 90 00 [16:35:58]wFMCommunicate OK [16:35:58]SAM_PROTO_SignData done [16:35:58]FM_MakeSignedData done [16:35:58]CreateOFDProtocolMessage [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 11 00 00 [16:35:58]Write to MH i2c: E2 08 00 78 17 80 11 00 00 00 00 00 00 09 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 78 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [16: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 [16:35:58]wFMCommunicate OK [16:35:58]CreateOFDProtocolMessage done [16:35:58]OFDSenderStorePacket 67296 [16:35:58]StoreOFDPacket docnum=67296 [16: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 0F 01 00 00 0C BC 07 01 94 E4 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 72 00 00 00 F4 03 04 00 6E E4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E4 4A B0 16 5D 84 00 93 55 AF D4 80 9F EE [16:35:58]CheckFolder [16:35:58]dirname=/storage/ofd_packets [16:35:58]CheckFolder done [16:35:58]ProducePacketName [16:35:58]name=ofd_packets/00067296 [16:35:58]NVStorageSaveData ofd_packets/00067296 [16:35:58]File name is /storage/ofd_packets/00067296 [16:35:58]Write 301 bytes [16:35:58]NVStorageSaveData done [16:35:58]OFDSenderStorePacket done [16:35:58]KKMCreateOFDPacket done [16:35:58]NVStorageSaveData kkm_last_timestamp [16:35:58]File name is /storage/kkm_last_timestamp [16:35:58]Write 4 bytes [16:35:58]NVStorageSaveData done [16:35:58]ExternCall_PrintAddStr [16:35:58]wPrintStart [16:35:58]Write to MH i2c: 01 00 00 79 17 90 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: 01 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: 01 07 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 FF 0F A5 [16:35:58]RasterBufferAndPrint [16:35:58]line Счет N : (1)507280 [16:35:58]line ИНН: 02508201610067 [16:35:58]line Контрольно-Кассовый Чек [16:35:58]line ПРОДАЖА [16:35:58]line ТРК (МРК, ГНК) : 43 [16:35:58]line Товар: 2710124130 [16:35:58]line Аи-92-К-5 [16:35:58]line 14.980 * 66.80 [16:35:58]line = 1000.66 [16:35:58]line НДС 12% НСП 1% [16:35:58]line > о реализуемом товаре [16:35:58]line ИТОГО: 1000.66 [16:35:58]line НСП 1% : 8.85 [16:35:58]line НДС 12% : 106.26 [16:35:58]line Наличными: 0.00 [16:35:58]line Безнал.: 1000.66 [16:35:58]line Место: АЗС № 91 "Партнер Нефть" [16:35:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:35:58]line СНО: Общий режим [16:35:58]line Чек 114 15.05.2024 16:35 [16:35:58]line Смена: 356 ФФД: 1.0 [16:35:58]line ЗНМ: 0300000119 [16:35:58]line РНМ: 0000000000091845 [16:35:58]line Версия ККМ: 001 [16:35:58]line Платежная система: O! деньги [16:35:58]line ФМ: 0000000000871829 [16:35:58]line ФД: 67296 [16:35:58]line ФПД: 251009432968580 [16:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T163558&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67296&fm=251009432968580&tin=02508201610067®Number=0000000000091845&sum=100066 [16:35:58]OFD Sender: Processing packet 67296 [packets to send 35, broken 34] [16:35:58]ProducePacketName [16:35:58]name=ofd_packets/00067296 [16:35:58]OFD Sender: To server: pG, [16:35:58]CommunicateWithHost lk.salyk.kg:30040 [16:35:58]ConnectInit lk.salyk.kg [16:35:58]written 0, free lines is 4095 [16:35:58]Connected sock=10 [16: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 0F 01 00 00 0C BC 07 01 94 E4 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 72 00 00 00 F4 03 04 00 6E E4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E4 4A B0 16 5D 84 00 93 55 AF D4 80 9F EE [16: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 D3 A3 47 00 C2 24 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 06 01 00 F4 03 04 00 4B 8C 44 66 B6 04 01 00 00 0A 65 19 EB 3D 21 71 B6 [16:35:58]CommunicateWithHost err = 0 [16:35:58]CheckOFDResponse [16:35:58]1017 (14) - 77093643461234 [16:35:58]1041 (16) - 0000000000871829 [16:35:58]1040 (4) - 67296 [16:35:59]1012 (4) - 15.05.2024 10:19 [16:35:59]1206 (1) - 0 [16:35:59]OFD Sender: Remove packet 67296 [16:35:59]ProducePacketName [16:35:59]name=ofd_packets/00067296 [16:35:59]NVStorageDeleteData [16:35:59]Write to MH i2c: 01 00 00 A2 17 B9 [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 07 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 EB 0C B7 [16:35:59]RasterBufferAndPrint [16:35:59]line [16:35:59]line [16:35:59]line [16:35:59]line [16:35:59]line [16:35:59]written 0, free lines is 3313 [16:35:59]MH_Cut [16:35:59]Write to MH i2c: D1 01 00 A9 17 01 92 [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: D1 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: D1 01 00 [16:35:59]MH_I2C_Read... [16:35:59]Read from MH i2c: D1 01 00 A9 17 00 91 [16:35:59]Write to MH i2c: 01 00 00 AA 17 C1 [16:35:59]Write i2c OK [16:35:59]MH_I2C_Read... [16:35:59]OFD Sender: No OFD packet to send [16:35:59]*** Cut start [16:35:59]*** Purtial cut [16:35:59]*** CUTSNS_PIN = 0 [16:36:00]*** Stage 1: CUTSNS_PIN = 1 [16:36:01]Read from MH i2c: 01 [16:36:01]MH_I2C_Read... [16:36:01]*** Stop cut motor [16:36:01]*** Cut end [16:36:01]Read from MH i2c: 01 07 00 [16:36:01]MH_I2C_Read... [16:36:01]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [16:36:01]process_action close_receipt done [16:36:01]requested_data is exist [16:36:01]produce_requested_data [16:36:01]requested_item fm.sn is exist - process it [16:36:01]wFMCommunicate request_size=4 [16:36:01]MH_SAM_APDU [16:36:01]CAPDU: 80 11 00 00 [16:36:01]Write to MH i2c: E2 08 00 AB 17 80 11 00 00 00 00 00 00 3C [16:36:01]Write i2c OK [16:36:01]MH_I2C_Read... [16:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:02]Read from MH i2c: E2 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 17 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 17 00 AB 17 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:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:36:02]wFMCommunicate OK [16:36:02]requested_item fd.num is exist - process it [16:36:02]SAM_PROTO_GetFieldsCounters [16:36:02]wFMCommunicate request_size=4 [16:36:02]MH_SAM_APDU [16:36:02]CAPDU: 80 13 00 00 [16:36:02]Write to MH i2c: E2 08 00 AC 17 80 13 00 00 00 00 00 00 3F [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:02]Read from MH i2c: E2 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 62 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 62 00 AC 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 E0 06 01 00 0E 04 04 00 64 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 07 [16:36: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 E0 06 01 00 0E 04 04 00 64 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 [16:36:02]wFMCommunicate OK [16:36:02]SAM_PROTO_GetFieldsCounters done [16:36:02]requested_item shift.num is exist - process it [16:36:02]requested_item shift.opened is exist - process it [16:36:02]req_shift_opened [16:36:02]FM_GetShiftState [16:36:02]SAM_PROTO_GetShiftState [16:36:02]wFMCommunicate request_size=4 [16:36:02]MH_SAM_APDU [16:36:02]CAPDU: 80 13 01 00 [16:36:02]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [16:36:02]Write i2c OK [16:36:02]MH_I2C_Read... [16:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:02]Read from MH i2c: E2 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 0E 00 [16:36:02]MH_I2C_Read... [16:36:02]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EC [16:36:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:36:02]wFMCommunicate OK [16:36:02]SAM_PROTO_GetShiftState done [16:36:02]FM_GetShiftState done [16:36:02]req_shift_opened done [16:36:02]requested_item shift.open_date is exist - process it [16:36:02]req_shift_open_date [16:36:02]req_shift_open_date done [16:36:02]produce_requested_data done [16:36:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67296,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:36:02]process_action_free close_receipt [16:36:02]json_value_free [16:36:02]json_value_free done [16:36:02]process_json_proto returns [16:36:02]Send response to host [16:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67296,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:36:02]free response buf [16:36:02]execute_script done [16:36:02]execute_script returns [16:36:02]free content buf [16:36:02]Sock 9.Close socket [16:36:02]Sock 9.Thread stoped [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:40]accept exits with 7 [16:42:40]New connection [16:42:40]New thread 3067174244 created [16:42:40]Thread 3067030884 joined [16:42:40]Waiting for new connection... [16:42:40] Sock 7.Parse request [16:42:40]Sock 7.Check first char [16:42:40]Sock 7.First char is OK [16:42:40]request: POST /json_proto HTTP/1.0 [16:42:40]Method: POST [16:42:40]URL: /json_proto [16:42:40]Method is POST - this is cgi request [16:42:40]url: /json_proto [16:42:40]query_string will be loaded in cgi processing [16:42:40]execute_cgi json_proto POST (null) [16:42:40]execute_cgi path=json_proto method=POST [16:42:40]POST find Content-Length [16:42:40]Host: 172.17.41.195:8080 [16:42:40]Content-Length: 800 [16:42:40]Content-Type: application/json [16:42:40] [16:42:40]POST finish read [16:42:40]Found Content-Length = 800 [16:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507281", "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" : 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" ] } } [16:42:40]execute_script... [16:42: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)507281", "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" : 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" ] } } [16:42:40]POST & json_proto [16:42:40]process_json_proto [16:42:40]json parsed OK: [16:42:40]protocol is kg_v1.0 [16:42:40]action value=close_receipt [16:42:40]process_action close_receipt [16:42:40]cmd_close_receipt [16:42:40]MH_GetDate [16:42:40]Write to MH i2c: F0 00 00 AE 17 B4 [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: F0 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: F0 09 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: F0 09 00 AE 17 00 01 E6 44 66 FC 21 6F 64 3E [16:42:40]GetLastDocTimeStamp 1715790958 [16:42:40]current date 1715791361 [16:42:40]FM_GetShiftState [16:42:40]SAM_PROTO_GetShiftState [16:42:40]wFMCommunicate request_size=4 [16:42:40]MH_SAM_APDU [16:42:40]CAPDU: 80 13 01 00 [16:42:40]Write to MH i2c: E2 08 00 AF 17 80 13 01 00 00 00 00 00 43 [16:42:40]Write i2c OK [16:42:40]MH_I2C_Read... [16:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:40]Read from MH i2c: E2 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 0E 00 [16:42:40]MH_I2C_Read... [16:42:40]Read from MH i2c: E2 0E 00 AF 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EE [16:42:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:42:40]wFMCommunicate OK [16:42:40]SAM_PROTO_GetShiftState done [16:42:40]FM_GetShiftState done [16:42:40]opened in 1715732471 [16:42:40]opened+sec_in_day 1715818871 [16:42:40]quantity*price = 60053 [16:42:40]sum+1 = 60054 [16:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 115 15.05.2024 16:42 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67297 ФПД: 112995976579327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T164241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67297&fm=112995976579327&tin=02508201610067®Number=0000000000091845&sum=60053 [16:42:41]StoreToDocumentArchive [16:42:41]shift 356 fd 67297 [16:42:41]save to /storage/0356/doc_00067297 [16:42:41]save last doc name /storage/0356/doc_00067297 to /storage/kkm_last_doc_name [16:42:41]save OK [16:42:41]Clear old archive folders... [16:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:41]tlvbuf is 00B7CBE0 [16:42:41]SAM_PROTO_ClearQueue [16:42:41]wFMCommunicate request_size=4 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 09 00 00 [16:42:41]Write to MH i2c: E2 08 00 BC 17 80 09 00 00 00 00 00 00 45 [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:41]Read from MH i2c: E2 03 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [16:42:41]RAPDU: 90 00 [16:42:41]wFMCommunicate OK [16:42:41]SAM_PROTO_ClearQueue done [16:42:41]KKMCreateOFDPacket [16:42:41]OFDProtocolAddRootSTLVToBuf [16:42:41]FM_MakeSignedData [16:42:41]FM_MakeSignedData [16:42:41]SAM_PROTO_SignData [16:42:41]wFMCommunicate request_size=4 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 0D 01 02 [16:42:41]Write to MH i2c: E2 08 00 BD 17 80 0D 01 02 00 00 00 00 4D [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [16:42:41]RAPDU: 90 00 [16:42:41]wFMCommunicate OK [16:42:41]wFMCommunicate request_size=255 [16:42:41]MH_SAM_APDU [16:42:41]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 73 00 00 00 F4 03 04 00 01 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 [16:42:41]Write to MH i2c: E2 02 01 BE 17 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 73 00 00 00 F4 03 04 00 01 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 00 00 19 [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [16:42:41]RAPDU: 90 00 [16:42:41]wFMCommunicate OK [16:42:41]wFMCommunicate request_size=10 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 0D 02 02 05 C4 ED 0B 88 FF [16:42:41]Write to MH i2c: E2 0D 00 BF 17 80 0D 02 02 05 00 C4 ED 0B 88 FF 00 00 9D [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [16:42:41]RAPDU: 90 00 [16:42:41]wFMCommunicate OK [16:42:41]wFMCommunicate request_size=4 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 0D 03 02 [16:42:41]Write to MH i2c: E2 08 00 C0 17 80 0D 03 02 00 00 00 00 52 [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0B 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0B 00 C0 17 00 08 92 69 BE E6 B7 D1 46 90 00 C8 [16:42:41]RAPDU: 08 92 69 BE E6 B7 D1 46 90 00 [16:42:41]wFMCommunicate OK [16:42:41]SAM_PROTO_SignData done [16:42:41]FM_MakeSignedData done [16:42:41]CreateOFDProtocolMessage [16:42:41]wFMCommunicate request_size=4 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 11 00 00 [16:42:41]Write to MH i2c: E2 08 00 C1 17 80 11 00 00 00 00 00 00 52 [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 17 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 17 00 C1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [16:42: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:42:41]wFMCommunicate OK [16:42:41]CreateOFDProtocolMessage done [16:42:41]OFDSenderStorePacket 67297 [16:42:41]StoreOFDPacket docnum=67297 [16:42: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 0F 01 00 00 EB 3B 07 01 1D 72 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 73 00 00 00 F4 03 04 00 01 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 C4 ED 0B 88 FF 08 92 69 BE E6 B7 D1 46 [16:42:41]CheckFolder [16:42:41]dirname=/storage/ofd_packets [16:42:41]CheckFolder done [16:42:41]ProducePacketName [16:42:41]name=ofd_packets/00067297 [16:42:41]NVStorageSaveData ofd_packets/00067297 [16:42:41]File name is /storage/ofd_packets/00067297 [16:42:41]Write 301 bytes [16:42:41]NVStorageSaveData done [16:42:41]OFDSenderStorePacket done [16:42:41]KKMCreateOFDPacket done [16:42:41]NVStorageSaveData kkm_last_timestamp [16:42:41]File name is /storage/kkm_last_timestamp [16:42:41]Write 4 bytes [16:42:41]NVStorageSaveData done [16:42:41]ExternCall_PrintAddStr [16:42:41]wPrintStart [16:42:41]Write to MH i2c: 01 00 00 C2 17 D9 [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: 01 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: 01 07 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 FF 0F EE [16:42:41]RasterBufferAndPrint [16:42:41]line Счет N : (1)507281 [16:42:41]line ИНН: 02508201610067 [16:42:41]line Контрольно-Кассовый Чек [16:42:41]line ПРОДАЖА [16:42:41]line ТРК (МРК, ГНК) : 13 [16:42:41]line Товар: 2710124130 [16:42:41]line Аи-92-К-5 [16:42:41]line 8.990 * 66.80 [16:42:41]line = 600.53 [16:42:41]line НДС 12% НСП 1% [16:42:41]line > о реализуемом товаре [16:42:41]line ИТОГО: 600.53 [16:42:41]line НСП 1% : 5.31 [16:42:41]line НДС 12% : 63.77 [16:42:41]line Наличными: 0.00 [16:42:41]line Безнал.: 600.53 [16:42:41]line Место: АЗС № 91 "Партнер Нефть" [16:42:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:42:41]line СНО: Общий режим [16:42:41]line Чек 115 15.05.2024 16:42 [16:42:41]line Смена: 356 ФФД: 1.0 [16:42:41]line ЗНМ: 0300000119 [16:42:41]line РНМ: 0000000000091845 [16:42:41]line Версия ККМ: 001 [16:42:41]line Платежная система: O! деньги [16:42:41]line ФМ: 0000000000871829 [16:42:41]line ФД: 67297 [16:42:41]line ФПД: 112995976579327 [16:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T164241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67297&fm=112995976579327&tin=02508201610067®Number=0000000000091845&sum=60053 [16:42:41]written 0, free lines is 4095 [16:42:41]OFD Sender: Processing packet 67297 [packets to send 35, broken 34] [16:42:41]ProducePacketName [16:42:41]name=ofd_packets/00067297 [16:42:41]OFD Sender: To server: pG, [16:42:41]CommunicateWithHost lk.salyk.kg:30040 [16:42:41]ConnectInit lk.salyk.kg [16:42:41]Connected sock=11 [16:42: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 0F 01 00 00 EB 3B 07 01 1D 72 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 73 00 00 00 F4 03 04 00 01 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 C4 ED 0B 88 FF 08 92 69 BE E6 B7 D1 46 [16:42: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 F4 93 47 00 49 42 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 06 01 00 F4 03 04 00 DE 8D 44 66 B6 04 01 00 00 B2 E4 7C 7B 01 B7 A1 0C [16:42:42]CommunicateWithHost err = 0 [16:42:42]CheckOFDResponse [16:42:42]1017 (14) - 77093643461234 [16:42:42]1041 (16) - 0000000000871829 [16:42:42]1040 (4) - 67297 [16:42:42]1012 (4) - 15.05.2024 10:26 [16:42:42]1206 (1) - 0 [16:42:42]OFD Sender: Remove packet 67297 [16:42:42]ProducePacketName [16:42:42]name=ofd_packets/00067297 [16:42:42]NVStorageDeleteData [16:42:42]Write to MH i2c: 01 00 00 EB 17 02 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 07 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 D9 0C EE [16:42:42]RasterBufferAndPrint [16:42:42]line [16:42:42]line [16:42:42]line [16:42:42]line [16:42:42]line [16:42:42]written 0, free lines is 3295 [16:42:42]MH_Cut [16:42:42]Write to MH i2c: D1 01 00 F2 17 01 DB [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: D1 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: D1 01 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: D1 01 00 F2 17 00 DA [16:42:42]Write to MH i2c: 01 00 00 F3 17 0A [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]OFD Sender: No OFD packet to send [16:42:42]*** Cut start [16:42:42]*** Purtial cut [16:42:42]*** Stage 1: CUTSNS_PIN = 1 [16:42:43]Read from MH i2c: 01 [16:42:43]MH_I2C_Read... [16:42:43]*** Stop cut motor [16:42:43]*** Cut end [16:42:43]Read from MH i2c: 01 07 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 FF 0F 1F [16:42:43]process_action close_receipt done [16:42:43]requested_data is exist [16:42:43]produce_requested_data [16:42:43]requested_item fm.sn is exist - process it [16:42:43]wFMCommunicate request_size=4 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 11 00 00 [16:42:43]Write to MH i2c: E2 08 00 F4 17 80 11 00 00 00 00 00 00 85 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:43]Read from MH i2c: E2 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 17 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 17 00 F4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [16:42: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:42:43]wFMCommunicate OK [16:42:43]requested_item fd.num is exist - process it [16:42:43]SAM_PROTO_GetFieldsCounters [16:42:43]wFMCommunicate request_size=4 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 13 00 00 [16:42:43]Write to MH i2c: E2 08 00 F5 17 80 13 00 00 00 00 00 00 88 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:43]Read from MH i2c: E2 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 62 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 62 00 F5 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 E1 06 01 00 0E 04 04 00 64 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 54 [16:42: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 E1 06 01 00 0E 04 04 00 64 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 [16:42:43]wFMCommunicate OK [16:42:43]SAM_PROTO_GetFieldsCounters done [16:42:43]requested_item shift.num is exist - process it [16:42:43]requested_item shift.opened is exist - process it [16:42:43]req_shift_opened [16:42:43]FM_GetShiftState [16:42:43]SAM_PROTO_GetShiftState [16:42:43]wFMCommunicate request_size=4 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 13 01 00 [16:42:43]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:43]Read from MH i2c: E2 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 0E 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 35 [16:42:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:42:43]wFMCommunicate OK [16:42:43]SAM_PROTO_GetShiftState done [16:42:43]FM_GetShiftState done [16:42:43]req_shift_opened done [16:42:43]requested_item shift.open_date is exist - process it [16:42:43]req_shift_open_date [16:42:43]req_shift_open_date done [16:42:43]produce_requested_data done [16:42:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67297,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:42:43]process_action_free close_receipt [16:42:43]json_value_free [16:42:43]json_value_free done [16:42:43]process_json_proto returns [16:42:43]Send response to host [16:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67297,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:42:43]free response buf [16:42:43]execute_script done [16:42:43]execute_script returns [16:42:43]free content buf [16:42:43]Sock 7.Close socket [16:42:43]Sock 7.Thread stoped [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:43]accept exits with 9 [16:43:43]New connection [16:43:43]New thread 3067030884 created [16:43:43]Thread 3067174244 joined [16:43:43]Waiting for new connection... [16:43:43] Sock 9.Parse request [16:43:43]Sock 9.Check first char [16:43:43]Sock 9.First char is OK [16:43:43]request: POST /json_proto HTTP/1.0 [16:43:43]Method: POST [16:43:43]URL: /json_proto [16:43:43]Method is POST - this is cgi request [16:43:43]url: /json_proto [16:43:43]query_string will be loaded in cgi processing [16:43:43]execute_cgi json_proto POST (null) [16:43:43]execute_cgi path=json_proto method=POST [16:43:43]POST find Content-Length [16:43:43]Host: 172.17.41.195:8080 [16:43:43]Content-Length: 800 [16:43:43]Content-Type: application/json [16:43:43] [16:43:43]POST finish read [16:43:43]Found Content-Length = 800 [16:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507282", "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" : 21.420, "sum" : 1600.07, "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" : 1600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:43]execute_script... [16:43: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)507282", "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" : 21.420, "sum" : 1600.07, "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" : 1600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:43]POST & json_proto [16:43:43]process_json_proto [16:43:43]json parsed OK: [16:43:43]protocol is kg_v1.0 [16:43:43]action value=close_receipt [16:43:43]process_action close_receipt [16:43:43]cmd_close_receipt [16:43:43]MH_GetDate [16:43:43]Write to MH i2c: F0 00 00 F7 17 FD [16:43:43]Write i2c OK [16:43:43]MH_I2C_Read... [16:43:43]Read from MH i2c: F0 [16:43:43]MH_I2C_Read... [16:43:43]Read from MH i2c: F0 09 00 [16:43:43]MH_I2C_Read... [16:43:43]Read from MH i2c: F0 09 00 F7 17 00 41 E6 44 66 FC 21 6F 64 C7 [16:43:43]GetLastDocTimeStamp 1715791361 [16:43:43]current date 1715791425 [16:43:43]FM_GetShiftState [16:43:43]SAM_PROTO_GetShiftState [16:43:43]wFMCommunicate request_size=4 [16:43:43]MH_SAM_APDU [16:43:43]CAPDU: 80 13 01 00 [16:43:43]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [16:43:43]Write i2c OK [16:43:43]MH_I2C_Read... [16:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:43]Read from MH i2c: E2 [16:43:43]MH_I2C_Read... [16:43:43]Read from MH i2c: E2 0E 00 [16:43:43]MH_I2C_Read... [16:43:43]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 37 [16:43:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:43:43]wFMCommunicate OK [16:43:43]SAM_PROTO_GetShiftState done [16:43:43]FM_GetShiftState done [16:43:43]opened in 1715732471 [16:43:43]opened+sec_in_day 1715818871 [16:43:43]quantity*price = 160007 [16:43:43]sum+1 = 160008 [16:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.07 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 0.00 Безнал.: 1600.07 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 116 15.05.2024 16:43 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67298 ФПД: 64870291821862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T164345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67298&fm=64870291821862&tin=02508201610067®Number=0000000000091845&sum=160007 [16:43:44]StoreToDocumentArchive [16:43:44]shift 356 fd 67298 [16:43:44]save to /storage/0356/doc_00067298 [16:43:44]save last doc name /storage/0356/doc_00067298 to /storage/kkm_last_doc_name [16:43:44]save OK [16:43:44]Clear old archive folders... [16:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:44]tlvbuf is 00B28040 [16:43:44]SAM_PROTO_ClearQueue [16:43:44]wFMCommunicate request_size=4 [16:43:44]MH_SAM_APDU [16:43:44]CAPDU: 80 09 00 00 [16:43:44]Write to MH i2c: E2 08 00 05 18 80 09 00 00 00 00 00 00 8F [16:43:44]Write i2c OK [16:43:44]MH_I2C_Read... [16:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:44]Read from MH i2c: E2 [16:43:44]MH_I2C_Read... [16:43:44]Read from MH i2c: E2 03 00 [16:43:44]MH_I2C_Read... [16:43:44]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [16:43:44]RAPDU: 90 00 [16:43:44]wFMCommunicate OK [16:43:44]SAM_PROTO_ClearQueue done [16:43:44]KKMCreateOFDPacket [16:43:44]OFDProtocolAddRootSTLVToBuf [16:43:44]FM_MakeSignedData [16:43:44]FM_MakeSignedData [16:43:44]SAM_PROTO_SignData [16:43:44]wFMCommunicate request_size=4 [16:43:44]MH_SAM_APDU [16:43:44]CAPDU: 80 0D 01 02 [16:43:44]Write to MH i2c: E2 08 00 06 18 80 0D 01 02 00 00 00 00 97 [16:43:44]Write i2c OK [16:43:44]MH_I2C_Read... [16:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:44]Read from MH i2c: E2 [16:43:44]MH_I2C_Read... [16:43:44]Read from MH i2c: E2 03 00 [16:43:44]MH_I2C_Read... [16:43:44]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [16:43:44]RAPDU: 90 00 [16:43:44]wFMCommunicate OK [16:43:44]wFMCommunicate request_size=255 [16:43:44]MH_SAM_APDU [16:43:44]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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 41 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3A FF CA B3 [16:43:44]Write to MH i2c: E2 02 01 07 18 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 41 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3A FF CA B3 00 00 29 [16:43:44]Write i2c OK [16:43:44]MH_I2C_Read... [16:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:45]Read from MH i2c: E2 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 03 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [16:43:45]RAPDU: 90 00 [16:43:45]wFMCommunicate OK [16:43:45]wFMCommunicate request_size=7 [16:43:45]MH_SAM_APDU [16:43:45]CAPDU: 80 0D 02 02 02 55 26 [16:43:45]Write to MH i2c: E2 0A 00 08 18 80 0D 02 02 02 00 55 26 00 00 19 [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:45]Read from MH i2c: E2 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 03 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [16:43:45]RAPDU: 90 00 [16:43:45]wFMCommunicate OK [16:43:45]wFMCommunicate request_size=4 [16:43:45]MH_SAM_APDU [16:43:45]CAPDU: 80 0D 03 02 [16:43:45]Write to MH i2c: E2 08 00 09 18 80 0D 03 02 00 00 00 00 9C [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:45]Read from MH i2c: E2 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 0B 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 0B 00 09 18 00 69 89 F6 76 DF 0D 26 16 90 00 23 [16:43:45]RAPDU: 69 89 F6 76 DF 0D 26 16 90 00 [16:43:45]wFMCommunicate OK [16:43:45]SAM_PROTO_SignData done [16:43:45]FM_MakeSignedData done [16:43:45]CreateOFDProtocolMessage [16:43:45]wFMCommunicate request_size=4 [16:43:45]MH_SAM_APDU [16:43:45]CAPDU: 80 11 00 00 [16:43:45]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:45]Read from MH i2c: E2 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 17 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [16:43: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:43:45]wFMCommunicate OK [16:43:45]CreateOFDProtocolMessage done [16:43:45]OFDSenderStorePacket 67298 [16:43:45]StoreOFDPacket docnum=67298 [16:43: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 6E 36 04 01 A2 EC 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 41 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3A FF CA B3 55 26 69 89 F6 76 DF 0D 26 16 [16:43:45]CheckFolder [16:43:45]dirname=/storage/ofd_packets [16:43:45]CheckFolder done [16:43:45]ProducePacketName [16:43:45]name=ofd_packets/00067298 [16:43:45]NVStorageSaveData ofd_packets/00067298 [16:43:45]File name is /storage/ofd_packets/00067298 [16:43:45]Write 298 bytes [16:43:45]NVStorageSaveData done [16:43:45]OFDSenderStorePacket done [16:43:45]KKMCreateOFDPacket done [16:43:45]NVStorageSaveData kkm_last_timestamp [16:43:45]File name is /storage/kkm_last_timestamp [16:43:45]Write 4 bytes [16:43:45]NVStorageSaveData done [16:43:45]ExternCall_PrintAddStr [16:43:45]wPrintStart [16:43:45]Write to MH i2c: 01 00 00 0B 18 23 [16:43:45]Write i2c OK [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: 01 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: 01 07 00 [16:43:45]MH_I2C_Read... [16:43:45]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 FF 0F 38 [16:43:45]RasterBufferAndPrint [16:43:45]line Счет N : (1)507282 [16:43:45]line ИНН: 02508201610067 [16:43:45]line Контрольно-Кассовый Чек [16:43:45]line ПРОДАЖА [16:43:45]line ТРК (МРК, ГНК) : 31 [16:43:45]line Товар: 2710194210 [16:43:45]line ДТ-К-5 [16:43:45]line 21.420 * 74.70 [16:43:45]line = 1600.07 [16:43:45]line НДС 12% НСП 1% [16:43:45]line > о реализуемом товаре [16:43:45]line ИТОГО: 1600.07 [16:43:45]line НСП 1% : 14.16 [16:43:45]line НДС 12% : 169.92 [16:43:45]line Наличными: 0.00 [16:43:45]line Безнал.: 1600.07 [16:43:45]line Место: АЗС № 91 "Партнер Нефть" [16:43:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:43:45]line СНО: Общий режим [16:43:45]line Чек 116 15.05.2024 16:43 [16:43:45]line Смена: 356 ФФД: 1.0 [16:43:45]line ЗНМ: 0300000119 [16:43:45]line РНМ: 0000000000091845 [16:43:45]line Версия ККМ: 001 [16:43:45]line Платежная система: O! деньги [16:43:45]line ФМ: 0000000000871829 [16:43:45]line ФД: 67298 [16:43:45]line ФПД: 64870291821862 [16:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T164345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67298&fm=64870291821862&tin=02508201610067®Number=0000000000091845&sum=160007 [16:43:45]OFD Sender: Processing packet 67298 [packets to send 35, broken 34] [16:43:45]ProducePacketName [16:43:45]name=ofd_packets/00067298 [16:43:45]OFD Sender: To server: pG, [16:43:45]CommunicateWithHost lk.salyk.kg:30040 [16:43:45]ConnectInit lk.salyk.kg [16:43:45]written 0, free lines is 4095 [16:43:45]Connected sock=10 [16:43: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 6E 36 04 01 A2 EC 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 41 E6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3A FF CA B3 55 26 69 89 F6 76 DF 0D 26 16 [16:43: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 09 85 47 00 52 9D 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 06 01 00 F4 03 04 00 1E 8E 44 66 B6 04 01 00 00 69 00 6E B7 30 18 99 3D [16:43:45]CommunicateWithHost err = 0 [16:43:45]CheckOFDResponse [16:43:45]1017 (14) - 77093643461234 [16:43:45]1041 (16) - 0000000000871829 [16:43:45]1040 (4) - 67298 [16:43:45]1012 (4) - 15.05.2024 10:27 [16:43:45]1206 (1) - 0 [16:43:45]OFD Sender: Remove packet 67298 [16:43:45]ProducePacketName [16:43:45]name=ofd_packets/00067298 [16:43:45]NVStorageDeleteData [16:43:46]Write to MH i2c: 01 00 00 34 18 4C [16:43:46]Write i2c OK [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: 01 [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: 01 07 00 [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 D6 0C 35 [16:43:46]RasterBufferAndPrint [16:43:46]line [16:43:46]line [16:43:46]line [16:43:46]line [16:43:46]line [16:43:46]written 0, free lines is 3290 [16:43:46]MH_Cut [16:43:46]Write to MH i2c: D1 01 00 3B 18 01 25 [16:43:46]Write i2c OK [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: D1 [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: D1 01 00 [16:43:46]MH_I2C_Read... [16:43:46]Read from MH i2c: D1 01 00 3B 18 00 24 [16:43:46]Write to MH i2c: 01 00 00 3C 18 54 [16:43:46]Write i2c OK [16:43:46]MH_I2C_Read... [16:43:46]OFD Sender: No OFD packet to send [16:43:46]*** Cut start [16:43:46]*** Purtial cut [16:43:46]*** CUTSNS_PIN = 0 [16:43:47]*** Stage 1: CUTSNS_PIN = 1 [16:43:48]Read from MH i2c: 01 [16:43:48]MH_I2C_Read... [16:43:48]*** Stop cut motor [16:43:48]*** Cut end [16:43:48]Read from MH i2c: 01 07 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [16:43:48]process_action close_receipt done [16:43:48]requested_data is exist [16:43:48]produce_requested_data [16:43:48]requested_item fm.sn is exist - process it [16:43:48]wFMCommunicate request_size=4 [16:43:48]MH_SAM_APDU [16:43:48]CAPDU: 80 11 00 00 [16:43:48]Write to MH i2c: E2 08 00 3D 18 80 11 00 00 00 00 00 00 CF [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 17 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 17 00 3D 18 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:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:43:49]wFMCommunicate OK [16:43:49]requested_item fd.num is exist - process it [16:43:49]SAM_PROTO_GetFieldsCounters [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 00 00 [16:43:49]Write to MH i2c: E2 08 00 3E 18 80 13 00 00 00 00 00 00 D2 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 62 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 62 00 3E 18 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 06 01 00 0E 04 04 00 64 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 A2 [16:43: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 E2 06 01 00 0E 04 04 00 64 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 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetFieldsCounters done [16:43:49]requested_item shift.num is exist - process it [16:43:49]requested_item shift.opened is exist - process it [16:43:49]req_shift_opened [16:43:49]FM_GetShiftState [16:43:49]SAM_PROTO_GetShiftState [16:43:49]wFMCommunicate request_size=4 [16:43:49]MH_SAM_APDU [16:43:49]CAPDU: 80 13 01 00 [16:43:49]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [16:43:49]Write i2c OK [16:43:49]MH_I2C_Read... [16:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:49]Read from MH i2c: E2 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 [16:43:49]MH_I2C_Read... [16:43:49]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7F [16:43:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:43:49]wFMCommunicate OK [16:43:49]SAM_PROTO_GetShiftState done [16:43:49]FM_GetShiftState done [16:43:49]req_shift_opened done [16:43:49]requested_item shift.open_date is exist - process it [16:43:49]req_shift_open_date [16:43:49]req_shift_open_date done [16:43:49]produce_requested_data done [16:43:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67298,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:43:49]process_action_free close_receipt [16:43:49]json_value_free [16:43:49]json_value_free done [16:43:49]process_json_proto returns [16:43:49]Send response to host [16:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67298,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:43:49]free response buf [16:43:49]execute_script done [16:43:49]execute_script returns [16:43:49]free content buf [16:43:49]Sock 9.Close socket [16:43:49]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:35]accept exits with 7 [16:54:35]New connection [16:54:35]New thread 3067174244 created [16:54:35]Thread 3067030884 joined [16:54:35]Waiting for new connection... [16:54:35] Sock 7.Parse request [16:54:35]Sock 7.Check first char [16:54:35]Sock 7.First char is OK [16:54:35]request: POST /json_proto HTTP/1.0 [16:54:35]Method: POST [16:54:35]URL: /json_proto [16:54:35]Method is POST - this is cgi request [16:54:35]url: /json_proto [16:54:35]query_string will be loaded in cgi processing [16:54:35]execute_cgi json_proto POST (null) [16:54:35]execute_cgi path=json_proto method=POST [16:54:35]POST find Content-Length [16:54:35]Host: 172.17.41.195:8080 [16:54:35]Content-Length: 1209 [16:54:35]Content-Type: application/json [16:54:35] [16:54:35]POST finish read [16:54:35]Found Content-Length = 1209 [16:54:35]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)507283\u000A15.05.2024 16:37\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 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\u000A99818\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:35]execute_script... [16:54:35]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)507283\u000A15.05.2024 16:37\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 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\u000A99818\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:35]POST & json_proto [16:54:35]process_json_proto [16:54:35]json parsed OK: [16:54:35]protocol is kg_v1.0 [16:54:35]action value=print_text [16:54:35]process_action print_text [16:54:35]cmd_print_text [16:54:35]ExternCall_PrintAddStr [16:54:35]wPrintStart [16:54:35]Write to MH i2c: 01 00 00 40 18 58 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [16:54:35]RasterBufferAndPrint [16:54:35]line *****ТОВАРНЫЙ ЧЕК***** [16:54:35]line АЗС-91 [16:54:35]line Партнер нефть [16:54:35]line 02508201610067 [16:54:35]line Кассир : Арстанбеков Н. [16:54:35]line Счет N : (1)507283 [16:54:35]line 15.05.2024 16:37 [16:54:35]line ПРОДАЖА [16:54:35]line ТРК (МРК, ГНК): 31 [16:54:35]line Вид ГСМ : 2710194210 [16:54:35]line ДТ-К-5 [16:54:35]line 25.000 x 74.70 [16:54:35]line ИТОГ: 1867.50 [16:54:35]line Тип оплаты: Талоны: Топливная Карта [16:54:35]line 99818 [16:54:35]line ______________________ [16:54:35]line (подпись) [16:54:35]written 0, free lines is 4095 [16:54:35]Write to MH i2c: 01 00 00 54 18 6C [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 0F 0E 90 [16:54:35]RasterBufferAndPrint [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]line [16:54:35]written 0, free lines is 3601 [16:54:35]MH_Cut [16:54:35]Write to MH i2c: D1 01 00 5B 18 01 45 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D1 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D1 01 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D1 01 00 5B 18 00 44 [16:54:35]Write to MH i2c: 01 00 00 5C 18 74 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:36]*** Cut start [16:54:36]*** Purtial cut [16:54:36]*** Stage 1: CUTSNS_PIN = 1 [16:54:36]Read from MH i2c: 01 [16:54:36]MH_I2C_Read... [16:54:36]*** Stop cut motor [16:54:36]*** Cut end [16:54:36]Read from MH i2c: 01 07 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 5C 18 00 00 00 00 00 FF 0F 89 [16:54:36]process_action print_text done [16:54:36]requested_data is exist [16:54:36]produce_requested_data [16:54:36]requested_item fm.sn is exist - process it [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 11 00 00 [16:54:36]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 17 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [16:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:54:36]wFMCommunicate OK [16:54:36]requested_item fd.num is exist - process it [16:54:36]SAM_PROTO_GetFieldsCounters [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 13 00 00 [16:54:36]Write to MH i2c: E2 08 00 5E 18 80 13 00 00 00 00 00 00 F2 [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 62 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 62 00 5E 18 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 06 01 00 0E 04 04 00 64 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 C2 [16:54: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 E2 06 01 00 0E 04 04 00 64 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 [16:54:36]wFMCommunicate OK [16:54:36]SAM_PROTO_GetFieldsCounters done [16:54:36]requested_item shift.num is exist - process it [16:54:36]requested_item shift.opened is exist - process it [16:54:36]req_shift_opened [16:54:36]FM_GetShiftState [16:54:36]SAM_PROTO_GetShiftState [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 13 01 00 [16:54:36]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 0E 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9F [16:54:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:54:36]wFMCommunicate OK [16:54:36]SAM_PROTO_GetShiftState done [16:54:36]FM_GetShiftState done [16:54:36]req_shift_opened done [16:54:36]requested_item shift.open_date is exist - process it [16:54:36]req_shift_open_date [16:54:36]req_shift_open_date done [16:54:36]produce_requested_data done [16:54:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67298,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:54:36]process_action_free print_text [16:54:36]json_value_free [16:54:36]json_value_free done [16:54:36]process_json_proto returns [16:54:36]Send response to host [16:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67298,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:54:36]free response buf [16:54:36]execute_script done [16:54:36]execute_script returns [16:54:36]free content buf [16:54:36]Sock 7.Close socket [16:54:36]Sock 7.Thread stoped [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:29]accept exits with 9 [16:58:29]New connection [16:58:29]New thread 3067030884 created [16:58:29]Thread 3067174244 joined [16:58:29]Waiting for new connection... [16:58:29] Sock 9.Parse request [16:58:29]Sock 9.Check first char [16:58:29]Sock 9.First char is OK [16:58:29]request: POST /json_proto HTTP/1.0 [16:58:29]Method: POST [16:58:29]URL: /json_proto [16:58:29]Method is POST - this is cgi request [16:58:29]url: /json_proto [16:58:29]query_string will be loaded in cgi processing [16:58:29]execute_cgi json_proto POST (null) [16:58:29]execute_cgi path=json_proto method=POST [16:58:29]POST find Content-Length [16:58:29]Host: 172.17.41.195:8080 [16:58:29]Content-Length: 803 [16:58:29]Content-Type: application/json [16:58:29] [16:58:29]POST finish read [16:58:29]Found Content-Length = 803 [16:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507284", "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" : 26.950, "sum" : 1800.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" : 1800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:29]execute_script... [16:58: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)507284", "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" : 26.950, "sum" : 1800.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" : 1800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:29]POST & json_proto [16:58:29]process_json_proto [16:58:29]json parsed OK: [16:58:29]protocol is kg_v1.0 [16:58:29]action value=close_receipt [16:58:29]process_action close_receipt [16:58:29]cmd_close_receipt [16:58:29]MH_GetDate [16:58:29]Write to MH i2c: F0 00 00 60 18 67 [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 09 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: F0 09 00 60 18 00 B7 E9 44 66 FC 21 6F 64 AA [16:58:29]GetLastDocTimeStamp 1715791425 [16:58:29]current date 1715792311 [16:58:29]FM_GetShiftState [16:58:29]SAM_PROTO_GetShiftState [16:58:29]wFMCommunicate request_size=4 [16:58:29]MH_SAM_APDU [16:58:29]CAPDU: 80 13 01 00 [16:58:29]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [16:58:29]Write i2c OK [16:58:29]MH_I2C_Read... [16:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:29]Read from MH i2c: E2 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0E 00 [16:58:29]MH_I2C_Read... [16:58:29]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A1 [16:58:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:58:29]wFMCommunicate OK [16:58:29]SAM_PROTO_GetShiftState done [16:58:29]FM_GetShiftState done [16:58:29]opened in 1715732471 [16:58:29]opened+sec_in_day 1715818871 [16:58:29]quantity*price = 180026 [16:58:29]sum+1 = 180027 [16:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.26 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 117 15.05.2024 16:58 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67299 ФПД: 244653130380763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T165831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67299&fm=244653130380763&tin=02508201610067®Number=0000000000091845&sum=180026 [16:58:30]StoreToDocumentArchive [16:58:30]shift 356 fd 67299 [16:58:30]save to /storage/0356/doc_00067299 [16:58:30]save last doc name /storage/0356/doc_00067299 to /storage/kkm_last_doc_name [16:58:30]save OK [16:58:30]Clear old archive folders... [16:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:30]tlvbuf is 00B27A70 [16:58:30]SAM_PROTO_ClearQueue [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 09 00 00 [16:58:30]Write to MH i2c: E2 08 00 6E 18 80 09 00 00 00 00 00 00 F8 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]SAM_PROTO_ClearQueue done [16:58:30]KKMCreateOFDPacket [16:58:30]OFDProtocolAddRootSTLVToBuf [16:58:30]FM_MakeSignedData [16:58:30]FM_MakeSignedData [16:58:30]SAM_PROTO_SignData [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 0D 01 02 [16:58:30]Write to MH i2c: E2 08 00 6F 18 80 0D 01 02 00 00 00 00 00 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]wFMCommunicate request_size=255 [16:58:30]MH_SAM_APDU [16:58: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 46 69 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 3A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 3A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B7 E9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DE [16:58:30]Write to MH i2c: E2 02 01 70 18 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 46 69 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 3A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 3A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B7 E9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DE 00 00 04 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]wFMCommunicate request_size=10 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 0D 02 02 05 82 BE ED F5 DB [16:58:30]Write to MH i2c: E2 0D 00 71 18 80 0D 02 02 05 00 82 BE ED F5 DB 00 00 0A [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:30]Read from MH i2c: E2 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 [16:58:30]MH_I2C_Read... [16:58:30]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [16:58:30]RAPDU: 90 00 [16:58:30]wFMCommunicate OK [16:58:30]wFMCommunicate request_size=4 [16:58:30]MH_SAM_APDU [16:58:30]CAPDU: 80 0D 03 02 [16:58:30]Write to MH i2c: E2 08 00 72 18 80 0D 03 02 00 00 00 00 05 [16:58:30]Write i2c OK [16:58:30]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 0B 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 0B 00 72 18 00 60 6F E7 61 7A 5B 3A 1D 90 00 49 [16:58:31]RAPDU: 60 6F E7 61 7A 5B 3A 1D 90 00 [16:58:31]wFMCommunicate OK [16:58:31]SAM_PROTO_SignData done [16:58:31]FM_MakeSignedData done [16:58:31]CreateOFDProtocolMessage [16:58:31]wFMCommunicate request_size=4 [16:58:31]MH_SAM_APDU [16:58:31]CAPDU: 80 11 00 00 [16:58:31]Write to MH i2c: E2 08 00 73 18 80 11 00 00 00 00 00 00 05 [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:31]Read from MH i2c: E2 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: E2 17 00 73 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [16:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:31]wFMCommunicate OK [16:58:31]CreateOFDProtocolMessage done [16:58:31]OFDSenderStorePacket 67299 [16:58:31]StoreOFDPacket docnum=67299 [16:58: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 0F 01 00 00 A6 1F 07 01 0A 31 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 46 69 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 3A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 3A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B7 E9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DE 82 BE ED F5 DB 60 6F E7 61 7A 5B 3A 1D [16:58:31]CheckFolder [16:58:31]dirname=/storage/ofd_packets [16:58:31]CheckFolder done [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00067299 [16:58:31]NVStorageSaveData ofd_packets/00067299 [16:58:31]File name is /storage/ofd_packets/00067299 [16:58:31]Write 301 bytes [16:58:31]NVStorageSaveData done [16:58:31]OFDSenderStorePacket done [16:58:31]KKMCreateOFDPacket done [16:58:31]NVStorageSaveData kkm_last_timestamp [16:58:31]File name is /storage/kkm_last_timestamp [16:58:31]Write 4 bytes [16:58:31]NVStorageSaveData done [16:58:31]ExternCall_PrintAddStr [16:58:31]wPrintStart [16:58:31]Write to MH i2c: 01 00 00 74 18 8C [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 FF 0F A1 [16:58:31]RasterBufferAndPrint [16:58:31]line Счет N : (1)507284 [16:58:31]line ИНН: 02508201610067 [16:58:31]line Контрольно-Кассовый Чек [16:58:31]line ПРОДАЖА [16:58:31]line ТРК (МРК, ГНК) : 23 [16:58:31]line Товар: 2710124130 [16:58:31]line Аи-92-К-5 [16:58:31]line 26.950 * 66.80 [16:58:31]line = 1800.26 [16:58:31]line НДС 12% НСП 1% [16:58:31]line > о реализуемом товаре [16:58:31]line ИТОГО: 1800.26 [16:58:31]line НСП 1% : 15.93 [16:58:31]line НДС 12% : 191.18 [16:58:31]line Наличными: 0.00 [16:58:31]line Безнал.: 1800.26 [16:58:31]line Место: АЗС № 91 "Партнер Нефть" [16:58:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:58:31]line СНО: Общий режим [16:58:31]line Чек 117 15.05.2024 16:58 [16:58:31]line Смена: 356 ФФД: 1.0 [16:58:31]line ЗНМ: 0300000119 [16:58:31]line РНМ: 0000000000091845 [16:58:31]line Версия ККМ: 001 [16:58:31]line Платежная система: O! деньги [16:58:31]line ФМ: 0000000000871829 [16:58:31]line ФД: 67299 [16:58:31]line ФПД: 244653130380763 [16:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T165831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67299&fm=244653130380763&tin=02508201610067®Number=0000000000091845&sum=180026 [16:58:31]OFD Sender: Processing packet 67299 [packets to send 35, broken 34] [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00067299 [16:58:31]OFD Sender: To server: pG, [16:58:31]CommunicateWithHost lk.salyk.kg:30040 [16:58:31]ConnectInit lk.salyk.kg [16:58:31]written 0, free lines is 4095 [16:58:31]Connected sock=10 [16:58: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 A6 1F 07 01 0A 31 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 46 69 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 3A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3A 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 3A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 B7 E9 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DE 82 BE ED F5 DB 60 6F E7 61 7A 5B 3A 1D [16:58: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 10 39 47 00 8F 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 E3 06 01 00 F4 03 04 00 93 91 44 66 B6 04 01 00 00 A7 3E 98 72 F0 62 BF C3 [16:58:31]CommunicateWithHost err = 0 [16:58:31]CheckOFDResponse [16:58:31]1017 (14) - 77093643461234 [16:58:31]1041 (16) - 0000000000871829 [16:58:31]1040 (4) - 67299 [16:58:31]1012 (4) - 15.05.2024 10:42 [16:58:31]1206 (1) - 0 [16:58:31]OFD Sender: Remove packet 67299 [16:58:31]ProducePacketName [16:58:31]name=ofd_packets/00067299 [16:58:31]NVStorageDeleteData [16:58:31]Write to MH i2c: 01 00 00 9D 18 B5 [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: 01 07 00 9D 18 00 00 00 00 00 E6 0C AE [16:58:31]RasterBufferAndPrint [16:58:31]line [16:58:31]line [16:58:31]line [16:58:31]line [16:58:31]line [16:58:31]written 0, free lines is 3308 [16:58:31]MH_Cut [16:58:31]Write to MH i2c: D1 01 00 A4 18 01 8E [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: D1 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: D1 01 00 [16:58:31]MH_I2C_Read... [16:58:31]Read from MH i2c: D1 01 00 A4 18 00 8D [16:58:31]Write to MH i2c: 01 00 00 A5 18 BD [16:58:31]Write i2c OK [16:58:31]MH_I2C_Read... [16:58:32]OFD Sender: No OFD packet to send [16:58:32]*** Cut start [16:58:32]*** Purtial cut [16:58:32]*** CUTSNS_PIN = 0 [16:58:32]*** Stage 1: CUTSNS_PIN = 1 [16:58:34]Read from MH i2c: 01 [16:58:34]MH_I2C_Read... [16:58:34]*** Stop cut motor [16:58:34]*** Cut end [16:58:34]Read from MH i2c: 01 07 00 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: 01 07 00 A5 18 00 00 00 00 00 FF 0F D2 [16:58:34]process_action close_receipt done [16:58:34]requested_data is exist [16:58:34]produce_requested_data [16:58:34]requested_item fm.sn is exist - process it [16:58:34]wFMCommunicate request_size=4 [16:58:34]MH_SAM_APDU [16:58:34]CAPDU: 80 11 00 00 [16:58:34]Write to MH i2c: E2 08 00 A6 18 80 11 00 00 00 00 00 00 38 [16:58:34]Write i2c OK [16:58:34]MH_I2C_Read... [16:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:34]Read from MH i2c: E2 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 17 00 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 17 00 A6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [16:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:34]wFMCommunicate OK [16:58:34]requested_item fd.num is exist - process it [16:58:34]SAM_PROTO_GetFieldsCounters [16:58:34]wFMCommunicate request_size=4 [16:58:34]MH_SAM_APDU [16:58:34]CAPDU: 80 13 00 00 [16:58:34]Write to MH i2c: E2 08 00 A7 18 80 13 00 00 00 00 00 00 3B [16:58:34]Write i2c OK [16:58:34]MH_I2C_Read... [16:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:34]Read from MH i2c: E2 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 62 00 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 62 00 A7 18 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 06 01 00 0E 04 04 00 64 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 0F [16:58: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 E3 06 01 00 0E 04 04 00 64 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 [16:58:34]wFMCommunicate OK [16:58:34]SAM_PROTO_GetFieldsCounters done [16:58:34]requested_item shift.num is exist - process it [16:58:34]requested_item shift.opened is exist - process it [16:58:34]req_shift_opened [16:58:34]FM_GetShiftState [16:58:34]SAM_PROTO_GetShiftState [16:58:34]wFMCommunicate request_size=4 [16:58:34]MH_SAM_APDU [16:58:34]CAPDU: 80 13 01 00 [16:58:34]Write to MH i2c: E2 08 00 A8 18 80 13 01 00 00 00 00 00 3D [16:58:34]Write i2c OK [16:58:34]MH_I2C_Read... [16:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:34]Read from MH i2c: E2 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 0E 00 [16:58:34]MH_I2C_Read... [16:58:34]Read from MH i2c: E2 0E 00 A8 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E8 [16:58:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [16:58:34]wFMCommunicate OK [16:58:34]SAM_PROTO_GetShiftState done [16:58:34]FM_GetShiftState done [16:58:34]req_shift_opened done [16:58:34]requested_item shift.open_date is exist - process it [16:58:34]req_shift_open_date [16:58:34]req_shift_open_date done [16:58:34]produce_requested_data done [16:58:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67299,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [16:58:34]process_action_free close_receipt [16:58:34]json_value_free [16:58:34]json_value_free done [16:58:34]process_json_proto returns [16:58:34]Send response to host [16:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67299,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [16:58:34]free response buf [16:58:34]execute_script done [16:58:34]execute_script returns [16:58:34]free content buf [16:58:34]Sock 9.Close socket [16:58:34]Sock 9.Thread stoped [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:00]accept exits with 7 [17:11:00]New connection [17:11:00]New thread 3067174244 created [17:11:00]Thread 3067030884 joined [17:11:00]Waiting for new connection... [17:11:00] Sock 7.Parse request [17:11:00]Sock 7.Check first char [17:11:00]Sock 7.First char is OK [17:11:00]request: POST /json_proto HTTP/1.0 [17:11:00]Method: POST [17:11:00]URL: /json_proto [17:11:00]Method is POST - this is cgi request [17:11:00]url: /json_proto [17:11:00]query_string will be loaded in cgi processing [17:11:00]execute_cgi json_proto POST (null) [17:11:00]execute_cgi path=json_proto method=POST [17:11:00]POST find Content-Length [17:11:00]Host: 172.17.41.195:8080 [17:11:00]Content-Length: 800 [17:11:00]Content-Type: application/json [17:11:00] [17:11:00]POST finish read [17:11:00]Found Content-Length = 800 [17:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507285", "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:11:00]execute_script... [17:11: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)507285", "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:11:00]POST & json_proto [17:11:00]process_json_proto [17:11:00]json parsed OK: [17:11:00]protocol is kg_v1.0 [17:11:00]action value=close_receipt [17:11:00]process_action close_receipt [17:11:00]cmd_close_receipt [17:11:00]MH_GetDate [17:11:00]Write to MH i2c: F0 00 00 A9 18 B0 [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: F0 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: F0 09 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: F0 09 00 A9 18 00 A6 EC 44 66 FC 21 6F 64 E5 [17:11:00]GetLastDocTimeStamp 1715792311 [17:11:00]current date 1715793062 [17:11:00]FM_GetShiftState [17:11:00]SAM_PROTO_GetShiftState [17:11:00]wFMCommunicate request_size=4 [17:11:00]MH_SAM_APDU [17:11:00]CAPDU: 80 13 01 00 [17:11:00]Write to MH i2c: E2 08 00 AA 18 80 13 01 00 00 00 00 00 3F [17:11:00]Write i2c OK [17:11:00]MH_I2C_Read... [17:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:00]Read from MH i2c: E2 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 [17:11:00]MH_I2C_Read... [17:11:00]Read from MH i2c: E2 0E 00 AA 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EA [17:11:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:11:00]wFMCommunicate OK [17:11:00]SAM_PROTO_GetShiftState done [17:11:00]FM_GetShiftState done [17:11:00]opened in 1715732471 [17:11:00]opened+sec_in_day 1715818871 [17:11:00]quantity*price = 30060 [17:11:00]sum+1 = 30061 [17:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 118 15.05.2024 17:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67300 ФПД: 102651713851156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67300&fm=102651713851156&tin=02508201610067®Number=0000000000091845&sum=30060 [17:11:01]StoreToDocumentArchive [17:11:01]shift 356 fd 67300 [17:11:01]save to /storage/0356/doc_00067300 [17:11:01]save last doc name /storage/0356/doc_00067300 to /storage/kkm_last_doc_name [17:11:01]save OK [17:11:01]Clear old archive folders... [17:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:01]tlvbuf is 00B72AB0 [17:11:01]SAM_PROTO_ClearQueue [17:11:01]wFMCommunicate request_size=4 [17:11:01]MH_SAM_APDU [17:11:01]CAPDU: 80 09 00 00 [17:11:01]Write to MH i2c: E2 08 00 B7 18 80 09 00 00 00 00 00 00 41 [17:11:01]Write i2c OK [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 [17:11:01]MH_I2C_Read... [17:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:01]Read from MH i2c: E2 03 00 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [17:11:01]RAPDU: 90 00 [17:11:01]wFMCommunicate OK [17:11:01]SAM_PROTO_ClearQueue done [17:11:01]KKMCreateOFDPacket [17:11:01]OFDProtocolAddRootSTLVToBuf [17:11:01]FM_MakeSignedData [17:11:01]FM_MakeSignedData [17:11:01]SAM_PROTO_SignData [17:11:01]wFMCommunicate request_size=4 [17:11:01]MH_SAM_APDU [17:11:01]CAPDU: 80 0D 01 02 [17:11:01]Write to MH i2c: E2 08 00 B8 18 80 0D 01 02 00 00 00 00 49 [17:11:01]Write i2c OK [17:11:01]MH_I2C_Read... [17:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:01]Read from MH i2c: E2 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 03 00 [17:11:01]MH_I2C_Read... [17:11:01]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [17:11:01]RAPDU: 90 00 [17:11:01]wFMCommunicate OK [17:11:01]wFMCommunicate request_size=255 [17:11:01]MH_SAM_APDU [17:11:01]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 76 00 00 00 F4 03 04 00 A6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D [17:11:01]Write to MH i2c: E2 02 01 B9 18 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 76 00 00 00 F4 03 04 00 A6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D 00 00 C0 [17:11:01]Write i2c OK [17:11:01]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 03 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [17:11:02]RAPDU: 90 00 [17:11:02]wFMCommunicate OK [17:11:02]wFMCommunicate request_size=10 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 0D 02 02 05 5C 76 F0 8F 14 [17:11:02]Write to MH i2c: E2 0D 00 BA 18 80 0D 02 02 05 00 5C 76 F0 8F 14 00 00 BB [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 03 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [17:11:02]RAPDU: 90 00 [17:11:02]wFMCommunicate OK [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 0D 03 02 [17:11:02]Write to MH i2c: E2 08 00 BB 18 80 0D 03 02 00 00 00 00 4E [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0B 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0B 00 BB 18 00 85 87 77 CE 11 7C E2 80 90 00 8F [17:11:02]RAPDU: 85 87 77 CE 11 7C E2 80 90 00 [17:11:02]wFMCommunicate OK [17:11:02]SAM_PROTO_SignData done [17:11:02]FM_MakeSignedData done [17:11:02]CreateOFDProtocolMessage [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 11 00 00 [17:11:02]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 17 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [17:11:02]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:02]wFMCommunicate OK [17:11:02]CreateOFDProtocolMessage done [17:11:02]OFDSenderStorePacket 67300 [17:11:02]StoreOFDPacket docnum=67300 [17:11: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 0F 01 00 00 E3 E4 07 01 FC 2E 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 76 00 00 00 F4 03 04 00 A6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D 5C 76 F0 8F 14 85 87 77 CE 11 7C E2 80 [17:11:02]CheckFolder [17:11:02]dirname=/storage/ofd_packets [17:11:02]CheckFolder done [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00067300 [17:11:02]NVStorageSaveData ofd_packets/00067300 [17:11:02]File name is /storage/ofd_packets/00067300 [17:11:02]Write 301 bytes [17:11:02]NVStorageSaveData done [17:11:02]OFDSenderStorePacket done [17:11:02]KKMCreateOFDPacket done [17:11:02]NVStorageSaveData kkm_last_timestamp [17:11:02]File name is /storage/kkm_last_timestamp [17:11:02]Write 4 bytes [17:11:02]NVStorageSaveData done [17:11:02]ExternCall_PrintAddStr [17:11:02]wPrintStart [17:11:02]Write to MH i2c: 01 00 00 BD 18 D5 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: 01 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: 01 07 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: 01 07 00 BD 18 00 00 00 00 00 FF 0F EA [17:11:02]RasterBufferAndPrint [17:11:02]line Счет N : (1)507285 [17:11:02]line ИНН: 02508201610067 [17:11:02]line Контрольно-Кассовый Чек [17:11:02]line ПРОДАЖА [17:11:02]line ТРК (МРК, ГНК) : 43 [17:11:02]line Товар: 2710124130 [17:11:02]line Аи-92-К-5 [17:11:02]line 4.500 * 66.80 [17:11:02]line = 300.60 [17:11:02]line НДС 12% НСП 1% [17:11:02]line > о реализуемом товаре [17:11:02]line ИТОГО: 300.60 [17:11:02]line НСП 1% : 2.66 [17:11:02]line НДС 12% : 31.92 [17:11:02]line Наличными: 0.00 [17:11:02]line Безнал.: 300.60 [17:11:02]line Место: АЗС № 91 "Партнер Нефть" [17:11:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:11:02]line СНО: Общий режим [17:11:02]line Чек 118 15.05.2024 17:11 [17:11:02]line Смена: 356 ФФД: 1.0 [17:11:02]line ЗНМ: 0300000119 [17:11:02]line РНМ: 0000000000091845 [17:11:02]line Версия ККМ: 001 [17:11:02]line Платежная система: O! деньги [17:11:02]line ФМ: 0000000000871829 [17:11:02]line ФД: 67300 [17:11:02]line ФПД: 102651713851156 [17:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67300&fm=102651713851156&tin=02508201610067®Number=0000000000091845&sum=30060 [17:11:02]OFD Sender: Processing packet 67300 [packets to send 35, broken 34] [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00067300 [17:11:02]OFD Sender: To server: pG, [17:11:02]CommunicateWithHost lk.salyk.kg:30040 [17:11:02]ConnectInit lk.salyk.kg [17:11:02]written 0, free lines is 4095 [17:11:02]Connected sock=10 [17:11: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 0F 01 00 00 E3 E4 07 01 FC 2E 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 76 00 00 00 F4 03 04 00 A6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5D 5C 76 F0 8F 14 85 87 77 CE 11 7C E2 80 [17:11: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 39 8F 47 00 FF D1 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 06 01 00 F4 03 04 00 83 94 44 66 B6 04 01 00 00 42 A2 1C D4 BC B1 B5 6C [17:11:02]CommunicateWithHost err = 0 [17:11:02]CheckOFDResponse [17:11:02]1017 (14) - 77093643461234 [17:11:02]1041 (16) - 0000000000871829 [17:11:02]1040 (4) - 67300 [17:11:02]1012 (4) - 15.05.2024 10:54 [17:11:02]1206 (1) - 0 [17:11:02]OFD Sender: Remove packet 67300 [17:11:02]ProducePacketName [17:11:02]name=ofd_packets/00067300 [17:11:02]NVStorageDeleteData [17:11:03]Write to MH i2c: 01 00 00 E6 18 FE [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 D8 0C E9 [17:11:03]RasterBufferAndPrint [17:11:03]line [17:11:03]line [17:11:03]line [17:11:03]line [17:11:03]line [17:11:03]written 0, free lines is 3294 [17:11:03]MH_Cut [17:11:03]Write to MH i2c: D1 01 00 ED 18 01 D7 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: D1 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: D1 01 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: D1 01 00 ED 18 00 D6 [17:11:03]Write to MH i2c: 01 00 00 EE 18 06 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]OFD Sender: No OFD packet to send [17:11:03]*** Cut start [17:11:03]*** Purtial cut [17:11:03]*** Stage 1: CUTSNS_PIN = 1 [17:11:04]Read from MH i2c: 01 [17:11:04]MH_I2C_Read... [17:11:04]*** Stop cut motor [17:11:04]*** Cut end [17:11:04]Read from MH i2c: 01 07 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 EE 18 00 00 00 00 00 FF 0F 1B [17:11:04]process_action close_receipt done [17:11:04]requested_data is exist [17:11:04]produce_requested_data [17:11:04]requested_item fm.sn is exist - process it [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 11 00 00 [17:11:04]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D7 [17:11: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:11:04]wFMCommunicate OK [17:11:04]requested_item fd.num is exist - process it [17:11:04]SAM_PROTO_GetFieldsCounters [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 13 00 00 [17:11:04]Write to MH i2c: E2 08 00 F0 18 80 13 00 00 00 00 00 00 84 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 62 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 62 00 F0 18 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 06 01 00 0E 04 04 00 64 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 5C [17:11: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 E4 06 01 00 0E 04 04 00 64 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 [17:11:04]wFMCommunicate OK [17:11:04]SAM_PROTO_GetFieldsCounters done [17:11:04]requested_item shift.num is exist - process it [17:11:04]requested_item shift.opened is exist - process it [17:11:04]req_shift_opened [17:11:04]FM_GetShiftState [17:11:04]SAM_PROTO_GetShiftState [17:11:04]wFMCommunicate request_size=4 [17:11:04]MH_SAM_APDU [17:11:04]CAPDU: 80 13 01 00 [17:11:04]Write to MH i2c: E2 08 00 F1 18 80 13 01 00 00 00 00 00 86 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:04]Read from MH i2c: E2 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 0E 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: E2 0E 00 F1 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 31 [17:11:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:11:04]wFMCommunicate OK [17:11:04]SAM_PROTO_GetShiftState done [17:11:04]FM_GetShiftState done [17:11:04]req_shift_opened done [17:11:04]requested_item shift.open_date is exist - process it [17:11:04]req_shift_open_date [17:11:04]req_shift_open_date done [17:11:04]produce_requested_data done [17:11:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67300,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:11:04]process_action_free close_receipt [17:11:04]json_value_free [17:11:04]json_value_free done [17:11:04]process_json_proto returns [17:11:04]Send response to host [17:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67300,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:11:04]free response buf [17:11:04]execute_script done [17:11:04]execute_script returns [17:11:04]free content buf [17:11:04]Sock 7.Close socket [17:11:04]Sock 7.Thread stoped [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:21]accept exits with 9 [17:12:21]New connection [17:12:21]New thread 3067030884 created [17:12:21]Thread 3067174244 joined [17:12:21]Waiting for new connection... [17:12:21] Sock 9.Parse request [17:12:21]Sock 9.Check first char [17:12:21]Sock 9.First char is OK [17:12:21]request: POST /json_proto HTTP/1.0 [17:12:21]Method: POST [17:12:21]URL: /json_proto [17:12:21]Method is POST - this is cgi request [17:12:21]url: /json_proto [17:12:21]query_string will be loaded in cgi processing [17:12:21]execute_cgi json_proto POST (null) [17:12:21]execute_cgi path=json_proto method=POST [17:12:21]POST find Content-Length [17:12:21]Host: 172.17.41.195:8080 [17:12:21]Content-Length: 800 [17:12:21]Content-Type: application/json [17:12:21] [17:12:21]POST finish read [17:12:21]Found Content-Length = 800 [17:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507286", "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" ] } } [17:12:21]execute_script... [17:12: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)507286", "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" ] } } [17:12:21]POST & json_proto [17:12:21]process_json_proto [17:12:21]json parsed OK: [17:12:21]protocol is kg_v1.0 [17:12:21]action value=close_receipt [17:12:21]process_action close_receipt [17:12:21]cmd_close_receipt [17:12:21]MH_GetDate [17:12:21]Write to MH i2c: F0 00 00 F2 18 F9 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: F0 09 00 F2 18 00 F6 EC 44 66 FC 21 6F 64 7E [17:12:21]GetLastDocTimeStamp 1715793062 [17:12:21]current date 1715793142 [17:12:21]FM_GetShiftState [17:12:21]SAM_PROTO_GetShiftState [17:12:21]wFMCommunicate request_size=4 [17:12:21]MH_SAM_APDU [17:12:21]CAPDU: 80 13 01 00 [17:12:21]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [17:12:21]Write i2c OK [17:12:21]MH_I2C_Read... [17:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:21]Read from MH i2c: E2 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0E 00 [17:12:21]MH_I2C_Read... [17:12:21]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 33 [17:12:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:12:21]wFMCommunicate OK [17:12:21]SAM_PROTO_GetShiftState done [17:12:21]FM_GetShiftState done [17:12:21]opened in 1715732471 [17:12:21]opened+sec_in_day 1715818871 [17:12:21]quantity*price = 100023 [17:12:21]sum+1 = 100024 [17:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 119 15.05.2024 17:12 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67301 ФПД: 205628935508062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171222&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67301&fm=205628935508062&tin=02508201610067®Number=0000000000091845&sum=100023 [17:12:22]StoreToDocumentArchive [17:12:22]shift 356 fd 67301 [17:12:22]save to /storage/0356/doc_00067301 [17:12:22]save last doc name /storage/0356/doc_00067301 to /storage/kkm_last_doc_name [17:12:22]save OK [17:12:22]Clear old archive folders... [17:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:12:22]tlvbuf is 00B02FB0 [17:12:22]SAM_PROTO_ClearQueue [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 09 00 00 [17:12:22]Write to MH i2c: E2 08 00 00 19 80 09 00 00 00 00 00 00 8B [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [17:12:22]RAPDU: 90 00 [17:12:22]wFMCommunicate OK [17:12:22]SAM_PROTO_ClearQueue done [17:12:22]KKMCreateOFDPacket [17:12:22]OFDProtocolAddRootSTLVToBuf [17:12:22]FM_MakeSignedData [17:12:22]FM_MakeSignedData [17:12:22]SAM_PROTO_SignData [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 0D 01 02 [17:12:22]Write to MH i2c: E2 08 00 01 19 80 0D 01 02 00 00 00 00 93 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [17:12:22]RAPDU: 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=255 [17:12:22]MH_SAM_APDU [17:12:22]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 77 00 00 00 F4 03 04 00 F6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BB 04 B7 A8 [17:12:22]Write to MH i2c: E2 02 01 02 19 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 77 00 00 00 F4 03 04 00 F6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BB 04 B7 A8 00 00 0D [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [17:12:22]RAPDU: 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=7 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 0D 02 02 02 10 5E [17:12:22]Write to MH i2c: E2 0A 00 03 19 80 0D 02 02 02 00 10 5E 00 00 08 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [17:12:22]RAPDU: 90 00 [17:12:22]wFMCommunicate OK [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 0D 03 02 [17:12:22]Write to MH i2c: E2 08 00 04 19 80 0D 03 02 00 00 00 00 98 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 0B 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 0B 00 04 19 00 D2 34 AB F9 5B 11 63 9D 90 00 AF [17:12:22]RAPDU: D2 34 AB F9 5B 11 63 9D 90 00 [17:12:22]wFMCommunicate OK [17:12:22]SAM_PROTO_SignData done [17:12:22]FM_MakeSignedData done [17:12:22]CreateOFDProtocolMessage [17:12:22]wFMCommunicate request_size=4 [17:12:22]MH_SAM_APDU [17:12:22]CAPDU: 80 11 00 00 [17:12:22]Write to MH i2c: E2 08 00 05 19 80 11 00 00 00 00 00 00 98 [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:22]Read from MH i2c: E2 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 17 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: E2 17 00 05 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EE [17:12: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:12:22]wFMCommunicate OK [17:12:22]CreateOFDProtocolMessage done [17:12:22]OFDSenderStorePacket 67301 [17:12:22]StoreOFDPacket docnum=67301 [17:12:22]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 B8 4A 04 01 85 7C 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 77 00 00 00 F4 03 04 00 F6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BB 04 B7 A8 10 5E D2 34 AB F9 5B 11 63 9D [17:12:22]CheckFolder [17:12:22]dirname=/storage/ofd_packets [17:12:22]CheckFolder done [17:12:22]ProducePacketName [17:12:22]name=ofd_packets/00067301 [17:12:22]NVStorageSaveData ofd_packets/00067301 [17:12:22]File name is /storage/ofd_packets/00067301 [17:12:22]Write 298 bytes [17:12:22]NVStorageSaveData done [17:12:22]OFDSenderStorePacket done [17:12:22]KKMCreateOFDPacket done [17:12:22]NVStorageSaveData kkm_last_timestamp [17:12:22]File name is /storage/kkm_last_timestamp [17:12:22]Write 4 bytes [17:12:22]NVStorageSaveData done [17:12:22]ExternCall_PrintAddStr [17:12:22]wPrintStart [17:12:22]Write to MH i2c: 01 00 00 06 19 1F [17:12:22]Write i2c OK [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 [17:12:22]MH_I2C_Read... [17:12:22]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [17:12:22]RasterBufferAndPrint [17:12:22]line Счет N : (1)507286 [17:12:22]line ИНН: 02508201610067 [17:12:22]line Контрольно-Кассовый Чек [17:12:22]line ПРОДАЖА [17:12:22]line ТРК (МРК, ГНК) : 21 [17:12:22]line Товар: 2710194210 [17:12:22]line ДТ-К-5 [17:12:22]line 13.390 * 74.70 [17:12:22]line = 1000.23 [17:12:22]line НДС 12% НСП 1% [17:12:22]line > о реализуемом товаре [17:12:22]line ИТОГО: 1000.23 [17:12:22]line НСП 1% : 8.85 [17:12:22]line НДС 12% : 106.22 [17:12:22]line Наличными: 0.00 [17:12:22]line Безнал.: 1000.23 [17:12:22]line Место: АЗС № 91 "Партнер Нефть" [17:12:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:12:22]line СНО: Общий режим [17:12:22]line Чек 119 15.05.2024 17:12 [17:12:22]line Смена: 356 ФФД: 1.0 [17:12:22]line ЗНМ: 0300000119 [17:12:22]line РНМ: 0000000000091845 [17:12:22]line Версия ККМ: 001 [17:12:22]line Платежная система: O! деньги [17:12:22]line ФМ: 0000000000871829 [17:12:22]line ФД: 67301 [17:12:22]line ФПД: 205628935508062 [17:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171222&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67301&fm=205628935508062&tin=02508201610067®Number=0000000000091845&sum=100023 [17:12:23]OFD Sender: Processing packet 67301 [packets to send 35, broken 34] [17:12:23]ProducePacketName [17:12:23]name=ofd_packets/00067301 [17:12:23]OFD Sender: To server: pG, [17:12:23]CommunicateWithHost lk.salyk.kg:30040 [17:12:23]ConnectInit lk.salyk.kg [17:12:23]written 0, free lines is 4095 [17:12:23]Connected sock=10 [17:12: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 0C 01 00 00 B8 4A 04 01 85 7C 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 77 00 00 00 F4 03 04 00 F6 EC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BB 04 B7 A8 10 5E D2 34 AB F9 5B 11 63 9D [17:12: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 2C 59 47 00 98 B4 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 06 01 00 F4 03 04 00 D3 94 44 66 B6 04 01 00 00 8C 7F CC 2C 62 50 0A F3 [17:12:23]CommunicateWithHost err = 0 [17:12:23]CheckOFDResponse [17:12:23]1017 (14) - 77093643461234 [17:12:23]1041 (16) - 0000000000871829 [17:12:23]1040 (4) - 67301 [17:12:23]1012 (4) - 15.05.2024 10:56 [17:12:23]1206 (1) - 0 [17:12:23]OFD Sender: Remove packet 67301 [17:12:23]ProducePacketName [17:12:23]name=ofd_packets/00067301 [17:12:23]NVStorageDeleteData [17:12:23]Write to MH i2c: 01 00 00 2F 19 48 [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 07 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 DA 0C 35 [17:12:23]RasterBufferAndPrint [17:12:23]line [17:12:23]line [17:12:23]line [17:12:23]line [17:12:23]line [17:12:23]written 0, free lines is 3299 [17:12:23]MH_Cut [17:12:23]Write to MH i2c: D1 01 00 36 19 01 21 [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: D1 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: D1 01 00 [17:12:23]MH_I2C_Read... [17:12:23]Read from MH i2c: D1 01 00 36 19 00 20 [17:12:23]Write to MH i2c: 01 00 00 37 19 50 [17:12:23]Write i2c OK [17:12:23]MH_I2C_Read... [17:12:23]OFD Sender: No OFD packet to send [17:12:24]*** Cut start [17:12:24]*** Purtial cut [17:12:24]*** CUTSNS_PIN = 0 [17:12:24]*** Stage 1: CUTSNS_PIN = 1 [17:12:26]Read from MH i2c: 01 [17:12:26]MH_I2C_Read... [17:12:26]*** Stop cut motor [17:12:26]*** Cut end [17:12:26]Read from MH i2c: 01 07 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 FF 0F 65 [17:12:26]process_action close_receipt done [17:12:26]requested_data is exist [17:12:26]produce_requested_data [17:12:26]requested_item fm.sn is exist - process it [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 11 00 00 [17:12:26]Write to MH i2c: E2 08 00 38 19 80 11 00 00 00 00 00 00 CB [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 17 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 17 00 38 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [17:12: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:12:26]wFMCommunicate OK [17:12:26]requested_item fd.num is exist - process it [17:12:26]SAM_PROTO_GetFieldsCounters [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 13 00 00 [17:12:26]Write to MH i2c: E2 08 00 39 19 80 13 00 00 00 00 00 00 CE [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 62 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 62 00 39 19 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 06 01 00 0E 04 04 00 64 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 AA [17:12: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 E5 06 01 00 0E 04 04 00 64 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 [17:12:26]wFMCommunicate OK [17:12:26]SAM_PROTO_GetFieldsCounters done [17:12:26]requested_item shift.num is exist - process it [17:12:26]requested_item shift.opened is exist - process it [17:12:26]req_shift_opened [17:12:26]FM_GetShiftState [17:12:26]SAM_PROTO_GetShiftState [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 13 01 00 [17:12:26]Write to MH i2c: E2 08 00 3A 19 80 13 01 00 00 00 00 00 D0 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 0E 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 0E 00 3A 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7B [17:12:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:12:26]wFMCommunicate OK [17:12:26]SAM_PROTO_GetShiftState done [17:12:26]FM_GetShiftState done [17:12:26]req_shift_opened done [17:12:26]requested_item shift.open_date is exist - process it [17:12:26]req_shift_open_date [17:12:26]req_shift_open_date done [17:12:26]produce_requested_data done [17:12:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67301,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:12:26]process_action_free close_receipt [17:12:26]json_value_free [17:12:26]json_value_free done [17:12:26]process_json_proto returns [17:12:26]Send response to host [17:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67301,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:12:26]free response buf [17:12:26]execute_script done [17:12:26]execute_script returns [17:12:26]free content buf [17:12:26]Sock 9.Close socket [17:12:26]Sock 9.Thread stoped [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:15]accept exits with 7 [17:16:15]New connection [17:16:15]New thread 3067174244 created [17:16:15]Thread 3067030884 joined [17:16:15]Waiting for new connection... [17:16:15] Sock 7.Parse request [17:16:15]Sock 7.Check first char [17:16:15]Sock 7.First char is OK [17:16:15]request: POST /json_proto HTTP/1.0 [17:16:15]Method: POST [17:16:15]URL: /json_proto [17:16:15]Method is POST - this is cgi request [17:16:15]url: /json_proto [17:16:15]query_string will be loaded in cgi processing [17:16:15]execute_cgi json_proto POST (null) [17:16:15]execute_cgi path=json_proto method=POST [17:16:15]POST find Content-Length [17:16:15]Host: 172.17.41.195:8080 [17:16:15]Content-Length: 677 [17:16:15]Content-Type: application/json [17:16:15] [17:16:15]POST finish read [17:16:15]Found Content-Length = 677 [17:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507287", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]execute_script... [17:16: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)507287", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:15]POST & json_proto [17:16:15]process_json_proto [17:16:15]json parsed OK: [17:16:15]protocol is kg_v1.0 [17:16:15]action value=close_receipt [17:16:15]process_action close_receipt [17:16:15]cmd_close_receipt [17:16:15]MH_GetDate [17:16:15]Write to MH i2c: F0 00 00 3B 19 43 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: F0 09 00 3B 19 00 E0 ED 44 66 FC 21 6F 64 B3 [17:16:15]GetLastDocTimeStamp 1715793142 [17:16:15]current date 1715793376 [17:16:15]FM_GetShiftState [17:16:15]SAM_PROTO_GetShiftState [17:16:15]wFMCommunicate request_size=4 [17:16:15]MH_SAM_APDU [17:16:15]CAPDU: 80 13 01 00 [17:16:15]Write to MH i2c: E2 08 00 3C 19 80 13 01 00 00 00 00 00 D2 [17:16:15]Write i2c OK [17:16:15]MH_I2C_Read... [17:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:15]Read from MH i2c: E2 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 [17:16:15]MH_I2C_Read... [17:16:15]Read from MH i2c: E2 0E 00 3C 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7D [17:16:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:16:15]wFMCommunicate OK [17:16:15]SAM_PROTO_GetShiftState done [17:16:15]FM_GetShiftState done [17:16:15]opened in 1715732471 [17:16:15]opened+sec_in_day 1715818871 [17:16:15]quantity*price = 20040 [17:16:15]sum+1 = 20041 [17:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 120 15.05.2024 17:16 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67302 ФПД: 192086107603880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67302&fm=192086107603880&tin=02508201610067®Number=0000000000091845&sum=20000 [17:16:16]StoreToDocumentArchive [17:16:16]shift 356 fd 67302 [17:16:16]save to /storage/0356/doc_00067302 [17:16:16]save last doc name /storage/0356/doc_00067302 to /storage/kkm_last_doc_name [17:16:16]save OK [17:16:16]Clear old archive folders... [17:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:16]tlvbuf is 00B74FB0 [17:16:16]SAM_PROTO_ClearQueue [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 09 00 00 [17:16:16]Write to MH i2c: E2 08 00 49 19 80 09 00 00 00 00 00 00 D4 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]SAM_PROTO_ClearQueue done [17:16:16]KKMCreateOFDPacket [17:16:16]OFDProtocolAddRootSTLVToBuf [17:16:16]FM_MakeSignedData [17:16:16]FM_MakeSignedData [17:16:16]SAM_PROTO_SignData [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 01 02 [17:16:16]Write to MH i2c: E2 08 00 4A 19 80 0D 01 02 00 00 00 00 DC [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=255 [17:16:16]MH_SAM_APDU [17:16:16]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 20 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 20 4E 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 E0 ED 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE [17:16:16]Write to MH i2c: E2 02 01 4B 19 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 20 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 20 4E 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 E0 ED 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 00 00 4A [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=10 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 02 02 05 B3 88 35 C3 A8 [17:16:16]Write to MH i2c: E2 0D 00 4C 19 80 0D 02 02 05 00 B3 88 35 C3 A8 00 00 C4 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [17:16:16]RAPDU: 90 00 [17:16:16]wFMCommunicate OK [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 0D 03 02 [17:16:16]Write to MH i2c: E2 08 00 4D 19 80 0D 03 02 00 00 00 00 E1 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 0B 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 0B 00 4D 19 00 30 B4 4A 50 D2 5A 83 F2 90 00 01 [17:16:16]RAPDU: 30 B4 4A 50 D2 5A 83 F2 90 00 [17:16:16]wFMCommunicate OK [17:16:16]SAM_PROTO_SignData done [17:16:16]FM_MakeSignedData done [17:16:16]CreateOFDProtocolMessage [17:16:16]wFMCommunicate request_size=4 [17:16:16]MH_SAM_APDU [17:16:16]CAPDU: 80 11 00 00 [17:16:16]Write to MH i2c: E2 08 00 4E 19 80 11 00 00 00 00 00 00 E1 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:16]Read from MH i2c: E2 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 17 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: E2 17 00 4E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 37 [17:16:16]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:16]wFMCommunicate OK [17:16:16]CreateOFDProtocolMessage done [17:16:16]OFDSenderStorePacket 67302 [17:16:16]StoreOFDPacket docnum=67302 [17:16: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 0F 01 00 00 90 DC 07 01 98 57 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 20 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 20 4E 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 E0 ED 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE B3 88 35 C3 A8 30 B4 4A 50 D2 5A 83 F2 [17:16:16]CheckFolder [17:16:16]dirname=/storage/ofd_packets [17:16:16]CheckFolder done [17:16:16]ProducePacketName [17:16:16]name=ofd_packets/00067302 [17:16:16]NVStorageSaveData ofd_packets/00067302 [17:16:16]File name is /storage/ofd_packets/00067302 [17:16:16]Write 301 bytes [17:16:16]NVStorageSaveData done [17:16:16]OFDSenderStorePacket done [17:16:16]KKMCreateOFDPacket done [17:16:16]NVStorageSaveData kkm_last_timestamp [17:16:16]File name is /storage/kkm_last_timestamp [17:16:16]Write 4 bytes [17:16:16]NVStorageSaveData done [17:16:16]ExternCall_PrintAddStr [17:16:16]wPrintStart [17:16:16]Write to MH i2c: 01 00 00 4F 19 68 [17:16:16]Write i2c OK [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: 01 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: 01 07 00 [17:16:16]MH_I2C_Read... [17:16:16]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 FF 0F 7D [17:16:16]RasterBufferAndPrint [17:16:16]line Счет N : (1)507287 [17:16:16]line ИНН: 02508201610067 [17:16:16]line Контрольно-Кассовый Чек [17:16:16]line ПРОДАЖА [17:16:16]line ТРК (МРК, ГНК) : 33 [17:16:16]line Товар: 2710124130 [17:16:16]line Аи-92-К-5 [17:16:16]line 3.000 * 66.80 [17:16:16]line = 200.40 [17:16:16]line НДС 12% НСП 1% [17:16:16]line > о реализуемом товаре [17:16:16]line ОКРУГЛЕНИЕ: -0.40 [17:16:16]line ИТОГО: 200.00 [17:16:16]line Внесено: 200.00 [17:16:16]line СДАЧА: 0.00 [17:16:16]line НСП 1% : 1.77 [17:16:16]line НДС 12% : 21.28 [17:16:16]line Наличными: 200.00 [17:16:16]line Безнал.: 0.00 [17:16:16]line Место: АЗС № 91 "Партнер Нефть" [17:16:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:16:16]line СНО: Общий режим [17:16:16]line Чек 120 15.05.2024 17:16 [17:16:16]line Смена: 356 ФФД: 1.0 [17:16:16]line ЗНМ: 0300000119 [17:16:16]line РНМ: 0000000000091845 [17:16:16]line Версия ККМ: 001 [17:16:16]line ФМ: 0000000000871829 [17:16:16]line ФД: 67302 [17:16:16]line ФПД: 192086107603880 [17:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T171616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67302&fm=192086107603880&tin=02508201610067®Number=0000000000091845&sum=20000 [17:16:17]OFD Sender: Processing packet 67302 [packets to send 35, broken 34] [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00067302 [17:16:17]OFD Sender: To server: pG, [17:16:17]CommunicateWithHost lk.salyk.kg:30040 [17:16:17]ConnectInit lk.salyk.kg [17:16:17]written 0, free lines is 4095 [17:16:17]Connected sock=10 [17:16: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 0F 01 00 00 90 DC 07 01 98 57 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 20 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 20 4E 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 E0 ED 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE B3 88 35 C3 A8 30 B4 4A 50 D2 5A 83 F2 [17:16: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 72 52 47 00 8D 9E 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 06 01 00 F4 03 04 00 BD 95 44 66 B6 04 01 00 00 B7 1E 71 C9 1E 25 C5 EC [17:16:17]CommunicateWithHost err = 0 [17:16:17]CheckOFDResponse [17:16:17]1017 (14) - 77093643461234 [17:16:17]1041 (16) - 0000000000871829 [17:16:17]1040 (4) - 67302 [17:16:17]1012 (4) - 15.05.2024 11:00 [17:16:17]1206 (1) - 0 [17:16:17]OFD Sender: Remove packet 67302 [17:16:17]ProducePacketName [17:16:17]name=ofd_packets/00067302 [17:16:17]NVStorageDeleteData [17:16:17]Write to MH i2c: 01 00 00 79 19 92 [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 C5 0C 6A [17:16:17]RasterBufferAndPrint [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]line [17:16:17]written 0, free lines is 3275 [17:16:17]MH_Cut [17:16:17]Write to MH i2c: D1 01 00 80 19 01 6B [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 01 00 [17:16:17]MH_I2C_Read... [17:16:17]Read from MH i2c: D1 01 00 80 19 00 6A [17:16:17]Write to MH i2c: 01 00 00 81 19 9A [17:16:17]Write i2c OK [17:16:17]MH_I2C_Read... [17:16:17]OFD Sender: No OFD packet to send [17:16:18]*** Cut start [17:16:18]*** Purtial cut [17:16:18]*** Stage 1: CUTSNS_PIN = 1 [17:16:18]Read from MH i2c: 01 [17:16:18]MH_I2C_Read... [17:16:18]*** Stop cut motor [17:16:18]*** Cut end [17:16:18]Read from MH i2c: 01 07 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [17:16:18]process_action close_receipt done [17:16:18]requested_data is exist [17:16:18]produce_requested_data [17:16:18]requested_item fm.sn is exist - process it [17:16:18]wFMCommunicate request_size=4 [17:16:18]MH_SAM_APDU [17:16:18]CAPDU: 80 11 00 00 [17:16:18]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:18]Read from MH i2c: E2 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 17 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [17:16: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:16:18]wFMCommunicate OK [17:16:18]requested_item fd.num is exist - process it [17:16:18]SAM_PROTO_GetFieldsCounters [17:16:18]wFMCommunicate request_size=4 [17:16:18]MH_SAM_APDU [17:16:18]CAPDU: 80 13 00 00 [17:16:18]Write to MH i2c: E2 08 00 83 19 80 13 00 00 00 00 00 00 18 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:18]Read from MH i2c: E2 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 62 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 62 00 83 19 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 06 01 00 0E 04 04 00 64 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 F8 [17:16: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 E6 06 01 00 0E 04 04 00 64 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 [17:16:18]wFMCommunicate OK [17:16:18]SAM_PROTO_GetFieldsCounters done [17:16:18]requested_item shift.num is exist - process it [17:16:18]requested_item shift.opened is exist - process it [17:16:18]req_shift_opened [17:16:18]FM_GetShiftState [17:16:18]SAM_PROTO_GetShiftState [17:16:18]wFMCommunicate request_size=4 [17:16:18]MH_SAM_APDU [17:16:18]CAPDU: 80 13 01 00 [17:16:18]Write to MH i2c: E2 08 00 84 19 80 13 01 00 00 00 00 00 1A [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 0E 00 84 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C5 [17:16:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_GetShiftState done [17:16:19]FM_GetShiftState done [17:16:19]req_shift_opened done [17:16:19]requested_item shift.open_date is exist - process it [17:16:19]req_shift_open_date [17:16:19]req_shift_open_date done [17:16:19]produce_requested_data done [17:16:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67302,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:16:19]process_action_free close_receipt [17:16:19]json_value_free [17:16:19]json_value_free done [17:16:19]process_json_proto returns [17:16:19]Send response to host [17:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67302,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:16:19]free response buf [17:16:19]execute_script done [17:16:19]execute_script returns [17:16:19]free content buf [17:16:19]Sock 7.Close socket [17:16:19]Sock 7.Thread stoped [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:47]accept exits with 9 [17:20:47]New connection [17:20:47]New thread 3067030884 created [17:20:47]Thread 3067174244 joined [17:20:47]Waiting for new connection... [17:20:47] Sock 9.Parse request [17:20:47]Sock 9.Check first char [17:20:47]Sock 9.First char is OK [17:20:47]request: POST /json_proto HTTP/1.0 [17:20:47]Method: POST [17:20:47]URL: /json_proto [17:20:47]Method is POST - this is cgi request [17:20:47]url: /json_proto [17:20:47]query_string will be loaded in cgi processing [17:20:47]execute_cgi json_proto POST (null) [17:20:47]execute_cgi path=json_proto method=POST [17:20:47]POST find Content-Length [17:20:47]Host: 172.17.41.195:8080 [17:20:47]Content-Length: 800 [17:20:47]Content-Type: application/json [17:20:47] [17:20:47]POST finish read [17:20:47]Found Content-Length = 800 [17:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507288", "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" : 58.910, "sum" : 4400.58, "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" : 4400.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:47]execute_script... [17:20: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)507288", "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" : 58.910, "sum" : 4400.58, "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" : 4400.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:47]POST & json_proto [17:20:47]process_json_proto [17:20:47]json parsed OK: [17:20:47]protocol is kg_v1.0 [17:20:47]action value=close_receipt [17:20:47]process_action close_receipt [17:20:47]cmd_close_receipt [17:20:47]MH_GetDate [17:20:47]Write to MH i2c: F0 00 00 85 19 8D [17:20:47]Write i2c OK [17:20:47]MH_I2C_Read... [17:20:47]Read from MH i2c: F0 [17:20:47]MH_I2C_Read... [17:20:47]Read from MH i2c: F0 09 00 [17:20:47]MH_I2C_Read... [17:20:47]Read from MH i2c: F0 09 00 85 19 00 F1 EE 44 66 FC 21 6F 64 0F [17:20:47]GetLastDocTimeStamp 1715793376 [17:20:47]current date 1715793649 [17:20:47]FM_GetShiftState [17:20:47]SAM_PROTO_GetShiftState [17:20:47]wFMCommunicate request_size=4 [17:20:47]MH_SAM_APDU [17:20:47]CAPDU: 80 13 01 00 [17:20:47]Write to MH i2c: E2 08 00 86 19 80 13 01 00 00 00 00 00 1C [17:20:47]Write i2c OK [17:20:47]MH_I2C_Read... [17:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:47]Read from MH i2c: E2 [17:20:47]MH_I2C_Read... [17:20:47]Read from MH i2c: E2 0E 00 [17:20:47]MH_I2C_Read... [17:20:47]Read from MH i2c: E2 0E 00 86 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [17:20:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:20:47]wFMCommunicate OK [17:20:47]SAM_PROTO_GetShiftState done [17:20:47]FM_GetShiftState done [17:20:47]opened in 1715732471 [17:20:47]opened+sec_in_day 1715818871 [17:20:47]quantity*price = 440057 [17:20:47]sum+1 = 440059 [17:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4400.58 НСП 1% : 38.94 НДС 12% : 467.32 Наличными: 0.00 Безнал.: 4400.58 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 121 15.05.2024 17:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67303 ФПД: 34487649780864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172049&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67303&fm=34487649780864&tin=02508201610067®Number=0000000000091845&sum=440058 [17:20:48]StoreToDocumentArchive [17:20:48]shift 356 fd 67303 [17:20:48]save to /storage/0356/doc_00067303 [17:20:48]save last doc name /storage/0356/doc_00067303 to /storage/kkm_last_doc_name [17:20:48]save OK [17:20:48]Clear old archive folders... [17:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:20:48]tlvbuf is 00B72BA0 [17:20:48]SAM_PROTO_ClearQueue [17:20:48]wFMCommunicate request_size=4 [17:20:48]MH_SAM_APDU [17:20:48]CAPDU: 80 09 00 00 [17:20:48]Write to MH i2c: E2 08 00 93 19 80 09 00 00 00 00 00 00 1E [17:20:48]Write i2c OK [17:20:48]MH_I2C_Read... [17:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:48]Read from MH i2c: E2 [17:20:48]MH_I2C_Read... [17:20:48]Read from MH i2c: E2 03 00 [17:20:48]MH_I2C_Read... [17:20:48]Read from MH i2c: E2 03 00 93 19 00 90 00 20 [17:20:48]RAPDU: 90 00 [17:20:48]wFMCommunicate OK [17:20:48]SAM_PROTO_ClearQueue done [17:20:48]KKMCreateOFDPacket [17:20:48]OFDProtocolAddRootSTLVToBuf [17:20:48]FM_MakeSignedData [17:20:48]FM_MakeSignedData [17:20:48]SAM_PROTO_SignData [17:20:48]wFMCommunicate request_size=4 [17:20:48]MH_SAM_APDU [17:20:48]CAPDU: 80 0D 01 02 [17:20:48]Write to MH i2c: E2 08 00 94 19 80 0D 01 02 00 00 00 00 26 [17:20:48]Write i2c OK [17:20:48]MH_I2C_Read... [17:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [17:20:49]RAPDU: 90 00 [17:20:49]wFMCommunicate OK [17:20:49]wFMCommunicate request_size=255 [17:20:49]MH_SAM_APDU [17:20: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 1E E6 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FA B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C B6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 EE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1F 5D C8 1D [17:20:49]Write to MH i2c: E2 02 01 95 19 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 1E E6 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FA B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C B6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 EE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1F 5D C8 1D 00 00 36 [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [17:20:49]RAPDU: 90 00 [17:20:49]wFMCommunicate OK [17:20:49]wFMCommunicate request_size=7 [17:20:49]MH_SAM_APDU [17:20:49]CAPDU: 80 0D 02 02 02 44 80 [17:20:49]Write to MH i2c: E2 0A 00 96 19 80 0D 02 02 02 00 44 80 00 00 F1 [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [17:20:49]RAPDU: 90 00 [17:20:49]wFMCommunicate OK [17:20:49]wFMCommunicate request_size=4 [17:20:49]MH_SAM_APDU [17:20:49]CAPDU: 80 0D 03 02 [17:20:49]Write to MH i2c: E2 08 00 97 19 80 0D 03 02 00 00 00 00 2B [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 0B 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 0B 00 97 19 00 4A 66 E0 DA 9C 28 8E 16 90 00 FE [17:20:49]RAPDU: 4A 66 E0 DA 9C 28 8E 16 90 00 [17:20:49]wFMCommunicate OK [17:20:49]SAM_PROTO_SignData done [17:20:49]FM_MakeSignedData done [17:20:49]CreateOFDProtocolMessage [17:20:49]wFMCommunicate request_size=4 [17:20:49]MH_SAM_APDU [17:20:49]CAPDU: 80 11 00 00 [17:20:49]Write to MH i2c: E2 08 00 98 19 80 11 00 00 00 00 00 00 2B [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 17 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 17 00 98 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [17:20: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:20:49]wFMCommunicate OK [17:20:49]CreateOFDProtocolMessage done [17:20:49]OFDSenderStorePacket 67303 [17:20:49]StoreOFDPacket docnum=67303 [17:20: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 A2 48 04 01 13 9C 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 1E E6 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FA B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C B6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 EE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1F 5D C8 1D 44 80 4A 66 E0 DA 9C 28 8E 16 [17:20:49]CheckFolder [17:20:49]dirname=/storage/ofd_packets [17:20:49]CheckFolder done [17:20:49]ProducePacketName [17:20:49]name=ofd_packets/00067303 [17:20:49]NVStorageSaveData ofd_packets/00067303 [17:20:49]File name is /storage/ofd_packets/00067303 [17:20:49]Write 298 bytes [17:20:49]NVStorageSaveData done [17:20:49]OFDSenderStorePacket done [17:20:49]KKMCreateOFDPacket done [17:20:49]NVStorageSaveData kkm_last_timestamp [17:20:49]File name is /storage/kkm_last_timestamp [17:20:49]Write 4 bytes [17:20:49]NVStorageSaveData done [17:20:49]ExternCall_PrintAddStr [17:20:49]wPrintStart [17:20:49]Write to MH i2c: 01 00 00 99 19 B2 [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: 01 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: 01 07 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 FF 0F C7 [17:20:49]RasterBufferAndPrint [17:20:49]line Счет N : (1)507288 [17:20:49]line ИНН: 02508201610067 [17:20:49]line Контрольно-Кассовый Чек [17:20:49]line ПРОДАЖА [17:20:49]line ТРК (МРК, ГНК) : 21 [17:20:49]line Товар: 2710194210 [17:20:49]line ДТ-К-5 [17:20:49]line 58.910 * 74.70 [17:20:49]line = 4400.58 [17:20:49]line НДС 12% НСП 1% [17:20:49]line > о реализуемом товаре [17:20:49]line ИТОГО: 4400.58 [17:20:49]line НСП 1% : 38.94 [17:20:49]line НДС 12% : 467.32 [17:20:49]line Наличными: 0.00 [17:20:49]line Безнал.: 4400.58 [17:20:49]line Место: АЗС № 91 "Партнер Нефть" [17:20:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:20:49]line СНО: Общий режим [17:20:49]line Чек 121 15.05.2024 17:20 [17:20:49]line Смена: 356 ФФД: 1.0 [17:20:49]line ЗНМ: 0300000119 [17:20:49]line РНМ: 0000000000091845 [17:20:49]line Версия ККМ: 001 [17:20:49]line Платежная система: O! деньги [17:20:49]line ФМ: 0000000000871829 [17:20:49]line ФД: 67303 [17:20:49]line ФПД: 34487649780864 [17:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172049&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67303&fm=34487649780864&tin=02508201610067®Number=0000000000091845&sum=440058 [17:20:49]OFD Sender: Processing packet 67303 [packets to send 35, broken 34] [17:20:49]ProducePacketName [17:20:49]name=ofd_packets/00067303 [17:20:49]OFD Sender: To server: pG, [17:20:49]CommunicateWithHost lk.salyk.kg:30040 [17:20:49]ConnectInit lk.salyk.kg [17:20:49]written 0, free lines is 4095 [17:20:49]Connected sock=11 [17:20: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 0C 01 00 00 A2 48 04 01 13 9C 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 1E E6 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FA B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C B6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA B6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 F1 EE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1F 5D C8 1D 44 80 4A 66 E0 DA 9C 28 8E 16 [17:20: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 73 00 47 00 DE 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 E7 06 01 00 F4 03 04 00 CE 96 44 66 B6 04 01 00 00 43 25 68 C9 13 CC D6 6D [17:20:50]CommunicateWithHost err = 0 [17:20:50]CheckOFDResponse [17:20:50]1017 (14) - 77093643461234 [17:20:50]1041 (16) - 0000000000871829 [17:20:50]1040 (4) - 67303 [17:20:50]1012 (4) - 15.05.2024 11:04 [17:20:50]1206 (1) - 0 [17:20:50]OFD Sender: Remove packet 67303 [17:20:50]ProducePacketName [17:20:50]name=ofd_packets/00067303 [17:20:50]NVStorageDeleteData [17:20:50]Write to MH i2c: 01 00 00 C2 19 DB [17:20:50]Write i2c OK [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: 01 [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: 01 07 00 [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: 01 07 00 C2 19 00 00 00 00 00 E1 0C CF [17:20:50]RasterBufferAndPrint [17:20:50]line [17:20:50]line [17:20:50]line [17:20:50]line [17:20:50]line [17:20:50]written 0, free lines is 3302 [17:20:50]MH_Cut [17:20:50]Write to MH i2c: D1 01 00 C9 19 01 B4 [17:20:50]Write i2c OK [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: D1 [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: D1 01 00 [17:20:50]MH_I2C_Read... [17:20:50]Read from MH i2c: D1 01 00 C9 19 00 B3 [17:20:50]Write to MH i2c: 01 00 00 CA 19 E3 [17:20:50]Write i2c OK [17:20:50]MH_I2C_Read... [17:20:50]OFD Sender: No OFD packet to send [17:20:50]*** Cut start [17:20:50]*** Purtial cut [17:20:50]*** CUTSNS_PIN = 0 [17:20:51]*** Stage 1: CUTSNS_PIN = 1 [17:20:53]Read from MH i2c: 01 [17:20:53]MH_I2C_Read... [17:20:53]*** Stop cut motor [17:20:53]*** Cut end [17:20:53]Read from MH i2c: 01 07 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 FF 0F F8 [17:20:53]process_action close_receipt done [17:20:53]requested_data is exist [17:20:53]produce_requested_data [17:20:53]requested_item fm.sn is exist - process it [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 11 00 00 [17:20:53]Write to MH i2c: E2 08 00 CB 19 80 11 00 00 00 00 00 00 5E [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 CB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [17: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 [17:20:53]wFMCommunicate OK [17:20:53]requested_item fd.num is exist - process it [17:20:53]SAM_PROTO_GetFieldsCounters [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 13 00 00 [17:20:53]Write to MH i2c: E2 08 00 CC 19 80 13 00 00 00 00 00 00 61 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 62 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 62 00 CC 19 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 06 01 00 0E 04 04 00 64 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 45 [17: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 E7 06 01 00 0E 04 04 00 64 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 [17:20:53]wFMCommunicate OK [17:20:53]SAM_PROTO_GetFieldsCounters done [17:20:53]requested_item shift.num is exist - process it [17:20:53]requested_item shift.opened is exist - process it [17:20:53]req_shift_opened [17:20:53]FM_GetShiftState [17:20:53]SAM_PROTO_GetShiftState [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 13 01 00 [17:20:53]Write to MH i2c: E2 08 00 CD 19 80 13 01 00 00 00 00 00 63 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0E 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0E 00 CD 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0E [17:20:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:20:53]wFMCommunicate OK [17:20:53]SAM_PROTO_GetShiftState done [17:20:53]FM_GetShiftState done [17:20:53]req_shift_opened done [17:20:53]requested_item shift.open_date is exist - process it [17:20:53]req_shift_open_date [17:20:53]req_shift_open_date done [17:20:53]produce_requested_data done [17:20:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67303,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:20:53]process_action_free close_receipt [17:20:53]json_value_free [17:20:53]json_value_free done [17:20:53]process_json_proto returns [17:20:53]Send response to host [17:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67303,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:20:53]free response buf [17:20:53]execute_script done [17:20:53]execute_script returns [17:20:53]free content buf [17:20:53]Sock 9.Close socket [17:20:53]Sock 9.Thread stoped [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:51]int [17:21:51]Write to MH i2c: 01 00 00 CE 19 E7 [17:21:51]*** FLAG_PRN_PAP1 set [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 CE 19 00 01 00 00 00 FF 0F FD [17:21:51]state=0 [17:21:51]No paper [17:21:52]int [17:21:52]Write to MH i2c: 01 00 00 CF 19 E8 [17:21:52]*** FLAG_PRN_PAP2 set [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 07 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 07 00 CF 19 00 03 00 00 00 FF 0F 00 [17:21:52]state=0 [17:21:52]No paper [17:21:52]Cover opened [17:21:55]OFD Sender: No OFD packet to send [17:21:57]Write to MH i2c: 01 00 00 D0 19 E9 [17:21:57]Write i2c OK [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: 01 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: 01 07 00 [17:21:57]MH_I2C_Read... [17:21:57]Read from MH i2c: 01 07 00 D0 19 00 03 00 00 00 FF 0F 01 [17:21:57]state=3 [17:21:57]No paper [17:21:57]Cover opened [17:21:58]int [17:21:58]Write to MH i2c: 01 00 00 D1 19 EA [17:21:58]*** FLAG_PRN_PAP1 reset [17:21:58]*** FLAG_PRN_PAP2 reset [17:21:58]Write i2c OK [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 [17:21:58]MH_I2C_Read... [17:21:58]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [17:21:58]state=3 [17:21:58]Cover closed [17:22:00]OFD Sender: No OFD packet to send [17:22:01]int [17:22:01]Write to MH i2c: 01 00 00 D2 19 EB [17:22:01]*** FLAG_PRN_PAP1 set [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 D2 19 00 01 00 00 00 FF 0F 01 [17:22:01]state=0 [17:22:01]No paper [17:22:01]int [17:22:01]Write to MH i2c: 01 00 00 D3 19 EC [17:22:01]*** FLAG_PRN_PAP2 set [17:22:01]Write i2c OK [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 [17:22:01]MH_I2C_Read... [17:22:01]Read from MH i2c: 01 07 00 D3 19 00 03 00 00 00 FF 0F 04 [17:22:01]state=0 [17:22:01]No paper [17:22:01]Cover opened [17:22:03]int [17:22:03]Write to MH i2c: 01 00 00 D4 19 ED [17:22:03]*** FLAG_PRN_PAP1 reset [17:22:03]*** FLAG_PRN_PAP2 reset [17:22:03]Write i2c OK [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 07 00 [17:22:03]MH_I2C_Read... [17:22:03]Read from MH i2c: 01 07 00 D4 19 00 00 00 00 00 FF 0F 02 [17:22:03]state=3 [17:22:03]Cover closed [17:22:05]OFD Sender: No OFD packet to send [17:22:05]int [17:22:05]Write to MH i2c: 01 00 00 D5 19 EE [17:22:05]*** FLAG_PRN_KEY set [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 D5 19 00 08 00 00 00 FF 0F 0B [17:22:05]state=0 [17:22:05]Key pressed [17:22:05]Feed [17:22:05]Write to MH i2c: D8 00 00 D6 19 C6 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D8 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D8 01 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: D8 01 00 D6 19 00 C7 [17:22:05]int [17:22:05]Write to MH i2c: 01 00 00 D7 19 F0 [17:22:05]Write i2c OK [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 [17:22:05]MH_I2C_Read... [17:22:05]Read from MH i2c: 01 07 00 D7 19 00 48 00 00 00 3C 00 7B [17:22:05]state=2 [17:22:05]Key pressed [17:22:06]int [17:22:06]Write to MH i2c: 01 00 00 D8 19 F1 [17:22:06]*** FLAG_PRN_KEY reset [17:22:06]Write i2c OK [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 07 00 [17:22:06]MH_I2C_Read... [17:22:06]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 F6 0F FD [17:22:06]state=2 [17:22:06]Stop feed [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:31]accept exits with 7 [17:22:31]New connection [17:22:31]New thread 3067174244 created [17:22:31]Thread 3067030884 joined [17:22:31]Waiting for new connection... [17:22:31] Sock 7.Parse request [17:22:31]Sock 7.Check first char [17:22:31]Sock 7.First char is OK [17:22:31]request: POST /json_proto HTTP/1.0 [17:22:31]Method: POST [17:22:31]URL: /json_proto [17:22:31]Method is POST - this is cgi request [17:22:31]url: /json_proto [17:22:31]query_string will be loaded in cgi processing [17:22:31]execute_cgi json_proto POST (null) [17:22:31]execute_cgi path=json_proto method=POST [17:22:31]POST find Content-Length [17:22:31]Host: 172.17.41.195:8080 [17:22:31]Content-Length: 800 [17:22:31]Content-Type: application/json [17:22:31] [17:22:31]POST finish read [17:22:31]Found Content-Length = 800 [17:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507289", "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" ] } } [17:22:31]execute_script... [17:22: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)507289", "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" ] } } [17:22:31]POST & json_proto [17:22:31]process_json_proto [17:22:31]json parsed OK: [17:22:31]protocol is kg_v1.0 [17:22:31]action value=close_receipt [17:22:31]process_action close_receipt [17:22:31]cmd_close_receipt [17:22:31]MH_GetDate [17:22:31]Write to MH i2c: F0 00 00 D9 19 E1 [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: F0 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: F0 09 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: F0 09 00 D9 19 00 59 EF 44 66 FC 21 6F 64 CC [17:22:31]GetLastDocTimeStamp 1715793649 [17:22:31]current date 1715793753 [17:22:31]FM_GetShiftState [17:22:31]SAM_PROTO_GetShiftState [17:22:31]wFMCommunicate request_size=4 [17:22:31]MH_SAM_APDU [17:22:31]CAPDU: 80 13 01 00 [17:22:31]Write to MH i2c: E2 08 00 DA 19 80 13 01 00 00 00 00 00 70 [17:22:31]Write i2c OK [17:22:31]MH_I2C_Read... [17:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:31]Read from MH i2c: E2 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 0E 00 [17:22:31]MH_I2C_Read... [17:22:31]Read from MH i2c: E2 0E 00 DA 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1B [17:22:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:22:31]wFMCommunicate OK [17:22:31]SAM_PROTO_GetShiftState done [17:22:31]FM_GetShiftState done [17:22:31]opened in 1715732471 [17:22:31]opened+sec_in_day 1715818871 [17:22:31]quantity*price = 150072 [17:22:31]sum+1 = 150073 [17:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 122 15.05.2024 17:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67304 ФПД: 244068761808283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67304&fm=244068761808283&tin=02508201610067®Number=0000000000091845&sum=150072 [17:22:32]StoreToDocumentArchive [17:22:32]shift 356 fd 67304 [17:22:32]save to /storage/0356/doc_00067304 [17:22:32]save last doc name /storage/0356/doc_00067304 to /storage/kkm_last_doc_name [17:22:32]save OK [17:22:32]Clear old archive folders... [17:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:32]tlvbuf is 00B15520 [17:22:32]SAM_PROTO_ClearQueue [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 09 00 00 [17:22:32]Write to MH i2c: E2 08 00 E7 19 80 09 00 00 00 00 00 00 72 [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 03 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [17:22:32]RAPDU: 90 00 [17:22:32]wFMCommunicate OK [17:22:32]SAM_PROTO_ClearQueue done [17:22:32]KKMCreateOFDPacket [17:22:32]OFDProtocolAddRootSTLVToBuf [17:22:32]FM_MakeSignedData [17:22:32]FM_MakeSignedData [17:22:32]SAM_PROTO_SignData [17:22:32]wFMCommunicate request_size=4 [17:22:32]MH_SAM_APDU [17:22:32]CAPDU: 80 0D 01 02 [17:22:32]Write to MH i2c: E2 08 00 E8 19 80 0D 01 02 00 00 00 00 7A [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:32]Read from MH i2c: E2 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 03 00 [17:22:32]MH_I2C_Read... [17:22:32]Read from MH i2c: E2 03 00 E8 19 00 90 00 75 [17:22:32]RAPDU: 90 00 [17:22:32]wFMCommunicate OK [17:22:32]wFMCommunicate request_size=255 [17:22:32]MH_SAM_APDU [17:22: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 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 7A 00 00 00 F4 03 04 00 59 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DD FA AF D9 [17:22:32]Write to MH i2c: E2 02 01 E9 19 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 7A 00 00 00 F4 03 04 00 59 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DD FA AF D9 00 00 4E [17:22:32]Write i2c OK [17:22:32]MH_I2C_Read... [17:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 03 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [17:22:33]RAPDU: 90 00 [17:22:33]wFMCommunicate OK [17:22:33]wFMCommunicate request_size=7 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 0D 02 02 02 2D 9B [17:22:33]Write to MH i2c: E2 0A 00 EA 19 80 0D 02 02 02 00 2D 9B 00 00 49 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 03 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [17:22:33]RAPDU: 90 00 [17:22:33]wFMCommunicate OK [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 0D 03 02 [17:22:33]Write to MH i2c: E2 08 00 EB 19 80 0D 03 02 00 00 00 00 7F [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0B 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 0B 00 EB 19 00 EF ED D3 BA 2F 17 DD F9 90 00 05 [17:22:33]RAPDU: EF ED D3 BA 2F 17 DD F9 90 00 [17:22:33]wFMCommunicate OK [17:22:33]SAM_PROTO_SignData done [17:22:33]FM_MakeSignedData done [17:22:33]CreateOFDProtocolMessage [17:22:33]wFMCommunicate request_size=4 [17:22:33]MH_SAM_APDU [17:22:33]CAPDU: 80 11 00 00 [17:22:33]Write to MH i2c: E2 08 00 EC 19 80 11 00 00 00 00 00 00 7F [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:33]Read from MH i2c: E2 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 17 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: E2 17 00 EC 19 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:22: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:22:33]wFMCommunicate OK [17:22:33]CreateOFDProtocolMessage done [17:22:33]OFDSenderStorePacket 67304 [17:22:33]StoreOFDPacket docnum=67304 [17:22: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 07 18 04 01 19 7C 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 7A 00 00 00 F4 03 04 00 59 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DD FA AF D9 2D 9B EF ED D3 BA 2F 17 DD F9 [17:22:33]CheckFolder [17:22:33]dirname=/storage/ofd_packets [17:22:33]CheckFolder done [17:22:33]ProducePacketName [17:22:33]name=ofd_packets/00067304 [17:22:33]NVStorageSaveData ofd_packets/00067304 [17:22:33]File name is /storage/ofd_packets/00067304 [17:22:33]Write 298 bytes [17:22:33]NVStorageSaveData done [17:22:33]OFDSenderStorePacket done [17:22:33]KKMCreateOFDPacket done [17:22:33]NVStorageSaveData kkm_last_timestamp [17:22:33]File name is /storage/kkm_last_timestamp [17:22:33]Write 4 bytes [17:22:33]NVStorageSaveData done [17:22:33]ExternCall_PrintAddStr [17:22:33]wPrintStart [17:22:33]Write to MH i2c: 01 00 00 ED 19 06 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 07 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 07 00 ED 19 00 00 00 00 00 FF 0F 1B [17:22:33]RasterBufferAndPrint [17:22:33]line Счет N : (1)507289 [17:22:33]line ИНН: 02508201610067 [17:22:33]line Контрольно-Кассовый Чек [17:22:33]line ПРОДАЖА [17:22:33]line ТРК (МРК, ГНК) : 31 [17:22:33]line Товар: 2710194210 [17:22:33]line ДТ-К-5 [17:22:33]line 20.090 * 74.70 [17:22:33]line = 1500.72 [17:22:33]line НДС 12% НСП 1% [17:22:33]line > о реализуемом товаре [17:22:33]line ИТОГО: 1500.72 [17:22:33]line НСП 1% : 13.28 [17:22:33]line НДС 12% : 159.37 [17:22:33]line Наличными: 0.00 [17:22:33]line Безнал.: 1500.72 [17:22:33]line Место: АЗС № 91 "Партнер Нефть" [17:22:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:22:33]line СНО: Общий режим [17:22:33]line Чек 122 15.05.2024 17:22 [17:22:33]line Смена: 356 ФФД: 1.0 [17:22:33]line ЗНМ: 0300000119 [17:22:33]line РНМ: 0000000000091845 [17:22:33]line Версия ККМ: 001 [17:22:33]line Платежная система: O! деньги [17:22:33]line ФМ: 0000000000871829 [17:22:33]line ФД: 67304 [17:22:33]line ФПД: 244068761808283 [17:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67304&fm=244068761808283&tin=02508201610067®Number=0000000000091845&sum=150072 [17:22:33]OFD Sender: Processing packet 67304 [packets to send 35, broken 34] [17:22:33]ProducePacketName [17:22:33]name=ofd_packets/00067304 [17:22:33]OFD Sender: To server: pG, [17:22:33]CommunicateWithHost lk.salyk.kg:30040 [17:22:33]ConnectInit lk.salyk.kg [17:22:33]written 0, free lines is 4095 [17:22:33]Connected sock=10 [17:22: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 07 18 04 01 19 7C 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 7A 00 00 00 F4 03 04 00 59 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DD FA AF D9 2D 9B EF ED D3 BA 2F 17 DD F9 [17:22: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 3F 23 47 00 82 CD 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 06 01 00 F4 03 04 00 36 97 44 66 B6 04 01 00 00 0F 6B 5E 07 DA 48 FD 80 [17:22:33]CommunicateWithHost err = 0 [17:22:33]CheckOFDResponse [17:22:33]1017 (14) - 77093643461234 [17:22:33]1041 (16) - 0000000000871829 [17:22:33]1040 (4) - 67304 [17:22:33]1012 (4) - 15.05.2024 11:06 [17:22:33]1206 (1) - 0 [17:22:33]OFD Sender: Remove packet 67304 [17:22:33]ProducePacketName [17:22:33]name=ofd_packets/00067304 [17:22:33]NVStorageDeleteData [17:22:33]Write to MH i2c: 01 00 00 16 1A 30 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 07 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 DE 0C 21 [17:22:33]RasterBufferAndPrint [17:22:33]line [17:22:33]line [17:22:33]line [17:22:33]line [17:22:33]line [17:22:33]written 0, free lines is 3300 [17:22:33]MH_Cut [17:22:33]Write to MH i2c: D1 01 00 1D 1A 01 09 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: D1 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: D1 01 00 [17:22:33]MH_I2C_Read... [17:22:33]Read from MH i2c: D1 01 00 1D 1A 00 08 [17:22:33]Write to MH i2c: 01 00 00 1E 1A 38 [17:22:33]Write i2c OK [17:22:33]MH_I2C_Read... [17:22:34]OFD Sender: No OFD packet to send [17:22:34]*** Cut start [17:22:34]*** Purtial cut [17:22:34]*** Stage 1: CUTSNS_PIN = 1 [17:22:35]Read from MH i2c: 01 [17:22:35]MH_I2C_Read... [17:22:35]*** Stop cut motor [17:22:35]*** Cut end [17:22:35]Read from MH i2c: 01 07 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: 01 07 00 1E 1A 00 00 00 00 00 FF 0F 4D [17:22:35]process_action close_receipt done [17:22:35]requested_data is exist [17:22:35]produce_requested_data [17:22:35]requested_item fm.sn is exist - process it [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 11 00 00 [17:22:35]Write to MH i2c: E2 08 00 1F 1A 80 11 00 00 00 00 00 00 B3 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 17 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 17 00 1F 1A 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:22: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:22:35]wFMCommunicate OK [17:22:35]requested_item fd.num is exist - process it [17:22:35]SAM_PROTO_GetFieldsCounters [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 13 00 00 [17:22:35]Write to MH i2c: E2 08 00 20 1A 80 13 00 00 00 00 00 00 B6 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 62 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 62 00 20 1A 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 06 01 00 0E 04 04 00 64 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 9E [17:22: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 E8 06 01 00 0E 04 04 00 64 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 [17:22:35]wFMCommunicate OK [17:22:35]SAM_PROTO_GetFieldsCounters done [17:22:35]requested_item shift.num is exist - process it [17:22:35]requested_item shift.opened is exist - process it [17:22:35]req_shift_opened [17:22:35]FM_GetShiftState [17:22:35]SAM_PROTO_GetShiftState [17:22:35]wFMCommunicate request_size=4 [17:22:35]MH_SAM_APDU [17:22:35]CAPDU: 80 13 01 00 [17:22:35]Write to MH i2c: E2 08 00 21 1A 80 13 01 00 00 00 00 00 B8 [17:22:35]Write i2c OK [17:22:35]MH_I2C_Read... [17:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:35]Read from MH i2c: E2 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 0E 00 [17:22:35]MH_I2C_Read... [17:22:35]Read from MH i2c: E2 0E 00 21 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 63 [17:22:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:22:35]wFMCommunicate OK [17:22:35]SAM_PROTO_GetShiftState done [17:22:35]FM_GetShiftState done [17:22:35]req_shift_opened done [17:22:35]requested_item shift.open_date is exist - process it [17:22:35]req_shift_open_date [17:22:35]req_shift_open_date done [17:22:35]produce_requested_data done [17:22:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67304,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:22:35]process_action_free close_receipt [17:22:35]json_value_free [17:22:35]json_value_free done [17:22:35]process_json_proto returns [17:22:35]Send response to host [17:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67304,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:22:35]free response buf [17:22:35]execute_script done [17:22:35]execute_script returns [17:22:35]free content buf [17:22:35]Sock 7.Close socket [17:22:35]Sock 7.Thread stoped [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:17]accept exits with 9 [17:24:17]New connection [17:24:17]New thread 3067030884 created [17:24:17]Thread 3067174244 joined [17:24:17]Waiting for new connection... [17:24:17] Sock 9.Parse request [17:24:17]Sock 9.Check first char [17:24:17]Sock 9.First char is OK [17:24:17]request: POST /json_proto HTTP/1.0 [17:24:17]Method: POST [17:24:17]URL: /json_proto [17:24:17]Method is POST - this is cgi request [17:24:17]url: /json_proto [17:24:17]query_string will be loaded in cgi processing [17:24:17]execute_cgi json_proto POST (null) [17:24:17]execute_cgi path=json_proto method=POST [17:24:17]POST find Content-Length [17:24:17]Host: 172.17.41.195:8080 [17:24:17]Content-Length: 800 [17:24:17]Content-Type: application/json [17:24:17] [17:24:17]POST finish read [17:24:17]Found Content-Length = 800 [17:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507290", "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" : 55.290, "sum" : 4130.16, "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" : 4130.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:17]execute_script... [17:24: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)507290", "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" : 55.290, "sum" : 4130.16, "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" : 4130.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:17]POST & json_proto [17:24:17]process_json_proto [17:24:17]json parsed OK: [17:24:17]protocol is kg_v1.0 [17:24:17]action value=close_receipt [17:24:17]process_action close_receipt [17:24:17]cmd_close_receipt [17:24:17]MH_GetDate [17:24:17]Write to MH i2c: F0 00 00 22 1A 2B [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 22 1A 00 C3 EF 44 66 FC 21 6F 64 80 [17:24:17]GetLastDocTimeStamp 1715793753 [17:24:17]current date 1715793859 [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 23 1A 80 13 01 00 00 00 00 00 BA [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 23 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 65 [17:24:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]opened in 1715732471 [17:24:17]opened+sec_in_day 1715818871 [17:24:17]quantity*price = 413016 [17:24:17]sum+1 = 413017 [17:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4130.16 НСП 1% : 36.55 НДС 12% : 438.60 Наличными: 0.00 Безнал.: 4130.16 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 123 15.05.2024 17:24 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67305 ФПД: 44576815984879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172419&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67305&fm=44576815984879&tin=02508201610067®Number=0000000000091845&sum=413016 [17:24:18]StoreToDocumentArchive [17:24:18]shift 356 fd 67305 [17:24:18]save to /storage/0356/doc_00067305 [17:24:18]save last doc name /storage/0356/doc_00067305 to /storage/kkm_last_doc_name [17:24:18]save OK [17:24:18]Clear old archive folders... [17:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:18]tlvbuf is 00B0F900 [17:24:18]SAM_PROTO_ClearQueue [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 09 00 00 [17:24:18]Write to MH i2c: E2 08 00 30 1A 80 09 00 00 00 00 00 00 BC [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]SAM_PROTO_ClearQueue done [17:24:18]KKMCreateOFDPacket [17:24:18]OFDProtocolAddRootSTLVToBuf [17:24:18]FM_MakeSignedData [17:24:18]FM_MakeSignedData [17:24:18]SAM_PROTO_SignData [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 0D 01 02 [17:24:18]Write to MH i2c: E2 08 00 31 1A 80 0D 01 02 00 00 00 00 C4 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]wFMCommunicate request_size=255 [17:24:18]MH_SAM_APDU [17:24: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 FA D7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 58 4D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 AB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C3 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 28 8A D9 48 [17:24:18]Write to MH i2c: E2 02 01 32 1A 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 FA D7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 58 4D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 AB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C3 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 28 8A D9 48 00 00 96 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=7 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 02 02 02 30 EF [17:24:19]Write to MH i2c: E2 0A 00 33 1A 80 0D 02 02 02 00 30 EF 00 00 EA [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 03 00 33 1A 00 90 00 C1 [17:24:19]RAPDU: 90 00 [17:24:19]wFMCommunicate OK [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 0D 03 02 [17:24:19]Write to MH i2c: E2 08 00 34 1A 80 0D 03 02 00 00 00 00 C9 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 0B 00 34 1A 00 46 8C 19 FC 09 CB 6D 46 90 00 38 [17:24:19]RAPDU: 46 8C 19 FC 09 CB 6D 46 90 00 [17:24:19]wFMCommunicate OK [17:24:19]SAM_PROTO_SignData done [17:24:19]FM_MakeSignedData done [17:24:19]CreateOFDProtocolMessage [17:24:19]wFMCommunicate request_size=4 [17:24:19]MH_SAM_APDU [17:24:19]CAPDU: 80 11 00 00 [17:24:19]Write to MH i2c: E2 08 00 35 1A 80 11 00 00 00 00 00 00 C9 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:19]Read from MH i2c: E2 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 17 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: E2 17 00 35 1A 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:24: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:24:19]wFMCommunicate OK [17:24:19]CreateOFDProtocolMessage done [17:24:19]OFDSenderStorePacket 67305 [17:24:19]StoreOFDPacket docnum=67305 [17:24:19]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 81 F2 04 01 6A DD 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 FA D7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 58 4D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 AB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C3 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 28 8A D9 48 30 EF 46 8C 19 FC 09 CB 6D 46 [17:24:19]CheckFolder [17:24:19]dirname=/storage/ofd_packets [17:24:19]CheckFolder done [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00067305 [17:24:19]NVStorageSaveData ofd_packets/00067305 [17:24:19]File name is /storage/ofd_packets/00067305 [17:24:19]Write 298 bytes [17:24:19]NVStorageSaveData done [17:24:19]OFDSenderStorePacket done [17:24:19]KKMCreateOFDPacket done [17:24:19]NVStorageSaveData kkm_last_timestamp [17:24:19]File name is /storage/kkm_last_timestamp [17:24:19]Write 4 bytes [17:24:19]NVStorageSaveData done [17:24:19]ExternCall_PrintAddStr [17:24:19]wPrintStart [17:24:19]Write to MH i2c: 01 00 00 36 1A 50 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 36 1A 00 00 00 00 00 FF 0F 65 [17:24:19]RasterBufferAndPrint [17:24:19]line Счет N : (1)507290 [17:24:19]line ИНН: 02508201610067 [17:24:19]line Контрольно-Кассовый Чек [17:24:19]line ПРОДАЖА [17:24:19]line ТРК (МРК, ГНК) : 41 [17:24:19]line Товар: 2710194210 [17:24:19]line ДТ-К-5 [17:24:19]line 55.290 * 74.70 [17:24:19]line = 4130.16 [17:24:19]line НДС 12% НСП 1% [17:24:19]line > о реализуемом товаре [17:24:19]line ИТОГО: 4130.16 [17:24:19]line НСП 1% : 36.55 [17:24:19]line НДС 12% : 438.60 [17:24:19]line Наличными: 0.00 [17:24:19]line Безнал.: 4130.16 [17:24:19]line Место: АЗС № 91 "Партнер Нефть" [17:24:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:24:19]line СНО: Общий режим [17:24:19]line Чек 123 15.05.2024 17:24 [17:24:19]line Смена: 356 ФФД: 1.0 [17:24:19]line ЗНМ: 0300000119 [17:24:19]line РНМ: 0000000000091845 [17:24:19]line Версия ККМ: 001 [17:24:19]line Платежная система: O! деньги [17:24:19]line ФМ: 0000000000871829 [17:24:19]line ФД: 67305 [17:24:19]line ФПД: 44576815984879 [17:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172419&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67305&fm=44576815984879&tin=02508201610067®Number=0000000000091845&sum=413016 [17:24:19]OFD Sender: Processing packet 67305 [packets to send 35, broken 34] [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00067305 [17:24:19]OFD Sender: To server: pG, [17:24:19]CommunicateWithHost lk.salyk.kg:30040 [17:24:19]ConnectInit lk.salyk.kg [17:24:19]written 0, free lines is 4095 [17:24:19]Connected sock=10 [17:24: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 81 F2 04 01 6A DD 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 FA D7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 58 4D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 AB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 C3 EF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 28 8A D9 48 30 EF 46 8C 19 FC 09 CB 6D 46 [17:24: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 7B 61 47 00 4B BC 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 06 01 00 F4 03 04 00 A0 97 44 66 B6 04 01 00 00 DD A4 A2 35 4C BC 30 89 [17:24:19]CommunicateWithHost err = 0 [17:24:19]CheckOFDResponse [17:24:19]1017 (14) - 77093643461234 [17:24:19]1041 (16) - 0000000000871829 [17:24:19]1040 (4) - 67305 [17:24:19]1012 (4) - 15.05.2024 11:08 [17:24:19]1206 (1) - 0 [17:24:19]OFD Sender: Remove packet 67305 [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00067305 [17:24:19]NVStorageDeleteData [17:24:19]Write to MH i2c: 01 00 00 5F 1A 79 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 D7 0C 63 [17:24:19]RasterBufferAndPrint [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]written 0, free lines is 3292 [17:24:19]MH_Cut [17:24:19]Write to MH i2c: D1 01 00 66 1A 01 52 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 01 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 01 00 66 1A 00 51 [17:24:19]Write to MH i2c: 01 00 00 67 1A 81 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:20]OFD Sender: No OFD packet to send [17:24:20]*** Cut start [17:24:20]*** Purtial cut [17:24:20]*** CUTSNS_PIN = 0 [17:24:20]*** Stage 1: CUTSNS_PIN = 1 [17:24:22]Read from MH i2c: 01 [17:24:22]MH_I2C_Read... [17:24:22]*** Stop cut motor [17:24:22]*** Cut end [17:24:22]Read from MH i2c: 01 07 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 FF 0F 96 [17:24:22]process_action close_receipt done [17:24:22]requested_data is exist [17:24:22]produce_requested_data [17:24:22]requested_item fm.sn is exist - process it [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 11 00 00 [17:24:22]Write to MH i2c: E2 08 00 68 1A 80 11 00 00 00 00 00 00 FC [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 68 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 52 [17:24: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:24:22]wFMCommunicate OK [17:24:22]requested_item fd.num is exist - process it [17:24:22]SAM_PROTO_GetFieldsCounters [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 00 00 [17:24:22]Write to MH i2c: E2 08 00 69 1A 80 13 00 00 00 00 00 00 FF [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 62 00 69 1A 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 06 01 00 0E 04 04 00 64 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 EB [17:24: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 E9 06 01 00 0E 04 04 00 64 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 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_GetFieldsCounters done [17:24:22]requested_item shift.num is exist - process it [17:24:22]requested_item shift.opened is exist - process it [17:24:22]req_shift_opened [17:24:22]FM_GetShiftState [17:24:22]SAM_PROTO_GetShiftState [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 13 01 00 [17:24:22]Write to MH i2c: E2 08 00 6A 1A 80 13 01 00 00 00 00 00 01 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:23]Read from MH i2c: E2 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: E2 0E 00 6A 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AC [17:24:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:24:23]wFMCommunicate OK [17:24:23]SAM_PROTO_GetShiftState done [17:24:23]FM_GetShiftState done [17:24:23]req_shift_opened done [17:24:23]requested_item shift.open_date is exist - process it [17:24:23]req_shift_open_date [17:24:23]req_shift_open_date done [17:24:23]produce_requested_data done [17:24:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67305,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:24:23]process_action_free close_receipt [17:24:23]json_value_free [17:24:23]json_value_free done [17:24:23]process_json_proto returns [17:24:23]Send response to host [17:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67305,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:24:23]free response buf [17:24:23]execute_script done [17:24:23]execute_script returns [17:24:23]free content buf [17:24:23]Sock 9.Close socket [17:24:23]Sock 9.Thread stoped [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:42]int [17:24:42]Write to MH i2c: 01 00 00 6B 1A 85 [17:24:42]*** FLAG_PRN_KEY set [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 6B 1A 00 08 00 00 00 FF 0F A2 [17:24:42]state=0 [17:24:42]Key pressed [17:24:42]Feed [17:24:42]Write to MH i2c: D8 00 00 6C 1A 5D [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: D8 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: D8 01 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: D8 01 00 6C 1A 00 5E [17:24:42]int [17:24:42]Write to MH i2c: 01 00 00 6D 1A 87 [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 6D 1A 00 48 00 00 00 3C 00 12 [17:24:42]state=2 [17:24:42]Key pressed [17:24:42]int [17:24:42]Write to MH i2c: 01 00 00 6E 1A 88 [17:24:42]*** FLAG_PRN_KEY reset [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 6E 1A 00 00 00 00 00 F5 0F 93 [17:24:42]state=2 [17:24:42]Stop feed [17:24:43]int [17:24:43]Write to MH i2c: 01 00 00 6F 1A 89 [17:24:43]*** FLAG_PRN_KEY set [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 6F 1A 00 08 00 00 00 FF 0F A6 [17:24:43]state=0 [17:24:43]Key pressed [17:24:43]Feed [17:24:43]Write to MH i2c: D8 00 00 70 1A 61 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: D8 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: D8 01 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: D8 01 00 70 1A 00 62 [17:24:43]int [17:24:43]Write to MH i2c: 01 00 00 71 1A 8B [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 71 1A 00 48 00 00 00 3C 00 16 [17:24:43]state=2 [17:24:43]Key pressed [17:24:43]int [17:24:43]Write to MH i2c: 01 00 00 72 1A 8C [17:24:43]*** FLAG_PRN_KEY reset [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 F6 0F 98 [17:24:43]state=2 [17:24:43]Stop feed [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:31]accept exits with 7 [17:26:31]New connection [17:26:31]New thread 3067174244 created [17:26:31]Thread 3067030884 joined [17:26:31]Waiting for new connection... [17:26:31] Sock 7.Parse request [17:26:31]Sock 7.Check first char [17:26:31]Sock 7.First char is OK [17:26:31]request: POST /json_proto HTTP/1.0 [17:26:31]Method: POST [17:26:31]URL: /json_proto [17:26:31]Method is POST - this is cgi request [17:26:31]url: /json_proto [17:26:31]query_string will be loaded in cgi processing [17:26:31]execute_cgi json_proto POST (null) [17:26:31]execute_cgi path=json_proto method=POST [17:26:31]POST find Content-Length [17:26:31]Host: 172.17.41.195:8080 [17:26:31]Content-Length: 800 [17:26:31]Content-Type: application/json [17:26:31] [17:26:31]POST finish read [17:26:31]Found Content-Length = 800 [17:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507291", "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" : 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" ] } } [17:26:31]execute_script... [17:26: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)507291", "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" : 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" ] } } [17:26:31]POST & json_proto [17:26:31]process_json_proto [17:26:31]json parsed OK: [17:26:31]protocol is kg_v1.0 [17:26:31]action value=close_receipt [17:26:31]process_action close_receipt [17:26:31]cmd_close_receipt [17:26:31]MH_GetDate [17:26:31]Write to MH i2c: F0 00 00 73 1A 7C [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 09 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 09 00 73 1A 00 49 F0 44 66 FC 21 6F 64 58 [17:26:31]GetLastDocTimeStamp 1715793859 [17:26:31]current date 1715793993 [17:26:31]FM_GetShiftState [17:26:31]SAM_PROTO_GetShiftState [17:26:31]wFMCommunicate request_size=4 [17:26:31]MH_SAM_APDU [17:26:31]CAPDU: 80 13 01 00 [17:26:31]Write to MH i2c: E2 08 00 74 1A 80 13 01 00 00 00 00 00 0B [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:31]Read from MH i2c: E2 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 74 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B6 [17:26:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:26:31]wFMCommunicate OK [17:26:31]SAM_PROTO_GetShiftState done [17:26:31]FM_GetShiftState done [17:26:31]opened in 1715732471 [17:26:31]opened+sec_in_day 1715818871 [17:26:31]quantity*price = 250020 [17:26:31]sum+1 = 250022 [17:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 124 15.05.2024 17:26 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67306 ФПД: 5718525632630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67306&fm=5718525632630&tin=02508201610067®Number=0000000000091845&sum=250021 [17:26:32]StoreToDocumentArchive [17:26:32]shift 356 fd 67306 [17:26:32]save to /storage/0356/doc_00067306 [17:26:32]save last doc name /storage/0356/doc_00067306 to /storage/kkm_last_doc_name [17:26:32]save OK [17:26:32]Clear old archive folders... [17:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:26:32]tlvbuf is B6DDE3F0 [17:26:32]SAM_PROTO_ClearQueue [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 09 00 00 [17:26:32]Write to MH i2c: E2 08 00 81 1A 80 09 00 00 00 00 00 00 0D [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_ClearQueue done [17:26:32]KKMCreateOFDPacket [17:26:32]OFDProtocolAddRootSTLVToBuf [17:26:32]FM_MakeSignedData [17:26:32]FM_MakeSignedData [17:26:32]SAM_PROTO_SignData [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 01 02 [17:26:32]Write to MH i2c: E2 08 00 82 1A 80 0D 01 02 00 00 00 00 15 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 82 1A 00 90 00 10 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=255 [17:26:32]MH_SAM_APDU [17:26: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 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 7C 00 00 00 F4 03 04 00 49 F0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 33 72 B0 [17:26:32]Write to MH i2c: E2 02 01 83 1A 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 7C 00 00 00 F4 03 04 00 49 F0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 33 72 B0 00 00 44 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 83 1A 00 90 00 11 [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=7 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 02 02 02 60 76 [17:26:33]Write to MH i2c: E2 0A 00 84 1A 80 0D 02 02 02 00 60 76 00 00 F2 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 84 1A 00 90 00 12 [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 03 02 [17:26:33]Write to MH i2c: E2 08 00 85 1A 80 0D 03 02 00 00 00 00 1A [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 85 1A 00 9F 20 C5 9A 7C CF 38 1B 90 00 D7 [17:26:33]RAPDU: 9F 20 C5 9A 7C CF 38 1B 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_SignData done [17:26:33]FM_MakeSignedData done [17:26:33]CreateOFDProtocolMessage [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 11 00 00 [17:26:33]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 86 1A 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:26: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:26:33]wFMCommunicate OK [17:26:33]CreateOFDProtocolMessage done [17:26:33]OFDSenderStorePacket 67306 [17:26:33]StoreOFDPacket docnum=67306 [17:26: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 50 5D 04 01 57 B9 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 7C 00 00 00 F4 03 04 00 49 F0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 33 72 B0 60 76 9F 20 C5 9A 7C CF 38 1B [17:26:33]CheckFolder [17:26:33]dirname=/storage/ofd_packets [17:26:33]CheckFolder done [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067306 [17:26:33]NVStorageSaveData ofd_packets/00067306 [17:26:33]File name is /storage/ofd_packets/00067306 [17:26:33]Write 298 bytes [17:26:33]NVStorageSaveData done [17:26:33]OFDSenderStorePacket done [17:26:33]KKMCreateOFDPacket done [17:26:33]NVStorageSaveData kkm_last_timestamp [17:26:33]File name is /storage/kkm_last_timestamp [17:26:33]Write 4 bytes [17:26:33]NVStorageSaveData done [17:26:33]ExternCall_PrintAddStr [17:26:33]wPrintStart [17:26:33]Write to MH i2c: 01 00 00 87 1A A1 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 87 1A 00 00 00 00 00 FF 0F B6 [17:26:33]RasterBufferAndPrint [17:26:33]line Счет N : (1)507291 [17:26:33]line ИНН: 02508201610067 [17:26:33]line Контрольно-Кассовый Чек [17:26:33]line ПРОДАЖА [17:26:33]line ТРК (МРК, ГНК) : 31 [17:26:33]line Товар: 2710194210 [17:26:33]line ДТ-К-5 [17:26:33]line 33.470 * 74.70 [17:26:33]line = 2500.21 [17:26:33]line НДС 12% НСП 1% [17:26:33]line > о реализуемом товаре [17:26:33]line ИТОГО: 2500.21 [17:26:33]line НСП 1% : 22.13 [17:26:33]line НДС 12% : 265.51 [17:26:33]line Наличными: 0.00 [17:26:33]line Безнал.: 2500.21 [17:26:33]line Место: АЗС № 91 "Партнер Нефть" [17:26:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:26:33]line СНО: Общий режим [17:26:33]line Чек 124 15.05.2024 17:26 [17:26:33]line Смена: 356 ФФД: 1.0 [17:26:33]line ЗНМ: 0300000119 [17:26:33]line РНМ: 0000000000091845 [17:26:33]line Версия ККМ: 001 [17:26:33]line Платежная система: O! деньги [17:26:33]line ФМ: 0000000000871829 [17:26:33]line ФД: 67306 [17:26:33]line ФПД: 5718525632630 [17:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T172633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67306&fm=5718525632630&tin=02508201610067®Number=0000000000091845&sum=250021 [17:26:33]OFD Sender: Processing packet 67306 [packets to send 35, broken 34] [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067306 [17:26:33]OFD Sender: To server: pG, [17:26:33]CommunicateWithHost lk.salyk.kg:30040 [17:26:33]ConnectInit lk.salyk.kg [17:26:33]written 0, free lines is 4095 [17:26:33]Connected sock=10 [17:26: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 50 5D 04 01 57 B9 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 7C 00 00 00 F4 03 04 00 49 F0 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 33 72 B0 60 76 9F 20 C5 9A 7C CF 38 1B [17:26: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 34 21 47 00 D9 9A 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 06 01 00 F4 03 04 00 26 98 44 66 B6 04 01 00 00 5D 14 FC 2B 12 3D CA 88 [17:26:33]CommunicateWithHost err = 0 [17:26:33]CheckOFDResponse [17:26:33]1017 (14) - 77093643461234 [17:26:33]1041 (16) - 0000000000871829 [17:26:33]1040 (4) - 67306 [17:26:33]1012 (4) - 15.05.2024 11:10 [17:26:33]1206 (1) - 0 [17:26:33]OFD Sender: Remove packet 67306 [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067306 [17:26:33]NVStorageDeleteData [17:26:34]Write to MH i2c: 01 00 00 B0 1A CA [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 B0 1A 00 00 00 00 00 F6 0C D3 [17:26:34]RasterBufferAndPrint [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]written 0, free lines is 3323 [17:26:34]MH_Cut [17:26:34]Write to MH i2c: D1 01 00 B7 1A 01 A3 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 B7 1A 00 A2 [17:26:34]Write to MH i2c: 01 00 00 B8 1A D2 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]OFD Sender: No OFD packet to send [17:26:34]*** Cut start [17:26:34]*** Purtial cut [17:26:34]*** Stage 1: CUTSNS_PIN = 1 [17:26:35]Read from MH i2c: 01 [17:26:35]MH_I2C_Read... [17:26:35]*** Stop cut motor [17:26:35]*** Cut end [17:26:35]Read from MH i2c: 01 07 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: 01 07 00 B8 1A 00 00 00 00 00 FF 0F E7 [17:26:35]process_action close_receipt done [17:26:35]requested_data is exist [17:26:35]produce_requested_data [17:26:35]requested_item fm.sn is exist - process it [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 11 00 00 [17:26:35]Write to MH i2c: E2 08 00 B9 1A 80 11 00 00 00 00 00 00 4D [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 17 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 17 00 B9 1A 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:26: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:26:35]wFMCommunicate OK [17:26:35]requested_item fd.num is exist - process it [17:26:35]SAM_PROTO_GetFieldsCounters [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 00 00 [17:26:35]Write to MH i2c: E2 08 00 BA 1A 80 13 00 00 00 00 00 00 50 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 62 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 62 00 BA 1A 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 06 01 00 0E 04 04 00 64 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 40 [17:26: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 EA 06 01 00 0E 04 04 00 64 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 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetFieldsCounters done [17:26:35]requested_item shift.num is exist - process it [17:26:35]requested_item shift.opened is exist - process it [17:26:35]req_shift_opened [17:26:35]FM_GetShiftState [17:26:35]SAM_PROTO_GetShiftState [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 01 00 [17:26:35]Write to MH i2c: E2 08 00 BB 1A 80 13 01 00 00 00 00 00 52 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 BB 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FD [17:26:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetShiftState done [17:26:35]FM_GetShiftState done [17:26:35]req_shift_opened done [17:26:35]requested_item shift.open_date is exist - process it [17:26:35]req_shift_open_date [17:26:35]req_shift_open_date done [17:26:35]produce_requested_data done [17:26:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67306,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:26:35]process_action_free close_receipt [17:26:35]json_value_free [17:26:35]json_value_free done [17:26:35]process_json_proto returns [17:26:35]Send response to host [17:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67306,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:26:35]free response buf [17:26:35]execute_script done [17:26:35]execute_script returns [17:26:35]free content buf [17:26:35]Sock 7.Close socket [17:26:35]Sock 7.Thread stoped [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:33]accept exits with 9 [17:30:33]New connection [17:30:33]New thread 3067030884 created [17:30:33]Thread 3067174244 joined [17:30:33]Waiting for new connection... [17:30:33] Sock 9.Parse request [17:30:33]Sock 9.Check first char [17:30:33]Sock 9.First char is OK [17:30:33]request: POST /json_proto HTTP/1.0 [17:30:33]Method: POST [17:30:33]URL: /json_proto [17:30:33]Method is POST - this is cgi request [17:30:33]url: /json_proto [17:30:33]query_string will be loaded in cgi processing [17:30:33]execute_cgi json_proto POST (null) [17:30:33]execute_cgi path=json_proto method=POST [17:30:33]POST find Content-Length [17:30:33]Host: 172.17.41.195:8080 [17:30:33]Content-Length: 796 [17:30:33]Content-Type: application/json [17:30:33] [17:30:33]POST finish read [17:30:33]Found Content-Length = 796 [17:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507292", "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" : 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" ] } } [17:30:33]execute_script... [17:30: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)507292", "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" : 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" ] } } [17:30:33]POST & json_proto [17:30:33]process_json_proto [17:30:33]json parsed OK: [17:30:33]protocol is kg_v1.0 [17:30:33]action value=close_receipt [17:30:33]process_action close_receipt [17:30:33]cmd_close_receipt [17:30:33]MH_GetDate [17:30:33]Write to MH i2c: F0 00 00 BC 1A C5 [17:30:33]Write i2c OK [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: F0 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: F0 09 00 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: F0 09 00 BC 1A 00 3B F1 44 66 FC 21 6F 64 94 [17:30:33]GetLastDocTimeStamp 1715793993 [17:30:33]current date 1715794235 [17:30:33]FM_GetShiftState [17:30:33]SAM_PROTO_GetShiftState [17:30:33]wFMCommunicate request_size=4 [17:30:33]MH_SAM_APDU [17:30:33]CAPDU: 80 13 01 00 [17:30:33]Write to MH i2c: E2 08 00 BD 1A 80 13 01 00 00 00 00 00 54 [17:30:33]Write i2c OK [17:30:33]MH_I2C_Read... [17:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:33]Read from MH i2c: E2 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 0E 00 [17:30:33]MH_I2C_Read... [17:30:33]Read from MH i2c: E2 0E 00 BD 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FF [17:30:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:30:33]wFMCommunicate OK [17:30:33]SAM_PROTO_GetShiftState done [17:30:33]FM_GetShiftState done [17:30:33]opened in 1715732471 [17:30:33]opened+sec_in_day 1715818871 [17:30:33]quantity*price = 150041 [17:30:33]sum+1 = 150042 [17:30: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 СНО: Общий режим Чек 125 15.05.2024 17:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67307 ФПД: 264759545222999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173035&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67307&fm=264759545222999&tin=02508201610067®Number=0000000000091845&sum=150041 [17:30:34]StoreToDocumentArchive [17:30:34]shift 356 fd 67307 [17:30:34]save to /storage/0356/doc_00067307 [17:30:34]save last doc name /storage/0356/doc_00067307 to /storage/kkm_last_doc_name [17:30:34]save OK [17:30:34]Clear old archive folders... [17:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:30:34]tlvbuf is B6F8E3D0 [17:30:34]SAM_PROTO_ClearQueue [17:30:34]wFMCommunicate request_size=4 [17:30:34]MH_SAM_APDU [17:30:34]CAPDU: 80 09 00 00 [17:30:34]Write to MH i2c: E2 08 00 CA 1A 80 09 00 00 00 00 00 00 56 [17:30:34]Write i2c OK [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 [17:30:34]MH_I2C_Read... [17:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:34]Read from MH i2c: E2 03 00 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 CA 1A 00 90 00 58 [17:30:34]RAPDU: 90 00 [17:30:34]wFMCommunicate OK [17:30:34]SAM_PROTO_ClearQueue done [17:30:34]KKMCreateOFDPacket [17:30:34]OFDProtocolAddRootSTLVToBuf [17:30:34]FM_MakeSignedData [17:30:34]FM_MakeSignedData [17:30:34]SAM_PROTO_SignData [17:30:34]wFMCommunicate request_size=4 [17:30:34]MH_SAM_APDU [17:30:34]CAPDU: 80 0D 01 02 [17:30:34]Write to MH i2c: E2 08 00 CB 1A 80 0D 01 02 00 00 00 00 5E [17:30:34]Write i2c OK [17:30:34]MH_I2C_Read... [17:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:34]Read from MH i2c: E2 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 CB 1A 00 90 00 59 [17:30:34]RAPDU: 90 00 [17:30:34]wFMCommunicate OK [17:30:34]wFMCommunicate request_size=255 [17:30:34]MH_SAM_APDU [17:30: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 7D 00 00 00 F4 03 04 00 3B F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [17:30:34]Write to MH i2c: E2 02 01 CC 1A 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 7D 00 00 00 F4 03 04 00 3B F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 7F [17:30:34]Write i2c OK [17:30:34]MH_I2C_Read... [17:30:34]OFD Sender: No OFD packet to send [17:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:34]Read from MH i2c: E2 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 CC 1A 00 90 00 5A [17:30:34]RAPDU: 90 00 [17:30:34]wFMCommunicate OK [17:30:34]wFMCommunicate request_size=11 [17:30:34]MH_SAM_APDU [17:30:34]CAPDU: 80 0D 02 02 06 F0 CC 22 A4 D7 57 [17:30:34]Write to MH i2c: E2 0E 00 CD 1A 80 0D 02 02 06 00 F0 CC 22 A4 D7 57 00 00 1D [17:30:34]Write i2c OK [17:30:34]MH_I2C_Read... [17:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:34]Read from MH i2c: E2 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 [17:30:34]MH_I2C_Read... [17:30:34]Read from MH i2c: E2 03 00 CD 1A 00 90 00 5B [17:30:34]RAPDU: 90 00 [17:30:34]wFMCommunicate OK [17:30:34]wFMCommunicate request_size=4 [17:30:34]MH_SAM_APDU [17:30:34]CAPDU: 80 0D 03 02 [17:30:34]Write to MH i2c: E2 08 00 CE 1A 80 0D 03 02 00 00 00 00 63 [17:30:34]Write i2c OK [17:30:34]MH_I2C_Read... [17:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:35]Read from MH i2c: E2 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 0B 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 0B 00 CE 1A 00 CE B8 E4 06 DD 9A A4 67 90 00 56 [17:30:35]RAPDU: CE B8 E4 06 DD 9A A4 67 90 00 [17:30:35]wFMCommunicate OK [17:30:35]SAM_PROTO_SignData done [17:30:35]FM_MakeSignedData done [17:30:35]CreateOFDProtocolMessage [17:30:35]wFMCommunicate request_size=4 [17:30:35]MH_SAM_APDU [17:30:35]CAPDU: 80 11 00 00 [17:30:35]Write to MH i2c: E2 08 00 CF 1A 80 11 00 00 00 00 00 00 63 [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:35]Read from MH i2c: E2 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 17 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: E2 17 00 CF 1A 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:30: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:30:35]wFMCommunicate OK [17:30:35]CreateOFDProtocolMessage done [17:30:35]OFDSenderStorePacket 67307 [17:30:35]StoreOFDPacket docnum=67307 [17:30: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 10 01 00 00 90 AC 08 01 5C 34 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 7D 00 00 00 F4 03 04 00 3B F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F0 CC 22 A4 D7 57 CE B8 E4 06 DD 9A A4 67 [17:30:35]CheckFolder [17:30:35]dirname=/storage/ofd_packets [17:30:35]CheckFolder done [17:30:35]ProducePacketName [17:30:35]name=ofd_packets/00067307 [17:30:35]NVStorageSaveData ofd_packets/00067307 [17:30:35]File name is /storage/ofd_packets/00067307 [17:30:35]Write 302 bytes [17:30:35]NVStorageSaveData done [17:30:35]OFDSenderStorePacket done [17:30:35]KKMCreateOFDPacket done [17:30:35]NVStorageSaveData kkm_last_timestamp [17:30:35]File name is /storage/kkm_last_timestamp [17:30:35]Write 4 bytes [17:30:35]NVStorageSaveData done [17:30:35]ExternCall_PrintAddStr [17:30:35]wPrintStart [17:30:35]Write to MH i2c: 01 00 00 D0 1A EA [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 07 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 07 00 D0 1A 00 00 00 00 00 FF 0F FF [17:30:35]RasterBufferAndPrint [17:30:35]line Счет N : (1)507292 [17:30:35]line ИНН: 02508201610067 [17:30:35]line Контрольно-Кассовый Чек [17:30:35]line ПРОДАЖА [17:30:35]line ТРК (МРК, ГНК) : 32 [17:30:35]line Товар: 2710124130 [17:30:35]line Super-92-К-5 [17:30:35]line 22.130 * 67.80 [17:30:35]line = 1500.41 [17:30:35]line НДС 12% НСП 1% [17:30:35]line > о реализуемом товаре [17:30:35]line ИТОГО: 1500.41 [17:30:35]line НСП 1% : 13.28 [17:30:35]line НДС 12% : 159.34 [17:30:35]line Наличными: 0.00 [17:30:35]line Безнал.: 1500.41 [17:30:35]line Место: АЗС № 91 "Партнер Нефть" [17:30:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:30:35]line СНО: Общий режим [17:30:35]line Чек 125 15.05.2024 17:30 [17:30:35]line Смена: 356 ФФД: 1.0 [17:30:35]line ЗНМ: 0300000119 [17:30:35]line РНМ: 0000000000091845 [17:30:35]line Версия ККМ: 001 [17:30:35]line Платежная система: O! деньги [17:30:35]line ФМ: 0000000000871829 [17:30:35]line ФД: 67307 [17:30:35]line ФПД: 264759545222999 [17:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173035&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67307&fm=264759545222999&tin=02508201610067®Number=0000000000091845&sum=150041 [17:30:35]OFD Sender: Processing packet 67307 [packets to send 35, broken 34] [17:30:35]ProducePacketName [17:30:35]name=ofd_packets/00067307 [17:30:35]OFD Sender: To server: pG, [17:30:35]CommunicateWithHost lk.salyk.kg:30040 [17:30:35]ConnectInit lk.salyk.kg [17:30:35]written 0, free lines is 4095 [17:30:35]Connected sock=10 [17:30: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 90 AC 08 01 5C 34 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 7D 00 00 00 F4 03 04 00 3B F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F0 CC 22 A4 D7 57 CE B8 E4 06 DD 9A A4 67 [17:30: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 1A E7 47 00 38 3E 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 06 01 00 F4 03 04 00 17 99 44 66 B6 04 01 00 00 DC 84 1E CD 9A AE 6A 7A [17:30:35]CommunicateWithHost err = 0 [17:30:35]CheckOFDResponse [17:30:35]1017 (14) - 77093643461234 [17:30:35]1041 (16) - 0000000000871829 [17:30:35]1040 (4) - 67307 [17:30:35]1012 (4) - 15.05.2024 11:14 [17:30:35]1206 (1) - 0 [17:30:35]OFD Sender: Remove packet 67307 [17:30:35]ProducePacketName [17:30:35]name=ofd_packets/00067307 [17:30:35]NVStorageDeleteData [17:30:35]Write to MH i2c: 01 00 00 F9 1A 13 [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 07 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: 01 07 00 F9 1A 00 00 00 00 00 E6 0C 0C [17:30:35]RasterBufferAndPrint [17:30:35]line [17:30:35]line [17:30:35]line [17:30:35]line [17:30:35]line [17:30:35]written 0, free lines is 3309 [17:30:35]MH_Cut [17:30:35]Write to MH i2c: D1 01 00 00 1B 01 ED [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: D1 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: D1 01 00 [17:30:35]MH_I2C_Read... [17:30:35]Read from MH i2c: D1 01 00 00 1B 00 EC [17:30:35]Write to MH i2c: 01 00 00 01 1B 1C [17:30:35]Write i2c OK [17:30:35]MH_I2C_Read... [17:30:36]OFD Sender: No OFD packet to send [17:30:36]*** Cut start [17:30:36]*** Purtial cut [17:30:36]*** CUTSNS_PIN = 0 [17:30:36]*** Stage 1: CUTSNS_PIN = 1 [17:30:38]Read from MH i2c: 01 [17:30:38]MH_I2C_Read... [17:30:38]*** Stop cut motor [17:30:38]*** Cut end [17:30:38]Read from MH i2c: 01 07 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 FF 0F 31 [17:30:38]process_action close_receipt done [17:30:38]requested_data is exist [17:30:38]produce_requested_data [17:30:38]requested_item fm.sn is exist - process it [17:30:38]wFMCommunicate request_size=4 [17:30:38]MH_SAM_APDU [17:30:38]CAPDU: 80 11 00 00 [17:30:38]Write to MH i2c: E2 08 00 02 1B 80 11 00 00 00 00 00 00 97 [17:30:38]Write i2c OK [17:30:38]MH_I2C_Read... [17:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:38]Read from MH i2c: E2 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 17 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 17 00 02 1B 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:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:30:38]wFMCommunicate OK [17:30:38]requested_item fd.num is exist - process it [17:30:38]SAM_PROTO_GetFieldsCounters [17:30:38]wFMCommunicate request_size=4 [17:30:38]MH_SAM_APDU [17:30:38]CAPDU: 80 13 00 00 [17:30:38]Write to MH i2c: E2 08 00 03 1B 80 13 00 00 00 00 00 00 9A [17:30:38]Write i2c OK [17:30:38]MH_I2C_Read... [17:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:38]Read from MH i2c: E2 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 62 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 62 00 03 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 EB 06 01 00 0E 04 04 00 64 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 8E [17:30: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 EB 06 01 00 0E 04 04 00 64 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 [17:30:38]wFMCommunicate OK [17:30:38]SAM_PROTO_GetFieldsCounters done [17:30:38]requested_item shift.num is exist - process it [17:30:38]requested_item shift.opened is exist - process it [17:30:38]req_shift_opened [17:30:38]FM_GetShiftState [17:30:38]SAM_PROTO_GetShiftState [17:30:38]wFMCommunicate request_size=4 [17:30:38]MH_SAM_APDU [17:30:38]CAPDU: 80 13 01 00 [17:30:38]Write to MH i2c: E2 08 00 04 1B 80 13 01 00 00 00 00 00 9C [17:30:38]Write i2c OK [17:30:38]MH_I2C_Read... [17:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:38]Read from MH i2c: E2 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 0E 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 0E 00 04 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 47 [17:30:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:30:38]wFMCommunicate OK [17:30:38]SAM_PROTO_GetShiftState done [17:30:38]FM_GetShiftState done [17:30:38]req_shift_opened done [17:30:38]requested_item shift.open_date is exist - process it [17:30:38]req_shift_open_date [17:30:38]req_shift_open_date done [17:30:38]produce_requested_data done [17:30:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67307,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:30:38]process_action_free close_receipt [17:30:38]json_value_free [17:30:38]json_value_free done [17:30:38]process_json_proto returns [17:30:38]Send response to host [17:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67307,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:30:38]free response buf [17:30:38]execute_script done [17:30:38]execute_script returns [17:30:38]free content buf [17:30:38]Sock 9.Close socket [17:30:38]Sock 9.Thread stoped [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:19]accept exits with 7 [17:32:19]New connection [17:32:19]New thread 3067174244 created [17:32:19]Thread 3067030884 joined [17:32:19]Waiting for new connection... [17:32:19] Sock 7.Parse request [17:32:19]Sock 7.Check first char [17:32:19]Sock 7.First char is OK [17:32:19]request: POST /json_proto HTTP/1.0 [17:32:19]Method: POST [17:32:19]URL: /json_proto [17:32:19]Method is POST - this is cgi request [17:32:19]url: /json_proto [17:32:19]query_string will be loaded in cgi processing [17:32:19]execute_cgi json_proto POST (null) [17:32:19]execute_cgi path=json_proto method=POST [17:32:19]POST find Content-Length [17:32:19]Host: 172.17.41.195:8080 [17:32:19]Content-Length: 671 [17:32:19]Content-Type: application/json [17:32:19] [17:32:19]POST finish read [17:32:19]Found Content-Length = 671 [17:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507293", "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" : 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" ] } } [17:32:19]execute_script... [17:32:19]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)507293", "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" : 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" ] } } [17:32:19]POST & json_proto [17:32:19]process_json_proto [17:32:19]json parsed OK: [17:32:19]protocol is kg_v1.0 [17:32:19]action value=close_receipt [17:32:19]process_action close_receipt [17:32:19]cmd_close_receipt [17:32:19]MH_GetDate [17:32:19]Write to MH i2c: F0 00 00 05 1B 0F [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 09 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 09 00 05 1B 00 A5 F1 44 66 FC 21 6F 64 48 [17:32:19]GetLastDocTimeStamp 1715794235 [17:32:19]current date 1715794341 [17:32:19]FM_GetShiftState [17:32:19]SAM_PROTO_GetShiftState [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 13 01 00 [17:32:19]Write to MH i2c: E2 08 00 06 1B 80 13 01 00 00 00 00 00 9E [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 06 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 49 [17:32:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_GetShiftState done [17:32:19]FM_GetShiftState done [17:32:19]opened in 1715732471 [17:32:19]opened+sec_in_day 1715818871 [17:32:19]quantity*price = 70037 [17:32:19]sum+1 = 70038 [17:32:19]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 СНО: Общий режим Чек 126 15.05.2024 17:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67308 ФПД: 274105579560758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67308&fm=274105579560758&tin=02508201610067®Number=0000000000091845&sum=70000 [17:32:20]StoreToDocumentArchive [17:32:20]shift 356 fd 67308 [17:32:20]save to /storage/0356/doc_00067308 [17:32:20]save last doc name /storage/0356/doc_00067308 to /storage/kkm_last_doc_name [17:32:20]save OK [17:32:20]Clear old archive folders... [17:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:32:20]tlvbuf is B6EF7310 [17:32:20]SAM_PROTO_ClearQueue [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 09 00 00 [17:32:20]Write to MH i2c: E2 08 00 13 1B 80 09 00 00 00 00 00 00 A0 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 13 1B 00 90 00 A2 [17:32:20]RAPDU: 90 00 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_ClearQueue done [17:32:20]KKMCreateOFDPacket [17:32:20]OFDProtocolAddRootSTLVToBuf [17:32:20]FM_MakeSignedData [17:32:20]FM_MakeSignedData [17:32:20]SAM_PROTO_SignData [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 0D 01 02 [17:32:20]Write to MH i2c: E2 08 00 14 1B 80 0D 01 02 00 00 00 00 A8 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 14 1B 00 90 00 A3 [17:32:20]RAPDU: 90 00 [17:32:20]wFMCommunicate OK [17:32:20]wFMCommunicate request_size=255 [17:32:20]MH_SAM_APDU [17:32:20]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 7E 00 00 00 F4 03 04 00 A5 F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [17:32:20]Write to MH i2c: E2 02 01 15 1B 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 7E 00 00 00 F4 03 04 00 A5 F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 53 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 15 1B 00 90 00 A4 [17:32:21]RAPDU: 90 00 [17:32:21]wFMCommunicate OK [17:32:21]wFMCommunicate request_size=11 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 0D 02 02 06 F9 4C 2D B3 5F 36 [17:32:21]Write to MH i2c: E2 0E 00 16 1B 80 0D 02 02 06 00 F9 4C 2D B3 5F 36 00 00 71 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 16 1B 00 90 00 A5 [17:32:21]RAPDU: 90 00 [17:32:21]wFMCommunicate OK [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 0D 03 02 [17:32:21]Write to MH i2c: E2 08 00 17 1B 80 0D 03 02 00 00 00 00 AD [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0B 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0B 00 17 1B 00 15 0B C1 16 DB 17 74 6D 90 00 78 [17:32:21]RAPDU: 15 0B C1 16 DB 17 74 6D 90 00 [17:32:21]wFMCommunicate OK [17:32:21]SAM_PROTO_SignData done [17:32:21]FM_MakeSignedData done [17:32:21]CreateOFDProtocolMessage [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 11 00 00 [17:32:21]Write to MH i2c: E2 08 00 18 1B 80 11 00 00 00 00 00 00 AD [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 18 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [17:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:32:21]wFMCommunicate OK [17:32:21]CreateOFDProtocolMessage done [17:32:21]OFDSenderStorePacket 67308 [17:32:21]StoreOFDPacket docnum=67308 [17:32:21]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 C3 08 01 55 B9 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 7E 00 00 00 F4 03 04 00 A5 F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 4C 2D B3 5F 36 15 0B C1 16 DB 17 74 6D [17:32:21]CheckFolder [17:32:21]dirname=/storage/ofd_packets [17:32:21]CheckFolder done [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00067308 [17:32:21]NVStorageSaveData ofd_packets/00067308 [17:32:21]File name is /storage/ofd_packets/00067308 [17:32:21]Write 302 bytes [17:32:21]NVStorageSaveData done [17:32:21]OFDSenderStorePacket done [17:32:21]KKMCreateOFDPacket done [17:32:21]NVStorageSaveData kkm_last_timestamp [17:32:21]File name is /storage/kkm_last_timestamp [17:32:21]Write 4 bytes [17:32:21]NVStorageSaveData done [17:32:21]ExternCall_PrintAddStr [17:32:21]wPrintStart [17:32:21]Write to MH i2c: 01 00 00 19 1B 34 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 19 1B 00 00 00 00 00 FF 0F 49 [17:32:21]RasterBufferAndPrint [17:32:21]line Счет N : (1)507293 [17:32:21]line ИНН: 02508201610067 [17:32:21]line Контрольно-Кассовый Чек [17:32:21]line ПРОДАЖА [17:32:21]line ТРК (МРК, ГНК) : 22 [17:32:21]line Товар: 2710124130 [17:32:21]line Super-92-К-5 [17:32:21]line 10.330 * 67.80 [17:32:21]line = 700.37 [17:32:21]line НДС 12% НСП 1% [17:32:21]line > о реализуемом товаре [17:32:21]line ОКРУГЛЕНИЕ: -0.37 [17:32:21]line ИТОГО: 700.00 [17:32:21]line Внесено: 700.00 [17:32:21]line СДАЧА: 0.00 [17:32:21]line НСП 1% : 6.20 [17:32:21]line НДС 12% : 74.38 [17:32:21]line Наличными: 700.00 [17:32:21]line Безнал.: 0.00 [17:32:21]line Место: АЗС № 91 "Партнер Нефть" [17:32:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:32:21]line СНО: Общий режим [17:32:21]line Чек 126 15.05.2024 17:32 [17:32:21]line Смена: 356 ФФД: 1.0 [17:32:21]line ЗНМ: 0300000119 [17:32:21]line РНМ: 0000000000091845 [17:32:21]line Версия ККМ: 001 [17:32:21]line ФМ: 0000000000871829 [17:32:21]line ФД: 67308 [17:32:21]line ФПД: 274105579560758 [17:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67308&fm=274105579560758&tin=02508201610067®Number=0000000000091845&sum=70000 [17:32:21]OFD Sender: Processing packet 67308 [packets to send 35, broken 34] [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00067308 [17:32:21]OFD Sender: To server: pG, [17:32:21]CommunicateWithHost lk.salyk.kg:30040 [17:32:21]ConnectInit lk.salyk.kg [17:32:21]written 0, free lines is 4095 [17:32:21]Connected sock=10 [17:32: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 10 01 00 00 24 C3 08 01 55 B9 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 7E 00 00 00 F4 03 04 00 A5 F1 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 4C 2D B3 5F 36 15 0B C1 16 DB 17 74 6D [17:32: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 AE 21 47 00 98 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 EC 06 01 00 F4 03 04 00 82 99 44 66 B6 04 01 00 00 64 53 E7 6F 1B E0 AF 60 [17:32:21]CommunicateWithHost err = 0 [17:32:21]CheckOFDResponse [17:32:21]1017 (14) - 77093643461234 [17:32:21]1041 (16) - 0000000000871829 [17:32:21]1040 (4) - 67308 [17:32:21]1012 (4) - 15.05.2024 11:16 [17:32:21]1206 (1) - 0 [17:32:21]OFD Sender: Remove packet 67308 [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00067308 [17:32:21]NVStorageDeleteData [17:32:22]Write to MH i2c: 01 00 00 43 1B 5E [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: 01 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: 01 07 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: 01 07 00 43 1B 00 00 00 00 00 C9 0C 3A [17:32:22]RasterBufferAndPrint [17:32:22]line [17:32:22]line [17:32:22]line [17:32:22]line [17:32:22]line [17:32:22]written 0, free lines is 3279 [17:32:22]MH_Cut [17:32:22]Write to MH i2c: D1 01 00 4A 1B 01 37 [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: D1 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: D1 01 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: D1 01 00 4A 1B 00 36 [17:32:22]Write to MH i2c: 01 00 00 4B 1B 66 [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]OFD Sender: No OFD packet to send [17:32:22]*** Cut start [17:32:22]*** Purtial cut [17:32:22]*** Stage 1: CUTSNS_PIN = 1 [17:32:23]Read from MH i2c: 01 [17:32:23]MH_I2C_Read... [17:32:23]*** Stop cut motor [17:32:23]*** Cut end [17:32:23]Read from MH i2c: 01 07 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: 01 07 00 4B 1B 00 00 00 00 00 FF 0F 7B [17:32:23]process_action close_receipt done [17:32:23]requested_data is exist [17:32:23]produce_requested_data [17:32:23]requested_item fm.sn is exist - process it [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 11 00 00 [17:32:23]Write to MH i2c: E2 08 00 4C 1B 80 11 00 00 00 00 00 00 E1 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 17 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 17 00 4C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 37 [17:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:32:23]wFMCommunicate OK [17:32:23]requested_item fd.num is exist - process it [17:32:23]SAM_PROTO_GetFieldsCounters [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 13 00 00 [17:32:23]Write to MH i2c: E2 08 00 4D 1B 80 13 00 00 00 00 00 00 E4 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 62 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 62 00 4D 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 EC 06 01 00 0E 04 04 00 64 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 DC [17:32: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 EC 06 01 00 0E 04 04 00 64 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 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_GetFieldsCounters done [17:32:23]requested_item shift.num is exist - process it [17:32:23]requested_item shift.opened is exist - process it [17:32:23]req_shift_opened [17:32:23]FM_GetShiftState [17:32:23]SAM_PROTO_GetShiftState [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 13 01 00 [17:32:23]Write to MH i2c: E2 08 00 4E 1B 80 13 01 00 00 00 00 00 E6 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0E 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0E 00 4E 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 91 [17:32:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_GetShiftState done [17:32:23]FM_GetShiftState done [17:32:23]req_shift_opened done [17:32:23]requested_item shift.open_date is exist - process it [17:32:23]req_shift_open_date [17:32:23]req_shift_open_date done [17:32:23]produce_requested_data done [17:32:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67308,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:32:23]process_action_free close_receipt [17:32:23]json_value_free [17:32:23]json_value_free done [17:32:23]process_json_proto returns [17:32:23]Send response to host [17:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67308,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:32:23]free response buf [17:32:23]execute_script done [17:32:23]execute_script returns [17:32:23]free content buf [17:32:23]Sock 7.Close socket [17:32:23]Sock 7.Thread stoped [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:47]accept exits with 9 [17:34:47]New connection [17:34:47]New thread 3067030884 created [17:34:47]Thread 3067174244 joined [17:34:47]Waiting for new connection... [17:34:47] Sock 9.Parse request [17:34:47]Sock 9.Check first char [17:34:47]Sock 9.First char is OK [17:34:47]request: POST /json_proto HTTP/1.0 [17:34:47]Method: POST [17:34:47]URL: /json_proto [17:34:47]Method is POST - this is cgi request [17:34:47]url: /json_proto [17:34:47]query_string will be loaded in cgi processing [17:34:47]execute_cgi json_proto POST (null) [17:34:47]execute_cgi path=json_proto method=POST [17:34:47]POST find Content-Length [17:34:47]Host: 172.17.41.195:8080 [17:34:47]Content-Length: 798 [17:34:47]Content-Type: application/json [17:34:47] [17:34:47]POST finish read [17:34:47]Found Content-Length = 798 [17:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507294", "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 }]} ], "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.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:47]execute_script... [17:34: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)507294", "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 }]} ], "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.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:47]POST & json_proto [17:34:47]process_json_proto [17:34:47]json parsed OK: [17:34:47]protocol is kg_v1.0 [17:34:47]action value=close_receipt [17:34:47]process_action close_receipt [17:34:47]cmd_close_receipt [17:34:47]MH_GetDate [17:34:47]Write to MH i2c: F0 00 00 4F 1B 59 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 09 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 09 00 4F 1B 00 39 F2 44 66 FC 21 6F 64 27 [17:34:47]GetLastDocTimeStamp 1715794341 [17:34:47]current date 1715794489 [17:34:47]FM_GetShiftState [17:34:47]SAM_PROTO_GetShiftState [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 01 00 [17:34:47]Write to MH i2c: E2 08 00 50 1B 80 13 01 00 00 00 00 00 E8 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 50 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 93 [17:34:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetShiftState done [17:34:47]FM_GetShiftState done [17:34:47]opened in 1715732471 [17:34:47]opened+sec_in_day 1715818871 [17:34:47]quantity*price = 90013 [17:34:47]sum+1 = 90015 [17:34:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.14 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.14 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 127 15.05.2024 17:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67309 ФПД: 245399994034055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173449&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67309&fm=245399994034055&tin=02508201610067®Number=0000000000091845&sum=90014 [17:34:49]StoreToDocumentArchive [17:34:49]shift 356 fd 67309 [17:34:49]save to /storage/0356/doc_00067309 [17:34:49]save last doc name /storage/0356/doc_00067309 to /storage/kkm_last_doc_name [17:34:49]save OK [17:34:49]Clear old archive folders... [17:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:49]tlvbuf is 00B0FD50 [17:34:49]SAM_PROTO_ClearQueue [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 09 00 00 [17:34:49]Write to MH i2c: E2 08 00 5D 1B 80 09 00 00 00 00 00 00 EA [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 5D 1B 00 90 00 EC [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_ClearQueue done [17:34:49]KKMCreateOFDPacket [17:34:49]OFDProtocolAddRootSTLVToBuf [17:34:49]FM_MakeSignedData [17:34:49]FM_MakeSignedData [17:34:49]SAM_PROTO_SignData [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 01 02 [17:34:49]Write to MH i2c: E2 08 00 5E 1B 80 0D 01 02 00 00 00 00 F2 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 5E 1B 00 90 00 ED [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=255 [17:34:49]MH_SAM_APDU [17:34: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 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 9E 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 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 39 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DF 30 A3 78 [17:34:49]Write to MH i2c: E2 02 01 5F 1B 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 9E 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 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 39 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DF 30 A3 78 00 00 4D [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 5F 1B 00 90 00 EE [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=7 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 02 02 02 E7 87 [17:34:49]Write to MH i2c: E2 0A 00 60 1B 80 0D 02 02 02 00 E7 87 00 00 67 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 60 1B 00 90 00 EF [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 03 02 [17:34:49]Write to MH i2c: E2 08 00 61 1B 80 0D 03 02 00 00 00 00 F7 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0B 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0B 00 61 1B 00 63 A3 AE CD A0 29 4B 97 90 00 24 [17:34:49]RAPDU: 63 A3 AE CD A0 29 4B 97 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_SignData done [17:34:49]FM_MakeSignedData done [17:34:49]CreateOFDProtocolMessage [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 11 00 00 [17:34:49]Write to MH i2c: E2 08 00 62 1B 80 11 00 00 00 00 00 00 F7 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 17 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 17 00 62 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [17:34: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:34:49]wFMCommunicate OK [17:34:49]CreateOFDProtocolMessage done [17:34:49]OFDSenderStorePacket 67309 [17:34:49]StoreOFDPacket docnum=67309 [17:34: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 88 D0 04 01 C7 E8 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 9E 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 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 39 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DF 30 A3 78 E7 87 63 A3 AE CD A0 29 4B 97 [17:34:49]CheckFolder [17:34:49]dirname=/storage/ofd_packets [17:34:49]CheckFolder done [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00067309 [17:34:49]NVStorageSaveData ofd_packets/00067309 [17:34:49]File name is /storage/ofd_packets/00067309 [17:34:49]Write 298 bytes [17:34:49]NVStorageSaveData done [17:34:49]OFDSenderStorePacket done [17:34:49]KKMCreateOFDPacket done [17:34:49]NVStorageSaveData kkm_last_timestamp [17:34:49]File name is /storage/kkm_last_timestamp [17:34:49]Write 4 bytes [17:34:49]NVStorageSaveData done [17:34:49]ExternCall_PrintAddStr [17:34:49]wPrintStart [17:34:49]Write to MH i2c: 01 00 00 63 1B 7E [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 63 1B 00 00 00 00 00 FF 0F 93 [17:34:49]RasterBufferAndPrint [17:34:49]line Счет N : (1)507294 [17:34:49]line ИНН: 02508201610067 [17:34:49]line Контрольно-Кассовый Чек [17:34:49]line ПРОДАЖА [17:34:49]line ТРК (МРК, ГНК) : 31 [17:34:49]line Товар: 2710194210 [17:34:49]line ДТ-К-5 [17:34:49]line 12.050 * 74.70 [17:34:49]line = 900.14 [17:34:49]line НДС 12% НСП 1% [17:34:49]line > о реализуемом товаре [17:34:49]line ИТОГО: 900.14 [17:34:49]line НСП 1% : 7.97 [17:34:49]line НДС 12% : 95.59 [17:34:49]line Наличными: 0.00 [17:34:49]line Безнал.: 900.14 [17:34:49]line Место: АЗС № 91 "Партнер Нефть" [17:34:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:34:49]line СНО: Общий режим [17:34:49]line Чек 127 15.05.2024 17:34 [17:34:49]line Смена: 356 ФФД: 1.0 [17:34:49]line ЗНМ: 0300000119 [17:34:49]line РНМ: 0000000000091845 [17:34:49]line Версия ККМ: 001 [17:34:49]line Платежная система: O! деньги [17:34:49]line ФМ: 0000000000871829 [17:34:49]line ФД: 67309 [17:34:49]line ФПД: 245399994034055 [17:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173449&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67309&fm=245399994034055&tin=02508201610067®Number=0000000000091845&sum=90014 [17:34:49]OFD Sender: Processing packet 67309 [packets to send 35, broken 34] [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00067309 [17:34:49]OFD Sender: To server: pG, [17:34:49]CommunicateWithHost lk.salyk.kg:30040 [17:34:49]ConnectInit lk.salyk.kg [17:34:49]written 0, free lines is 4095 [17:34:49]Connected sock=10 [17:34: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 0C 01 00 00 88 D0 04 01 C7 E8 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 9E 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 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 39 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DF 30 A3 78 E7 87 63 A3 AE CD A0 29 4B 97 [17:34: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 5D F6 47 00 36 E9 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 06 01 00 F4 03 04 00 16 9A 44 66 B6 04 01 00 00 B3 68 22 E9 70 70 21 2A [17:34:50]CommunicateWithHost err = 0 [17:34:50]CheckOFDResponse [17:34:50]1017 (14) - 77093643461234 [17:34:50]1041 (16) - 0000000000871829 [17:34:50]1040 (4) - 67309 [17:34:50]1012 (4) - 15.05.2024 11:18 [17:34:50]1206 (1) - 0 [17:34:50]OFD Sender: Remove packet 67309 [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00067309 [17:34:50]NVStorageDeleteData [17:34:50]Write to MH i2c: 01 00 00 8C 1B A7 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 D7 0C 91 [17:34:50]RasterBufferAndPrint [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]written 0, free lines is 3292 [17:34:50]MH_Cut [17:34:50]Write to MH i2c: D1 01 00 93 1B 01 80 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 01 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 01 00 93 1B 00 7F [17:34:50]Write to MH i2c: 01 00 00 94 1B AF [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]OFD Sender: No OFD packet to send [17:34:51]*** Cut start [17:34:51]*** Purtial cut [17:34:51]*** CUTSNS_PIN = 0 [17:34:51]*** Stage 1: CUTSNS_PIN = 1 [17:34:53]Read from MH i2c: 01 [17:34:53]MH_I2C_Read... [17:34:53]*** Stop cut motor [17:34:53]*** Cut end [17:34:53]Read from MH i2c: 01 07 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [17:34:53]process_action close_receipt done [17:34:53]requested_data is exist [17:34:53]produce_requested_data [17:34:53]requested_item fm.sn is exist - process it [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 11 00 00 [17:34:53]Write to MH i2c: E2 08 00 95 1B 80 11 00 00 00 00 00 00 2A [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 95 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 80 [17:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:34:53]wFMCommunicate OK [17:34:53]requested_item fd.num is exist - process it [17:34:53]SAM_PROTO_GetFieldsCounters [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 00 00 [17:34:53]Write to MH i2c: E2 08 00 96 1B 80 13 00 00 00 00 00 00 2D [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 96 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 ED 06 01 00 0E 04 04 00 64 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 29 [17:34: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 ED 06 01 00 0E 04 04 00 64 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 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetFieldsCounters done [17:34:53]requested_item shift.num is exist - process it [17:34:53]requested_item shift.opened is exist - process it [17:34:53]req_shift_opened [17:34:53]FM_GetShiftState [17:34:53]SAM_PROTO_GetShiftState [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 01 00 [17:34:53]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DA [17:34:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetShiftState done [17:34:53]FM_GetShiftState done [17:34:53]req_shift_opened done [17:34:53]requested_item shift.open_date is exist - process it [17:34:53]req_shift_open_date [17:34:53]req_shift_open_date done [17:34:53]produce_requested_data done [17:34:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67309,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:34:53]process_action_free close_receipt [17:34:53]json_value_free [17:34:53]json_value_free done [17:34:53]process_json_proto returns [17:34:53]Send response to host [17:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67309,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:34:53]free response buf [17:34:53]execute_script done [17:34:53]execute_script returns [17:34:53]free content buf [17:34:53]Sock 9.Close socket [17:34:53]Sock 9.Thread stoped [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:17]accept exits with 7 [17:36:17]New connection [17:36:17]New thread 3067174244 created [17:36:17]Thread 3067030884 joined [17:36:17]Waiting for new connection... [17:36:17] Sock 7.Parse request [17:36:17]Sock 7.Check first char [17:36:17]Sock 7.First char is OK [17:36:17]request: POST /json_proto HTTP/1.0 [17:36:17]Method: POST [17:36:17]URL: /json_proto [17:36:17]Method is POST - this is cgi request [17:36:17]url: /json_proto [17:36:17]query_string will be loaded in cgi processing [17:36:17]execute_cgi json_proto POST (null) [17:36:17]execute_cgi path=json_proto method=POST [17:36:17]POST find Content-Length [17:36:17]Host: 172.17.41.195:8080 [17:36:17]Content-Length: 982 [17:36:17]Content-Type: application/json [17:36:17] [17:36:17]POST finish read [17:36:17]Found Content-Length = 982 [17:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12075", "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 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 146.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:17]execute_script... [17:36: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 : (3)12075", "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 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 146.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:17]POST & json_proto [17:36:17]process_json_proto [17:36:17]json parsed OK: [17:36:17]protocol is kg_v1.0 [17:36:17]action value=close_receipt [17:36:17]process_action close_receipt [17:36:17]cmd_close_receipt [17:36:17]MH_GetDate [17:36:17]Write to MH i2c: F0 00 00 98 1B A2 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: F0 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: F0 09 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: F0 09 00 98 1B 00 93 F2 44 66 FC 21 6F 64 CA [17:36:17]GetLastDocTimeStamp 1715794489 [17:36:17]current date 1715794579 [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 99 1B 80 13 01 00 00 00 00 00 31 [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 99 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DC [17:36:17]RAPDU: 09 00 01 F7 FF 43 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]opened in 1715732471 [17:36:17]opened+sec_in_day 1715818871 [17:36:17]quantity*price = 6600 [17:36:17]sum+1 = 6601 [17:36:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010353 Напиток Let`s Go! с/с груша ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 146.00 НСП 1% : 1.29 НДС 12% : 15.51 Наличными: 146.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 128 15.05.2024 17:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67310 ФПД: 117751773009805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173619&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67310&fm=117751773009805&tin=02508201610067®Number=0000000000091845&sum=14600 0 [17:36:18]StoreToDocumentArchive [17:36:18]shift 356 fd 67310 [17:36:18]save to /storage/0356/doc_00067310 [17:36:18]save last doc name /storage/0356/doc_00067310 to /storage/kkm_last_doc_name [17:36:18]save OK [17:36:18]Clear old archive folders... [17:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=417 [17:36:18]tlvbuf is B6EDE090 [17:36:18]SAM_PROTO_ClearQueue [17:36:18]wFMCommunicate request_size=4 [17:36:18]MH_SAM_APDU [17:36:18]CAPDU: 80 09 00 00 [17:36:18]Write to MH i2c: E2 08 00 A6 1B 80 09 00 00 00 00 00 00 33 [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:18]Read from MH i2c: E2 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [17:36:18]RAPDU: 90 00 [17:36:18]wFMCommunicate OK [17:36:18]SAM_PROTO_ClearQueue done [17:36:18]KKMCreateOFDPacket [17:36:18]OFDProtocolAddRootSTLVToBuf [17:36:18]FM_MakeSignedData [17:36:18]FM_MakeSignedData [17:36:18]SAM_PROTO_SignData [17:36:18]wFMCommunicate request_size=4 [17:36:18]MH_SAM_APDU [17:36:18]CAPDU: 80 0D 01 02 [17:36:18]Write to MH i2c: E2 08 00 A7 1B 80 0D 01 02 00 00 00 00 3B [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:18]Read from MH i2c: E2 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [17:36:18]RAPDU: 90 00 [17:36:18]wFMCommunicate OK [17:36:18]wFMCommunicate request_size=255 [17:36:18]MH_SAM_APDU [17:36:18]CAPDU: 80 0D 02 02 FA 03 00 A1 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 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [17:36:18]Write to MH i2c: E2 02 01 A8 1B 80 0D 02 02 FA 00 03 00 A1 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 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 EA [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:18]Read from MH i2c: E2 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [17:36:18]RAPDU: 90 00 [17:36:18]wFMCommunicate OK [17:36:18]wFMCommunicate request_size=176 [17:36:18]MH_SAM_APDU [17:36:18]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 06 00 00 00 00 07 04 06 00 08 39 00 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 93 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6B 18 38 9A 17 8D [17:36:18]Write to MH i2c: E2 B3 00 A9 1B 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 06 00 00 00 00 07 04 06 00 08 39 00 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 93 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6B 18 38 9A 17 8D 00 00 B8 [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:19]Read from MH i2c: E2 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 03 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [17:36:19]RAPDU: 90 00 [17:36:19]wFMCommunicate OK [17:36:19]wFMCommunicate request_size=4 [17:36:19]MH_SAM_APDU [17:36:19]CAPDU: 80 0D 03 02 [17:36:19]Write to MH i2c: E2 08 00 AA 1B 80 0D 03 02 00 00 00 00 40 [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:19]Read from MH i2c: E2 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 0B 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 0B 00 AA 1B 00 2E 5F EB BF 84 9B 10 FA 90 00 A1 [17:36:19]RAPDU: 2E 5F EB BF 84 9B 10 FA 90 00 [17:36:19]wFMCommunicate OK [17:36:19]SAM_PROTO_SignData done [17:36:19]FM_MakeSignedData done [17:36:19]CreateOFDProtocolMessage [17:36:19]wFMCommunicate request_size=4 [17:36:19]MH_SAM_APDU [17:36:19]CAPDU: 80 11 00 00 [17:36:19]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:19]Read from MH i2c: E2 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 17 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [17:36: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:36:19]wFMCommunicate OK [17:36:19]CreateOFDProtocolMessage done [17:36:19]OFDSenderStorePacket 67310 [17:36:19]StoreOFDPacket docnum=67310 [17:36:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 B5 01 00 00 A1 B9 AD 01 27 FD 5A 03 01 00 03 00 A1 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 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 06 00 00 00 00 07 04 06 00 08 39 00 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 93 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6B 18 38 9A 17 8D 2E 5F EB BF 84 9B 10 FA [17:36:19]CheckFolder [17:36:19]dirname=/storage/ofd_packets [17:36:19]CheckFolder done [17:36:19]ProducePacketName [17:36:19]name=ofd_packets/00067310 [17:36:19]NVStorageSaveData ofd_packets/00067310 [17:36:19]File name is /storage/ofd_packets/00067310 [17:36:19]Write 467 bytes [17:36:19]NVStorageSaveData done [17:36:19]OFDSenderStorePacket done [17:36:19]KKMCreateOFDPacket done [17:36:19]NVStorageSaveData kkm_last_timestamp [17:36:19]File name is /storage/kkm_last_timestamp [17:36:19]Write 4 bytes [17:36:19]NVStorageSaveData done [17:36:19]ExternCall_PrintAddStr [17:36:19]wPrintStart [17:36:19]Write to MH i2c: 01 00 00 AC 1B C7 [17:36:19]OFD Sender: Processing packet 67310 [packets to send 35, broken 34] [17:36:19]ProducePacketName [17:36:19]name=ofd_packets/00067310 [17:36:19]OFD Sender: To server: pG, [17:36:19]CommunicateWithHost lk.salyk.kg:30040 [17:36:19]ConnectInit lk.salyk.kg [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 07 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [17:36:19]RasterBufferAndPrint [17:36:19]line Счет N : (3)12075 [17:36:19]line ИНН: 02508201610067 [17:36:19]line Контрольно-Кассовый Чек [17:36:19]line ПРОДАЖА [17:36:19]line Товар: 4870002326172 [17:36:19]line Вода ASU пит н.газ лимон ПЭТ 1л [17:36:19]line 1.000 * 66.00 [17:36:19]line = 66.00 [17:36:19]line НДС 12% НСП 1% [17:36:19]line > о реализуемом товаре [17:36:19]line Товар: 4700003010353 [17:36:19]line Напиток Let`s Go! с/с груша ПЭТ 1л [17:36:19]line 1.000 * 80.00 [17:36:19]line = 80.00 [17:36:19]line НДС 12% НСП 1% [17:36:19]line > о реализуемом товаре [17:36:19]line ИТОГО: 146.00 [17:36:19]line НСП 1% : 1.29 [17:36:19]line НДС 12% : 15.51 [17:36:19]line Наличными: 146.00 [17:36:19]line Безнал.: 0.00 [17:36:19]line Место: АЗС № 91 "Партнер Нефть" [17:36:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:36:19]line СНО: Общий режим [17:36:19]line Чек 128 15.05.2024 17:36 [17:36:19]line Смена: 356 ФФД: 1.0 [17:36:19]line ЗНМ: 0300000119 [17:36:19]line РНМ: 0000000000091845 [17:36:19]line Версия ККМ: 001 [17:36:19]line ФМ: 0000000000871829 [17:36:19]line ФД: 67310 [17:36:19]line ФПД: 117751773009805 [17:36:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T173619&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67310&fm=117751773009805&tin=02508201610067®Number=0000000000091845&sum=14600 [17:36:19]line 0 [17:36:19]written 0, free lines is 4095 [17:36:19]Connected sock=10 [17:36: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 B5 01 00 00 A1 B9 AD 01 27 FD 5A 03 01 00 03 00 A1 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 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 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 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 06 00 00 00 00 07 04 06 00 08 39 00 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 93 F2 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6B 18 38 9A 17 8D 2E 5F EB BF 84 9B 10 FA [17:36: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 0A 92 47 00 0C 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 EE 06 01 00 F4 03 04 00 70 9A 44 66 B6 04 01 00 00 42 4A ED 4F 7C 81 8A E7 [17:36:19]CommunicateWithHost err = 0 [17:36:19]CheckOFDResponse [17:36:19]1017 (14) - 77093643461234 [17:36:19]1041 (16) - 0000000000871829 [17:36:19]1040 (4) - 67310 [17:36:19]1012 (4) - 15.05.2024 11:20 [17:36:19]1206 (1) - 0 [17:36:19]OFD Sender: Remove packet 67310 [17:36:19]ProducePacketName [17:36:19]name=ofd_packets/00067310 [17:36:19]NVStorageDeleteData [17:36:19]Write to MH i2c: 01 00 00 DB 1B F6 [17:36:19]Write i2c OK [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 07 00 [17:36:19]MH_I2C_Read... [17:36:19]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 67 0C 70 [17:36:19]RasterBufferAndPrint [17:36:19]line [17:36:19]line [17:36:19]line [17:36:19]line [17:36:19]line [17:36:19]written 0, free lines is 3182 [17:36:20]MH_Cut [17:36:20]Write to MH i2c: D1 01 00 E2 1B 01 CF [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: D1 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: D1 01 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: D1 01 00 E2 1B 00 CE [17:36:20]Write to MH i2c: 01 00 00 E3 1B FE [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]OFD Sender: No OFD packet to send [17:36:20]*** Cut start [17:36:20]*** Purtial cut [17:36:20]*** Stage 1: CUTSNS_PIN = 1 [17:36:21]Read from MH i2c: 01 [17:36:21]MH_I2C_Read... [17:36:21]*** Stop cut motor [17:36:21]*** Cut end [17:36:21]Read from MH i2c: 01 07 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 07 00 E3 1B 00 00 00 00 00 FF 0F 13 [17:36:21]process_action close_receipt done [17:36:21]requested_data is exist [17:36:21]produce_requested_data [17:36:21]requested_item fm.sn is exist - process it [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 11 00 00 [17:36:21]Write to MH i2c: E2 08 00 E4 1B 80 11 00 00 00 00 00 00 79 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 17 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 17 00 E4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CF [17:36:21]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:21]wFMCommunicate OK [17:36:21]requested_item fd.num is exist - process it [17:36:21]SAM_PROTO_GetFieldsCounters [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 13 00 00 [17:36:21]Write to MH i2c: E2 08 00 E5 1B 80 13 00 00 00 00 00 00 7C [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 62 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 62 00 E5 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 EE 06 01 00 0E 04 04 00 64 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 7C [17:36: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 EE 06 01 00 0E 04 04 00 64 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 [17:36:21]wFMCommunicate OK [17:36:21]SAM_PROTO_GetFieldsCounters done [17:36:21]requested_item shift.num is exist - process it [17:36:21]requested_item shift.opened is exist - process it [17:36:21]req_shift_opened [17:36:21]FM_GetShiftState [17:36:21]SAM_PROTO_GetShiftState [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 13 01 00 [17:36:21]Write to MH i2c: E2 08 00 E6 1B 80 13 01 00 00 00 00 00 7E [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0E 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0E 00 E6 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 29 [17:36:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:36:21]wFMCommunicate OK [17:36:21]SAM_PROTO_GetShiftState done [17:36:21]FM_GetShiftState done [17:36:21]req_shift_opened done [17:36:21]requested_item shift.open_date is exist - process it [17:36:21]req_shift_open_date [17:36:21]req_shift_open_date done [17:36:21]produce_requested_data done [17:36:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67310,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:36:21]process_action_free close_receipt [17:36:21]json_value_free [17:36:21]json_value_free done [17:36:21]process_json_proto returns [17:36:21]Send response to host [17:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67310,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:36:21]free response buf [17:36:21]execute_script done [17:36:21]execute_script returns [17:36:21]free content buf [17:36:21]Sock 7.Close socket [17:36:21]Sock 7.Thread stoped [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:02]accept exits with 9 [17:45:02]New connection [17:45:02]New thread 3067030884 created [17:45:02]Thread 3067174244 joined [17:45:02]Waiting for new connection... [17:45:02] Sock 9.Parse request [17:45:02]Sock 9.Check first char [17:45:02]Sock 9.First char is OK [17:45:02]request: POST /json_proto HTTP/1.0 [17:45:02]Method: POST [17:45:02]URL: /json_proto [17:45:02]Method is POST - this is cgi request [17:45:02]url: /json_proto [17:45:02]query_string will be loaded in cgi processing [17:45:02]execute_cgi json_proto POST (null) [17:45:02]execute_cgi path=json_proto method=POST [17:45:02]POST find Content-Length [17:45:02]Host: 172.17.41.195:8080 [17:45:02]Content-Length: 639 [17:45:02]Content-Type: application/json [17:45:02] [17:45:02]POST finish read [17:45:02]Found Content-Length = 639 [17:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507295", "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 }]} ], "payments": [ { "type": 0, "sum" : 2241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:02]execute_script... [17:45: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)507295", "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 }]} ], "payments": [ { "type": 0, "sum" : 2241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:02]POST & json_proto [17:45:02]process_json_proto [17:45:02]json parsed OK: [17:45:02]protocol is kg_v1.0 [17:45:02]action value=close_receipt [17:45:02]process_action close_receipt [17:45:02]cmd_close_receipt [17:45:02]MH_GetDate [17:45:02]Write to MH i2c: F0 00 00 E7 1B F1 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: F0 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: F0 09 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: F0 09 00 E7 1B 00 9F F4 44 66 FC 21 6F 64 27 [17:45:02]GetLastDocTimeStamp 1715794579 [17:45:02]current date 1715795103 [17:45:02]FM_GetShiftState [17:45:02]SAM_PROTO_GetShiftState [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 13 01 00 [17:45:02]Write to MH i2c: E2 08 00 E8 1B 80 13 01 00 00 00 00 00 80 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0E 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0E 00 E8 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2B [17:45:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:45:02]wFMCommunicate OK [17:45:02]SAM_PROTO_GetShiftState done [17:45:02]FM_GetShiftState done [17:45:02]opened in 1715732471 [17:45:02]opened+sec_in_day 1715818871 [17:45:02]quantity*price = 224100 [17:45:02]sum+1 = 224101 [17:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2241.00 НСП 1% : 19.83 НДС 12% : 237.98 Наличными: 2241.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 129 15.05.2024 17:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67311 ФПД: 103929751679221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T174503&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67311&fm=103929751679221&tin=02508201610067®Number=0000000000091845&sum=224100 [17:45:03]StoreToDocumentArchive [17:45:03]shift 356 fd 67311 [17:45:03]save to /storage/0356/doc_00067311 [17:45:03]save last doc name /storage/0356/doc_00067311 to /storage/kkm_last_doc_name [17:45:03]save OK [17:45:03]Clear old archive folders... [17:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:45:03]tlvbuf is 00B75720 [17:45:03]SAM_PROTO_ClearQueue [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 09 00 00 [17:45:03]Write to MH i2c: E2 08 00 F5 1B 80 09 00 00 00 00 00 00 82 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 F5 1B 00 90 00 84 [17:45:03]RAPDU: 90 00 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_ClearQueue done [17:45:03]KKMCreateOFDPacket [17:45:03]OFDProtocolAddRootSTLVToBuf [17:45:03]FM_MakeSignedData [17:45:03]FM_MakeSignedData [17:45:03]SAM_PROTO_SignData [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 0D 01 02 [17:45:03]Write to MH i2c: E2 08 00 F6 1B 80 0D 01 02 00 00 00 00 8A [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 F6 1B 00 90 00 85 [17:45:03]RAPDU: 90 00 [17:45:03]wFMCommunicate OK [17:45:03]wFMCommunicate request_size=255 [17:45:03]MH_SAM_APDU [17:45: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 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 64 6B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F F4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 86 07 EE [17:45:03]Write to MH i2c: E2 02 01 F7 1B 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 64 6B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F F4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 86 07 EE 00 00 5C [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 F7 1B 00 90 00 86 [17:45:03]RAPDU: 90 00 [17:45:03]wFMCommunicate OK [17:45:03]wFMCommunicate request_size=7 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 0D 02 02 02 30 F5 [17:45:03]Write to MH i2c: E2 0A 00 F8 1B 80 0D 02 02 02 00 30 F5 00 00 B6 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 03 00 F8 1B 00 90 00 87 [17:45:03]RAPDU: 90 00 [17:45:03]wFMCommunicate OK [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 0D 03 02 [17:45:03]Write to MH i2c: E2 08 00 F9 1B 80 0D 03 02 00 00 00 00 8F [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0B 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0B 00 F9 1B 00 1E 00 B4 FF 39 15 AB 1B 90 00 75 [17:45:03]RAPDU: 1E 00 B4 FF 39 15 AB 1B 90 00 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_SignData done [17:45:03]FM_MakeSignedData done [17:45:03]CreateOFDProtocolMessage [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 11 00 00 [17:45:03]Write to MH i2c: E2 08 00 FA 1B 80 11 00 00 00 00 00 00 8F [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 17 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 17 00 FA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [17:45:03]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:03]wFMCommunicate OK [17:45:03]CreateOFDProtocolMessage done [17:45:03]OFDSenderStorePacket 67311 [17:45:03]StoreOFDPacket docnum=67311 [17:45: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 0C 01 00 00 3D B8 04 01 80 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 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 64 6B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F F4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 86 07 EE 30 F5 1E 00 B4 FF 39 15 AB 1B [17:45:03]CheckFolder [17:45:03]dirname=/storage/ofd_packets [17:45:03]CheckFolder done [17:45:03]ProducePacketName [17:45:03]name=ofd_packets/00067311 [17:45:03]NVStorageSaveData ofd_packets/00067311 [17:45:03]File name is /storage/ofd_packets/00067311 [17:45:03]Write 298 bytes [17:45:03]NVStorageSaveData done [17:45:03]OFDSenderStorePacket done [17:45:03]KKMCreateOFDPacket done [17:45:03]NVStorageSaveData kkm_last_timestamp [17:45:03]File name is /storage/kkm_last_timestamp [17:45:03]Write 4 bytes [17:45:03]NVStorageSaveData done [17:45:03]ExternCall_PrintAddStr [17:45:03]wPrintStart [17:45:03]Write to MH i2c: 01 00 00 FB 1B 16 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 07 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: 01 07 00 FB 1B 00 00 00 00 00 FF 0F 2B [17:45:03]RasterBufferAndPrint [17:45:03]line Счет N : (1)507295 [17:45:03]line ИНН: 02508201610067 [17:45:03]line Контрольно-Кассовый Чек [17:45:03]line ПРОДАЖА [17:45:03]line ТРК (МРК, ГНК) : 11 [17:45:03]line Товар: 2710194210 [17:45:03]line ДТ-К-5 [17:45:03]line 30.000 * 74.70 [17:45:03]line = 2241.00 [17:45:03]line НДС 12% НСП 1% [17:45:03]line > о реализуемом товаре [17:45:03]line ИТОГО: 2241.00 [17:45:03]line НСП 1% : 19.83 [17:45:03]line НДС 12% : 237.98 [17:45:03]line Наличными: 2241.00 [17:45:03]line Безнал.: 0.00 [17:45:03]line Место: АЗС № 91 "Партнер Нефть" [17:45:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:45:03]line СНО: Общий режим [17:45:03]line Чек 129 15.05.2024 17:45 [17:45:03]line Смена: 356 ФФД: 1.0 [17:45:03]line ЗНМ: 0300000119 [17:45:03]line РНМ: 0000000000091845 [17:45:03]line Версия ККМ: 001 [17:45:03]line ФМ: 0000000000871829 [17:45:03]line ФД: 67311 [17:45:03]line ФПД: 103929751679221 [17:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T174503&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67311&fm=103929751679221&tin=02508201610067®Number=0000000000091845&sum=224100 [17:45:03]written 0, free lines is 4095 [17:45:03]OFD Sender: Processing packet 67311 [packets to send 35, broken 34] [17:45:03]ProducePacketName [17:45:03]name=ofd_packets/00067311 [17:45:03]OFD Sender: To server: pG, [17:45:03]CommunicateWithHost lk.salyk.kg:30040 [17:45:03]ConnectInit lk.salyk.kg [17:45:03]Connected sock=10 [17:45: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 0C 01 00 00 3D B8 04 01 80 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 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 64 6B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F F4 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 86 07 EE 30 F5 1E 00 B4 FF 39 15 AB 1B [17:45: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 D3 E8 47 00 97 19 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 06 01 00 F4 03 04 00 7C 9C 44 66 B6 04 01 00 00 FB 53 98 67 67 B3 8F E4 [17:45:04]CommunicateWithHost err = 0 [17:45:04]CheckOFDResponse [17:45:04]1017 (14) - 77093643461234 [17:45:04]1041 (16) - 0000000000871829 [17:45:04]1040 (4) - 67311 [17:45:04]1012 (4) - 15.05.2024 11:29 [17:45:04]1206 (1) - 0 [17:45:04]OFD Sender: Remove packet 67311 [17:45:04]ProducePacketName [17:45:04]name=ofd_packets/00067311 [17:45:04]NVStorageDeleteData [17:45:04]Write to MH i2c: 01 00 00 22 1C 3E [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 07 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: 01 07 00 22 1C 00 00 00 00 00 15 0D 67 [17:45:04]RasterBufferAndPrint [17:45:04]line [17:45:04]line [17:45:04]line [17:45:04]line [17:45:04]line [17:45:04]written 0, free lines is 3355 [17:45:04]MH_Cut [17:45:04]Write to MH i2c: D1 01 00 29 1C 01 17 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: D1 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: D1 01 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: D1 01 00 29 1C 00 16 [17:45:04]Write to MH i2c: 01 00 00 2A 1C 46 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]OFD Sender: No OFD packet to send [17:45:04]*** Cut start [17:45:04]*** Purtial cut [17:45:04]*** CUTSNS_PIN = 0 [17:45:05]*** Stage 1: CUTSNS_PIN = 1 [17:45:06]Read from MH i2c: 01 [17:45:06]MH_I2C_Read... [17:45:06]*** Stop cut motor [17:45:06]*** Cut end [17:45:06]Read from MH i2c: 01 07 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: 01 07 00 2A 1C 00 00 00 00 00 FF 0F 5B [17:45:06]process_action close_receipt done [17:45:06]requested_data is exist [17:45:06]produce_requested_data [17:45:06]requested_item fm.sn is exist - process it [17:45:06]wFMCommunicate request_size=4 [17:45:06]MH_SAM_APDU [17:45:06]CAPDU: 80 11 00 00 [17:45:06]Write to MH i2c: E2 08 00 2B 1C 80 11 00 00 00 00 00 00 C1 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 2B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [17:45:07]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:07]wFMCommunicate OK [17:45:07]requested_item fd.num is exist - process it [17:45:07]SAM_PROTO_GetFieldsCounters [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 13 00 00 [17:45:07]Write to MH i2c: E2 08 00 2C 1C 80 13 00 00 00 00 00 00 C4 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 62 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 62 00 2C 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 EF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:45: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 EF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_GetFieldsCounters done [17:45:07]requested_item shift.num is exist - process it [17:45:07]requested_item shift.opened is exist - process it [17:45:07]req_shift_opened [17:45:07]FM_GetShiftState [17:45:07]SAM_PROTO_GetShiftState [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 13 01 00 [17:45:07]Write to MH i2c: E2 08 00 2D 1C 80 13 01 00 00 00 00 00 C6 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0E 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0E 00 2D 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 71 [17:45:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_GetShiftState done [17:45:07]FM_GetShiftState done [17:45:07]req_shift_opened done [17:45:07]requested_item shift.open_date is exist - process it [17:45:07]req_shift_open_date [17:45:07]req_shift_open_date done [17:45:07]produce_requested_data done [17:45:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67311,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:45:07]process_action_free close_receipt [17:45:07]json_value_free [17:45:07]json_value_free done [17:45:07]process_json_proto returns [17:45:07]Send response to host [17:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67311,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:45:07]free response buf [17:45:07]execute_script done [17:45:07]execute_script returns [17:45:07]free content buf [17:45:07]Sock 9.Close socket [17:45:07]Sock 9.Thread stoped [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:01]accept exits with 7 [17:49:01]New connection [17:49:01]New thread 3067174244 created [17:49:01]Thread 3067030884 joined [17:49:01]Waiting for new connection... [17:49:01] Sock 7.Parse request [17:49:01]Sock 7.Check first char [17:49:01]Sock 7.First char is OK [17:49:01]request: POST /json_proto HTTP/1.0 [17:49:01]Method: POST [17:49:01]URL: /json_proto [17:49:01]Method is POST - this is cgi request [17:49:01]url: /json_proto [17:49:01]query_string will be loaded in cgi processing [17:49:01]execute_cgi json_proto POST (null) [17:49:01]execute_cgi path=json_proto method=POST [17:49:01]POST find Content-Length [17:49:01]Host: 172.17.41.195:8080 [17:49:01]Content-Length: 215 [17:49:01]Content-Type: application/json [17:49:01] [17:49:01]POST finish read [17:49:01]Found Content-Length = 215 [17:49:01]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" ] } } [17:49:01]execute_script... [17:49:01]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" ] } } [17:49:01]POST & json_proto [17:49:01]process_json_proto [17:49:01]json parsed OK: [17:49:01]protocol is kg_v1.0 [17:49:01]action value=get_value [17:49:01]process_action get_value [17:49:01]cmd_get_value [17:49:01]process_action get_value done [17:49:01]requested_data is exist [17:49:01]produce_requested_data [17:49:01]requested_item kkm.sn is exist - process it [17:49:01]requested_item kkm.ver is exist - process it [17:49:01]requested_item fm.sn is exist - process it [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 11 00 00 [17:49:01]Write to MH i2c: E2 08 00 2E 1C 80 11 00 00 00 00 00 00 C4 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 17 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 17 00 2E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [17:49:01]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:01]wFMCommunicate OK [17:49:01]requested_item fd.num is exist - process it [17:49:01]SAM_PROTO_GetFieldsCounters [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 13 00 00 [17:49:01]Write to MH i2c: E2 08 00 2F 1C 80 13 00 00 00 00 00 00 C7 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 62 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 62 00 2F 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 EF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:49: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 EF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:01]wFMCommunicate OK [17:49:01]SAM_PROTO_GetFieldsCounters done [17:49:01]requested_item shift.num is exist - process it [17:49:01]requested_item shift.opened is exist - process it [17:49:01]req_shift_opened [17:49:01]FM_GetShiftState [17:49:01]SAM_PROTO_GetShiftState [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 13 01 00 [17:49:01]Write to MH i2c: E2 08 00 30 1C 80 13 01 00 00 00 00 00 C9 [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:01]Read from MH i2c: E2 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 0E 00 [17:49:01]MH_I2C_Read... [17:49:01]Read from MH i2c: E2 0E 00 30 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 74 [17:49:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:49:01]wFMCommunicate OK [17:49:01]SAM_PROTO_GetShiftState done [17:49:01]FM_GetShiftState done [17:49:01]req_shift_opened done [17:49:01]requested_item shift.open_date is exist - process it [17:49:01]req_shift_open_date [17:49:01]req_shift_open_date done [17:49:01]produce_requested_data done [17:49:01]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67311,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:49:01]process_action_free get_value [17:49:01]json_value_free [17:49:01]json_value_free done [17:49:01]process_json_proto returns [17:49:01]Send response to host [17:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67311,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:49:01]free response buf [17:49:01]execute_script done [17:49:01]execute_script returns [17:49:01]free content buf [17:49:01]Sock 7.Close socket [17:49:01]Sock 7.Thread stoped [17:49:01]accept exits with 9 [17:49:01]New connection [17:49:01]New thread 3067030884 created [17:49:01]Thread 3067174244 joined [17:49:01]Waiting for new connection... [17:49:01] Sock 9.Parse request [17:49:01]Sock 9.Check first char [17:49:01]Sock 9.First char is OK [17:49:01]request: POST /json_proto HTTP/1.0 [17:49:01]Method: POST [17:49:01]URL: /json_proto [17:49:01]Method is POST - this is cgi request [17:49:01]url: /json_proto [17:49:01]query_string will be loaded in cgi processing [17:49:01]execute_cgi json_proto POST (null) [17:49:01]execute_cgi path=json_proto method=POST [17:49:01]POST find Content-Length [17:49:01]Host: 172.17.41.195:8080 [17:49:01]Content-Length: 331 [17:49:01]Content-Type: application/json [17:49:01] [17:49:01]POST finish read [17:49:01]Found Content-Length = 331 [17:49:01]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" ] } } [17:49:01]execute_script... [17:49:01]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" ] } } [17:49:01]POST & json_proto [17:49:01]process_json_proto [17:49:01]json parsed OK: [17:49:01]protocol is kg_v1.0 [17:49:01]action value=get_value [17:49:01]process_action get_value [17:49:01]cmd_get_value [17:49:01]process_action get_value done [17:49:01]requested_data is exist [17:49:01]produce_requested_data [17:49:01]requested_item fm.sale.total is exist - process it [17:49:01]SAM_PROTO_GetFMData [17:49:01]wFMCommunicate request_size=4 [17:49:01]MH_SAM_APDU [17:49:01]CAPDU: 80 13 03 00 [17:49:01]Write to MH i2c: E2 08 00 31 1C 80 13 03 00 00 00 00 00 CC [17:49:01]Write i2c OK [17:49:01]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 31 1C 00 C6 04 85 04 C2 04 6E 04 04 00 27 04 01 00 69 04 A3 00 6F 04 04 00 81 03 01 00 B1 04 05 00 F3 F7 20 1A 03 70 04 05 00 D0 F5 F0 BE 02 72 04 04 00 23 02 30 5B 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 67 04 58 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 3D 41 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 EA [17:49:02]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 27 04 01 00 69 04 A3 00 6F 04 04 00 81 03 01 00 B1 04 05 00 F3 F7 20 1A 03 70 04 05 00 D0 F5 F0 BE 02 72 04 04 00 23 02 30 5B 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 67 04 58 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 3D 41 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [17:49:02]wFMCommunicate OK [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 17 00 00 [17:49:02]Write to MH i2c: E2 08 00 32 1C 80 17 00 00 00 00 00 00 CE [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 32 1C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 E5 [17:49:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 [17:49:02]wFMCommunicate OK [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 17 00 00 [17:49:02]Write to MH i2c: E2 08 00 33 1C 80 17 00 00 00 00 00 00 CF [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 FD 00 33 1C 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 [17:49:02]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 [17:49:02]wFMCommunicate OK [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 17 00 00 [17:49:02]Write to MH i2c: E2 08 00 34 1C 80 17 00 00 00 00 00 00 D0 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:03]Read from MH i2c: E2 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 FD 00 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 FD 00 34 1C 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:49:03]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 [17:49:03]wFMCommunicate OK [17:49:03]wFMCommunicate request_size=4 [17:49:03]MH_SAM_APDU [17:49:03]CAPDU: 80 17 00 00 [17:49:03]Write to MH i2c: E2 08 00 35 1C 80 17 00 00 00 00 00 00 D1 [17:49:03]Write i2c OK [17:49:03]MH_I2C_Read... [17:49:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [17:49:03]Read from MH i2c: E2 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 E3 00 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 E3 00 35 1C 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:49:03]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 [17:49:03]wFMCommunicate OK [17:49:03]SAM_PROTO_GetFMData done [17:49:03]requested_item fm.sale_refund.total is exist - process it [17:49:03]requested_item fm.buy.total is exist - process it [17:49:03]requested_item shift.sale.total is exist - process it [17:49:03]SAM_PROTO_GetShiftData [17:49:03]wFMCommunicate request_size=4 [17:49:03]MH_SAM_APDU [17:49:03]CAPDU: 80 13 02 00 [17:49:03]Write to MH i2c: E2 08 00 36 1C 80 13 02 00 00 00 00 00 D0 [17:49:03]Write i2c OK [17:49:03]MH_I2C_Read... [17:49:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:49:03]Read from MH i2c: E2 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 FD 00 [17:49:03]MH_I2C_Read... [17:49:03]Read from MH i2c: E2 FD 00 36 1C 00 BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9D 00 6F 04 04 00 80 00 00 00 B1 04 04 00 55 3F 11 01 70 04 03 00 F4 8F 2B 72 04 03 00 61 AF E5 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 D9 04 1D 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 0A 6B 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7A [17:49:03]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 81 00 00 00 69 04 9D 00 6F 04 04 00 80 00 00 00 B1 04 04 00 55 3F 11 01 70 04 03 00 F4 8F 2B 72 04 03 00 61 AF E5 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 D9 04 1D 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 0A 6B 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:49:03]wFMCommunicate OK [17:49:03]wFMCommunicate request_size=4 [17:49:03]MH_SAM_APDU [17:49:03]CAPDU: 80 17 00 00 [17:49:03]Write to MH i2c: E2 08 00 37 1C 80 17 00 00 00 00 00 00 D3 [17:49:03]Write i2c OK [17:49:03]MH_I2C_Read... [17:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:04]Read from MH i2c: E2 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 37 1C 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [17:49:04]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:49:04]wFMCommunicate OK [17:49:04]wFMCommunicate request_size=4 [17:49:04]MH_SAM_APDU [17:49:04]CAPDU: 80 17 00 00 [17:49:04]Write to MH i2c: E2 08 00 38 1C 80 17 00 00 00 00 00 00 D4 [17:49:04]Write i2c OK [17:49:04]MH_I2C_Read... [17:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:04]Read from MH i2c: E2 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 38 1C 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [17:49:04]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:49:04]wFMCommunicate OK [17:49:04]wFMCommunicate request_size=4 [17:49:04]MH_SAM_APDU [17:49:04]CAPDU: 80 17 00 00 [17:49:04]Write to MH i2c: E2 08 00 39 1C 80 17 00 00 00 00 00 00 D5 [17:49:04]Write i2c OK [17:49:04]MH_I2C_Read... [17:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:49:04]Read from MH i2c: E2 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 FD 00 39 1C 00 00 EF 03 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 90 00 4D [17:49:04]RAPDU: 00 EF 03 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 90 00 [17:49:04]wFMCommunicate OK [17:49:04]wFMCommunicate request_size=4 [17:49:04]MH_SAM_APDU [17:49:04]CAPDU: 80 17 00 00 [17:49:04]Write to MH i2c: E2 08 00 3A 1C 80 17 00 00 00 00 00 00 D6 [17:49:04]Write i2c OK [17:49:04]MH_I2C_Read... [17:49:04]OFD Sender: No OFD packet to send [17:49:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [17:49:04]Read from MH i2c: E2 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 D7 00 [17:49:04]MH_I2C_Read... [17:49:04]Read from MH i2c: E2 D7 00 3A 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [17:49:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:49:05]wFMCommunicate OK [17:49:05]SAM_PROTO_GetShiftData done [17:49:05]requested_item shift.sale.total_cash is exist - process it [17:49:05]requested_item shift.sale_refund.total is exist - process it [17:49:05]requested_item shift.sale_refund.total_cash is exist - process it [17:49:05]requested_item shift.buy.total is exist - process it [17:49:05]requested_item shift.buy.total_cash is exist - process it [17:49:05]produce_requested_data done [17:49:05]produce_requested_data return {"fm.sale.total":133232701.31,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":179075.41,"shift.sale.total_cash":28549.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:49:05]process_action_free get_value [17:49:05]json_value_free [17:49:05]json_value_free done [17:49:05]process_json_proto returns [17:49:05]Send response to host [17:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133232701.31,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":179075.41,"shift.sale.total_cash":28549.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:49:05]free response buf [17:49:05]execute_script done [17:49:05]execute_script returns [17:49:05]free content buf [17:49:05]Sock 9.Close socket [17:49:05]Sock 9.Thread stoped [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:03]accept exits with 7 [17:50:03]New connection [17:50:03]New thread 3067174244 created [17:50:03]Thread 3067030884 joined [17:50:03]Waiting for new connection... [17:50:03] Sock 7.Parse request [17:50:03]Sock 7.Check first char [17:50:03]Sock 7.First char is OK [17:50:03]request: POST /json_proto HTTP/1.0 [17:50:03]Method: POST [17:50:03]URL: /json_proto [17:50:03]Method is POST - this is cgi request [17:50:03]url: /json_proto [17:50:03]query_string will be loaded in cgi processing [17:50:03]execute_cgi json_proto POST (null) [17:50:03]execute_cgi path=json_proto method=POST [17:50:03]POST find Content-Length [17:50:03]Host: 172.17.41.195:8080 [17:50:03]Content-Length: 679 [17:50:03]Content-Type: application/json [17:50:03] [17:50:03]POST finish read [17:50:03]Found Content-Length = 679 [17:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507296", "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" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:03]execute_script... [17:50: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)507296", "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" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:03]POST & json_proto [17:50:03]process_json_proto [17:50:03]json parsed OK: [17:50:03]protocol is kg_v1.0 [17:50:03]action value=close_receipt [17:50:03]process_action close_receipt [17:50:03]cmd_close_receipt [17:50:03]MH_GetDate [17:50:03]Write to MH i2c: F0 00 00 3B 1C 46 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: F0 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: F0 09 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: F0 09 00 3B 1C 00 CD F5 44 66 FC 21 6F 64 AB [17:50:03]GetLastDocTimeStamp 1715795103 [17:50:03]current date 1715795405 [17:50:03]FM_GetShiftState [17:50:03]SAM_PROTO_GetShiftState [17:50:03]wFMCommunicate request_size=4 [17:50:03]MH_SAM_APDU [17:50:03]CAPDU: 80 13 01 00 [17:50:03]Write to MH i2c: E2 08 00 3C 1C 80 13 01 00 00 00 00 00 D5 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:03]Read from MH i2c: E2 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: E2 0E 00 3C 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 80 [17:50:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:50:03]wFMCommunicate OK [17:50:03]SAM_PROTO_GetShiftState done [17:50:03]FM_GetShiftState done [17:50:03]opened in 1715732471 [17:50:03]opened+sec_in_day 1715818871 [17:50:03]quantity*price = 120042 [17:50:03]sum+1 = 120044 [17:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 130 15.05.2024 17:50 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67312 ФПД: 109558914308517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175005&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67312&fm=109558914308517&tin=02508201610067®Number=0000000000091845&sum=120000 [17:50:04]StoreToDocumentArchive [17:50:04]shift 356 fd 67312 [17:50:04]save to /storage/0356/doc_00067312 [17:50:04]save last doc name /storage/0356/doc_00067312 to /storage/kkm_last_doc_name [17:50:04]save OK [17:50:04]Clear old archive folders... [17:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:04]tlvbuf is 00B718D0 [17:50:04]SAM_PROTO_ClearQueue [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 09 00 00 [17:50:04]Write to MH i2c: E2 08 00 49 1C 80 09 00 00 00 00 00 00 D7 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 49 1C 00 90 00 D9 [17:50:04]RAPDU: 90 00 [17:50:04]wFMCommunicate OK [17:50:04]SAM_PROTO_ClearQueue done [17:50:04]KKMCreateOFDPacket [17:50:04]OFDProtocolAddRootSTLVToBuf [17:50:04]FM_MakeSignedData [17:50:04]FM_MakeSignedData [17:50:04]SAM_PROTO_SignData [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 0D 01 02 [17:50:04]Write to MH i2c: E2 08 00 4A 1C 80 0D 01 02 00 00 00 00 DF [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 4A 1C 00 90 00 DA [17:50:04]RAPDU: 90 00 [17:50:04]wFMCommunicate OK [17:50:04]wFMCommunicate request_size=255 [17:50:04]MH_SAM_APDU [17:50: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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 CD F5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 A4 AC 2B [17:50:04]Write to MH i2c: E2 02 01 4B 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 CD F5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 A4 AC 2B 00 00 C9 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [17:50:04]RAPDU: 90 00 [17:50:04]wFMCommunicate OK [17:50:04]wFMCommunicate request_size=7 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 0D 02 02 02 59 A5 [17:50:04]Write to MH i2c: E2 0A 00 4C 1C 80 0D 02 02 02 00 59 A5 00 00 E4 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]OFD Sender: No OFD packet to send [17:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [17:50:04]RAPDU: 90 00 [17:50:04]wFMCommunicate OK [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 0D 03 02 [17:50:04]Write to MH i2c: E2 08 00 4D 1C 80 0D 03 02 00 00 00 00 E4 [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:04]Read from MH i2c: E2 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: E2 0B 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 0B 00 4D 1C 00 3E 37 32 92 AA 81 57 9F 90 00 3F [17:50:05]RAPDU: 3E 37 32 92 AA 81 57 9F 90 00 [17:50:05]wFMCommunicate OK [17:50:05]SAM_PROTO_SignData done [17:50:05]FM_MakeSignedData done [17:50:05]CreateOFDProtocolMessage [17:50:05]wFMCommunicate request_size=4 [17:50:05]MH_SAM_APDU [17:50:05]CAPDU: 80 11 00 00 [17:50:05]Write to MH i2c: E2 08 00 4E 1C 80 11 00 00 00 00 00 00 E4 [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:05]Read from MH i2c: E2 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 17 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 17 00 4E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [17:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:50:05]wFMCommunicate OK [17:50:05]CreateOFDProtocolMessage done [17:50:05]OFDSenderStorePacket 67312 [17:50:05]StoreOFDPacket docnum=67312 [17:50: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 99 38 04 01 15 8B 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 CD F5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 A4 AC 2B 59 A5 3E 37 32 92 AA 81 57 9F [17:50:05]CheckFolder [17:50:05]dirname=/storage/ofd_packets [17:50:05]CheckFolder done [17:50:05]ProducePacketName [17:50:05]name=ofd_packets/00067312 [17:50:05]NVStorageSaveData ofd_packets/00067312 [17:50:05]File name is /storage/ofd_packets/00067312 [17:50:05]Write 298 bytes [17:50:05]NVStorageSaveData done [17:50:05]OFDSenderStorePacket done [17:50:05]KKMCreateOFDPacket done [17:50:05]NVStorageSaveData kkm_last_timestamp [17:50:05]File name is /storage/kkm_last_timestamp [17:50:05]Write 4 bytes [17:50:05]NVStorageSaveData done [17:50:05]ExternCall_PrintAddStr [17:50:05]wPrintStart [17:50:05]Write to MH i2c: 01 00 00 4F 1C 6B [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 07 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 07 00 4F 1C 00 00 00 00 00 FF 0F 80 [17:50:05]RasterBufferAndPrint [17:50:05]line Счет N : (1)507296 [17:50:05]line ИНН: 02508201610067 [17:50:05]line Контрольно-Кассовый Чек [17:50:05]line ПРОДАЖА [17:50:05]line ТРК (МРК, ГНК) : 31 [17:50:05]line Товар: 2710194210 [17:50:05]line ДТ-К-5 [17:50:05]line 16.070 * 74.70 [17:50:05]line = 1200.43 [17:50:05]line НДС 12% НСП 1% [17:50:05]line > о реализуемом товаре [17:50:05]line ОКРУГЛЕНИЕ: -0.43 [17:50:05]line ИТОГО: 1200.00 [17:50:05]line Внесено: 1200.00 [17:50:05]line СДАЧА: 0.00 [17:50:05]line НСП 1% : 10.62 [17:50:05]line НДС 12% : 127.48 [17:50:05]line Наличными: 1200.00 [17:50:05]line Безнал.: 0.00 [17:50:05]line Место: АЗС № 91 "Партнер Нефть" [17:50:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:50:05]line СНО: Общий режим [17:50:05]line Чек 130 15.05.2024 17:50 [17:50:05]line Смена: 356 ФФД: 1.0 [17:50:05]line ЗНМ: 0300000119 [17:50:05]line РНМ: 0000000000091845 [17:50:05]line Версия ККМ: 001 [17:50:05]line ФМ: 0000000000871829 [17:50:05]line ФД: 67312 [17:50:05]line ФПД: 109558914308517 [17:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175005&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67312&fm=109558914308517&tin=02508201610067®Number=0000000000091845&sum=120000 [17:50:05]OFD Sender: Processing packet 67312 [packets to send 35, broken 34] [17:50:05]ProducePacketName [17:50:05]name=ofd_packets/00067312 [17:50:05]OFD Sender: To server: pG, [17:50:05]CommunicateWithHost lk.salyk.kg:30040 [17:50:05]ConnectInit lk.salyk.kg [17:50:05]written 0, free lines is 4095 [17:50:05]Connected sock=10 [17:50: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 99 38 04 01 15 8B 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 CD F5 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 63 A4 AC 2B 59 A5 3E 37 32 92 AA 81 57 9F [17:50: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 3E 66 47 00 08 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 F0 06 01 00 F4 03 04 00 AA 9D 44 66 B6 04 01 00 00 30 22 BF 5E 1C 54 F4 DB [17:50:05]CommunicateWithHost err = 0 [17:50:05]CheckOFDResponse [17:50:05]1017 (14) - 77093643461234 [17:50:05]1041 (16) - 0000000000871829 [17:50:05]1040 (4) - 67312 [17:50:05]1012 (4) - 15.05.2024 11:34 [17:50:05]1206 (1) - 0 [17:50:05]OFD Sender: Remove packet 67312 [17:50:05]ProducePacketName [17:50:05]name=ofd_packets/00067312 [17:50:05]NVStorageDeleteData [17:50:05]Write to MH i2c: 01 00 00 79 1C 95 [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 07 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: 01 07 00 79 1C 00 00 00 00 00 D8 0C 80 [17:50:05]RasterBufferAndPrint [17:50:05]line [17:50:05]line [17:50:05]line [17:50:05]line [17:50:05]line [17:50:05]written 0, free lines is 3293 [17:50:05]MH_Cut [17:50:05]Write to MH i2c: D1 01 00 80 1C 01 6E [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: D1 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: D1 01 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: D1 01 00 80 1C 00 6D [17:50:05]Write to MH i2c: 01 00 00 81 1C 9D [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:06]OFD Sender: No OFD packet to send [17:50:06]*** Cut start [17:50:06]*** Purtial cut [17:50:06]*** Stage 1: CUTSNS_PIN = 1 [17:50:06]Read from MH i2c: 01 [17:50:06]MH_I2C_Read... [17:50:06]*** Stop cut motor [17:50:06]*** Cut end [17:50:06]Read from MH i2c: 01 07 00 [17:50:06]MH_I2C_Read... [17:50:06]Read from MH i2c: 01 07 00 81 1C 00 00 00 00 00 FF 0F B2 [17:50:06]process_action close_receipt done [17:50:06]requested_data is exist [17:50:06]produce_requested_data [17:50:06]requested_item fm.sn is exist - process it [17:50:06]wFMCommunicate request_size=4 [17:50:06]MH_SAM_APDU [17:50:06]CAPDU: 80 11 00 00 [17:50:06]Write to MH i2c: E2 08 00 82 1C 80 11 00 00 00 00 00 00 18 [17:50:06]Write i2c OK [17:50:06]MH_I2C_Read... [17:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:07]Read from MH i2c: E2 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 17 00 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 17 00 82 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [17:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:50:07]wFMCommunicate OK [17:50:07]requested_item fd.num is exist - process it [17:50:07]SAM_PROTO_GetFieldsCounters [17:50:07]wFMCommunicate request_size=4 [17:50:07]MH_SAM_APDU [17:50:07]CAPDU: 80 13 00 00 [17:50:07]Write to MH i2c: E2 08 00 83 1C 80 13 00 00 00 00 00 00 1B [17:50:07]Write i2c OK [17:50:07]MH_I2C_Read... [17:50:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:07]Read from MH i2c: E2 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 62 00 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 62 00 83 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 F0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:50: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 F0 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:07]wFMCommunicate OK [17:50:07]SAM_PROTO_GetFieldsCounters done [17:50:07]requested_item shift.num is exist - process it [17:50:07]requested_item shift.opened is exist - process it [17:50:07]req_shift_opened [17:50:07]FM_GetShiftState [17:50:07]SAM_PROTO_GetShiftState [17:50:07]wFMCommunicate request_size=4 [17:50:07]MH_SAM_APDU [17:50:07]CAPDU: 80 13 01 00 [17:50:07]Write to MH i2c: E2 08 00 84 1C 80 13 01 00 00 00 00 00 1D [17:50:07]Write i2c OK [17:50:07]MH_I2C_Read... [17:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:07]Read from MH i2c: E2 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 0E 00 [17:50:07]MH_I2C_Read... [17:50:07]Read from MH i2c: E2 0E 00 84 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C8 [17:50:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:50:07]wFMCommunicate OK [17:50:07]SAM_PROTO_GetShiftState done [17:50:07]FM_GetShiftState done [17:50:07]req_shift_opened done [17:50:07]requested_item shift.open_date is exist - process it [17:50:07]req_shift_open_date [17:50:07]req_shift_open_date done [17:50:07]produce_requested_data done [17:50:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67312,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:50:07]process_action_free close_receipt [17:50:07]json_value_free [17:50:07]json_value_free done [17:50:07]process_json_proto returns [17:50:07]Send response to host [17:50:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67312,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:50:07]free response buf [17:50:07]execute_script done [17:50:07]execute_script returns [17:50:07]free content buf [17:50:07]Sock 7.Close socket [17:50:07]Sock 7.Thread stoped [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:52]accept exits with 9 [17:51:52]New connection [17:51:52]New thread 3067030884 created [17:51:52]Thread 3067174244 joined [17:51:52]Waiting for new connection... [17:51:52] Sock 9.Parse request [17:51:52]Sock 9.Check first char [17:51:52]Sock 9.First char is OK [17:51:52]request: POST /json_proto HTTP/1.0 [17:51:52]Method: POST [17:51:52]URL: /json_proto [17:51:52]Method is POST - this is cgi request [17:51:52]url: /json_proto [17:51:52]query_string will be loaded in cgi processing [17:51:52]execute_cgi json_proto POST (null) [17:51:52]execute_cgi path=json_proto method=POST [17:51:52]POST find Content-Length [17:51:52]Host: 172.17.41.195:8080 [17:51:52]Content-Length: 679 [17:51:52]Content-Type: application/json [17:51:52] [17:51:52]POST finish read [17:51:52]Found Content-Length = 679 [17:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507297", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:52]execute_script... [17:51: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)507297", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:52]POST & json_proto [17:51:52]process_json_proto [17:51:52]json parsed OK: [17:51:52]protocol is kg_v1.0 [17:51:52]action value=close_receipt [17:51:52]process_action close_receipt [17:51:52]cmd_close_receipt [17:51:52]MH_GetDate [17:51:52]Write to MH i2c: F0 00 00 85 1C 90 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: F0 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: F0 09 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: F0 09 00 85 1C 00 3A F6 44 66 FC 21 6F 64 63 [17:51:52]GetLastDocTimeStamp 1715795405 [17:51:52]current date 1715795514 [17:51:52]FM_GetShiftState [17:51:52]SAM_PROTO_GetShiftState [17:51:52]wFMCommunicate request_size=4 [17:51:52]MH_SAM_APDU [17:51:52]CAPDU: 80 13 01 00 [17:51:52]Write to MH i2c: E2 08 00 86 1C 80 13 01 00 00 00 00 00 1F [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:52]Read from MH i2c: E2 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 0E 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 0E 00 86 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CA [17:51:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:51:52]wFMCommunicate OK [17:51:52]SAM_PROTO_GetShiftState done [17:51:52]FM_GetShiftState done [17:51:52]opened in 1715732471 [17:51:52]opened+sec_in_day 1715818871 [17:51:52]quantity*price = 150072 [17:51:52]sum+1 = 150073 [17:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 131 15.05.2024 17:51 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67313 ФПД: 149562455329236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175154&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67313&fm=149562455329236&tin=02508201610067®Number=0000000000091845&sum=150000 [17:51:53]StoreToDocumentArchive [17:51:53]shift 356 fd 67313 [17:51:53]save to /storage/0356/doc_00067313 [17:51:53]save last doc name /storage/0356/doc_00067313 to /storage/kkm_last_doc_name [17:51:53]save OK [17:51:53]Clear old archive folders... [17:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:51:53]tlvbuf is 00B71AA0 [17:51:53]SAM_PROTO_ClearQueue [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 09 00 00 [17:51:53]Write to MH i2c: E2 08 00 93 1C 80 09 00 00 00 00 00 00 21 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 03 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 03 00 93 1C 00 90 00 23 [17:51:53]RAPDU: 90 00 [17:51:53]wFMCommunicate OK [17:51:53]SAM_PROTO_ClearQueue done [17:51:53]KKMCreateOFDPacket [17:51:53]OFDProtocolAddRootSTLVToBuf [17:51:53]FM_MakeSignedData [17:51:53]FM_MakeSignedData [17:51:53]SAM_PROTO_SignData [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 0D 01 02 [17:51:53]Write to MH i2c: E2 08 00 94 1C 80 0D 01 02 00 00 00 00 29 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 03 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 03 00 94 1C 00 90 00 24 [17:51:53]RAPDU: 90 00 [17:51:53]wFMCommunicate OK [17:51:53]wFMCommunicate request_size=255 [17:51:53]MH_SAM_APDU [17:51:53]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 88 06 B9 05 [17:51:53]Write to MH i2c: E2 02 01 95 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 88 06 B9 05 00 00 52 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 03 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [17:51:54]RAPDU: 90 00 [17:51:54]wFMCommunicate OK [17:51:54]wFMCommunicate request_size=7 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 0D 02 02 02 89 D4 [17:51:54]Write to MH i2c: E2 0A 00 96 1C 80 0D 02 02 02 00 89 D4 00 00 8D [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 03 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [17:51:54]RAPDU: 90 00 [17:51:54]wFMCommunicate OK [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 0D 03 02 [17:51:54]Write to MH i2c: E2 08 00 97 1C 80 0D 03 02 00 00 00 00 2E [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0B 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0B 00 97 1C 00 67 9D 06 A2 57 4E FC 3B 90 00 B7 [17:51:54]RAPDU: 67 9D 06 A2 57 4E FC 3B 90 00 [17:51:54]wFMCommunicate OK [17:51:54]SAM_PROTO_SignData done [17:51:54]FM_MakeSignedData done [17:51:54]CreateOFDProtocolMessage [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 11 00 00 [17:51:54]Write to MH i2c: E2 08 00 98 1C 80 11 00 00 00 00 00 00 2E [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 98 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 84 [17:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:51:54]wFMCommunicate OK [17:51:54]CreateOFDProtocolMessage done [17:51:54]OFDSenderStorePacket 67313 [17:51:54]StoreOFDPacket docnum=67313 [17:51: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 0C 01 00 00 6F 9D 04 01 4C 7D 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 88 06 B9 05 89 D4 67 9D 06 A2 57 4E FC 3B [17:51:54]CheckFolder [17:51:54]dirname=/storage/ofd_packets [17:51:54]CheckFolder done [17:51:54]ProducePacketName [17:51:54]name=ofd_packets/00067313 [17:51:54]NVStorageSaveData ofd_packets/00067313 [17:51:54]File name is /storage/ofd_packets/00067313 [17:51:54]Write 298 bytes [17:51:54]NVStorageSaveData done [17:51:54]OFDSenderStorePacket done [17:51:54]KKMCreateOFDPacket done [17:51:54]NVStorageSaveData kkm_last_timestamp [17:51:54]File name is /storage/kkm_last_timestamp [17:51:54]Write 4 bytes [17:51:54]NVStorageSaveData done [17:51:54]ExternCall_PrintAddStr [17:51:54]wPrintStart [17:51:54]Write to MH i2c: 01 00 00 99 1C B5 [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: 01 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: 01 07 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: 01 07 00 99 1C 00 00 00 00 00 FF 0F CA [17:51:54]RasterBufferAndPrint [17:51:54]line Счет N : (1)507297 [17:51:54]line ИНН: 02508201610067 [17:51:54]line Контрольно-Кассовый Чек [17:51:54]line ПРОДАЖА [17:51:54]line ТРК (МРК, ГНК) : 41 [17:51:54]line Товар: 2710194210 [17:51:54]line ДТ-К-5 [17:51:54]line 20.090 * 74.70 [17:51:54]line = 1500.72 [17:51:54]line НДС 12% НСП 1% [17:51:54]line > о реализуемом товаре [17:51:54]line ОКРУГЛЕНИЕ: -0.72 [17:51:54]line ИТОГО: 1500.00 [17:51:54]line Внесено: 1500.00 [17:51:54]line СДАЧА: 0.00 [17:51:54]line НСП 1% : 13.28 [17:51:54]line НДС 12% : 159.37 [17:51:54]line Наличными: 1500.00 [17:51:54]line Безнал.: 0.00 [17:51:54]line Место: АЗС № 91 "Партнер Нефть" [17:51:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:51:54]line СНО: Общий режим [17:51:54]line Чек 131 15.05.2024 17:51 [17:51:54]line Смена: 356 ФФД: 1.0 [17:51:54]line ЗНМ: 0300000119 [17:51:54]line РНМ: 0000000000091845 [17:51:54]line Версия ККМ: 001 [17:51:54]line ФМ: 0000000000871829 [17:51:54]line ФД: 67313 [17:51:54]line ФПД: 149562455329236 [17:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175154&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67313&fm=149562455329236&tin=02508201610067®Number=0000000000091845&sum=150000 [17:51:54]OFD Sender: Processing packet 67313 [packets to send 35, broken 34] [17:51:54]ProducePacketName [17:51:54]name=ofd_packets/00067313 [17:51:54]OFD Sender: To server: pG, [17:51:54]CommunicateWithHost lk.salyk.kg:30040 [17:51:54]ConnectInit lk.salyk.kg [17:51:54]written 0, free lines is 4095 [17:51:54]Connected sock=10 [17:51: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 0C 01 00 00 6F 9D 04 01 4C 7D 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 3A F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 88 06 B9 05 89 D4 67 9D 06 A2 57 4E FC 3B [17:51: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 8D FB 47 00 F2 E9 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 06 01 00 F4 03 04 00 17 9E 44 66 B6 04 01 00 00 57 F6 D9 00 8B E8 84 39 [17:51:54]CommunicateWithHost err = 0 [17:51:54]CheckOFDResponse [17:51:54]1017 (14) - 77093643461234 [17:51:54]1041 (16) - 0000000000871829 [17:51:54]1040 (4) - 67313 [17:51:54]1012 (4) - 15.05.2024 11:35 [17:51:54]1206 (1) - 0 [17:51:54]OFD Sender: Remove packet 67313 [17:51:54]ProducePacketName [17:51:54]name=ofd_packets/00067313 [17:51:54]NVStorageDeleteData [17:51:55]Write to MH i2c: 01 00 00 C3 1C DF [17:51:55]Write i2c OK [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: 01 [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: 01 07 00 [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: 01 07 00 C3 1C 00 00 00 00 00 D3 0C C5 [17:51:55]RasterBufferAndPrint [17:51:55]line [17:51:55]line [17:51:55]line [17:51:55]line [17:51:55]line [17:51:55]written 0, free lines is 3289 [17:51:55]MH_Cut [17:51:55]Write to MH i2c: D1 01 00 CA 1C 01 B8 [17:51:55]Write i2c OK [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: D1 [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: D1 01 00 [17:51:55]MH_I2C_Read... [17:51:55]Read from MH i2c: D1 01 00 CA 1C 00 B7 [17:51:55]Write to MH i2c: 01 00 00 CB 1C E7 [17:51:55]Write i2c OK [17:51:55]MH_I2C_Read... [17:51:55]OFD Sender: No OFD packet to send [17:51:55]*** Cut start [17:51:55]*** Purtial cut [17:51:55]*** CUTSNS_PIN = 0 [17:51:56]*** Stage 1: CUTSNS_PIN = 1 [17:51:57]Read from MH i2c: 01 [17:51:57]MH_I2C_Read... [17:51:57]*** Stop cut motor [17:51:57]*** Cut end [17:51:57]Read from MH i2c: 01 07 00 [17:51:57]MH_I2C_Read... [17:51:57]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 FF 0F FC [17:51:57]process_action close_receipt done [17:51:57]requested_data is exist [17:51:57]produce_requested_data [17:51:57]requested_item fm.sn is exist - process it [17:51:57]wFMCommunicate request_size=4 [17:51:57]MH_SAM_APDU [17:51:57]CAPDU: 80 11 00 00 [17:51:57]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [17:51:57]Write i2c OK [17:51:57]MH_I2C_Read... [17:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:57]Read from MH i2c: E2 [17:51:57]MH_I2C_Read... [17:51:57]Read from MH i2c: E2 17 00 [17:51:57]MH_I2C_Read... [17:51:57]Read from MH i2c: E2 17 00 CC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [17:51: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:51:57]wFMCommunicate OK [17:51:57]requested_item fd.num is exist - process it [17:51:57]SAM_PROTO_GetFieldsCounters [17:51:57]wFMCommunicate request_size=4 [17:51:57]MH_SAM_APDU [17:51:57]CAPDU: 80 13 00 00 [17:51:57]Write to MH i2c: E2 08 00 CD 1C 80 13 00 00 00 00 00 00 65 [17:51:57]Write i2c OK [17:51:57]MH_I2C_Read... [17:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:58]Read from MH i2c: E2 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 62 00 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 62 00 CD 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 F1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:51: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 F1 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:58]wFMCommunicate OK [17:51:58]SAM_PROTO_GetFieldsCounters done [17:51:58]requested_item shift.num is exist - process it [17:51:58]requested_item shift.opened is exist - process it [17:51:58]req_shift_opened [17:51:58]FM_GetShiftState [17:51:58]SAM_PROTO_GetShiftState [17:51:58]wFMCommunicate request_size=4 [17:51:58]MH_SAM_APDU [17:51:58]CAPDU: 80 13 01 00 [17:51:58]Write to MH i2c: E2 08 00 CE 1C 80 13 01 00 00 00 00 00 67 [17:51:58]Write i2c OK [17:51:58]MH_I2C_Read... [17:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:58]Read from MH i2c: E2 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 0E 00 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 0E 00 CE 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [17:51:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:51:58]wFMCommunicate OK [17:51:58]SAM_PROTO_GetShiftState done [17:51:58]FM_GetShiftState done [17:51:58]req_shift_opened done [17:51:58]requested_item shift.open_date is exist - process it [17:51:58]req_shift_open_date [17:51:58]req_shift_open_date done [17:51:58]produce_requested_data done [17:51:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67313,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:51:58]process_action_free close_receipt [17:51:58]json_value_free [17:51:58]json_value_free done [17:51:58]process_json_proto returns [17:51:58]Send response to host [17:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67313,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:51:58]free response buf [17:51:58]execute_script done [17:51:58]execute_script returns [17:51:58]free content buf [17:51:58]Sock 9.Close socket [17:51:58]Sock 9.Thread stoped [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:53:59]accept exits with 7 [17:53:59]New connection [17:53:59]New thread 3067174244 created [17:53:59]Thread 3067030884 joined [17:53:59]Waiting for new connection... [17:53:59] Sock 7.Parse request [17:53:59]Sock 7.Check first char [17:53:59]Sock 7.First char is OK [17:53:59]request: POST /json_proto HTTP/1.0 [17:53:59]Method: POST [17:53:59]URL: /json_proto [17:53:59]Method is POST - this is cgi request [17:53:59]url: /json_proto [17:53:59]query_string will be loaded in cgi processing [17:53:59]execute_cgi json_proto POST (null) [17:53:59]execute_cgi path=json_proto method=POST [17:53:59]POST find Content-Length [17:53:59]Host: 172.17.41.195:8080 [17:53:59]Content-Length: 677 [17:53:59]Content-Type: application/json [17:53:59] [17:53:59]POST finish read [17:53:59]Found Content-Length = 677 [17:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507298", "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" ] } } [17:53:59]execute_script... [17:53:59]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)507298", "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" ] } } [17:53:59]POST & json_proto [17:53:59]process_json_proto [17:53:59]json parsed OK: [17:53:59]protocol is kg_v1.0 [17:53:59]action value=close_receipt [17:53:59]process_action close_receipt [17:53:59]cmd_close_receipt [17:53:59]MH_GetDate [17:53:59]Write to MH i2c: F0 00 00 CF 1C DA [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 09 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: F0 09 00 CF 1C 00 B9 F6 44 66 FC 21 6F 64 2C [17:53:59]GetLastDocTimeStamp 1715795514 [17:53:59]current date 1715795641 [17:53:59]FM_GetShiftState [17:53:59]SAM_PROTO_GetShiftState [17:53:59]wFMCommunicate request_size=4 [17:53:59]MH_SAM_APDU [17:53:59]CAPDU: 80 13 01 00 [17:53:59]Write to MH i2c: E2 08 00 D0 1C 80 13 01 00 00 00 00 00 69 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:59]Read from MH i2c: E2 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 0E 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 0E 00 D0 1C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 14 [17:53:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:53:59]wFMCommunicate OK [17:53:59]SAM_PROTO_GetShiftState done [17:53:59]FM_GetShiftState done [17:53:59]opened in 1715732471 [17:53:59]opened+sec_in_day 1715818871 [17:53:59]quantity*price = 50033 [17:53:59]sum+1 = 50034 [17:53:59]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 СНО: Общий режим Чек 132 15.05.2024 17:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67314 ФПД: 145256904812676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175401&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67314&fm=145256904812676&tin=02508201610067®Number=0000000000091845&sum=50000 [17:54:00]StoreToDocumentArchive [17:54:00]shift 356 fd 67314 [17:54:00]save to /storage/0356/doc_00067314 [17:54:00]save last doc name /storage/0356/doc_00067314 to /storage/kkm_last_doc_name [17:54:00]save OK [17:54:00]Clear old archive folders... [17:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:00]tlvbuf is 00B28040 [17:54:00]SAM_PROTO_ClearQueue [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 09 00 00 [17:54:00]Write to MH i2c: E2 08 00 DD 1C 80 09 00 00 00 00 00 00 6B [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 DD 1C 00 90 00 6D [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_ClearQueue done [17:54:00]KKMCreateOFDPacket [17:54:00]OFDProtocolAddRootSTLVToBuf [17:54:00]FM_MakeSignedData [17:54:00]FM_MakeSignedData [17:54:00]SAM_PROTO_SignData [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 01 02 [17:54:00]Write to MH i2c: E2 08 00 DE 1C 80 0D 01 02 00 00 00 00 73 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 DE 1C 00 90 00 6E [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=255 [17:54:00]MH_SAM_APDU [17:54:00]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 84 00 00 00 F4 03 04 00 B9 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 84 [17:54:00]Write to MH i2c: E2 02 01 DF 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 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 84 00 00 00 F4 03 04 00 B9 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 84 00 00 BD [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 DF 1C 00 90 00 6F [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=10 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 02 02 05 1C 42 36 68 84 [17:54:00]Write to MH i2c: E2 0D 00 E0 1C 80 0D 02 02 05 00 1C 42 36 68 84 00 00 00 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 03 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [17:54:01]RAPDU: 90 00 [17:54:01]wFMCommunicate OK [17:54:01]wFMCommunicate request_size=4 [17:54:01]MH_SAM_APDU [17:54:01]CAPDU: 80 0D 03 02 [17:54:01]Write to MH i2c: E2 08 00 E1 1C 80 0D 03 02 00 00 00 00 78 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 0B 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 0B 00 E1 1C 00 95 F3 88 82 09 34 58 CA 90 00 6A [17:54:01]RAPDU: 95 F3 88 82 09 34 58 CA 90 00 [17:54:01]wFMCommunicate OK [17:54:01]SAM_PROTO_SignData done [17:54:01]FM_MakeSignedData done [17:54:01]CreateOFDProtocolMessage [17:54:01]wFMCommunicate request_size=4 [17:54:01]MH_SAM_APDU [17:54:01]CAPDU: 80 11 00 00 [17:54:01]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:01]Read from MH i2c: E2 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 17 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [17: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 [17:54:01]wFMCommunicate OK [17:54:01]CreateOFDProtocolMessage done [17:54:01]OFDSenderStorePacket 67314 [17:54:01]StoreOFDPacket docnum=67314 [17:54: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 0F 01 00 00 46 C6 07 01 36 72 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 84 00 00 00 F4 03 04 00 B9 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 84 1C 42 36 68 84 95 F3 88 82 09 34 58 CA [17:54:01]CheckFolder [17:54:01]dirname=/storage/ofd_packets [17:54:01]CheckFolder done [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00067314 [17:54:01]NVStorageSaveData ofd_packets/00067314 [17:54:01]File name is /storage/ofd_packets/00067314 [17:54:01]Write 301 bytes [17:54:01]NVStorageSaveData done [17:54:01]OFDSenderStorePacket done [17:54:01]KKMCreateOFDPacket done [17:54:01]NVStorageSaveData kkm_last_timestamp [17:54:01]File name is /storage/kkm_last_timestamp [17:54:01]Write 4 bytes [17:54:01]NVStorageSaveData done [17:54:01]ExternCall_PrintAddStr [17:54:01]wPrintStart [17:54:01]Write to MH i2c: 01 00 00 E3 1C FF [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 FF 0F 14 [17:54:01]RasterBufferAndPrint [17:54:01]line Счет N : (1)507298 [17:54:01]line ИНН: 02508201610067 [17:54:01]line Контрольно-Кассовый Чек [17:54:01]line ПРОДАЖА [17:54:01]line ТРК (МРК, ГНК) : 33 [17:54:01]line Товар: 2710124130 [17:54:01]line Аи-92-К-5 [17:54:01]line 7.490 * 66.80 [17:54:01]line = 500.33 [17:54:01]line НДС 12% НСП 1% [17:54:01]line > о реализуемом товаре [17:54:01]line ОКРУГЛЕНИЕ: -0.33 [17:54:01]line ИТОГО: 500.00 [17:54:01]line Внесено: 500.00 [17:54:01]line СДАЧА: 0.00 [17:54:01]line НСП 1% : 4.43 [17:54:01]line НДС 12% : 53.13 [17:54:01]line Наличными: 500.00 [17:54:01]line Безнал.: 0.00 [17:54:01]line Место: АЗС № 91 "Партнер Нефть" [17:54:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:54:01]line СНО: Общий режим [17:54:01]line Чек 132 15.05.2024 17:54 [17:54:01]line Смена: 356 ФФД: 1.0 [17:54:01]line ЗНМ: 0300000119 [17:54:01]line РНМ: 0000000000091845 [17:54:01]line Версия ККМ: 001 [17:54:01]line ФМ: 0000000000871829 [17:54:01]line ФД: 67314 [17:54:01]line ФПД: 145256904812676 [17:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175401&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67314&fm=145256904812676&tin=02508201610067®Number=0000000000091845&sum=50000 [17:54:01]OFD Sender: Processing packet 67314 [packets to send 35, broken 34] [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00067314 [17:54:01]OFD Sender: To server: pG, [17:54:01]CommunicateWithHost lk.salyk.kg:30040 [17:54:01]ConnectInit lk.salyk.kg [17:54:01]written 0, free lines is 4095 [17:54:01]Connected sock=10 [17:54:01]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 46 C6 07 01 36 72 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 84 00 00 00 F4 03 04 00 B9 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 84 1C 42 36 68 84 95 F3 88 82 09 34 58 CA [17:54:01]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 43 47 00 F3 AE 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 06 01 00 F4 03 04 00 96 9E 44 66 B6 04 01 00 00 2E 90 C2 C1 20 26 D5 81 [17:54:01]CommunicateWithHost err = 0 [17:54:01]CheckOFDResponse [17:54:01]1017 (14) - 77093643461234 [17:54:01]1041 (16) - 0000000000871829 [17:54:01]1040 (4) - 67314 [17:54:01]1012 (4) - 15.05.2024 11:37 [17:54:01]1206 (1) - 0 [17:54:01]OFD Sender: Remove packet 67314 [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00067314 [17:54:01]NVStorageDeleteData [17:54:01]Write to MH i2c: 01 00 00 0D 1D 2A [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 0D 1D 00 00 00 00 00 D3 0C 10 [17:54:01]RasterBufferAndPrint [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]written 0, free lines is 3292 [17:54:01]MH_Cut [17:54:01]Write to MH i2c: D1 01 00 14 1D 01 03 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 01 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 01 00 14 1D 00 02 [17:54:01]Write to MH i2c: 01 00 00 15 1D 32 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:02]OFD Sender: No OFD packet to send [17:54:02]*** Cut start [17:54:02]*** Purtial cut [17:54:02]*** Stage 1: CUTSNS_PIN = 1 [17:54:03]Read from MH i2c: 01 [17:54:03]MH_I2C_Read... [17:54:03]*** Stop cut motor [17:54:03]*** Cut end [17:54:03]Read from MH i2c: 01 07 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 15 1D 00 00 00 00 00 FF 0F 47 [17:54:03]process_action close_receipt done [17:54:03]requested_data is exist [17:54:03]produce_requested_data [17:54:03]requested_item fm.sn is exist - process it [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 11 00 00 [17:54:03]Write to MH i2c: E2 08 00 16 1D 80 11 00 00 00 00 00 00 AD [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 17 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 17 00 16 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [17:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:54:03]wFMCommunicate OK [17:54:03]requested_item fd.num is exist - process it [17:54:03]SAM_PROTO_GetFieldsCounters [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 13 00 00 [17:54:03]Write to MH i2c: E2 08 00 17 1D 80 13 00 00 00 00 00 00 B0 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 62 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 62 00 17 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 F2 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:54: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 F2 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:03]wFMCommunicate OK [17:54:03]SAM_PROTO_GetFieldsCounters done [17:54:03]requested_item shift.num is exist - process it [17:54:03]requested_item shift.opened is exist - process it [17:54:03]req_shift_opened [17:54:03]FM_GetShiftState [17:54:03]SAM_PROTO_GetShiftState [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 13 01 00 [17:54:03]Write to MH i2c: E2 08 00 18 1D 80 13 01 00 00 00 00 00 B2 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 0E 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 0E 00 18 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5D [17:54:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:54:03]wFMCommunicate OK [17:54:03]SAM_PROTO_GetShiftState done [17:54:03]FM_GetShiftState done [17:54:03]req_shift_opened done [17:54:03]requested_item shift.open_date is exist - process it [17:54:03]req_shift_open_date [17:54:03]req_shift_open_date done [17:54:03]produce_requested_data done [17:54:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67314,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:54:03]process_action_free close_receipt [17:54:03]json_value_free [17:54:03]json_value_free done [17:54:03]process_json_proto returns [17:54:03]Send response to host [17:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67314,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:54:03]free response buf [17:54:03]execute_script done [17:54:03]execute_script returns [17:54:03]free content buf [17:54:03]Sock 7.Close socket [17:54:03]Sock 7.Thread stoped [17:54:07]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]accept exits with 9 [17:54:42]New connection [17:54:42]New thread 3067030884 created [17:54:42]Thread 3067174244 joined [17:54:42]Waiting for new connection... [17:54:42] Sock 9.Parse request [17:54:42]Sock 9.Check first char [17:54:42]Sock 9.First char is OK [17:54:42]request: POST /json_proto HTTP/1.0 [17:54:42]Method: POST [17:54:42]URL: /json_proto [17:54:42]Method is POST - this is cgi request [17:54:42]url: /json_proto [17:54:42]query_string will be loaded in cgi processing [17:54:42]execute_cgi json_proto POST (null) [17:54:42]execute_cgi path=json_proto method=POST [17:54:42]POST find Content-Length [17:54:42]Host: 172.17.41.195:8080 [17:54:42]Content-Length: 674 [17:54:42]Content-Type: application/json [17:54:42] [17:54:42]POST finish read [17:54:42]Found Content-Length = 674 [17:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507299", "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" : 8.040, "sum" : 600.59, "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" ] } } [17:54:42]execute_script... [17:54: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)507299", "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" : 8.040, "sum" : 600.59, "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" ] } } [17:54:42]POST & json_proto [17:54:42]process_json_proto [17:54:42]json parsed OK: [17:54:42]protocol is kg_v1.0 [17:54:42]action value=close_receipt [17:54:42]process_action close_receipt [17:54:42]cmd_close_receipt [17:54:42]MH_GetDate [17:54:42]Write to MH i2c: F0 00 00 19 1D 25 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 09 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 09 00 19 1D 00 E3 F6 44 66 FC 21 6F 64 A1 [17:54:42]GetLastDocTimeStamp 1715795641 [17:54:42]current date 1715795683 [17:54:42]FM_GetShiftState [17:54:42]SAM_PROTO_GetShiftState [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 13 01 00 [17:54:42]Write to MH i2c: E2 08 00 1A 1D 80 13 01 00 00 00 00 00 B4 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0E 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0E 00 1A 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5F [17:54:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:54:42]wFMCommunicate OK [17:54:42]SAM_PROTO_GetShiftState done [17:54:42]FM_GetShiftState done [17:54:42]opened in 1715732471 [17:54:42]opened+sec_in_day 1715818871 [17:54:42]quantity*price = 60058 [17:54:42]sum+1 = 60060 [17:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 133 15.05.2024 17:54 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67315 ФПД: 256522636318465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67315&fm=256522636318465&tin=02508201610067®Number=0000000000091845&sum=60000 [17:54:43]StoreToDocumentArchive [17:54:43]shift 356 fd 67315 [17:54:43]save to /storage/0356/doc_00067315 [17:54:43]save last doc name /storage/0356/doc_00067315 to /storage/kkm_last_doc_name [17:54:43]save OK [17:54:43]Clear old archive folders... [17:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:54:43]tlvbuf is 00BB3590 [17:54:43]SAM_PROTO_ClearQueue [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 09 00 00 [17:54:43]Write to MH i2c: E2 08 00 27 1D 80 09 00 00 00 00 00 00 B6 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 27 1D 00 90 00 B8 [17:54:43]RAPDU: 90 00 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_ClearQueue done [17:54:43]KKMCreateOFDPacket [17:54:43]OFDProtocolAddRootSTLVToBuf [17:54:43]FM_MakeSignedData [17:54:43]FM_MakeSignedData [17:54:43]SAM_PROTO_SignData [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 0D 01 02 [17:54:43]Write to MH i2c: E2 08 00 28 1D 80 0D 01 02 00 00 00 00 BE [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 28 1D 00 90 00 B9 [17:54:43]RAPDU: 90 00 [17:54:43]wFMCommunicate OK [17:54:43]wFMCommunicate request_size=255 [17:54:43]MH_SAM_APDU [17:54:43]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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 85 00 00 00 F4 03 04 00 E3 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E9 4E 54 9D [17:54:43]Write to MH i2c: E2 02 01 29 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 85 00 00 00 F4 03 04 00 E3 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E9 4E 54 9D 00 00 B1 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 29 1D 00 90 00 BA [17:54:43]RAPDU: 90 00 [17:54:43]wFMCommunicate OK [17:54:43]wFMCommunicate request_size=7 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 0D 02 02 02 57 01 [17:54:43]Write to MH i2c: E2 0A 00 2A 1D 80 0D 02 02 02 00 57 01 00 00 1D [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 03 00 2A 1D 00 90 00 BB [17:54:43]RAPDU: 90 00 [17:54:43]wFMCommunicate OK [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 0D 03 02 [17:54:43]Write to MH i2c: E2 08 00 2B 1D 80 0D 03 02 00 00 00 00 C3 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0B 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0B 00 2B 1D 00 47 C3 31 94 82 95 E5 A4 90 00 33 [17:54:43]RAPDU: 47 C3 31 94 82 95 E5 A4 90 00 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_SignData done [17:54:43]FM_MakeSignedData done [17:54:43]CreateOFDProtocolMessage [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 11 00 00 [17:54:43]Write to MH i2c: E2 08 00 2C 1D 80 11 00 00 00 00 00 00 C3 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 17 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 17 00 2C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 19 [17:54: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:54:43]wFMCommunicate OK [17:54:43]CreateOFDProtocolMessage done [17:54:43]OFDSenderStorePacket 67315 [17:54:43]StoreOFDPacket docnum=67315 [17:54:43]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 60 3B 04 01 BC 5A 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 85 00 00 00 F4 03 04 00 E3 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E9 4E 54 9D 57 01 47 C3 31 94 82 95 E5 A4 [17:54:43]CheckFolder [17:54:43]dirname=/storage/ofd_packets [17:54:43]CheckFolder done [17:54:43]ProducePacketName [17:54:43]name=ofd_packets/00067315 [17:54:43]NVStorageSaveData ofd_packets/00067315 [17:54:43]File name is /storage/ofd_packets/00067315 [17:54:43]Write 298 bytes [17:54:43]NVStorageSaveData done [17:54:43]OFDSenderStorePacket done [17:54:43]KKMCreateOFDPacket done [17:54:43]NVStorageSaveData kkm_last_timestamp [17:54:43]File name is /storage/kkm_last_timestamp [17:54:43]Write 4 bytes [17:54:43]NVStorageSaveData done [17:54:43]ExternCall_PrintAddStr [17:54:43]wPrintStart [17:54:43]Write to MH i2c: 01 00 00 2D 1D 4A [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 2D 1D 00 00 00 00 00 FF 0F 5F [17:54:43]RasterBufferAndPrint [17:54:43]line Счет N : (1)507299 [17:54:43]line ИНН: 02508201610067 [17:54:43]line Контрольно-Кассовый Чек [17:54:43]line ПРОДАЖА [17:54:43]line ТРК (МРК, ГНК) : 11 [17:54:43]line Товар: 2710194210 [17:54:43]line ДТ-К-5 [17:54:43]line 8.040 * 74.70 [17:54:43]line = 600.59 [17:54:43]line НДС 12% НСП 1% [17:54:43]line > о реализуемом товаре [17:54:43]line ОКРУГЛЕНИЕ: -0.59 [17:54:43]line ИТОГО: 600.00 [17:54:43]line Внесено: 600.00 [17:54:43]line СДАЧА: 0.00 [17:54:43]line НСП 1% : 5.31 [17:54:43]line НДС 12% : 63.78 [17:54:43]line Наличными: 600.00 [17:54:43]line Безнал.: 0.00 [17:54:43]line Место: АЗС № 91 "Партнер Нефть" [17:54:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:54:43]line СНО: Общий режим [17:54:43]line Чек 133 15.05.2024 17:54 [17:54:43]line Смена: 356 ФФД: 1.0 [17:54:43]line ЗНМ: 0300000119 [17:54:43]line РНМ: 0000000000091845 [17:54:43]line Версия ККМ: 001 [17:54:43]line ФМ: 0000000000871829 [17:54:43]line ФД: 67315 [17:54:43]line ФПД: 256522636318465 [17:54:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T175443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67315&fm=256522636318465&tin=02508201610067®Number=0000000000091845&sum=60000 [17:54:44]OFD Sender: Processing packet 67315 [packets to send 35, broken 34] [17:54:44]ProducePacketName [17:54:44]name=ofd_packets/00067315 [17:54:44]OFD Sender: To server: pG, [17:54:44]CommunicateWithHost lk.salyk.kg:30040 [17:54:44]ConnectInit lk.salyk.kg [17:54:44]written 0, free lines is 4095 [17:54:44]Connected sock=10 [17:54: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 0C 01 00 00 60 3B 04 01 BC 5A 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 85 00 00 00 F4 03 04 00 E3 F6 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E9 4E 54 9D 57 01 47 C3 31 94 82 95 E5 A4 [17:54:44]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 C5 47 00 34 90 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 06 01 00 F4 03 04 00 C0 9E 44 66 B6 04 01 00 00 EB C3 37 F2 89 E7 DF 41 [17:54:44]CommunicateWithHost err = 0 [17:54:44]CheckOFDResponse [17:54:44]1017 (14) - 77093643461234 [17:54:44]1041 (16) - 0000000000871829 [17:54:44]1040 (4) - 67315 [17:54:44]1012 (4) - 15.05.2024 11:38 [17:54:44]1206 (1) - 0 [17:54:44]OFD Sender: Remove packet 67315 [17:54:44]ProducePacketName [17:54:44]name=ofd_packets/00067315 [17:54:44]NVStorageDeleteData [17:54:44]Write to MH i2c: 01 00 00 57 1D 74 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 07 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 07 00 57 1D 00 00 00 00 00 EB 0C 72 [17:54:44]RasterBufferAndPrint [17:54:44]line [17:54:44]line [17:54:44]line [17:54:44]line [17:54:44]line [17:54:44]written 0, free lines is 3313 [17:54:44]MH_Cut [17:54:44]Write to MH i2c: D1 01 00 5E 1D 01 4D [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: D1 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: D1 01 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: D1 01 00 5E 1D 00 4C [17:54:44]Write to MH i2c: 01 00 00 5F 1D 7C [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]OFD Sender: No OFD packet to send [17:54:45]*** Cut start [17:54:45]*** Purtial cut [17:54:45]*** CUTSNS_PIN = 0 [17:54:45]*** Stage 1: CUTSNS_PIN = 1 [17:54:47]Read from MH i2c: 01 [17:54:47]MH_I2C_Read... [17:54:47]*** Stop cut motor [17:54:47]*** Cut end [17:54:47]Read from MH i2c: 01 07 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: 01 07 00 5F 1D 00 00 00 00 00 FF 0F 91 [17:54:47]process_action close_receipt done [17:54:47]requested_data is exist [17:54:47]produce_requested_data [17:54:47]requested_item fm.sn is exist - process it [17:54:47]wFMCommunicate request_size=4 [17:54:47]MH_SAM_APDU [17:54:47]CAPDU: 80 11 00 00 [17:54:47]Write to MH i2c: E2 08 00 60 1D 80 11 00 00 00 00 00 00 F7 [17:54:47]Write i2c OK [17:54:47]MH_I2C_Read... [17:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:47]Read from MH i2c: E2 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 17 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 17 00 60 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [17:54: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:54:47]wFMCommunicate OK [17:54:47]requested_item fd.num is exist - process it [17:54:47]SAM_PROTO_GetFieldsCounters [17:54:47]wFMCommunicate request_size=4 [17:54:47]MH_SAM_APDU [17:54:47]CAPDU: 80 13 00 00 [17:54:47]Write to MH i2c: E2 08 00 61 1D 80 13 00 00 00 00 00 00 FA [17:54:47]Write i2c OK [17:54:47]MH_I2C_Read... [17:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:47]Read from MH i2c: E2 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 62 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 62 00 61 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 F3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [17:54: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 F3 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:47]wFMCommunicate OK [17:54:47]SAM_PROTO_GetFieldsCounters done [17:54:47]requested_item shift.num is exist - process it [17:54:47]requested_item shift.opened is exist - process it [17:54:47]req_shift_opened [17:54:47]FM_GetShiftState [17:54:47]SAM_PROTO_GetShiftState [17:54:47]wFMCommunicate request_size=4 [17:54:47]MH_SAM_APDU [17:54:47]CAPDU: 80 13 01 00 [17:54:47]Write to MH i2c: E2 08 00 62 1D 80 13 01 00 00 00 00 00 FC [17:54:47]Write i2c OK [17:54:47]MH_I2C_Read... [17:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:47]Read from MH i2c: E2 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 0E 00 [17:54:47]MH_I2C_Read... [17:54:47]Read from MH i2c: E2 0E 00 62 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A7 [17:54:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [17:54:47]wFMCommunicate OK [17:54:47]SAM_PROTO_GetShiftState done [17:54:47]FM_GetShiftState done [17:54:47]req_shift_opened done [17:54:47]requested_item shift.open_date is exist - process it [17:54:47]req_shift_open_date [17:54:47]req_shift_open_date done [17:54:47]produce_requested_data done [17:54:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67315,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [17:54:47]process_action_free close_receipt [17:54:47]json_value_free [17:54:47]json_value_free done [17:54:47]process_json_proto returns [17:54:47]Send response to host [17:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67315,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [17:54:47]free response buf [17:54:47]execute_script done [17:54:47]execute_script returns [17:54:47]free content buf [17:54:47]Sock 9.Close socket [17:54:47]Sock 9.Thread stoped [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]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:30]accept exits with 7 [18:03:30]New connection [18:03:30]New thread 3067174244 created [18:03:30]Thread 3067030884 joined [18:03:30]Waiting for new connection... [18:03:30] Sock 7.Parse request [18:03:30]Sock 7.Check first char [18:03:30]Sock 7.First char is OK [18:03:30]request: POST /json_proto HTTP/1.0 [18:03:30]Method: POST [18:03:30]URL: /json_proto [18:03:30]Method is POST - this is cgi request [18:03:30]url: /json_proto [18:03:30]query_string will be loaded in cgi processing [18:03:30]execute_cgi json_proto POST (null) [18:03:30]execute_cgi path=json_proto method=POST [18:03:30]POST find Content-Length [18:03:30]Host: 172.17.41.195:8080 [18:03:30]Content-Length: 677 [18:03:30]Content-Type: application/json [18:03:30] [18:03:30]POST finish read [18:03:30]Found Content-Length = 677 [18:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507300", "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:03:30]execute_script... [18:03: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)507300", "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:03:30]POST & json_proto [18:03:30]process_json_proto [18:03:30]json parsed OK: [18:03:30]protocol is kg_v1.0 [18:03:30]action value=close_receipt [18:03:30]process_action close_receipt [18:03:30]cmd_close_receipt [18:03:30]MH_GetDate [18:03:30]Write to MH i2c: F0 00 00 63 1D 6F [18:03:30]Write i2c OK [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 09 00 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: F0 09 00 63 1D 00 F4 F8 44 66 FC 21 6F 64 FE [18:03:30]GetLastDocTimeStamp 1715795683 [18:03:30]current date 1715796212 [18:03:30]FM_GetShiftState [18:03:30]SAM_PROTO_GetShiftState [18:03:30]wFMCommunicate request_size=4 [18:03:30]MH_SAM_APDU [18:03:30]CAPDU: 80 13 01 00 [18:03:30]Write to MH i2c: E2 08 00 64 1D 80 13 01 00 00 00 00 00 FE [18:03:30]Write i2c OK [18:03:30]MH_I2C_Read... [18:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:30]Read from MH i2c: E2 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 [18:03:30]MH_I2C_Read... [18:03:30]Read from MH i2c: E2 0E 00 64 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A9 [18:03:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:03:30]wFMCommunicate OK [18:03:30]SAM_PROTO_GetShiftState done [18:03:30]FM_GetShiftState done [18:03:30]opened in 1715732471 [18:03:30]opened+sec_in_day 1715818871 [18:03:30]quantity*price = 50033 [18:03:30]sum+1 = 50034 [18:03:30]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 СНО: Общий режим Чек 134 15.05.2024 18:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67316 ФПД: 6488101082808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T180332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67316&fm=6488101082808&tin=02508201610067®Number=0000000000091845&sum=50000 [18:03:31]StoreToDocumentArchive [18:03:31]shift 356 fd 67316 [18:03:31]save to /storage/0356/doc_00067316 [18:03:31]save last doc name /storage/0356/doc_00067316 to /storage/kkm_last_doc_name [18:03:31]save OK [18:03:31]Clear old archive folders... [18:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:31]tlvbuf is B6F104D0 [18:03:31]SAM_PROTO_ClearQueue [18:03:31]wFMCommunicate request_size=4 [18:03:31]MH_SAM_APDU [18:03:31]CAPDU: 80 09 00 00 [18:03:31]Write to MH i2c: E2 08 00 71 1D 80 09 00 00 00 00 00 00 00 [18:03:31]Write i2c OK [18:03:31]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [18:03:32]RAPDU: 90 00 [18:03:32]wFMCommunicate OK [18:03:32]SAM_PROTO_ClearQueue done [18:03:32]KKMCreateOFDPacket [18:03:32]OFDProtocolAddRootSTLVToBuf [18:03:32]FM_MakeSignedData [18:03:32]FM_MakeSignedData [18:03:32]SAM_PROTO_SignData [18:03:32]wFMCommunicate request_size=4 [18:03:32]MH_SAM_APDU [18:03:32]CAPDU: 80 0D 01 02 [18:03:32]Write to MH i2c: E2 08 00 72 1D 80 0D 01 02 00 00 00 00 08 [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 72 1D 00 90 00 03 [18:03:32]RAPDU: 90 00 [18:03:32]wFMCommunicate OK [18:03:32]wFMCommunicate request_size=255 [18:03:32]MH_SAM_APDU [18:03:32]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 86 00 00 00 F4 03 04 00 F4 F8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 [18:03:32]Write to MH i2c: E2 02 01 73 1D 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 86 00 00 00 F4 03 04 00 F4 F8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 00 00 14 [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 73 1D 00 90 00 04 [18:03:32]RAPDU: 90 00 [18:03:32]wFMCommunicate OK [18:03:32]wFMCommunicate request_size=10 [18:03:32]MH_SAM_APDU [18:03:32]CAPDU: 80 0D 02 02 05 E6 A0 F5 D6 B8 [18:03:32]Write to MH i2c: E2 0D 00 74 1D 80 0D 02 02 05 00 E6 A0 F5 D6 B8 00 00 1E [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 03 00 74 1D 00 90 00 05 [18:03:32]RAPDU: 90 00 [18:03:32]wFMCommunicate OK [18:03:32]wFMCommunicate request_size=4 [18:03:32]MH_SAM_APDU [18:03:32]CAPDU: 80 0D 03 02 [18:03:32]Write to MH i2c: E2 08 00 75 1D 80 0D 03 02 00 00 00 00 0D [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 0B 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 0B 00 75 1D 00 FB FC 8A C6 A0 36 04 18 90 00 47 [18:03:32]RAPDU: FB FC 8A C6 A0 36 04 18 90 00 [18:03:32]wFMCommunicate OK [18:03:32]SAM_PROTO_SignData done [18:03:32]FM_MakeSignedData done [18:03:32]CreateOFDProtocolMessage [18:03:32]wFMCommunicate request_size=4 [18:03:32]MH_SAM_APDU [18:03:32]CAPDU: 80 11 00 00 [18:03:32]Write to MH i2c: E2 08 00 76 1D 80 11 00 00 00 00 00 00 0D [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:32]Read from MH i2c: E2 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 17 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: E2 17 00 76 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [18:03: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:03:32]wFMCommunicate OK [18:03:32]CreateOFDProtocolMessage done [18:03:32]OFDSenderStorePacket 67316 [18:03:32]StoreOFDPacket docnum=67316 [18:03: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 0F 01 00 00 AF AB 07 01 71 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 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 86 00 00 00 F4 03 04 00 F4 F8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 E6 A0 F5 D6 B8 FB FC 8A C6 A0 36 04 18 [18:03:32]CheckFolder [18:03:32]dirname=/storage/ofd_packets [18:03:32]CheckFolder done [18:03:32]ProducePacketName [18:03:32]name=ofd_packets/00067316 [18:03:32]NVStorageSaveData ofd_packets/00067316 [18:03:32]File name is /storage/ofd_packets/00067316 [18:03:32]Write 301 bytes [18:03:32]NVStorageSaveData done [18:03:32]OFDSenderStorePacket done [18:03:32]KKMCreateOFDPacket done [18:03:32]NVStorageSaveData kkm_last_timestamp [18:03:32]File name is /storage/kkm_last_timestamp [18:03:32]Write 4 bytes [18:03:32]NVStorageSaveData done [18:03:32]ExternCall_PrintAddStr [18:03:32]wPrintStart [18:03:32]Write to MH i2c: 01 00 00 77 1D 94 [18:03:32]Write i2c OK [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 07 00 [18:03:32]MH_I2C_Read... [18:03:32]Read from MH i2c: 01 07 00 77 1D 00 00 00 00 00 FF 0F A9 [18:03:32]RasterBufferAndPrint [18:03:32]line Счет N : (1)507300 [18:03:32]line ИНН: 02508201610067 [18:03:32]line Контрольно-Кассовый Чек [18:03:32]line ПРОДАЖА [18:03:32]line ТРК (МРК, ГНК) : 33 [18:03:32]line Товар: 2710124130 [18:03:32]line Аи-92-К-5 [18:03:32]line 7.490 * 66.80 [18:03:32]line = 500.33 [18:03:32]line НДС 12% НСП 1% [18:03:32]line > о реализуемом товаре [18:03:32]line ОКРУГЛЕНИЕ: -0.33 [18:03:32]line ИТОГО: 500.00 [18:03:32]line Внесено: 500.00 [18:03:32]line СДАЧА: 0.00 [18:03:32]line НСП 1% : 4.43 [18:03:32]line НДС 12% : 53.13 [18:03:32]line Наличными: 500.00 [18:03:32]line Безнал.: 0.00 [18:03:32]line Место: АЗС № 91 "Партнер Нефть" [18:03:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:03:32]line СНО: Общий режим [18:03:32]line Чек 134 15.05.2024 18:03 [18:03:32]line Смена: 356 ФФД: 1.0 [18:03:32]line ЗНМ: 0300000119 [18:03:32]line РНМ: 0000000000091845 [18:03:32]line Версия ККМ: 001 [18:03:32]line ФМ: 0000000000871829 [18:03:32]line ФД: 67316 [18:03:32]line ФПД: 6488101082808 [18:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T180332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67316&fm=6488101082808&tin=02508201610067®Number=0000000000091845&sum=50000 [18:03:32]OFD Sender: Processing packet 67316 [packets to send 35, broken 34] [18:03:32]ProducePacketName [18:03:32]name=ofd_packets/00067316 [18:03:32]OFD Sender: To server: pG, [18:03:32]CommunicateWithHost lk.salyk.kg:30040 [18:03:32]ConnectInit lk.salyk.kg [18:03:32]written 0, free lines is 4095 [18:03:32]Connected sock=10 [18:03: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 0F 01 00 00 AF AB 07 01 71 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 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 86 00 00 00 F4 03 04 00 F4 F8 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 05 E6 A0 F5 D6 B8 FB FC 8A C6 A0 36 04 18 [18:03: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 49 A3 47 00 A0 35 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 06 01 00 F4 03 04 00 D1 A0 44 66 B6 04 01 00 00 4D C0 AD 3E D0 9A CC D2 [18:03:33]CommunicateWithHost err = 0 [18:03:33]CheckOFDResponse [18:03:33]1017 (14) - 77093643461234 [18:03:33]1041 (16) - 0000000000871829 [18:03:33]1040 (4) - 67316 [18:03:33]1012 (4) - 15.05.2024 11:47 [18:03:33]1206 (1) - 0 [18:03:33]OFD Sender: Remove packet 67316 [18:03:33]ProducePacketName [18:03:33]name=ofd_packets/00067316 [18:03:33]NVStorageDeleteData [18:03:33]Write to MH i2c: 01 00 00 A1 1D BE [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: 01 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: 01 07 00 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: 01 07 00 A1 1D 00 00 00 00 00 CD 0C 9E [18:03:33]RasterBufferAndPrint [18:03:33]line [18:03:33]line [18:03:33]line [18:03:33]line [18:03:33]line [18:03:33]written 0, free lines is 3283 [18:03:33]MH_Cut [18:03:33]Write to MH i2c: D1 01 00 A8 1D 01 97 [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: D1 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: D1 01 00 [18:03:33]MH_I2C_Read... [18:03:33]Read from MH i2c: D1 01 00 A8 1D 00 96 [18:03:33]Write to MH i2c: 01 00 00 A9 1D C6 [18:03:33]Write i2c OK [18:03:33]MH_I2C_Read... [18:03:33]OFD Sender: No OFD packet to send [18:03:34]*** Cut start [18:03:34]*** Purtial cut [18:03:34]*** Stage 1: CUTSNS_PIN = 1 [18:03:34]Read from MH i2c: 01 [18:03:34]MH_I2C_Read... [18:03:34]*** Stop cut motor [18:03:34]*** Cut end [18:03:34]Read from MH i2c: 01 07 00 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: 01 07 00 A9 1D 00 00 00 00 00 FF 0F DB [18:03:34]process_action close_receipt done [18:03:34]requested_data is exist [18:03:34]produce_requested_data [18:03:34]requested_item fm.sn is exist - process it [18:03:34]wFMCommunicate request_size=4 [18:03:34]MH_SAM_APDU [18:03:34]CAPDU: 80 11 00 00 [18:03:34]Write to MH i2c: E2 08 00 AA 1D 80 11 00 00 00 00 00 00 41 [18:03:34]Write i2c OK [18:03:34]MH_I2C_Read... [18:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:34]Read from MH i2c: E2 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 17 00 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 17 00 AA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [18:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:03:34]wFMCommunicate OK [18:03:34]requested_item fd.num is exist - process it [18:03:34]SAM_PROTO_GetFieldsCounters [18:03:34]wFMCommunicate request_size=4 [18:03:34]MH_SAM_APDU [18:03:34]CAPDU: 80 13 00 00 [18:03:34]Write to MH i2c: E2 08 00 AB 1D 80 13 00 00 00 00 00 00 44 [18:03:34]Write i2c OK [18:03:34]MH_I2C_Read... [18:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:34]Read from MH i2c: E2 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 62 00 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 62 00 AB 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 F4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [18:03: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 F4 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:34]wFMCommunicate OK [18:03:34]SAM_PROTO_GetFieldsCounters done [18:03:34]requested_item shift.num is exist - process it [18:03:34]requested_item shift.opened is exist - process it [18:03:34]req_shift_opened [18:03:34]FM_GetShiftState [18:03:34]SAM_PROTO_GetShiftState [18:03:34]wFMCommunicate request_size=4 [18:03:34]MH_SAM_APDU [18:03:34]CAPDU: 80 13 01 00 [18:03:34]Write to MH i2c: E2 08 00 AC 1D 80 13 01 00 00 00 00 00 46 [18:03:34]Write i2c OK [18:03:34]MH_I2C_Read... [18:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:34]Read from MH i2c: E2 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 0E 00 [18:03:34]MH_I2C_Read... [18:03:34]Read from MH i2c: E2 0E 00 AC 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F1 [18:03:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:03:34]wFMCommunicate OK [18:03:34]SAM_PROTO_GetShiftState done [18:03:34]FM_GetShiftState done [18:03:34]req_shift_opened done [18:03:34]requested_item shift.open_date is exist - process it [18:03:34]req_shift_open_date [18:03:34]req_shift_open_date done [18:03:34]produce_requested_data done [18:03:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67316,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:03:34]process_action_free close_receipt [18:03:34]json_value_free [18:03:34]json_value_free done [18:03:34]process_json_proto returns [18:03:34]Send response to host [18:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67316,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:03:34]free response buf [18:03:34]execute_script done [18:03:34]execute_script returns [18:03:34]free content buf [18:03:34]Sock 7.Close socket [18:03:34]Sock 7.Thread stoped [18:03:36]int [18:03:36]Write to MH i2c: 01 00 00 AD 1D CA [18:03:36]*** FLAG_PRN_PAP1 set [18:03:36]Write i2c OK [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 07 00 [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 07 00 AD 1D 00 01 00 00 00 FF 0F E0 [18:03:36]state=0 [18:03:36]No paper [18:03:36]int [18:03:36]Write to MH i2c: 01 00 00 AE 1D CB [18:03:36]*** FLAG_PRN_PAP2 set [18:03:36]Write i2c OK [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 07 00 [18:03:36]MH_I2C_Read... [18:03:36]Read from MH i2c: 01 07 00 AE 1D 00 03 00 00 00 FF 0F E3 [18:03:36]state=0 [18:03:36]No paper [18:03:36]Cover opened [18:03:37]int [18:03:37]Write to MH i2c: 01 00 00 AF 1D CC [18:03:37]*** FLAG_PRN_PAP2 reset [18:03:37]Write i2c OK [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 07 00 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 07 00 AF 1D 00 01 00 00 00 FF 0F E2 [18:03:37]state=3 [18:03:37]No paper [18:03:37]Cover closed [18:03:37]int [18:03:37]Write to MH i2c: 01 00 00 B0 1D CD [18:03:37]*** FLAG_PRN_PAP2 set [18:03:37]Write i2c OK [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 07 00 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: 01 07 00 B0 1D 00 03 00 00 00 FF 0F E5 [18:03:37]state=0 [18:03:37]No paper [18:03:37]Cover opened [18:03:38]OFD Sender: No OFD packet to send [18:03:42]Write to MH i2c: 01 00 00 B1 1D CE [18:03:42]Write i2c OK [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 07 00 [18:03:42]MH_I2C_Read... [18:03:42]Read from MH i2c: 01 07 00 B1 1D 00 03 00 00 00 FF 0F E6 [18:03:42]state=3 [18:03:42]No paper [18:03:42]Cover opened [18:03:43]OFD Sender: No OFD packet to send [18:03:47]Write to MH i2c: 01 00 00 B2 1D CF [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: 01 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: 01 07 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: 01 07 00 B2 1D 00 03 00 00 00 FF 0F E7 [18:03:47]state=3 [18:03:47]No paper [18:03:47]Cover opened [18:03:48]OFD Sender: No OFD packet to send [18:03:52]Write to MH i2c: 01 00 00 B3 1D D0 [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: 01 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: 01 07 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: 01 07 00 B3 1D 00 03 00 00 00 FF 0F E8 [18:03:52]state=3 [18:03:52]No paper [18:03:52]Cover opened [18:03:53]OFD Sender: No OFD packet to send [18:03:57]Write to MH i2c: 01 00 00 B4 1D D1 [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 B4 1D 00 03 00 00 00 FF 0F E9 [18:03:57]state=3 [18:03:57]No paper [18:03:57]Cover opened [18:03:57]int [18:03:57]Write to MH i2c: 01 00 00 B5 1D D2 [18:03:57]*** FLAG_PRN_PAP1 reset [18:03:57]*** FLAG_PRN_PAP2 reset [18:03:57]Write i2c OK [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 [18:03:57]MH_I2C_Read... [18:03:57]Read from MH i2c: 01 07 00 B5 1D 00 00 00 00 00 FF 0F E7 [18:03:57]state=3 [18:03:57]Cover closed [18:03:58]OFD Sender: No OFD packet to send [18:04:00]int [18:04:00]Write to MH i2c: 01 00 00 B6 1D D3 [18:04:00]*** FLAG_PRN_PAP1 set [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 B6 1D 00 01 00 00 00 FF 0F E9 [18:04:00]state=0 [18:04:00]No paper [18:04:00]int [18:04:00]Write to MH i2c: 01 00 00 B7 1D D4 [18:04:00]*** FLAG_PRN_PAP2 set [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 B7 1D 00 03 00 00 00 FF 0F EC [18:04:00]state=0 [18:04:00]No paper [18:04:00]Cover opened [18:04:01]int [18:04:01]Write to MH i2c: 01 00 00 B8 1D D5 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: 01 07 00 [18:04:01]MH_I2C_Read... [18:04:01]*** FLAG_PRN_PAP1 reset [18:04:01]*** FLAG_PRN_PAP2 reset [18:04:01]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 FF 0F EA [18:04:01]state=3 [18:04:01]Cover closed [18:04:03]OFD Sender: No OFD packet to send [18:04:04]int [18:04:04]Write to MH i2c: 01 00 00 B9 1D D6 [18:04:04]*** FLAG_PRN_KEY set [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 B9 1D 00 08 00 00 00 FF 0F F3 [18:04:04]state=0 [18:04:04]Key pressed [18:04:04]Feed [18:04:04]Write to MH i2c: D8 00 00 BA 1D AE [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D8 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D8 01 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D8 01 00 BA 1D 00 AF [18:04:04]int [18:04:04]Write to MH i2c: 01 00 00 BB 1D D8 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 BB 1D 00 48 00 00 00 3C 00 63 [18:04:04]state=2 [18:04:04]Key pressed [18:04:04]int [18:04:04]Write to MH i2c: 01 00 00 BC 1D D9 [18:04:04]*** FLAG_PRN_KEY reset [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 F7 0F E6 [18:04:04]state=2 [18:04:04]Stop feed [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:44]accept exits with 9 [18:11:44]New connection [18:11:44]New thread 3067030884 created [18:11:44]Thread 3067174244 joined [18:11:44]Waiting for new connection... [18:11:44] Sock 9.Parse request [18:11:44]Sock 9.Check first char [18:11:44]Sock 9.First char is OK [18:11:44]request: POST /json_proto HTTP/1.0 [18:11:44]Method: POST [18:11:44]URL: /json_proto [18:11:44]Method is POST - this is cgi request [18:11:44]url: /json_proto [18:11:44]query_string will be loaded in cgi processing [18:11:44]execute_cgi json_proto POST (null) [18:11:44]execute_cgi path=json_proto method=POST [18:11:44]POST find Content-Length [18:11:44]Host: 172.17.41.195:8080 [18:11:44]Content-Length: 813 [18:11:44]Content-Type: application/json [18:11:44] [18:11:44]POST finish read [18:11:44]Found Content-Length = 813 [18:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507301", "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" : 8.040, "sum" : 600.59, "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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:44]execute_script... [18:11: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)507301", "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" : 8.040, "sum" : 600.59, "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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:44]POST & json_proto [18:11:44]process_json_proto [18:11:44]json parsed OK: [18:11:44]protocol is kg_v1.0 [18:11:44]action value=close_receipt [18:11:44]process_action close_receipt [18:11:44]cmd_close_receipt [18:11:44]MH_GetDate [18:11:44]Write to MH i2c: F0 00 00 BD 1D C9 [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: F0 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: F0 09 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: F0 09 00 BD 1D 00 E2 FA 44 66 FC 21 6F 64 48 [18:11:44]GetLastDocTimeStamp 1715796212 [18:11:44]current date 1715796706 [18:11:44]FM_GetShiftState [18:11:44]SAM_PROTO_GetShiftState [18:11:44]wFMCommunicate request_size=4 [18:11:44]MH_SAM_APDU [18:11:44]CAPDU: 80 13 01 00 [18:11:44]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:44]Read from MH i2c: E2 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: E2 0E 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 03 [18:11:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:11:44]wFMCommunicate OK [18:11:44]SAM_PROTO_GetShiftState done [18:11:44]FM_GetShiftState done [18:11:44]opened in 1715732471 [18:11:44]opened+sec_in_day 1715818871 [18:11:44]quantity*price = 60058 [18:11:44]sum+1 = 60060 [18:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.59 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.59 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 135 15.05.2024 18:11 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67317 ФПД: 91532623535138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T181146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67317&fm=91532623535138&tin=02508201610067®Number=0000000000091845&sum=60059 [18:11:45]StoreToDocumentArchive [18:11:45]shift 356 fd 67317 [18:11:45]save to /storage/0356/doc_00067317 [18:11:45]save last doc name /storage/0356/doc_00067317 to /storage/kkm_last_doc_name [18:11:45]save OK [18:11:45]Clear old archive folders... [18:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:11:45]tlvbuf is 00B0FB50 [18:11:45]SAM_PROTO_ClearQueue [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 09 00 00 [18:11:45]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [18:11:45]RAPDU: 90 00 [18:11:45]wFMCommunicate OK [18:11:45]SAM_PROTO_ClearQueue done [18:11:45]KKMCreateOFDPacket [18:11:45]OFDProtocolAddRootSTLVToBuf [18:11:45]FM_MakeSignedData [18:11:45]FM_MakeSignedData [18:11:45]SAM_PROTO_SignData [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 0D 01 02 [18:11:45]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [18:11:45]RAPDU: 90 00 [18:11:45]wFMCommunicate OK [18:11:45]wFMCommunicate request_size=255 [18:11:45]MH_SAM_APDU [18:11: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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E2 FA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 53 3F 99 82 [18:11:45]Write to MH i2c: E2 02 01 CD 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E2 FA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 53 3F 99 82 00 00 57 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [18:11:45]RAPDU: 90 00 [18:11:45]wFMCommunicate OK [18:11:45]wFMCommunicate request_size=7 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 0D 02 02 02 DC 22 [18:11:45]Write to MH i2c: E2 0A 00 CE 1D 80 0D 02 02 02 00 DC 22 00 00 67 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [18:11:45]RAPDU: 90 00 [18:11:45]wFMCommunicate OK [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 0D 03 02 [18:11:45]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 0B 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 0B 00 CF 1D 00 77 EC DE 93 61 20 1F 21 90 00 FD [18:11:45]RAPDU: 77 EC DE 93 61 20 1F 21 90 00 [18:11:45]wFMCommunicate OK [18:11:45]SAM_PROTO_SignData done [18:11:45]FM_MakeSignedData done [18:11:45]CreateOFDProtocolMessage [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 11 00 00 [18:11:45]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 17 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 17 00 D0 1D 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:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:11:45]wFMCommunicate OK [18:11:45]CreateOFDProtocolMessage done [18:11:45]OFDSenderStorePacket 67317 [18:11:45]StoreOFDPacket docnum=67317 [18:11: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 BA EB 04 01 07 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E2 FA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 53 3F 99 82 DC 22 77 EC DE 93 61 20 1F 21 [18:11:45]CheckFolder [18:11:45]dirname=/storage/ofd_packets [18:11:45]CheckFolder done [18:11:45]ProducePacketName [18:11:45]name=ofd_packets/00067317 [18:11:45]NVStorageSaveData ofd_packets/00067317 [18:11:45]File name is /storage/ofd_packets/00067317 [18:11:45]Write 298 bytes [18:11:45]NVStorageSaveData done [18:11:45]OFDSenderStorePacket done [18:11:45]KKMCreateOFDPacket done [18:11:45]NVStorageSaveData kkm_last_timestamp [18:11:45]File name is /storage/kkm_last_timestamp [18:11:45]Write 4 bytes [18:11:45]NVStorageSaveData done [18:11:45]ExternCall_PrintAddStr [18:11:45]wPrintStart [18:11:45]Write to MH i2c: 01 00 00 D1 1D EE [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: 01 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: 01 07 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [18:11:45]RasterBufferAndPrint [18:11:45]line Счет N : (1)507301 [18:11:45]line ИНН: 02508201610067 [18:11:45]line Контрольно-Кассовый Чек [18:11:45]line ПРОДАЖА [18:11:45]line ТРК (МРК, ГНК) : 31 [18:11:45]line Товар: 2710194210 [18:11:45]line ДТ-К-5 [18:11:45]line 8.040 * 74.70 [18:11:45]line = 600.59 [18:11:45]line НДС 12% НСП 1% [18:11:45]line > о реализуемом товаре [18:11:45]line ИТОГО: 600.59 [18:11:45]line НСП 1% : 5.31 [18:11:45]line НДС 12% : 63.78 [18:11:45]line Наличными: 0.00 [18:11:45]line Безнал.: 600.59 [18:11:45]line Место: АЗС № 91 "Партнер Нефть" [18:11:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:11:45]line СНО: Общий режим [18:11:45]line Чек 135 15.05.2024 18:11 [18:11:45]line Смена: 356 ФФД: 1.0 [18:11:45]line ЗНМ: 0300000119 [18:11:45]line РНМ: 0000000000091845 [18:11:45]line Версия ККМ: 001 [18:11:45]line Платежная система: Бакай Банк [18:11:45]line ФМ: 0000000000871829 [18:11:45]line ФД: 67317 [18:11:45]line ФПД: 91532623535138 [18:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T181146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67317&fm=91532623535138&tin=02508201610067®Number=0000000000091845&sum=60059 [18:11:46]OFD Sender: Processing packet 67317 [packets to send 35, broken 34] [18:11:46]ProducePacketName [18:11:46]name=ofd_packets/00067317 [18:11:46]OFD Sender: To server: pG, [18:11:46]CommunicateWithHost lk.salyk.kg:30040 [18:11:46]ConnectInit lk.salyk.kg [18:11:46]written 0, free lines is 4095 [18:11:46]Connected sock=10 [18:11: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 BA EB 04 01 07 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 E2 FA 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 53 3F 99 82 DC 22 77 EC DE 93 61 20 1F 21 [18:11: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 CC 26 47 00 3C 25 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 06 01 00 F4 03 04 00 BE A2 44 66 B6 04 01 00 00 AE E9 F1 EA 7D 49 F9 9E [18:11:46]CommunicateWithHost err = 0 [18:11:46]CheckOFDResponse [18:11:46]1017 (14) - 77093643461234 [18:11:46]1041 (16) - 0000000000871829 [18:11:46]1040 (4) - 67317 [18:11:46]1012 (4) - 15.05.2024 11:55 [18:11:46]1206 (1) - 0 [18:11:46]OFD Sender: Remove packet 67317 [18:11:46]ProducePacketName [18:11:46]name=ofd_packets/00067317 [18:11:46]NVStorageDeleteData [18:11:46]Write to MH i2c: 01 00 00 FA 1D 17 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: 01 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: 01 07 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: 01 07 00 FA 1D 00 00 00 00 00 DF 0C 09 [18:11:46]RasterBufferAndPrint [18:11:46]line [18:11:46]line [18:11:46]line [18:11:46]line [18:11:46]line [18:11:46]written 0, free lines is 3302 [18:11:46]MH_Cut [18:11:46]Write to MH i2c: D1 01 00 01 1E 01 F1 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: D1 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: D1 01 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: D1 01 00 01 1E 00 F0 [18:11:46]Write to MH i2c: 01 00 00 02 1E 20 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:47]OFD Sender: No OFD packet to send [18:11:47]*** Cut start [18:11:47]*** Purtial cut [18:11:47]*** CUTSNS_PIN = 0 [18:11:47]*** Stage 1: CUTSNS_PIN = 1 [18:11:49]Read from MH i2c: 01 [18:11:49]MH_I2C_Read... [18:11:49]*** Stop cut motor [18:11:49]*** Cut end [18:11:49]Read from MH i2c: 01 07 00 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 FF 0F 35 [18:11:49]process_action close_receipt done [18:11:49]requested_data is exist [18:11:49]produce_requested_data [18:11:49]requested_item fm.sn is exist - process it [18:11:49]wFMCommunicate request_size=4 [18:11:49]MH_SAM_APDU [18:11:49]CAPDU: 80 11 00 00 [18:11:49]Write to MH i2c: E2 08 00 03 1E 80 11 00 00 00 00 00 00 9B [18:11:49]Write i2c OK [18:11:49]MH_I2C_Read... [18:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:49]Read from MH i2c: E2 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 17 00 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 17 00 03 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F1 [18:11: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:11:49]wFMCommunicate OK [18:11:49]requested_item fd.num is exist - process it [18:11:49]SAM_PROTO_GetFieldsCounters [18:11:49]wFMCommunicate request_size=4 [18:11:49]MH_SAM_APDU [18:11:49]CAPDU: 80 13 00 00 [18:11:49]Write to MH i2c: E2 08 00 04 1E 80 13 00 00 00 00 00 00 9E [18:11:49]Write i2c OK [18:11:49]MH_I2C_Read... [18:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:49]Read from MH i2c: E2 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 62 00 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 62 00 04 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 F5 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [18:11: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 F5 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:49]wFMCommunicate OK [18:11:49]SAM_PROTO_GetFieldsCounters done [18:11:49]requested_item shift.num is exist - process it [18:11:49]requested_item shift.opened is exist - process it [18:11:49]req_shift_opened [18:11:49]FM_GetShiftState [18:11:49]SAM_PROTO_GetShiftState [18:11:49]wFMCommunicate request_size=4 [18:11:49]MH_SAM_APDU [18:11:49]CAPDU: 80 13 01 00 [18:11:49]Write to MH i2c: E2 08 00 05 1E 80 13 01 00 00 00 00 00 A0 [18:11:49]Write i2c OK [18:11:49]MH_I2C_Read... [18:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:49]Read from MH i2c: E2 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 0E 00 [18:11:49]MH_I2C_Read... [18:11:49]Read from MH i2c: E2 0E 00 05 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4B [18:11:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:11:49]wFMCommunicate OK [18:11:49]SAM_PROTO_GetShiftState done [18:11:49]FM_GetShiftState done [18:11:49]req_shift_opened done [18:11:49]requested_item shift.open_date is exist - process it [18:11:49]req_shift_open_date [18:11:49]req_shift_open_date done [18:11:49]produce_requested_data done [18:11:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67317,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:11:49]process_action_free close_receipt [18:11:49]json_value_free [18:11:49]json_value_free done [18:11:49]process_json_proto returns [18:11:49]Send response to host [18:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67317,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:11:49]free response buf [18:11:49]execute_script done [18:11:49]execute_script returns [18:11:49]free content buf [18:11:49]Sock 9.Close socket [18:11:49]Sock 9.Thread stoped [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:23]accept exits with 7 [18:19:23]New connection [18:19:23]New thread 3067174244 created [18:19:23]Thread 3067030884 joined [18:19:23]Waiting for new connection... [18:19:23] Sock 7.Parse request [18:19:23]Sock 7.Check first char [18:19:23]Sock 7.First char is OK [18:19:23]request: POST /json_proto HTTP/1.0 [18:19:23]Method: POST [18:19:23]URL: /json_proto [18:19:23]Method is POST - this is cgi request [18:19:23]url: /json_proto [18:19:23]query_string will be loaded in cgi processing [18:19:23]execute_cgi json_proto POST (null) [18:19:23]execute_cgi path=json_proto method=POST [18:19:23]POST find Content-Length [18:19:23]Host: 172.17.41.195:8080 [18:19:23]Content-Length: 629 [18:19:23]Content-Type: application/json [18:19:23] [18:19:23]POST finish read [18:19:23]Found Content-Length = 629 [18:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12076", "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" ] } } [18:19:23]execute_script... [18: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 : (3)12076", "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" ] } } [18:19:23]POST & json_proto [18:19:23]process_json_proto [18:19:23]json parsed OK: [18:19:23]protocol is kg_v1.0 [18:19:23]action value=close_receipt [18:19:23]process_action close_receipt [18:19:23]cmd_close_receipt [18:19:23]MH_GetDate [18:19:23]Write to MH i2c: F0 00 00 06 1E 13 [18:19:23]Write i2c OK [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 09 00 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: F0 09 00 06 1E 00 AD FC 44 66 FC 21 6F 64 5F [18:19:23]GetLastDocTimeStamp 1715796706 [18:19:23]current date 1715797165 [18:19:23]FM_GetShiftState [18:19:23]SAM_PROTO_GetShiftState [18:19:23]wFMCommunicate request_size=4 [18:19:23]MH_SAM_APDU [18:19:23]CAPDU: 80 13 01 00 [18:19:23]Write to MH i2c: E2 08 00 07 1E 80 13 01 00 00 00 00 00 A2 [18:19:23]Write i2c OK [18:19:23]MH_I2C_Read... [18:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:23]Read from MH i2c: E2 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: E2 0E 00 [18:19:23]MH_I2C_Read... [18:19:23]Read from MH i2c: E2 0E 00 07 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4D [18:19:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:19:23]wFMCommunicate OK [18:19:23]SAM_PROTO_GetShiftState done [18:19:23]FM_GetShiftState done [18:19:23]opened in 1715732471 [18:19:23]opened+sec_in_day 1715818871 [18:19:23]quantity*price = 4500 [18:19:23]sum+1 = 4501 [18:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 136 15.05.2024 18:19 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67318 ФПД: 3458942519045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T181925&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67318&fm=3458942519045&tin=02508201610067®Number=0000000000091845&sum=4500 0 [18:19:24]StoreToDocumentArchive [18:19:24]shift 356 fd 67318 [18:19:24]save to /storage/0356/doc_00067318 [18:19:24]save last doc name /storage/0356/doc_00067318 to /storage/kkm_last_doc_name [18:19:24]save OK [18:19:24]Clear old archive folders... [18:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:19:24]tlvbuf is 00B0FD40 [18:19:24]SAM_PROTO_ClearQueue [18:19:24]wFMCommunicate request_size=4 [18:19:24]MH_SAM_APDU [18:19:24]CAPDU: 80 09 00 00 [18:19:24]Write to MH i2c: E2 08 00 14 1E 80 09 00 00 00 00 00 00 A4 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:24]Read from MH i2c: E2 03 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [18:19:24]RAPDU: 90 00 [18:19:24]wFMCommunicate OK [18:19:24]SAM_PROTO_ClearQueue done [18:19:24]KKMCreateOFDPacket [18:19:24]OFDProtocolAddRootSTLVToBuf [18:19:24]FM_MakeSignedData [18:19:24]FM_MakeSignedData [18:19:24]SAM_PROTO_SignData [18:19:24]wFMCommunicate request_size=4 [18:19:24]MH_SAM_APDU [18:19:24]CAPDU: 80 0D 01 02 [18:19:24]Write to MH i2c: E2 08 00 15 1E 80 0D 01 02 00 00 00 00 AC [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [18:19:24]RAPDU: 90 00 [18:19:24]wFMCommunicate OK [18:19:24]wFMCommunicate request_size=255 [18:19:24]MH_SAM_APDU [18:19:24]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 88 00 00 00 F4 03 04 00 AD FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:19:24]Write to MH i2c: E2 02 01 16 1E 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 88 00 00 00 F4 03 04 00 AD FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 F3 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [18:19:24]RAPDU: 90 00 [18:19:24]wFMCommunicate OK [18:19:24]wFMCommunicate request_size=28 [18:19:24]MH_SAM_APDU [18:19:24]CAPDU: 80 0D 02 02 17 37 31 38 32 39 10 04 04 00 F6 06 01 00 35 04 06 00 03 25 59 0A 47 05 [18:19:24]Write to MH i2c: E2 1F 00 17 1E 80 0D 02 02 17 00 37 31 38 32 39 10 04 04 00 F6 06 01 00 35 04 06 00 03 25 59 0A 47 05 00 00 13 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [18:19:24]RAPDU: 90 00 [18:19:24]wFMCommunicate OK [18:19:24]wFMCommunicate request_size=4 [18:19:24]MH_SAM_APDU [18:19:24]CAPDU: 80 0D 03 02 [18:19:24]Write to MH i2c: E2 08 00 18 1E 80 0D 03 02 00 00 00 00 B1 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 0B 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 0B 00 18 1E 00 2E 0D E6 A1 F5 81 21 9F 90 00 AA [18:19:24]RAPDU: 2E 0D E6 A1 F5 81 21 9F 90 00 [18:19:24]wFMCommunicate OK [18:19:24]SAM_PROTO_SignData done [18:19:24]FM_MakeSignedData done [18:19:24]CreateOFDProtocolMessage [18:19:24]wFMCommunicate request_size=4 [18:19:24]MH_SAM_APDU [18:19:24]CAPDU: 80 11 00 00 [18:19:24]Write to MH i2c: E2 08 00 19 1E 80 11 00 00 00 00 00 00 B1 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:24]Read from MH i2c: E2 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 17 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: E2 17 00 19 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [18:19:24]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:24]wFMCommunicate OK [18:19:24]CreateOFDProtocolMessage done [18:19:24]OFDSenderStorePacket 67318 [18:19:24]StoreOFDPacket docnum=67318 [18:19:24]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 08 BE 19 01 C6 E8 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 88 00 00 00 F4 03 04 00 AD FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 25 59 0A 47 05 2E 0D E6 A1 F5 81 21 9F [18:19:24]CheckFolder [18:19:24]dirname=/storage/ofd_packets [18:19:24]CheckFolder done [18:19:24]ProducePacketName [18:19:24]name=ofd_packets/00067318 [18:19:24]NVStorageSaveData ofd_packets/00067318 [18:19:24]File name is /storage/ofd_packets/00067318 [18:19:24]Write 319 bytes [18:19:24]NVStorageSaveData done [18:19:24]OFDSenderStorePacket done [18:19:24]KKMCreateOFDPacket done [18:19:24]NVStorageSaveData kkm_last_timestamp [18:19:24]File name is /storage/kkm_last_timestamp [18:19:24]Write 4 bytes [18:19:24]NVStorageSaveData done [18:19:24]ExternCall_PrintAddStr [18:19:24]wPrintStart [18:19:24]Write to MH i2c: 01 00 00 1A 1E 38 [18:19:24]Write i2c OK [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: 01 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: 01 07 00 [18:19:24]MH_I2C_Read... [18:19:24]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [18:19:24]RasterBufferAndPrint [18:19:24]line Счет N : (3)12076 [18:19:24]line ИНН: 02508201610067 [18:19:24]line Контрольно-Кассовый Чек [18:19:24]line ПРОДАЖА [18:19:24]line Товар: 4700000160358 [18:19:24]line Вода Легенда 1л [18:19:24]line 1.000 * 45.00 [18:19:24]line = 45.00 [18:19:24]line НДС 12% НСП 1% [18:19:24]line > о реализуемом товаре [18:19:24]line ИТОГО: 45.00 [18:19:24]line НСП 1% : 0.40 [18:19:24]line НДС 12% : 4.78 [18:19:24]line Наличными: 45.00 [18:19:24]line Безнал.: 0.00 [18:19:24]line Место: АЗС № 91 "Партнер Нефть" [18:19:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:19:24]line СНО: Общий режим [18:19:24]line Чек 136 15.05.2024 18:19 [18:19:24]line Смена: 356 ФФД: 1.0 [18:19:24]line ЗНМ: 0300000119 [18:19:24]line РНМ: 0000000000091845 [18:19:24]line Версия ККМ: 001 [18:19:24]line ФМ: 0000000000871829 [18:19:24]line ФД: 67318 [18:19:24]line ФПД: 3458942519045 [18:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T181925&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67318&fm=3458942519045&tin=02508201610067®Number=0000000000091845&sum=4500 [18:19:25]OFD Sender: Processing packet 67318 [packets to send 35, broken 34] [18:19:25]ProducePacketName [18:19:25]name=ofd_packets/00067318 [18:19:25]OFD Sender: To server: pG, [18:19:25]CommunicateWithHost lk.salyk.kg:30040 [18:19:25]ConnectInit lk.salyk.kg [18:19:25]line 0 [18:19:25]written 0, free lines is 4095 [18:19:25]Connected sock=10 [18: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 21 01 00 00 08 BE 19 01 C6 E8 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 88 00 00 00 F4 03 04 00 AD FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 25 59 0A 47 05 2E 0D E6 A1 F5 81 21 9F [18: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 D9 90 47 00 C5 3A 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 06 01 00 F4 03 04 00 89 A4 44 66 B6 04 01 00 00 C0 F2 F4 BF 52 1C C1 96 [18:19:25]CommunicateWithHost err = 0 [18:19:25]CheckOFDResponse [18:19:25]1017 (14) - 77093643461234 [18:19:25]1041 (16) - 0000000000871829 [18:19:25]1040 (4) - 67318 [18:19:25]1012 (4) - 15.05.2024 12:03 [18:19:25]1206 (1) - 0 [18:19:25]OFD Sender: Remove packet 67318 [18:19:25]ProducePacketName [18:19:25]name=ofd_packets/00067318 [18:19:25]NVStorageDeleteData [18:19:25]Write to MH i2c: 01 00 00 41 1E 5F [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 07 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 FF 0C 71 [18:19:25]RasterBufferAndPrint [18:19:25]line [18:19:25]line [18:19:25]line [18:19:25]line [18:19:25]line [18:19:25]written 0, free lines is 3336 [18:19:25]MH_Cut [18:19:25]Write to MH i2c: D1 01 00 48 1E 01 38 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: D1 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: D1 01 00 [18:19:25]MH_I2C_Read... [18:19:25]Read from MH i2c: D1 01 00 48 1E 00 37 [18:19:25]Write to MH i2c: 01 00 00 49 1E 67 [18:19:25]Write i2c OK [18:19:25]MH_I2C_Read... [18:19:25]OFD Sender: No OFD packet to send [18:19:26]*** Cut start [18:19:26]*** Purtial cut [18:19:26]*** Stage 1: CUTSNS_PIN = 1 [18:19:26]Read from MH i2c: 01 [18:19:26]MH_I2C_Read... [18:19:26]*** Stop cut motor [18:19:26]*** Cut end [18:19:26]Read from MH i2c: 01 07 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: 01 07 00 49 1E 00 00 00 00 00 FF 0F 7C [18:19:26]process_action close_receipt done [18:19:26]requested_data is exist [18:19:26]produce_requested_data [18:19:26]requested_item fm.sn is exist - process it [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 11 00 00 [18:19:26]Write to MH i2c: E2 08 00 4A 1E 80 11 00 00 00 00 00 00 E2 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 17 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 17 00 4A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [18:19: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:19:26]wFMCommunicate OK [18:19:26]requested_item fd.num is exist - process it [18:19:26]SAM_PROTO_GetFieldsCounters [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 13 00 00 [18:19:26]Write to MH i2c: E2 08 00 4B 1E 80 13 00 00 00 00 00 00 E5 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 62 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 62 00 4B 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 F6 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [18:19: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 F6 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:26]wFMCommunicate OK [18:19:26]SAM_PROTO_GetFieldsCounters done [18:19:26]requested_item shift.num is exist - process it [18:19:26]requested_item shift.opened is exist - process it [18:19:26]req_shift_opened [18:19:26]FM_GetShiftState [18:19:26]SAM_PROTO_GetShiftState [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 13 01 00 [18:19:26]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 92 [18:19:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:19:26]wFMCommunicate OK [18:19:26]SAM_PROTO_GetShiftState done [18:19:26]FM_GetShiftState done [18:19:26]req_shift_opened done [18:19:26]requested_item shift.open_date is exist - process it [18:19:26]req_shift_open_date [18:19:26]req_shift_open_date done [18:19:26]produce_requested_data done [18:19:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67318,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:19:26]process_action_free close_receipt [18:19:26]json_value_free [18:19:26]json_value_free done [18:19:26]process_json_proto returns [18:19:26]Send response to host [18:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67318,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:19:26]free response buf [18:19:26]execute_script done [18:19:26]execute_script returns [18:19:26]free content buf [18:19:26]Sock 7.Close socket [18:19:26]Sock 7.Thread stoped [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]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:39]accept exits with 9 [18:20:39]New connection [18:20:39]New thread 3067030884 created [18:20:39]Thread 3067174244 joined [18:20:39]Waiting for new connection... [18:20:39] Sock 9.Parse request [18:20:39]Sock 9.Check first char [18:20:39]Sock 9.First char is OK [18:20:39]request: POST /json_proto HTTP/1.0 [18:20:39]Method: POST [18:20:39]URL: /json_proto [18:20:39]Method is POST - this is cgi request [18:20:39]url: /json_proto [18:20:39]query_string will be loaded in cgi processing [18:20:39]execute_cgi json_proto POST (null) [18:20:39]execute_cgi path=json_proto method=POST [18:20:39]POST find Content-Length [18:20:39]Host: 172.17.41.195:8080 [18:20:39]Content-Length: 679 [18:20:39]Content-Type: application/json [18:20:39] [18:20:39]POST finish read [18:20:39]Found Content-Length = 679 [18:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507302", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:39]execute_script... [18:20: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)507302", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:39]POST & json_proto [18:20:39]process_json_proto [18:20:39]json parsed OK: [18:20:39]protocol is kg_v1.0 [18:20:39]action value=close_receipt [18:20:39]process_action close_receipt [18:20:39]cmd_close_receipt [18:20:39]MH_GetDate [18:20:39]Write to MH i2c: F0 00 00 4D 1E 5A [18:20:39]Write i2c OK [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: F0 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: F0 09 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: F0 09 00 4D 1E 00 F9 FC 44 66 FC 21 6F 64 F2 [18:20:39]GetLastDocTimeStamp 1715797165 [18:20:39]current date 1715797241 [18:20:39]FM_GetShiftState [18:20:39]SAM_PROTO_GetShiftState [18:20:39]wFMCommunicate request_size=4 [18:20:39]MH_SAM_APDU [18:20:39]CAPDU: 80 13 01 00 [18:20:39]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [18:20:39]Write i2c OK [18:20:39]MH_I2C_Read... [18:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:39]Read from MH i2c: E2 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 0E 00 [18:20:39]MH_I2C_Read... [18:20:39]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 94 [18:20:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:20:39]wFMCommunicate OK [18:20:39]SAM_PROTO_GetShiftState done [18:20:39]FM_GetShiftState done [18:20:39]opened in 1715732471 [18:20:39]opened+sec_in_day 1715818871 [18:20:39]quantity*price = 150072 [18:20:39]sum+1 = 150073 [18:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 137 15.05.2024 18:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67319 ФПД: 137826512957311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T182041&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67319&fm=137826512957311&tin=02508201610067®Number=0000000000091845&sum=150000 [18:20:40]StoreToDocumentArchive [18:20:40]shift 356 fd 67319 [18:20:40]save to /storage/0356/doc_00067319 [18:20:40]save last doc name /storage/0356/doc_00067319 to /storage/kkm_last_doc_name [18:20:40]save OK [18:20:40]Clear old archive folders... [18:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:20:40]tlvbuf is B6F8E640 [18:20:40]SAM_PROTO_ClearQueue [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 09 00 00 [18:20:40]Write to MH i2c: E2 08 00 5B 1E 80 09 00 00 00 00 00 00 EB [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_ClearQueue done [18:20:40]KKMCreateOFDPacket [18:20:40]OFDProtocolAddRootSTLVToBuf [18:20:40]FM_MakeSignedData [18:20:40]FM_MakeSignedData [18:20:40]SAM_PROTO_SignData [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 01 02 [18:20:40]Write to MH i2c: E2 08 00 5C 1E 80 0D 01 02 00 00 00 00 F3 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=255 [18:20:40]MH_SAM_APDU [18:20:40]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F9 FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D 5A 3C 58 [18:20:40]Write to MH i2c: E2 02 01 5D 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F9 FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D 5A 3C 58 00 00 0C [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=7 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 02 02 02 6F 7F [18:20:40]Write to MH i2c: E2 0A 00 5E 1E 80 0D 02 02 02 00 6F 7F 00 00 E8 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [18:20:40]RAPDU: 90 00 [18:20:40]wFMCommunicate OK [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 0D 03 02 [18:20:40]Write to MH i2c: E2 08 00 5F 1E 80 0D 03 02 00 00 00 00 F8 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0B 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0B 00 5F 1E 00 55 DD 1D 0E 9C E7 DF 63 90 00 1B [18:20:40]RAPDU: 55 DD 1D 0E 9C E7 DF 63 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_SignData done [18:20:40]FM_MakeSignedData done [18:20:40]CreateOFDProtocolMessage [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 11 00 00 [18:20:40]Write to MH i2c: E2 08 00 60 1E 80 11 00 00 00 00 00 00 F8 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 17 00 60 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [18:20: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:20:40]wFMCommunicate OK [18:20:40]CreateOFDProtocolMessage done [18:20:40]OFDSenderStorePacket 67319 [18:20:40]StoreOFDPacket docnum=67319 [18:20: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 0C 01 00 00 B0 C0 04 01 B8 F6 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F9 FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D 5A 3C 58 6F 7F 55 DD 1D 0E 9C E7 DF 63 [18:20:40]CheckFolder [18:20:40]dirname=/storage/ofd_packets [18:20:40]CheckFolder done [18:20:40]ProducePacketName [18:20:40]name=ofd_packets/00067319 [18:20:40]NVStorageSaveData ofd_packets/00067319 [18:20:40]File name is /storage/ofd_packets/00067319 [18:20:40]Write 298 bytes [18:20:40]NVStorageSaveData done [18:20:40]OFDSenderStorePacket done [18:20:40]KKMCreateOFDPacket done [18:20:40]NVStorageSaveData kkm_last_timestamp [18:20:40]File name is /storage/kkm_last_timestamp [18:20:40]Write 4 bytes [18:20:40]NVStorageSaveData done [18:20:40]ExternCall_PrintAddStr [18:20:40]wPrintStart [18:20:40]Write to MH i2c: 01 00 00 61 1E 7F [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 07 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FF 0F 94 [18:20:40]RasterBufferAndPrint [18:20:40]line Счет N : (1)507302 [18:20:40]line ИНН: 02508201610067 [18:20:40]line Контрольно-Кассовый Чек [18:20:40]line ПРОДАЖА [18:20:40]line ТРК (МРК, ГНК) : 31 [18:20:40]line Товар: 2710194210 [18:20:40]line ДТ-К-5 [18:20:40]line 20.090 * 74.70 [18:20:40]line = 1500.72 [18:20:40]line НДС 12% НСП 1% [18:20:40]line > о реализуемом товаре [18:20:40]line ОКРУГЛЕНИЕ: -0.72 [18:20:40]line ИТОГО: 1500.00 [18:20:40]line Внесено: 1500.00 [18:20:40]line СДАЧА: 0.00 [18:20:40]line НСП 1% : 13.28 [18:20:40]line НДС 12% : 159.37 [18:20:40]line Наличными: 1500.00 [18:20:40]line Безнал.: 0.00 [18:20:40]line Место: АЗС № 91 "Партнер Нефть" [18:20:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:20:41]line СНО: Общий режим [18:20:41]line Чек 137 15.05.2024 18:20 [18:20:41]line Смена: 356 ФФД: 1.0 [18:20:41]line ЗНМ: 0300000119 [18:20:41]line РНМ: 0000000000091845 [18:20:41]line Версия ККМ: 001 [18:20:41]line ФМ: 0000000000871829 [18:20:41]line ФД: 67319 [18:20:41]line ФПД: 137826512957311 [18:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T182041&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67319&fm=137826512957311&tin=02508201610067®Number=0000000000091845&sum=150000 [18:20:41]OFD Sender: Processing packet 67319 [packets to send 35, broken 34] [18:20:41]ProducePacketName [18:20:41]name=ofd_packets/00067319 [18:20:41]OFD Sender: To server: pG, [18:20:41]CommunicateWithHost lk.salyk.kg:30040 [18:20:41]ConnectInit lk.salyk.kg [18:20:41]written 0, free lines is 4095 [18:20:41]Connected sock=10 [18:20: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 0C 01 00 00 B0 C0 04 01 B8 F6 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 F9 FC 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D 5A 3C 58 6F 7F 55 DD 1D 0E 9C E7 DF 63 [18:20: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 48 BA 47 00 C3 9B 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 06 01 00 F4 03 04 00 D5 A4 44 66 B6 04 01 00 00 FB 8C C4 63 73 23 7A DB [18:20:41]CommunicateWithHost err = 0 [18:20:41]CheckOFDResponse [18:20:41]1017 (14) - 77093643461234 [18:20:41]1041 (16) - 0000000000871829 [18:20:41]1040 (4) - 67319 [18:20:41]1012 (4) - 15.05.2024 12:04 [18:20:41]1206 (1) - 0 [18:20:41]OFD Sender: Remove packet 67319 [18:20:41]ProducePacketName [18:20:41]name=ofd_packets/00067319 [18:20:41]NVStorageDeleteData [18:20:41]Write to MH i2c: 01 00 00 8B 1E A9 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 07 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: 01 07 00 8B 1E 00 00 00 00 00 C9 0C 85 [18:20:41]RasterBufferAndPrint [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]line [18:20:41]written 0, free lines is 3280 [18:20:41]MH_Cut [18:20:41]Write to MH i2c: D1 01 00 92 1E 01 82 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 01 00 [18:20:41]MH_I2C_Read... [18:20:41]Read from MH i2c: D1 01 00 92 1E 00 81 [18:20:41]Write to MH i2c: 01 00 00 93 1E B1 [18:20:41]Write i2c OK [18:20:41]MH_I2C_Read... [18:20:41]OFD Sender: No OFD packet to send [18:20:42]*** Cut start [18:20:42]*** Purtial cut [18:20:42]*** CUTSNS_PIN = 0 [18:20:42]*** Stage 1: CUTSNS_PIN = 1 [18:20:44]Read from MH i2c: 01 [18:20:44]MH_I2C_Read... [18:20:44]*** Stop cut motor [18:20:44]*** Cut end [18:20:44]Read from MH i2c: 01 07 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: 01 07 00 93 1E 00 00 00 00 00 FF 0F C6 [18:20:44]process_action close_receipt done [18:20:44]requested_data is exist [18:20:44]produce_requested_data [18:20:44]requested_item fm.sn is exist - process it [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 11 00 00 [18:20:44]Write to MH i2c: E2 08 00 94 1E 80 11 00 00 00 00 00 00 2C [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:44]Read from MH i2c: E2 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 17 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 17 00 94 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 82 [18:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:20:44]wFMCommunicate OK [18:20:44]requested_item fd.num is exist - process it [18:20:44]SAM_PROTO_GetFieldsCounters [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 13 00 00 [18:20:44]Write to MH i2c: E2 08 00 95 1E 80 13 00 00 00 00 00 00 2F [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:44]Read from MH i2c: E2 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 62 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 62 00 95 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 F7 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:20: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 F7 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:44]wFMCommunicate OK [18:20:44]SAM_PROTO_GetFieldsCounters done [18:20:44]requested_item shift.num is exist - process it [18:20:44]requested_item shift.opened is exist - process it [18:20:44]req_shift_opened [18:20:44]FM_GetShiftState [18:20:44]SAM_PROTO_GetShiftState [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 13 01 00 [18:20:44]Write to MH i2c: E2 08 00 96 1E 80 13 01 00 00 00 00 00 31 [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:44]Read from MH i2c: E2 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 0E 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 0E 00 96 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DC [18:20:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:20:44]wFMCommunicate OK [18:20:44]SAM_PROTO_GetShiftState done [18:20:44]FM_GetShiftState done [18:20:44]req_shift_opened done [18:20:44]requested_item shift.open_date is exist - process it [18:20:44]req_shift_open_date [18:20:44]req_shift_open_date done [18:20:44]produce_requested_data done [18:20:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67319,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:20:44]process_action_free close_receipt [18:20:44]json_value_free [18:20:44]json_value_free done [18:20:44]process_json_proto returns [18:20:44]Send response to host [18:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67319,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:20:44]free response buf [18:20:44]execute_script done [18:20:44]execute_script returns [18:20:44]free content buf [18:20:44]Sock 9.Close socket [18:20:44]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:40]accept exits with 7 [18:25:40]New connection [18:25:40]New thread 3067174244 created [18:25:40]Thread 3067030884 joined [18:25:40]Waiting for new connection... [18:25:40] Sock 7.Parse request [18:25:40]Sock 7.Check first char [18:25:40]Sock 7.First char is OK [18:25:40]request: POST /json_proto HTTP/1.0 [18:25:40]Method: POST [18:25:40]URL: /json_proto [18:25:40]Method is POST - this is cgi request [18:25:40]url: /json_proto [18:25:40]query_string will be loaded in cgi processing [18:25:40]execute_cgi json_proto POST (null) [18:25:40]execute_cgi path=json_proto method=POST [18:25:40]POST find Content-Length [18:25:40]Host: 172.17.41.195:8080 [18:25:40]Content-Length: 674 [18:25:40]Content-Type: application/json [18:25:40] [18:25:40]POST finish read [18:25:40]Found Content-Length = 674 [18:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507303", "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 }]} ], "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:25:40]execute_script... [18:25: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)507303", "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 }]} ], "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:25:40]POST & json_proto [18:25:40]process_json_proto [18:25:40]json parsed OK: [18:25:40]protocol is kg_v1.0 [18:25:40]action value=close_receipt [18:25:40]process_action close_receipt [18:25:40]cmd_close_receipt [18:25:40]MH_GetDate [18:25:40]Write to MH i2c: F0 00 00 97 1E A4 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 09 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: F0 09 00 97 1E 00 26 FE 44 66 FC 21 6F 64 6B [18:25:40]GetLastDocTimeStamp 1715797241 [18:25:40]current date 1715797542 [18:25:40]FM_GetShiftState [18:25:40]SAM_PROTO_GetShiftState [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 13 01 00 [18:25:40]Write to MH i2c: E2 08 00 98 1E 80 13 01 00 00 00 00 00 33 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0E 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0E 00 98 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DE [18:25:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:25:40]wFMCommunicate OK [18:25:40]SAM_PROTO_GetShiftState done [18:25:40]FM_GetShiftState done [18:25:40]opened in 1715732471 [18:25:40]opened+sec_in_day 1715818871 [18:25:40]quantity*price = 50049 [18:25:40]sum+1 = 50050 [18:25:40]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 СНО: Общий режим Чек 138 15.05.2024 18:25 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67320 ФПД: 152103751748874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T182542&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67320&fm=152103751748874&tin=02508201610067®Number=0000000000091845&sum=50000 [18:25:41]StoreToDocumentArchive [18:25:41]shift 356 fd 67320 [18:25:41]save to /storage/0356/doc_00067320 [18:25:41]save last doc name /storage/0356/doc_00067320 to /storage/kkm_last_doc_name [18:25:41]save OK [18:25:41]Clear old archive folders... [18:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:25:41]tlvbuf is 00BB3570 [18:25:41]SAM_PROTO_ClearQueue [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 09 00 00 [18:25:41]Write to MH i2c: E2 08 00 A5 1E 80 09 00 00 00 00 00 00 35 [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]SAM_PROTO_ClearQueue done [18:25:41]KKMCreateOFDPacket [18:25:41]OFDProtocolAddRootSTLVToBuf [18:25:41]FM_MakeSignedData [18:25:41]FM_MakeSignedData [18:25:41]SAM_PROTO_SignData [18:25:41]wFMCommunicate request_size=4 [18:25:41]MH_SAM_APDU [18:25:41]CAPDU: 80 0D 01 02 [18:25:41]Write to MH i2c: E2 08 00 A6 1E 80 0D 01 02 00 00 00 00 3D [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:41]Read from MH i2c: E2 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 [18:25:41]MH_I2C_Read... [18:25:41]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [18:25:41]RAPDU: 90 00 [18:25:41]wFMCommunicate OK [18:25:41]wFMCommunicate request_size=255 [18:25:41]MH_SAM_APDU [18:25: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 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 8A 00 00 00 F4 03 04 00 26 FE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8A 56 6A 17 [18:25:41]Write to MH i2c: E2 02 01 A7 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 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 8A 00 00 00 F4 03 04 00 26 FE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8A 56 6A 17 00 00 4A [18:25:41]Write i2c OK [18:25:41]MH_I2C_Read... [18:25:42]OFD Sender: No OFD packet to send [18:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [18:25:42]RAPDU: 90 00 [18:25:42]wFMCommunicate OK [18:25:42]wFMCommunicate request_size=7 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 0D 02 02 02 8D 0A [18:25:42]Write to MH i2c: E2 0A 00 A8 1E 80 0D 02 02 02 00 8D 0A 00 00 DB [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:42]Read from MH i2c: E2 03 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [18:25:42]RAPDU: 90 00 [18:25:42]wFMCommunicate OK [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 0D 03 02 [18:25:42]Write to MH i2c: E2 08 00 A9 1E 80 0D 03 02 00 00 00 00 42 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0B 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0B 00 A9 1E 00 BE A2 F7 6D 86 5A 49 2D 90 00 5D [18:25:42]RAPDU: BE A2 F7 6D 86 5A 49 2D 90 00 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_SignData done [18:25:42]FM_MakeSignedData done [18:25:42]CreateOFDProtocolMessage [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 11 00 00 [18:25:42]Write to MH i2c: E2 08 00 AA 1E 80 11 00 00 00 00 00 00 42 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 AA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 98 [18:25: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:25:42]wFMCommunicate OK [18:25:42]CreateOFDProtocolMessage done [18:25:42]OFDSenderStorePacket 67320 [18:25:42]StoreOFDPacket docnum=67320 [18:25: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 C8 FF 04 01 3F CF 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 8A 00 00 00 F4 03 04 00 26 FE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8A 56 6A 17 8D 0A BE A2 F7 6D 86 5A 49 2D [18:25:42]CheckFolder [18:25:42]dirname=/storage/ofd_packets [18:25:42]CheckFolder done [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00067320 [18:25:42]NVStorageSaveData ofd_packets/00067320 [18:25:42]File name is /storage/ofd_packets/00067320 [18:25:42]Write 298 bytes [18:25:42]NVStorageSaveData done [18:25:42]OFDSenderStorePacket done [18:25:42]KKMCreateOFDPacket done [18:25:42]NVStorageSaveData kkm_last_timestamp [18:25:42]File name is /storage/kkm_last_timestamp [18:25:42]Write 4 bytes [18:25:42]NVStorageSaveData done [18:25:42]ExternCall_PrintAddStr [18:25:42]wPrintStart [18:25:42]Write to MH i2c: 01 00 00 AB 1E C9 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 AB 1E 00 00 00 00 00 FF 0F DE [18:25:42]RasterBufferAndPrint [18:25:42]line Счет N : (1)507303 [18:25:42]line ИНН: 02508201610067 [18:25:42]line Контрольно-Кассовый Чек [18:25:42]line ПРОДАЖА [18:25:42]line ТРК (МРК, ГНК) : 41 [18:25:42]line Товар: 2710194210 [18:25:42]line ДТ-К-5 [18:25:42]line 6.700 * 74.70 [18:25:42]line = 500.49 [18:25:42]line НДС 12% НСП 1% [18:25:42]line > о реализуемом товаре [18:25:42]line ОКРУГЛЕНИЕ: -0.49 [18:25:42]line ИТОГО: 500.00 [18:25:42]line Внесено: 500.00 [18:25:42]line СДАЧА: 0.00 [18:25:42]line НСП 1% : 4.43 [18:25:42]line НДС 12% : 53.15 [18:25:42]line Наличными: 500.00 [18:25:42]line Безнал.: 0.00 [18:25:42]line Место: АЗС № 91 "Партнер Нефть" [18:25:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:25:42]line СНО: Общий режим [18:25:42]line Чек 138 15.05.2024 18:25 [18:25:42]line Смена: 356 ФФД: 1.0 [18:25:42]line ЗНМ: 0300000119 [18:25:42]line РНМ: 0000000000091845 [18:25:42]line Версия ККМ: 001 [18:25:42]line ФМ: 0000000000871829 [18:25:42]line ФД: 67320 [18:25:42]line ФПД: 152103751748874 [18:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T182542&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67320&fm=152103751748874&tin=02508201610067®Number=0000000000091845&sum=50000 [18:25:42]written 0, free lines is 4095 [18:25:42]OFD Sender: Processing packet 67320 [packets to send 35, broken 34] [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00067320 [18:25:42]OFD Sender: To server: pG, [18:25:42]CommunicateWithHost lk.salyk.kg:30040 [18:25:42]ConnectInit lk.salyk.kg [18:25:42]Connected sock=10 [18:25: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 C8 FF 04 01 3F CF 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 8A 00 00 00 F4 03 04 00 26 FE 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8A 56 6A 17 8D 0A BE A2 F7 6D 86 5A 49 2D [18:25: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 26 1E 47 00 49 67 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 06 01 00 F4 03 04 00 03 A6 44 66 B6 04 01 00 00 EE AC B9 0B FA C2 E6 45 [18:25:42]CommunicateWithHost err = 0 [18:25:42]CheckOFDResponse [18:25:42]1017 (14) - 77093643461234 [18:25:42]1041 (16) - 0000000000871829 [18:25:42]1040 (4) - 67320 [18:25:42]1012 (4) - 15.05.2024 12:09 [18:25:42]1206 (1) - 0 [18:25:42]OFD Sender: Remove packet 67320 [18:25:42]ProducePacketName [18:25:42]name=ofd_packets/00067320 [18:25:42]NVStorageDeleteData [18:25:43]Write to MH i2c: 01 00 00 D5 1E F3 [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 07 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 C0 0C C6 [18:25:43]RasterBufferAndPrint [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]line [18:25:43]written 0, free lines is 3270 [18:25:43]MH_Cut [18:25:43]Write to MH i2c: D1 01 00 DC 1E 01 CC [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 01 00 [18:25:43]MH_I2C_Read... [18:25:43]Read from MH i2c: D1 01 00 DC 1E 00 CB [18:25:43]Write to MH i2c: 01 00 00 DD 1E FB [18:25:43]Write i2c OK [18:25:43]MH_I2C_Read... [18:25:43]OFD Sender: No OFD packet to send [18:25:43]*** Cut start [18:25:43]*** Purtial cut [18:25:43]*** Stage 1: CUTSNS_PIN = 1 [18:25:44]Read from MH i2c: 01 [18:25:44]MH_I2C_Read... [18:25:44]*** Stop cut motor [18:25:44]*** Cut end [18:25:44]Read from MH i2c: 01 07 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 FF 0F 10 [18:25:44]process_action close_receipt done [18:25:44]requested_data is exist [18:25:44]produce_requested_data [18:25:44]requested_item fm.sn is exist - process it [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 11 00 00 [18:25:44]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [18:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:25:44]wFMCommunicate OK [18:25:44]requested_item fd.num is exist - process it [18:25:44]SAM_PROTO_GetFieldsCounters [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 00 00 [18:25:44]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 62 00 DF 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 F8 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:25: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 F8 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetFieldsCounters done [18:25:44]requested_item shift.num is exist - process it [18:25:44]requested_item shift.opened is exist - process it [18:25:44]req_shift_opened [18:25:44]FM_GetShiftState [18:25:44]SAM_PROTO_GetShiftState [18:25:44]wFMCommunicate request_size=4 [18:25:44]MH_SAM_APDU [18:25:44]CAPDU: 80 13 01 00 [18:25:44]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [18:25:44]Write i2c OK [18:25:44]MH_I2C_Read... [18:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:44]Read from MH i2c: E2 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 [18:25:44]MH_I2C_Read... [18:25:44]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 26 [18:25:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:25:44]wFMCommunicate OK [18:25:44]SAM_PROTO_GetShiftState done [18:25:44]FM_GetShiftState done [18:25:44]req_shift_opened done [18:25:44]requested_item shift.open_date is exist - process it [18:25:44]req_shift_open_date [18:25:44]req_shift_open_date done [18:25:44]produce_requested_data done [18:25:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67320,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:25:44]process_action_free close_receipt [18:25:44]json_value_free [18:25:44]json_value_free done [18:25:44]process_json_proto returns [18:25:44]Send response to host [18:25:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67320,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:25:44]free response buf [18:25:44]execute_script done [18:25:44]execute_script returns [18:25:44]free content buf [18:25:44]Sock 7.Close socket [18:25:44]Sock 7.Thread stoped [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:50]accept exits with 9 [18:30:50]New connection [18:30:50]New thread 3067030884 created [18:30:50]Thread 3067174244 joined [18:30:50]Waiting for new connection... [18:30:50] Sock 9.Parse request [18:30:50]Sock 9.Check first char [18:30:50]Sock 9.First char is OK [18:30:50]request: POST /json_proto HTTP/1.0 [18:30:50]Method: POST [18:30:50]URL: /json_proto [18:30:50]Method is POST - this is cgi request [18:30:50]url: /json_proto [18:30:50]query_string will be loaded in cgi processing [18:30:50]execute_cgi json_proto POST (null) [18:30:50]execute_cgi path=json_proto method=POST [18:30:50]POST find Content-Length [18:30:50]Host: 172.17.41.195:8080 [18:30:50]Content-Length: 683 [18:30:50]Content-Type: application/json [18:30:50] [18:30:50]POST finish read [18:30:50]Found Content-Length = 683 [18:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12077", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 62.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:50]execute_script... [18: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 : (3)12077", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 62.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:50]POST & json_proto [18:30:50]process_json_proto [18:30:50]json parsed OK: [18:30:50]protocol is kg_v1.0 [18:30:50]action value=close_receipt [18:30:50]process_action close_receipt [18:30:50]cmd_close_receipt [18:30:50]MH_GetDate [18:30:50]Write to MH i2c: F0 00 00 E1 1E EE [18:30:50]Write i2c OK [18:30:50]MH_I2C_Read... [18:30:50]Read from MH i2c: F0 [18:30:50]MH_I2C_Read... [18:30:50]Read from MH i2c: F0 09 00 [18:30:50]MH_I2C_Read... [18:30:50]Read from MH i2c: F0 09 00 E1 1E 00 5C FF 44 66 FC 21 6F 64 EC [18:30:50]GetLastDocTimeStamp 1715797542 [18:30:50]current date 1715797852 [18:30:50]FM_GetShiftState [18:30:50]SAM_PROTO_GetShiftState [18:30:50]wFMCommunicate request_size=4 [18:30:50]MH_SAM_APDU [18:30:50]CAPDU: 80 13 01 00 [18:30:50]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [18:30:50]Write i2c OK [18:30:50]MH_I2C_Read... [18:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:50]Read from MH i2c: E2 [18:30:50]MH_I2C_Read... [18:30:50]Read from MH i2c: E2 0E 00 [18:30:50]MH_I2C_Read... [18:30:50]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 28 [18:30:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:30:50]wFMCommunicate OK [18:30:50]SAM_PROTO_GetShiftState done [18:30:50]FM_GetShiftState done [18:30:50]opened in 1715732471 [18:30:50]opened+sec_in_day 1715818871 [18:30:50]quantity*price = 6200 [18:30:50]sum+1 = 6201 [18:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 62.00 НСП 1% : 0.55 НДС 12% : 6.58 Наличными: 62.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 139 15.05.2024 18:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67321 ФПД: 265284991114664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183052&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67321&fm=265284991114664&tin=02508201610067®Number=0000000000091845&sum=6200 0 [18:30:51]StoreToDocumentArchive [18:30:51]shift 356 fd 67321 [18:30:51]save to /storage/0356/doc_00067321 [18:30:51]save last doc name /storage/0356/doc_00067321 to /storage/kkm_last_doc_name [18:30:51]save OK [18:30:51]Clear old archive folders... [18:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=295 [18:30:51]tlvbuf is 00B1A860 [18:30:51]SAM_PROTO_ClearQueue [18:30:51]wFMCommunicate request_size=4 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 09 00 00 [18:30:51]Write to MH i2c: E2 08 00 EF 1E 80 09 00 00 00 00 00 00 7F [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 EF 1E 00 90 00 81 [18:30:51]RAPDU: 90 00 [18:30:51]wFMCommunicate OK [18:30:51]SAM_PROTO_ClearQueue done [18:30:51]KKMCreateOFDPacket [18:30:51]OFDProtocolAddRootSTLVToBuf [18:30:51]FM_MakeSignedData [18:30:51]FM_MakeSignedData [18:30:51]SAM_PROTO_SignData [18:30:51]wFMCommunicate request_size=4 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 0D 01 02 [18:30:51]Write to MH i2c: E2 08 00 F0 1E 80 0D 01 02 00 00 00 00 87 [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [18:30:51]RAPDU: 90 00 [18:30:51]wFMCommunicate OK [18:30:51]wFMCommunicate request_size=255 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [18:30:51]Write to MH i2c: E2 02 01 F1 1E 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 C7 [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [18:30:51]RAPDU: 90 00 [18:30:51]wFMCommunicate OK [18:30:51]wFMCommunicate request_size=54 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F1 46 79 A8 DD A8 [18:30:51]Write to MH i2c: E2 39 00 F2 1E 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F1 46 79 A8 DD A8 00 00 93 [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [18:30:51]RAPDU: 90 00 [18:30:51]wFMCommunicate OK [18:30:51]wFMCommunicate request_size=4 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 0D 03 02 [18:30:51]Write to MH i2c: E2 08 00 F3 1E 80 0D 03 02 00 00 00 00 8C [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 0B 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 0B 00 F3 1E 00 B0 28 8B F3 28 26 B8 7A 90 00 63 [18:30:51]RAPDU: B0 28 8B F3 28 26 B8 7A 90 00 [18:30:51]wFMCommunicate OK [18:30:51]SAM_PROTO_SignData done [18:30:51]FM_MakeSignedData done [18:30:51]CreateOFDProtocolMessage [18:30:51]wFMCommunicate request_size=4 [18:30:51]MH_SAM_APDU [18:30:51]CAPDU: 80 11 00 00 [18:30:51]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:51]Read from MH i2c: E2 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 17 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: E2 17 00 F4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [18:30: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:30:51]wFMCommunicate OK [18:30:51]CreateOFDProtocolMessage done [18:30:51]OFDSenderStorePacket 67321 [18:30:51]StoreOFDPacket docnum=67321 [18:30: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 3B 01 00 00 C8 5D 33 01 A2 2B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F1 46 79 A8 DD A8 B0 28 8B F3 28 26 B8 7A [18:30:51]CheckFolder [18:30:51]dirname=/storage/ofd_packets [18:30:51]CheckFolder done [18:30:51]ProducePacketName [18:30:51]name=ofd_packets/00067321 [18:30:51]NVStorageSaveData ofd_packets/00067321 [18:30:51]File name is /storage/ofd_packets/00067321 [18:30:51]Write 345 bytes [18:30:51]NVStorageSaveData done [18:30:51]OFDSenderStorePacket done [18:30:51]KKMCreateOFDPacket done [18:30:51]NVStorageSaveData kkm_last_timestamp [18:30:51]File name is /storage/kkm_last_timestamp [18:30:51]Write 4 bytes [18:30:51]NVStorageSaveData done [18:30:51]ExternCall_PrintAddStr [18:30:51]wPrintStart [18:30:51]Write to MH i2c: 01 00 00 F5 1E 13 [18:30:51]Write i2c OK [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: 01 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: 01 07 00 [18:30:51]MH_I2C_Read... [18:30:51]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [18:30:51]RasterBufferAndPrint [18:30:51]line Счет N : (3)12077 [18:30:51]line ИНН: 02508201610067 [18:30:51]line Контрольно-Кассовый Чек [18:30:51]line ПРОДАЖА [18:30:51]line Товар: 5449000027450 [18:30:51]line Напиток FuzeTea чай манго,ром 0,5л [18:30:51]line 1.000 * 62.00 [18:30:51]line = 62.00 [18:30:51]line НДС 12% НСП 1% [18:30:51]line > о реализуемом товаре [18:30:51]line ИТОГО: 62.00 [18:30:51]line НСП 1% : 0.55 [18:30:51]line НДС 12% : 6.58 [18:30:51]line Наличными: 62.00 [18:30:51]line Безнал.: 0.00 [18:30:51]line Место: АЗС № 91 "Партнер Нефть" [18:30:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:30:51]line СНО: Общий режим [18:30:51]line Чек 139 15.05.2024 18:30 [18:30:51]line Смена: 356 ФФД: 1.0 [18:30:51]line ЗНМ: 0300000119 [18:30:51]line РНМ: 0000000000091845 [18:30:51]line Версия ККМ: 001 [18:30:51]line ФМ: 0000000000871829 [18:30:51]line ФД: 67321 [18:30:51]line ФПД: 265284991114664 [18:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183052&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67321&fm=265284991114664&tin=02508201610067®Number=0000000000091845&sum=6200 [18:30:52]line 0 [18:30:52]OFD Sender: Processing packet 67321 [packets to send 35, broken 34] [18:30:52]ProducePacketName [18:30:52]name=ofd_packets/00067321 [18:30:52]OFD Sender: To server: pG, [18:30:52]CommunicateWithHost lk.salyk.kg:30040 [18:30:52]ConnectInit lk.salyk.kg [18:30:52]written 0, free lines is 4095 [18:30:52]Connected sock=10 [18: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 3B 01 00 00 C8 5D 33 01 A2 2B 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 5C FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F1 46 79 A8 DD A8 B0 28 8B F3 28 26 B8 7A [18: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 09 3B 47 00 81 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 F9 06 01 00 F4 03 04 00 38 A7 44 66 B6 04 01 00 00 C9 48 D5 82 28 28 B0 0C [18:30:52]CommunicateWithHost err = 0 [18:30:52]CheckOFDResponse [18:30:52]1017 (14) - 77093643461234 [18:30:52]1041 (16) - 0000000000871829 [18:30:52]1040 (4) - 67321 [18:30:52]1012 (4) - 15.05.2024 12:14 [18:30:52]1206 (1) - 0 [18:30:52]OFD Sender: Remove packet 67321 [18:30:52]ProducePacketName [18:30:52]name=ofd_packets/00067321 [18:30:52]NVStorageDeleteData [18:30:52]Write to MH i2c: 01 00 00 1D 1F 3C [18:30:52]Write i2c OK [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: 01 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: 01 07 00 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: 01 07 00 1D 1F 00 00 00 00 00 E0 0C 2F [18:30:52]RasterBufferAndPrint [18:30:52]line [18:30:52]line [18:30:52]line [18:30:52]line [18:30:52]line [18:30:52]written 0, free lines is 3300 [18:30:52]MH_Cut [18:30:52]Write to MH i2c: D1 01 00 24 1F 01 15 [18:30:52]Write i2c OK [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: D1 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: D1 01 00 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: D1 01 00 24 1F 00 14 [18:30:52]Write to MH i2c: 01 00 00 25 1F 44 [18:30:52]Write i2c OK [18:30:52]MH_I2C_Read... [18:30:53]OFD Sender: No OFD packet to send [18:30:53]*** Cut start [18:30:53]*** Purtial cut [18:30:53]*** CUTSNS_PIN = 0 [18:30:53]*** Stage 1: CUTSNS_PIN = 1 [18:30:55]Read from MH i2c: 01 [18:30:55]MH_I2C_Read... [18:30:55]*** Stop cut motor [18:30:55]*** Cut end [18:30:55]Read from MH i2c: 01 07 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 07 00 25 1F 00 00 00 00 00 FF 0F 59 [18:30:55]process_action close_receipt done [18:30:55]requested_data is exist [18:30:55]produce_requested_data [18:30:55]requested_item fm.sn is exist - process it [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 11 00 00 [18:30:55]Write to MH i2c: E2 08 00 26 1F 80 11 00 00 00 00 00 00 BF [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 17 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 17 00 26 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [18: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 [18:30:55]wFMCommunicate OK [18:30:55]requested_item fd.num is exist - process it [18:30:55]SAM_PROTO_GetFieldsCounters [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 13 00 00 [18:30:55]Write to MH i2c: E2 08 00 27 1F 80 13 00 00 00 00 00 00 C2 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 62 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 62 00 27 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 F9 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [18: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 F9 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:55]wFMCommunicate OK [18:30:55]SAM_PROTO_GetFieldsCounters done [18:30:55]requested_item shift.num is exist - process it [18:30:55]requested_item shift.opened is exist - process it [18:30:55]req_shift_opened [18:30:55]FM_GetShiftState [18:30:55]SAM_PROTO_GetShiftState [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 13 01 00 [18:30:55]Write to MH i2c: E2 08 00 28 1F 80 13 01 00 00 00 00 00 C4 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 0E 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 0E 00 28 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6F [18:30:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:30:55]wFMCommunicate OK [18:30:55]SAM_PROTO_GetShiftState done [18:30:55]FM_GetShiftState done [18:30:55]req_shift_opened done [18:30:55]requested_item shift.open_date is exist - process it [18:30:55]req_shift_open_date [18:30:55]req_shift_open_date done [18:30:55]produce_requested_data done [18:30:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67321,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:30:55]process_action_free close_receipt [18:30:55]json_value_free [18:30:55]json_value_free done [18:30:55]process_json_proto returns [18:30:55]Send response to host [18:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67321,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:30:55]free response buf [18:30:55]execute_script done [18:30:55]execute_script returns [18:30:55]free content buf [18:30:55]Sock 9.Close socket [18:30:55]Sock 9.Thread stoped [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:26]accept exits with 7 [18:31:26]New connection [18:31:26]New thread 3067174244 created [18:31:26]Thread 3067030884 joined [18:31:26]Waiting for new connection... [18:31:26] Sock 7.Parse request [18:31:26]Sock 7.Check first char [18:31:26]Sock 7.First char is OK [18:31:26]request: POST /json_proto HTTP/1.0 [18:31:26]Method: POST [18:31:26]URL: /json_proto [18:31:26]Method is POST - this is cgi request [18:31:26]url: /json_proto [18:31:26]query_string will be loaded in cgi processing [18:31:26]execute_cgi json_proto POST (null) [18:31:26]execute_cgi path=json_proto method=POST [18:31:26]POST find Content-Length [18:31:26]Host: 172.17.41.195:8080 [18:31:26]Content-Length: 800 [18:31:26]Content-Type: application/json [18:31:26] [18:31:26]POST finish read [18:31:26]Found Content-Length = 800 [18:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507305", "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:31:26]execute_script... [18:31: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)507305", "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:31:26]POST & json_proto [18:31:26]process_json_proto [18:31:26]json parsed OK: [18:31:26]protocol is kg_v1.0 [18:31:26]action value=close_receipt [18:31:26]process_action close_receipt [18:31:26]cmd_close_receipt [18:31:26]MH_GetDate [18:31:26]Write to MH i2c: F0 00 00 29 1F 37 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: F0 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: F0 09 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: F0 09 00 29 1F 00 80 FF 44 66 FC 21 6F 64 59 [18:31:26]GetLastDocTimeStamp 1715797852 [18:31:26]current date 1715797888 [18:31:26]FM_GetShiftState [18:31:26]SAM_PROTO_GetShiftState [18:31:26]wFMCommunicate request_size=4 [18:31:26]MH_SAM_APDU [18:31:26]CAPDU: 80 13 01 00 [18:31:26]Write to MH i2c: E2 08 00 2A 1F 80 13 01 00 00 00 00 00 C6 [18:31:26]Write i2c OK [18:31:26]MH_I2C_Read... [18:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:26]Read from MH i2c: E2 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 [18:31:26]MH_I2C_Read... [18:31:26]Read from MH i2c: E2 0E 00 2A 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 71 [18:31:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:31:26]wFMCommunicate OK [18:31:26]SAM_PROTO_GetShiftState done [18:31:26]FM_GetShiftState done [18:31:26]opened in 1715732471 [18:31:26]opened+sec_in_day 1715818871 [18:31:26]quantity*price = 100023 [18:31:26]sum+1 = 100024 [18:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 140 15.05.2024 18:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67322 ФПД: 141871785775271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183128&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67322&fm=141871785775271&tin=02508201610067®Number=0000000000091845&sum=100023 [18:31:27]StoreToDocumentArchive [18:31:27]shift 356 fd 67322 [18:31:27]save to /storage/0356/doc_00067322 [18:31:27]save last doc name /storage/0356/doc_00067322 to /storage/kkm_last_doc_name [18:31:27]save OK [18:31:27]Clear old archive folders... [18:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:31:27]tlvbuf is 00B7EBA0 [18:31:27]SAM_PROTO_ClearQueue [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 09 00 00 [18:31:27]Write to MH i2c: E2 08 00 37 1F 80 09 00 00 00 00 00 00 C8 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 37 1F 00 90 00 CA [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]SAM_PROTO_ClearQueue done [18:31:27]KKMCreateOFDPacket [18:31:27]OFDProtocolAddRootSTLVToBuf [18:31:27]FM_MakeSignedData [18:31:27]FM_MakeSignedData [18:31:27]SAM_PROTO_SignData [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 0D 01 02 [18:31:27]Write to MH i2c: E2 08 00 38 1F 80 0D 01 02 00 00 00 00 D0 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 38 1F 00 90 00 CB [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=255 [18:31:27]MH_SAM_APDU [18:31: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 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 8C 00 00 00 F4 03 04 00 80 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 08 19 65 [18:31:27]Write to MH i2c: E2 02 01 39 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 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 8C 00 00 00 F4 03 04 00 80 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 08 19 65 00 00 FA [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 39 1F 00 90 00 CC [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=7 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 0D 02 02 02 10 A7 [18:31:27]Write to MH i2c: E2 0A 00 3A 1F 80 0D 02 02 02 00 10 A7 00 00 8E [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [18:31:27]RAPDU: 90 00 [18:31:27]wFMCommunicate OK [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 0D 03 02 [18:31:27]Write to MH i2c: E2 08 00 3B 1F 80 0D 03 02 00 00 00 00 D5 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 0B 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 0B 00 3B 1F 00 22 77 CA 92 0E AB C8 3F 90 00 8B [18:31:27]RAPDU: 22 77 CA 92 0E AB C8 3F 90 00 [18:31:27]wFMCommunicate OK [18:31:27]SAM_PROTO_SignData done [18:31:27]FM_MakeSignedData done [18:31:27]CreateOFDProtocolMessage [18:31:27]wFMCommunicate request_size=4 [18:31:27]MH_SAM_APDU [18:31:27]CAPDU: 80 11 00 00 [18:31:27]Write to MH i2c: E2 08 00 3C 1F 80 11 00 00 00 00 00 00 D5 [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:27]Read from MH i2c: E2 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 17 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: E2 17 00 3C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [18:31: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:31:27]wFMCommunicate OK [18:31:27]CreateOFDProtocolMessage done [18:31:27]OFDSenderStorePacket 67322 [18:31:27]StoreOFDPacket docnum=67322 [18:31: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 F1 03 04 01 3C 2B 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 8C 00 00 00 F4 03 04 00 80 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 08 19 65 10 A7 22 77 CA 92 0E AB C8 3F [18:31:27]CheckFolder [18:31:27]dirname=/storage/ofd_packets [18:31:27]CheckFolder done [18:31:27]ProducePacketName [18:31:27]name=ofd_packets/00067322 [18:31:27]NVStorageSaveData ofd_packets/00067322 [18:31:27]File name is /storage/ofd_packets/00067322 [18:31:27]Write 298 bytes [18:31:27]NVStorageSaveData done [18:31:27]OFDSenderStorePacket done [18:31:27]KKMCreateOFDPacket done [18:31:27]NVStorageSaveData kkm_last_timestamp [18:31:27]File name is /storage/kkm_last_timestamp [18:31:27]Write 4 bytes [18:31:27]NVStorageSaveData done [18:31:27]ExternCall_PrintAddStr [18:31:27]wPrintStart [18:31:27]Write to MH i2c: 01 00 00 3D 1F 5C [18:31:27]Write i2c OK [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 07 00 [18:31:27]MH_I2C_Read... [18:31:27]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 FF 0F 71 [18:31:27]RasterBufferAndPrint [18:31:27]line Счет N : (1)507305 [18:31:27]line ИНН: 02508201610067 [18:31:27]line Контрольно-Кассовый Чек [18:31:27]line ПРОДАЖА [18:31:27]line ТРК (МРК, ГНК) : 31 [18:31:27]line Товар: 2710194210 [18:31:27]line ДТ-К-5 [18:31:27]line 13.390 * 74.70 [18:31:27]line = 1000.23 [18:31:27]line НДС 12% НСП 1% [18:31:27]line > о реализуемом товаре [18:31:27]line ИТОГО: 1000.23 [18:31:27]line НСП 1% : 8.85 [18:31:27]line НДС 12% : 106.22 [18:31:27]line Наличными: 0.00 [18:31:27]line Безнал.: 1000.23 [18:31:27]line Место: АЗС № 91 "Партнер Нефть" [18:31:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:31:27]line СНО: Общий режим [18:31:27]line Чек 140 15.05.2024 18:31 [18:31:27]line Смена: 356 ФФД: 1.0 [18:31:27]line ЗНМ: 0300000119 [18:31:27]line РНМ: 0000000000091845 [18:31:27]line Версия ККМ: 001 [18:31:27]line Платежная система: O! деньги [18:31:27]line ФМ: 0000000000871829 [18:31:27]line ФД: 67322 [18:31:27]line ФПД: 141871785775271 [18:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183128&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67322&fm=141871785775271&tin=02508201610067®Number=0000000000091845&sum=100023 [18:31:28]OFD Sender: Processing packet 67322 [packets to send 35, broken 34] [18:31:28]ProducePacketName [18:31:28]name=ofd_packets/00067322 [18:31:28]OFD Sender: To server: pG, [18:31:28]CommunicateWithHost lk.salyk.kg:30040 [18:31:28]ConnectInit lk.salyk.kg [18:31:28]written 0, free lines is 4095 [18:31:28]Connected sock=11 [18:31: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 F1 03 04 01 3C 2B 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 8C 00 00 00 F4 03 04 00 80 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 81 08 19 65 10 A7 22 77 CA 92 0E AB C8 3F [18:31: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 9B AF 47 00 B6 7D 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 06 01 00 F4 03 04 00 5C A7 44 66 B6 04 01 00 00 6A C0 19 99 2B 7A 15 68 [18:31:28]CommunicateWithHost err = 0 [18:31:28]CheckOFDResponse [18:31:28]1017 (14) - 77093643461234 [18:31:28]1041 (16) - 0000000000871829 [18:31:28]1040 (4) - 67322 [18:31:28]1012 (4) - 15.05.2024 12:15 [18:31:28]1206 (1) - 0 [18:31:28]OFD Sender: Remove packet 67322 [18:31:28]ProducePacketName [18:31:28]name=ofd_packets/00067322 [18:31:28]NVStorageDeleteData [18:31:28]Write to MH i2c: 01 00 00 66 1F 85 [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: 01 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: 01 07 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: 01 07 00 66 1F 00 00 00 00 00 D7 0C 6F [18:31:28]RasterBufferAndPrint [18:31:28]line [18:31:28]line [18:31:28]line [18:31:28]line [18:31:28]line [18:31:28]written 0, free lines is 3292 [18:31:28]MH_Cut [18:31:28]Write to MH i2c: D1 01 00 6D 1F 01 5E [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: D1 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: D1 01 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: D1 01 00 6D 1F 00 5D [18:31:28]Write to MH i2c: 01 00 00 6E 1F 8D [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]OFD Sender: No OFD packet to send [18:31:29]*** Cut start [18:31:29]*** Purtial cut [18:31:29]*** Stage 1: CUTSNS_PIN = 1 [18:31:29]Read from MH i2c: 01 [18:31:29]MH_I2C_Read... [18:31:29]*** Stop cut motor [18:31:29]*** Cut end [18:31:29]Read from MH i2c: 01 07 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: 01 07 00 6E 1F 00 00 00 00 00 FF 0F A2 [18:31:29]process_action close_receipt done [18:31:29]requested_data is exist [18:31:29]produce_requested_data [18:31:29]requested_item fm.sn is exist - process it [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 11 00 00 [18:31:29]Write to MH i2c: E2 08 00 6F 1F 80 11 00 00 00 00 00 00 08 [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 17 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 17 00 6F 1F 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:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:31:29]wFMCommunicate OK [18:31:29]requested_item fd.num is exist - process it [18:31:29]SAM_PROTO_GetFieldsCounters [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 00 00 [18:31:29]Write to MH i2c: E2 08 00 70 1F 80 13 00 00 00 00 00 00 0B [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 62 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 62 00 70 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 FA 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:31: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 FA 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetFieldsCounters done [18:31:29]requested_item shift.num is exist - process it [18:31:29]requested_item shift.opened is exist - process it [18:31:29]req_shift_opened [18:31:29]FM_GetShiftState [18:31:29]SAM_PROTO_GetShiftState [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 13 01 00 [18:31:29]Write to MH i2c: E2 08 00 71 1F 80 13 01 00 00 00 00 00 0D [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 0E 00 71 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B8 [18:31:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_GetShiftState done [18:31:29]FM_GetShiftState done [18:31:29]req_shift_opened done [18:31:29]requested_item shift.open_date is exist - process it [18:31:29]req_shift_open_date [18:31:29]req_shift_open_date done [18:31:29]produce_requested_data done [18:31:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67322,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:31:29]process_action_free close_receipt [18:31:29]json_value_free [18:31:29]json_value_free done [18:31:29]process_json_proto returns [18:31:29]Send response to host [18:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67322,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:31:29]free response buf [18:31:29]execute_script done [18:31:29]execute_script returns [18:31:29]free content buf [18:31:29]Sock 7.Close socket [18:31:29]Sock 7.Thread stoped [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:45]accept exits with 9 [18:31:45]New connection [18:31:45]New thread 3067030884 created [18:31:45]Thread 3067174244 joined [18:31:45]Waiting for new connection... [18:31:45] Sock 9.Parse request [18:31:45]Sock 9.Check first char [18:31:45]Sock 9.First char is OK [18:31:45]request: POST /json_proto HTTP/1.0 [18:31:45]Method: POST [18:31:45]URL: /json_proto [18:31:45]Method is POST - this is cgi request [18:31:45]url: /json_proto [18:31:45]query_string will be loaded in cgi processing [18:31:45]execute_cgi json_proto POST (null) [18:31:45]execute_cgi path=json_proto method=POST [18:31:45]POST find Content-Length [18:31:45]Host: 172.17.41.195:8080 [18:31:45]Content-Length: 1217 [18:31:45]Content-Type: application/json [18:31:45] [18:31:45]POST finish read [18:31:45]Found Content-Length = 1217 [18:31: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)507304\u000A15.05.2024 18: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 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\u000A3779885\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]execute_script... [18:31: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)507304\u000A15.05.2024 18: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 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\u000A3779885\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]POST & json_proto [18:31:45]process_json_proto [18:31:45]json parsed OK: [18:31:45]protocol is kg_v1.0 [18:31:45]action value=print_text [18:31:45]process_action print_text [18:31:45]cmd_print_text [18:31:45]ExternCall_PrintAddStr [18:31:45]wPrintStart [18:31:45]Write to MH i2c: 01 00 00 72 1F 91 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 FF 0F A6 [18:31:45]RasterBufferAndPrint [18:31:45]line *****ТОВАРНЫЙ ЧЕК***** [18:31:45]line АЗС-91 [18:31:45]line Партнер нефть [18:31:45]line 02508201610067 [18:31:45]line Кассир : Арстанбеков Н. [18:31:45]line Счет N : (1)507304 [18:31:45]line 15.05.2024 18:14 [18:31:45]line ПРОДАЖА [18:31:45]line ТРК (МРК, ГНК): 11 [18:31:45]line Вид ГСМ : 2710194210 [18:31:45]line ДТ-К-5 [18:31:45]line 20.000 x 74.70 [18:31:45]line ИТОГ: 1494.00 [18:31:45]line Тип оплаты: Талоны: Топливные Талоны [18:31:45]line 3779885 [18:31:45]line ______________________ [18:31:45]line (подпись) [18:31:45]written 0, free lines is 4095 [18:31:45]Write to MH i2c: 01 00 00 86 1F A5 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 86 1F 00 00 00 00 00 0E 0E C8 [18:31:45]RasterBufferAndPrint [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]written 0, free lines is 3599 [18:31:45]MH_Cut [18:31:45]Write to MH i2c: D1 01 00 8D 1F 01 7E [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 8D 1F 00 7D [18:31:45]Write to MH i2c: 01 00 00 8E 1F AD [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** Cut start [18:31:45]*** Purtial cut [18:31:45]*** CUTSNS_PIN = 0 [18:31:46]*** Stage 1: CUTSNS_PIN = 1 [18:31:47]Read from MH i2c: 01 [18:31:47]MH_I2C_Read... [18:31:47]*** Stop cut motor [18:31:47]*** Cut end [18:31:47]Read from MH i2c: 01 07 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 8E 1F 00 00 00 00 00 FF 0F C2 [18:31:47]process_action print_text done [18:31:47]requested_data is exist [18:31:47]produce_requested_data [18:31:47]requested_item fm.sn is exist - process it [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 11 00 00 [18:31:47]Write to MH i2c: E2 08 00 8F 1F 80 11 00 00 00 00 00 00 28 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 17 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 17 00 8F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [18:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:31:48]wFMCommunicate OK [18:31:48]requested_item fd.num is exist - process it [18:31:48]SAM_PROTO_GetFieldsCounters [18:31:48]wFMCommunicate request_size=4 [18:31:48]MH_SAM_APDU [18:31:48]CAPDU: 80 13 00 00 [18:31:48]Write to MH i2c: E2 08 00 90 1F 80 13 00 00 00 00 00 00 2B [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 62 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 62 00 90 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 FA 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [18:31: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 FA 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:48]wFMCommunicate OK [18:31:48]SAM_PROTO_GetFieldsCounters done [18:31:48]requested_item shift.num is exist - process it [18:31:48]requested_item shift.opened is exist - process it [18:31:48]req_shift_opened [18:31:48]FM_GetShiftState [18:31:48]SAM_PROTO_GetShiftState [18:31:48]wFMCommunicate request_size=4 [18:31:48]MH_SAM_APDU [18:31:48]CAPDU: 80 13 01 00 [18:31:48]Write to MH i2c: E2 08 00 91 1F 80 13 01 00 00 00 00 00 2D [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 91 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [18:31:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:31:48]wFMCommunicate OK [18:31:48]SAM_PROTO_GetShiftState done [18:31:48]FM_GetShiftState done [18:31:48]req_shift_opened done [18:31:48]requested_item shift.open_date is exist - process it [18:31:48]req_shift_open_date [18:31:48]req_shift_open_date done [18:31:48]produce_requested_data done [18:31:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67322,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:31:48]process_action_free print_text [18:31:48]json_value_free [18:31:48]json_value_free done [18:31:48]process_json_proto returns [18:31:48]Send response to host [18:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67322,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:31:48]free response buf [18:31:48]execute_script done [18:31:48]execute_script returns [18:31:48]free content buf [18:31:48]Sock 9.Close socket [18:31:48]Sock 9.Thread stoped [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:16]accept exits with 7 [18:32:16]New connection [18:32:16]New thread 3067174244 created [18:32:16]Thread 3067030884 joined [18:32:16]Waiting for new connection... [18:32:16] Sock 7.Parse request [18:32:16]Sock 7.Check first char [18:32:16]Sock 7.First char is OK [18:32:16]request: POST /json_proto HTTP/1.0 [18:32:16]Method: POST [18:32:16]URL: /json_proto [18:32:16]Method is POST - this is cgi request [18:32:16]url: /json_proto [18:32:16]query_string will be loaded in cgi processing [18:32:16]execute_cgi json_proto POST (null) [18:32:16]execute_cgi path=json_proto method=POST [18:32:16]POST find Content-Length [18:32:16]Host: 172.17.41.195:8080 [18:32:16]Content-Length: 677 [18:32:16]Content-Type: application/json [18:32:16] [18:32:16]POST finish read [18:32:16]Found Content-Length = 677 [18:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507306", "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:32:16]execute_script... [18:32: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)507306", "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:32:16]POST & json_proto [18:32:16]process_json_proto [18:32:16]json parsed OK: [18:32:16]protocol is kg_v1.0 [18:32:16]action value=close_receipt [18:32:16]process_action close_receipt [18:32:16]cmd_close_receipt [18:32:16]MH_GetDate [18:32:16]Write to MH i2c: F0 00 00 92 1F A0 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: F0 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: F0 09 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: F0 09 00 92 1F 00 B2 FF 44 66 FC 21 6F 64 F4 [18:32:16]GetLastDocTimeStamp 1715797888 [18:32:16]current date 1715797938 [18:32:16]FM_GetShiftState [18:32:16]SAM_PROTO_GetShiftState [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 13 01 00 [18:32:16]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0E 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DA [18:32:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:32:16]wFMCommunicate OK [18:32:16]SAM_PROTO_GetShiftState done [18:32:16]FM_GetShiftState done [18:32:16]opened in 1715732471 [18:32:16]opened+sec_in_day 1715818871 [18:32:16]quantity*price = 50033 [18:32:16]sum+1 = 50034 [18:32:16]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 СНО: Общий режим Чек 141 15.05.2024 18:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67323 ФПД: 191630387589069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183218&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67323&fm=191630387589069&tin=02508201610067®Number=0000000000091845&sum=50000 [18:32:17]StoreToDocumentArchive [18:32:17]shift 356 fd 67323 [18:32:17]save to /storage/0356/doc_00067323 [18:32:17]save last doc name /storage/0356/doc_00067323 to /storage/kkm_last_doc_name [18:32:17]save OK [18:32:17]Clear old archive folders... [18:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:17]tlvbuf is 00B27910 [18:32:17]SAM_PROTO_ClearQueue [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 09 00 00 [18:32:17]Write to MH i2c: E2 08 00 A0 1F 80 09 00 00 00 00 00 00 31 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]SAM_PROTO_ClearQueue done [18:32:17]KKMCreateOFDPacket [18:32:17]OFDProtocolAddRootSTLVToBuf [18:32:17]FM_MakeSignedData [18:32:17]FM_MakeSignedData [18:32:17]SAM_PROTO_SignData [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 01 02 [18:32:17]Write to MH i2c: E2 08 00 A1 1F 80 0D 01 02 00 00 00 00 39 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=255 [18:32:17]MH_SAM_APDU [18:32: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 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 8D 00 00 00 F4 03 04 00 B2 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE [18:32:17]Write to MH i2c: E2 02 01 A2 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 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 8D 00 00 00 F4 03 04 00 B2 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 00 00 C1 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=10 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 02 02 05 49 6D 2E 2F CD [18:32:17]Write to MH i2c: E2 0D 00 A3 1F 80 0D 02 02 05 00 49 6D 2E 2F CD 00 00 26 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 03 02 [18:32:17]Write to MH i2c: E2 08 00 A4 1F 80 0D 03 02 00 00 00 00 3E [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 0B 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 0B 00 A4 1F 00 31 8C D4 FD 1E CC 80 36 90 00 6D [18:32:17]RAPDU: 31 8C D4 FD 1E CC 80 36 90 00 [18:32:17]wFMCommunicate OK [18:32:17]SAM_PROTO_SignData done [18:32:17]FM_MakeSignedData done [18:32:17]CreateOFDProtocolMessage [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 11 00 00 [18:32:17]Write to MH i2c: E2 08 00 A5 1F 80 11 00 00 00 00 00 00 3E [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 17 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 17 00 A5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [18:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:32:17]wFMCommunicate OK [18:32:17]CreateOFDProtocolMessage done [18:32:17]OFDSenderStorePacket 67323 [18:32:17]StoreOFDPacket docnum=67323 [18:32: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 0F 01 00 00 AD D1 07 01 49 79 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 8D 00 00 00 F4 03 04 00 B2 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 49 6D 2E 2F CD 31 8C D4 FD 1E CC 80 36 [18:32:17]CheckFolder [18:32:17]dirname=/storage/ofd_packets [18:32:17]CheckFolder done [18:32:17]ProducePacketName [18:32:17]name=ofd_packets/00067323 [18:32:17]NVStorageSaveData ofd_packets/00067323 [18:32:17]File name is /storage/ofd_packets/00067323 [18:32:17]Write 301 bytes [18:32:17]NVStorageSaveData done [18:32:17]OFDSenderStorePacket done [18:32:17]KKMCreateOFDPacket done [18:32:17]NVStorageSaveData kkm_last_timestamp [18:32:17]File name is /storage/kkm_last_timestamp [18:32:17]Write 4 bytes [18:32:17]NVStorageSaveData done [18:32:17]ExternCall_PrintAddStr [18:32:17]wPrintStart [18:32:17]Write to MH i2c: 01 00 00 A6 1F C5 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 A6 1F 00 00 00 00 00 FF 0F DA [18:32:17]RasterBufferAndPrint [18:32:17]line Счет N : (1)507306 [18:32:17]line ИНН: 02508201610067 [18:32:17]line Контрольно-Кассовый Чек [18:32:17]line ПРОДАЖА [18:32:17]line ТРК (МРК, ГНК) : 43 [18:32:17]line Товар: 2710124130 [18:32:17]line Аи-92-К-5 [18:32:17]line 7.490 * 66.80 [18:32:17]line = 500.33 [18:32:17]line НДС 12% НСП 1% [18:32:17]line > о реализуемом товаре [18:32:17]line ОКРУГЛЕНИЕ: -0.33 [18:32:17]line ИТОГО: 500.00 [18:32:17]line Внесено: 500.00 [18:32:17]line СДАЧА: 0.00 [18:32:17]line НСП 1% : 4.43 [18:32:17]line НДС 12% : 53.13 [18:32:17]line Наличными: 500.00 [18:32:17]line Безнал.: 0.00 [18:32:17]line Место: АЗС № 91 "Партнер Нефть" [18:32:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:32:17]line СНО: Общий режим [18:32:17]line Чек 141 15.05.2024 18:32 [18:32:17]line Смена: 356 ФФД: 1.0 [18:32:17]line ЗНМ: 0300000119 [18:32:17]line РНМ: 0000000000091845 [18:32:17]line Версия ККМ: 001 [18:32:17]line ФМ: 0000000000871829 [18:32:17]line ФД: 67323 [18:32:17]line ФПД: 191630387589069 [18:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183218&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67323&fm=191630387589069&tin=02508201610067®Number=0000000000091845&sum=50000 [18:32:18]written 0, free lines is 4095 [18:32:18]OFD Sender: Processing packet 67323 [packets to send 35, broken 34] [18:32:18]ProducePacketName [18:32:18]name=ofd_packets/00067323 [18:32:18]OFD Sender: To server: pG, [18:32:18]CommunicateWithHost lk.salyk.kg:30040 [18:32:18]ConnectInit lk.salyk.kg [18:32:18]Connected sock=10 [18:32: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 AD D1 07 01 49 79 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 8D 00 00 00 F4 03 04 00 B2 FF 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AE 49 6D 2E 2F CD 31 8C D4 FD 1E CC 80 36 [18:32: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 F8 FA 47 00 62 C7 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 06 01 00 F4 03 04 00 8E A7 44 66 B6 04 01 00 00 F5 9C 3C 40 7F EF 06 B3 [18:32:18]CommunicateWithHost err = 0 [18:32:18]CheckOFDResponse [18:32:18]1017 (14) - 77093643461234 [18:32:18]1041 (16) - 0000000000871829 [18:32:18]1040 (4) - 67323 [18:32:18]1012 (4) - 15.05.2024 12:16 [18:32:18]1206 (1) - 0 [18:32:18]OFD Sender: Remove packet 67323 [18:32:18]ProducePacketName [18:32:18]name=ofd_packets/00067323 [18:32:18]NVStorageDeleteData [18:32:18]Write to MH i2c: 01 00 00 D0 1F EF [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 07 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 CD 0C CF [18:32:18]RasterBufferAndPrint [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]written 0, free lines is 3283 [18:32:18]MH_Cut [18:32:18]Write to MH i2c: D1 01 00 D7 1F 01 C8 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: D1 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: D1 01 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: D1 01 00 D7 1F 00 C7 [18:32:18]Write to MH i2c: 01 00 00 D8 1F F7 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:19]OFD Sender: No OFD packet to send [18:32:19]*** Cut start [18:32:19]*** Purtial cut [18:32:19]*** Stage 1: CUTSNS_PIN = 1 [18:32:19]Read from MH i2c: 01 [18:32:19]MH_I2C_Read... [18:32:19]*** Stop cut motor [18:32:19]*** Cut end [18:32:19]Read from MH i2c: 01 07 00 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [18:32:19]process_action close_receipt done [18:32:19]requested_data is exist [18:32:19]produce_requested_data [18:32:19]requested_item fm.sn is exist - process it [18:32:19]wFMCommunicate request_size=4 [18:32:19]MH_SAM_APDU [18:32:19]CAPDU: 80 11 00 00 [18:32:19]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [18:32:19]Write i2c OK [18:32:19]MH_I2C_Read... [18:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:19]Read from MH i2c: E2 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 17 00 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [18:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:32:19]wFMCommunicate OK [18:32:19]requested_item fd.num is exist - process it [18:32:19]SAM_PROTO_GetFieldsCounters [18:32:19]wFMCommunicate request_size=4 [18:32:19]MH_SAM_APDU [18:32:19]CAPDU: 80 13 00 00 [18:32:19]Write to MH i2c: E2 08 00 DA 1F 80 13 00 00 00 00 00 00 75 [18:32:19]Write i2c OK [18:32:19]MH_I2C_Read... [18:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:20]Read from MH i2c: E2 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 62 00 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 62 00 DA 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 FB 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [18:32: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 FB 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:20]wFMCommunicate OK [18:32:20]SAM_PROTO_GetFieldsCounters done [18:32:20]requested_item shift.num is exist - process it [18:32:20]requested_item shift.opened is exist - process it [18:32:20]req_shift_opened [18:32:20]FM_GetShiftState [18:32:20]SAM_PROTO_GetShiftState [18:32:20]wFMCommunicate request_size=4 [18:32:20]MH_SAM_APDU [18:32:20]CAPDU: 80 13 01 00 [18:32:20]Write to MH i2c: E2 08 00 DB 1F 80 13 01 00 00 00 00 00 77 [18:32:20]Write i2c OK [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 [18:32:20]MH_I2C_Read... [18:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:20]Read from MH i2c: E2 0E 00 [18:32:20]MH_I2C_Read... [18:32:20]Read from MH i2c: E2 0E 00 DB 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 22 [18:32:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:32:20]wFMCommunicate OK [18:32:20]SAM_PROTO_GetShiftState done [18:32:20]FM_GetShiftState done [18:32:20]req_shift_opened done [18:32:20]requested_item shift.open_date is exist - process it [18:32:20]req_shift_open_date [18:32:20]req_shift_open_date done [18:32:20]produce_requested_data done [18:32:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67323,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:32:20]process_action_free close_receipt [18:32:20]json_value_free [18:32:20]json_value_free done [18:32:20]process_json_proto returns [18:32:20]Send response to host [18:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67323,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:32:20]free response buf [18:32:20]execute_script done [18:32:20]execute_script returns [18:32:20]free content buf [18:32:20]Sock 7.Close socket [18:32:20]Sock 7.Thread stoped [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:22]accept exits with 9 [18:35:22]New connection [18:35:22]New thread 3067030884 created [18:35:22]Thread 3067174244 joined [18:35:22]Waiting for new connection... [18:35:22] Sock 9.Parse request [18:35:22]Sock 9.Check first char [18:35:22]Sock 9.First char is OK [18:35:22]request: POST /json_proto HTTP/1.0 [18:35:22]Method: POST [18:35:22]URL: /json_proto [18:35:22]Method is POST - this is cgi request [18:35:22]url: /json_proto [18:35:22]query_string will be loaded in cgi processing [18:35:22]execute_cgi json_proto POST (null) [18:35:22]execute_cgi path=json_proto method=POST [18:35:22]POST find Content-Length [18:35:22]Host: 172.17.41.195:8080 [18:35:22]Content-Length: 679 [18:35:22]Content-Type: application/json [18:35:22] [18:35:22]POST finish read [18:35:22]Found Content-Length = 679 [18:35:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507307", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:22]execute_script... [18:35: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)507307", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:22]POST & json_proto [18:35:22]process_json_proto [18:35:22]json parsed OK: [18:35:22]protocol is kg_v1.0 [18:35:22]action value=close_receipt [18:35:22]process_action close_receipt [18:35:22]cmd_close_receipt [18:35:22]MH_GetDate [18:35:22]Write to MH i2c: F0 00 00 DC 1F EA [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: F0 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: F0 09 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: F0 09 00 DC 1F 00 6C 00 45 66 FC 21 6F 64 FA [18:35:22]GetLastDocTimeStamp 1715797938 [18:35:22]current date 1715798124 [18:35:22]FM_GetShiftState [18:35:22]SAM_PROTO_GetShiftState [18:35:22]wFMCommunicate request_size=4 [18:35:22]MH_SAM_APDU [18:35:22]CAPDU: 80 13 01 00 [18:35:22]Write to MH i2c: E2 08 00 DD 1F 80 13 01 00 00 00 00 00 79 [18:35:22]Write i2c OK [18:35:22]MH_I2C_Read... [18:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:22]Read from MH i2c: E2 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 0E 00 [18:35:22]MH_I2C_Read... [18:35:22]Read from MH i2c: E2 0E 00 DD 1F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 24 [18:35:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:35:22]wFMCommunicate OK [18:35:22]SAM_PROTO_GetShiftState done [18:35:22]FM_GetShiftState done [18:35:22]opened in 1715732471 [18:35:22]opened+sec_in_day 1715818871 [18:35:22]quantity*price = 150072 [18:35:22]sum+1 = 150073 [18:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 142 15.05.2024 18:35 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67324 ФПД: 266383232343296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183524&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67324&fm=266383232343296&tin=02508201610067®Number=0000000000091845&sum=150000 [18:35:23]StoreToDocumentArchive [18:35:23]shift 356 fd 67324 [18:35:23]save to /storage/0356/doc_00067324 [18:35:23]save last doc name /storage/0356/doc_00067324 to /storage/kkm_last_doc_name [18:35:23]save OK [18:35:23]Clear old archive folders... [18:35:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:23]tlvbuf is 00B0FAF0 [18:35:23]SAM_PROTO_ClearQueue [18:35:23]wFMCommunicate request_size=4 [18:35:23]MH_SAM_APDU [18:35:23]CAPDU: 80 09 00 00 [18:35:23]Write to MH i2c: E2 08 00 EA 1F 80 09 00 00 00 00 00 00 7B [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 [18:35:23]MH_I2C_Read... [18:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:23]Read from MH i2c: E2 03 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 EA 1F 00 90 00 7D [18:35:23]RAPDU: 90 00 [18:35:23]wFMCommunicate OK [18:35:23]SAM_PROTO_ClearQueue done [18:35:23]KKMCreateOFDPacket [18:35:23]OFDProtocolAddRootSTLVToBuf [18:35:23]FM_MakeSignedData [18:35:23]FM_MakeSignedData [18:35:23]SAM_PROTO_SignData [18:35:23]wFMCommunicate request_size=4 [18:35:23]MH_SAM_APDU [18:35:23]CAPDU: 80 0D 01 02 [18:35:23]Write to MH i2c: E2 08 00 EB 1F 80 0D 01 02 00 00 00 00 83 [18:35:23]Write i2c OK [18:35:23]MH_I2C_Read... [18:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:23]Read from MH i2c: E2 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 [18:35:23]MH_I2C_Read... [18:35:23]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [18:35:23]RAPDU: 90 00 [18:35:23]wFMCommunicate OK [18:35:23]wFMCommunicate request_size=255 [18:35:23]MH_SAM_APDU [18:35:23]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6C 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 46 2D F0 [18:35:24]Write to MH i2c: E2 02 01 EC 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6C 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 46 2D F0 00 00 08 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:24]Read from MH i2c: E2 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 03 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [18:35:24]RAPDU: 90 00 [18:35:24]wFMCommunicate OK [18:35:24]wFMCommunicate request_size=7 [18:35:24]MH_SAM_APDU [18:35:24]CAPDU: 80 0D 02 02 02 1D 00 [18:35:24]Write to MH i2c: E2 0A 00 ED 1F 80 0D 02 02 02 00 1D 00 00 00 A7 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:24]Read from MH i2c: E2 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 03 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [18:35:24]RAPDU: 90 00 [18:35:24]wFMCommunicate OK [18:35:24]wFMCommunicate request_size=4 [18:35:24]MH_SAM_APDU [18:35:24]CAPDU: 80 0D 03 02 [18:35:24]Write to MH i2c: E2 08 00 EE 1F 80 0D 03 02 00 00 00 00 88 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]OFD Sender: No OFD packet to send [18:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:24]Read from MH i2c: E2 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 0B 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 0B 00 EE 1F 00 FE 0D E0 A1 C6 27 63 29 90 00 8E [18:35:24]RAPDU: FE 0D E0 A1 C6 27 63 29 90 00 [18:35:24]wFMCommunicate OK [18:35:24]SAM_PROTO_SignData done [18:35:24]FM_MakeSignedData done [18:35:24]CreateOFDProtocolMessage [18:35:24]wFMCommunicate request_size=4 [18:35:24]MH_SAM_APDU [18:35:24]CAPDU: 80 11 00 00 [18:35:24]Write to MH i2c: E2 08 00 EF 1F 80 11 00 00 00 00 00 00 88 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:24]Read from MH i2c: E2 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 17 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 17 00 EF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [18:35:24]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:24]wFMCommunicate OK [18:35:24]CreateOFDProtocolMessage done [18:35:24]OFDSenderStorePacket 67324 [18:35:24]StoreOFDPacket docnum=67324 [18:35:24]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 B8 70 04 01 5F 65 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6C 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 46 2D F0 1D 00 FE 0D E0 A1 C6 27 63 29 [18:35:24]CheckFolder [18:35:24]dirname=/storage/ofd_packets [18:35:24]CheckFolder done [18:35:24]ProducePacketName [18:35:24]name=ofd_packets/00067324 [18:35:24]NVStorageSaveData ofd_packets/00067324 [18:35:24]File name is /storage/ofd_packets/00067324 [18:35:24]Write 298 bytes [18:35:24]NVStorageSaveData done [18:35:24]OFDSenderStorePacket done [18:35:24]KKMCreateOFDPacket done [18:35:24]NVStorageSaveData kkm_last_timestamp [18:35:24]File name is /storage/kkm_last_timestamp [18:35:24]Write 4 bytes [18:35:24]NVStorageSaveData done [18:35:24]ExternCall_PrintAddStr [18:35:24]wPrintStart [18:35:24]Write to MH i2c: 01 00 00 F0 1F 0F [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 07 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 FF 0F 24 [18:35:24]RasterBufferAndPrint [18:35:24]line Счет N : (1)507307 [18:35:24]line ИНН: 02508201610067 [18:35:24]line Контрольно-Кассовый Чек [18:35:24]line ПРОДАЖА [18:35:24]line ТРК (МРК, ГНК) : 41 [18:35:24]line Товар: 2710194210 [18:35:24]line ДТ-К-5 [18:35:24]line 20.090 * 74.70 [18:35:24]line = 1500.72 [18:35:24]line НДС 12% НСП 1% [18:35:24]line > о реализуемом товаре [18:35:24]line ОКРУГЛЕНИЕ: -0.72 [18:35:24]line ИТОГО: 1500.00 [18:35:24]line Внесено: 1500.00 [18:35:24]line СДАЧА: 0.00 [18:35:24]line НСП 1% : 13.28 [18:35:24]line НДС 12% : 159.37 [18:35:24]line Наличными: 1500.00 [18:35:24]line Безнал.: 0.00 [18:35:24]line Место: АЗС № 91 "Партнер Нефть" [18:35:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:35:24]line СНО: Общий режим [18:35:24]line Чек 142 15.05.2024 18:35 [18:35:24]line Смена: 356 ФФД: 1.0 [18:35:24]line ЗНМ: 0300000119 [18:35:24]line РНМ: 0000000000091845 [18:35:24]line Версия ККМ: 001 [18:35:24]line ФМ: 0000000000871829 [18:35:24]line ФД: 67324 [18:35:24]line ФПД: 266383232343296 [18:35:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183524&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67324&fm=266383232343296&tin=02508201610067®Number=0000000000091845&sum=150000 [18:35:24]OFD Sender: Processing packet 67324 [packets to send 35, broken 34] [18:35:24]ProducePacketName [18:35:24]name=ofd_packets/00067324 [18:35:24]OFD Sender: To server: pG, [18:35:24]CommunicateWithHost lk.salyk.kg:30040 [18:35:24]ConnectInit lk.salyk.kg [18:35:24]written 0, free lines is 4095 [18:35:24]Connected sock=10 [18:35:24]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 B8 70 04 01 5F 65 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6C 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 46 2D F0 1D 00 FE 0D E0 A1 C6 27 63 29 [18:35: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 2B F8 47 00 CE B1 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 06 01 00 F4 03 04 00 49 A8 44 66 B6 04 01 00 00 2E 6E 77 6B D8 BB EA A9 [18:35:25]CommunicateWithHost err = 0 [18:35:25]CheckOFDResponse [18:35:25]1017 (14) - 77093643461234 [18:35:25]1041 (16) - 0000000000871829 [18:35:25]1040 (4) - 67324 [18:35:25]1012 (4) - 15.05.2024 12:19 [18:35:25]1206 (1) - 0 [18:35:25]OFD Sender: Remove packet 67324 [18:35:25]ProducePacketName [18:35:25]name=ofd_packets/00067324 [18:35:25]NVStorageDeleteData [18:35:25]Write to MH i2c: 01 00 00 1A 20 3A [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: 01 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: 01 07 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: 01 07 00 1A 20 00 00 00 00 00 CE 0C 1B [18:35:25]RasterBufferAndPrint [18:35:25]line [18:35:25]line [18:35:25]line [18:35:25]line [18:35:25]line [18:35:25]written 0, free lines is 3284 [18:35:25]MH_Cut [18:35:25]Write to MH i2c: D1 01 00 21 20 01 13 [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: D1 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: D1 01 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: D1 01 00 21 20 00 12 [18:35:25]Write to MH i2c: 01 00 00 22 20 42 [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]OFD Sender: No OFD packet to send [18:35:25]*** Cut start [18:35:25]*** Purtial cut [18:35:25]*** CUTSNS_PIN = 0 [18:35:26]*** Stage 1: CUTSNS_PIN = 1 [18:35:27]Read from MH i2c: 01 [18:35:28]MH_I2C_Read... [18:35:28]*** Stop cut motor [18:35:28]*** Cut end [18:35:28]Read from MH i2c: 01 07 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 22 20 00 00 00 00 00 FF 0F 57 [18:35:28]process_action close_receipt done [18:35:28]requested_data is exist [18:35:28]produce_requested_data [18:35:28]requested_item fm.sn is exist - process it [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 11 00 00 [18:35:28]Write to MH i2c: E2 08 00 23 20 80 11 00 00 00 00 00 00 BD [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 23 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [18:35: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:35:28]wFMCommunicate OK [18:35:28]requested_item fd.num is exist - process it [18:35:28]SAM_PROTO_GetFieldsCounters [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 13 00 00 [18:35:28]Write to MH i2c: E2 08 00 24 20 80 13 00 00 00 00 00 00 C0 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 62 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 62 00 24 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 FC 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [18:35:28]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 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:28]wFMCommunicate OK [18:35:28]SAM_PROTO_GetFieldsCounters done [18:35:28]requested_item shift.num is exist - process it [18:35:28]requested_item shift.opened is exist - process it [18:35:28]req_shift_opened [18:35:28]FM_GetShiftState [18:35:28]SAM_PROTO_GetShiftState [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 13 01 00 [18:35:28]Write to MH i2c: E2 08 00 25 20 80 13 01 00 00 00 00 00 C2 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0E 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0E 00 25 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6D [18:35:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:35:28]wFMCommunicate OK [18:35:28]SAM_PROTO_GetShiftState done [18:35:28]FM_GetShiftState done [18:35:28]req_shift_opened done [18:35:28]requested_item shift.open_date is exist - process it [18:35:28]req_shift_open_date [18:35:28]req_shift_open_date done [18:35:28]produce_requested_data done [18:35:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67324,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:35:28]process_action_free close_receipt [18:35:28]json_value_free [18:35:28]json_value_free done [18:35:28]process_json_proto returns [18:35:28]Send response to host [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:04]accept exits with 7 [18:36:04]New connection [18:36:04]New thread 3067174244 created [18:36:04]Thread 3067030884 joined [18:36:04]Waiting for new connection... [18:36:04] Sock 7.Parse request [18:36:04]Sock 7.Check first char [18:36:04]Sock 7.First char is OK [18:36:04]request: POST /json_proto HTTP/1.0 [18:36:04]Method: POST [18:36:04]URL: /json_proto [18:36:04]Method is POST - this is cgi request [18:36:04]url: /json_proto [18:36:04]query_string will be loaded in cgi processing [18:36:04]execute_cgi json_proto POST (null) [18:36:04]execute_cgi path=json_proto method=POST [18:36:04]POST find Content-Length [18:36:04]Host: 172.17.41.195:8080 [18:36:04]Content-Length: 678 [18:36:04]Content-Type: application/json [18:36:04] [18:36:04]POST finish read [18:36:04]Found Content-Length = 678 [18:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507308", "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 }]} ], "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" ] } } [18:36:04]execute_script... [18:36: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)507308", "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 }]} ], "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" ] } } [18:36:04]POST & json_proto [18:36:04]process_json_proto [18:36:04]json parsed OK: [18:36:04]protocol is kg_v1.0 [18:36:04]action value=close_receipt [18:36:04]process_action close_receipt [18:36:04]cmd_close_receipt [18:36:04]MH_GetDate [18:36:04]Write to MH i2c: F0 00 00 26 20 35 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: F0 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: F0 09 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: F0 09 00 26 20 00 96 00 45 66 FC 21 6F 64 6F [18:36:04]GetLastDocTimeStamp 1715798124 [18:36:04]current date 1715798166 [18:36:04]FM_GetShiftState [18:36:04]SAM_PROTO_GetShiftState [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 13 01 00 [18:36:04]Write to MH i2c: E2 08 00 27 20 80 13 01 00 00 00 00 00 C4 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0E 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0E 00 27 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6F [18:36:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:36:04]wFMCommunicate OK [18:36:04]SAM_PROTO_GetShiftState done [18:36:04]FM_GetShiftState done [18:36:04]opened in 1715732471 [18:36:04]opened+sec_in_day 1715818871 [18:36:04]quantity*price = 70006 [18:36:04]sum+1 = 70007 [18:36:04]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 СНО: Общий режим Чек 143 15.05.2024 18:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67325 ФПД: 181396084843309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183606&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67325&fm=181396084843309&tin=02508201610067®Number=0000000000091845&sum=70000 [18:36:05]StoreToDocumentArchive [18:36:05]shift 356 fd 67325 [18:36:05]save to /storage/0356/doc_00067325 [18:36:05]save last doc name /storage/0356/doc_00067325 to /storage/kkm_last_doc_name [18:36:05]save OK [18:36:05]Clear old archive folders... [18:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:05]tlvbuf is 00BB2CE0 [18:36:05]SAM_PROTO_ClearQueue [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 09 00 00 [18:36:05]Write to MH i2c: E2 08 00 34 20 80 09 00 00 00 00 00 00 C6 [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:05]Read from MH i2c: E2 03 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 34 20 00 90 00 C8 [18:36:05]RAPDU: 90 00 [18:36:05]wFMCommunicate OK [18:36:05]SAM_PROTO_ClearQueue done [18:36:05]KKMCreateOFDPacket [18:36:05]OFDProtocolAddRootSTLVToBuf [18:36:05]FM_MakeSignedData [18:36:05]FM_MakeSignedData [18:36:05]SAM_PROTO_SignData [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 0D 01 02 [18:36:05]Write to MH i2c: E2 08 00 35 20 80 0D 01 02 00 00 00 00 CE [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [18:36:05]RAPDU: 90 00 [18:36:05]wFMCommunicate OK [18:36:05]wFMCommunicate request_size=255 [18:36:05]MH_SAM_APDU [18:36:05]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 8F 00 00 00 F4 03 04 00 96 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A4 [18:36:05]Write to MH i2c: E2 02 01 36 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 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 8F 00 00 00 F4 03 04 00 96 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A4 00 00 24 [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 03 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [18:36:06]RAPDU: 90 00 [18:36:06]wFMCommunicate OK [18:36:06]wFMCommunicate request_size=10 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 0D 02 02 05 FA 91 33 63 2D [18:36:06]Write to MH i2c: E2 0D 00 37 20 80 0D 02 02 05 00 FA 91 33 63 2D 00 00 29 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 03 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [18:36:06]RAPDU: 90 00 [18:36:06]wFMCommunicate OK [18:36:06]wFMCommunicate request_size=4 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 0D 03 02 [18:36:06]Write to MH i2c: E2 08 00 38 20 80 0D 03 02 00 00 00 00 D3 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 0B 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 0B 00 38 20 00 C0 2D 77 D0 C4 1A 28 4E 90 00 5C [18:36:06]RAPDU: C0 2D 77 D0 C4 1A 28 4E 90 00 [18:36:06]wFMCommunicate OK [18:36:06]SAM_PROTO_SignData done [18:36:06]FM_MakeSignedData done [18:36:06]CreateOFDProtocolMessage [18:36:06]wFMCommunicate request_size=4 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 11 00 00 [18:36:06]Write to MH i2c: E2 08 00 39 20 80 11 00 00 00 00 00 00 D3 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 17 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 17 00 39 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [18:36: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:36:06]wFMCommunicate OK [18:36:06]CreateOFDProtocolMessage done [18:36:06]OFDSenderStorePacket 67325 [18:36:06]StoreOFDPacket docnum=67325 [18:36: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 0F 01 00 00 90 2A 07 01 64 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 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 8F 00 00 00 F4 03 04 00 96 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A4 FA 91 33 63 2D C0 2D 77 D0 C4 1A 28 4E [18:36:06]CheckFolder [18:36:06]dirname=/storage/ofd_packets [18:36:06]CheckFolder done [18:36:06]ProducePacketName [18:36:06]name=ofd_packets/00067325 [18:36:06]NVStorageSaveData ofd_packets/00067325 [18:36:06]File name is /storage/ofd_packets/00067325 [18:36:06]Write 301 bytes [18:36:06]NVStorageSaveData done [18:36:06]OFDSenderStorePacket done [18:36:06]KKMCreateOFDPacket done [18:36:06]NVStorageSaveData kkm_last_timestamp [18:36:06]File name is /storage/kkm_last_timestamp [18:36:06]Write 4 bytes [18:36:06]NVStorageSaveData done [18:36:06]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:06]ProducePacketName [18:36:06]name=ofd_packets/00067325 [18:36:06]OFD Sender: To server: pG, [18:36:06]CommunicateWithHost lk.salyk.kg:30040 [18:36:06]ConnectInit lk.salyk.kg [18:36:06]ExternCall_PrintAddStr [18:36:06]wPrintStart [18:36:06]Write to MH i2c: 01 00 00 3A 20 5A [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 3A 20 00 00 00 00 00 FF 0F 6F [18:36:06]RasterBufferAndPrint [18:36:06]line Счет N : (1)507308 [18:36:06]line ИНН: 02508201610067 [18:36:06]line Контрольно-Кассовый Чек [18:36:06]line ПРОДАЖА [18:36:06]line ТРК (МРК, ГНК) : 13 [18:36:06]line Товар: 2710124130 [18:36:06]line Аи-92-К-5 [18:36:06]line 10.480 * 66.80 [18:36:06]line = 700.06 [18:36:06]line НДС 12% НСП 1% [18:36:06]line > о реализуемом товаре [18:36:06]line ОКРУГЛЕНИЕ: -0.06 [18:36:06]line ИТОГО: 700.00 [18:36:06]line Внесено: 700.00 [18:36:06]line СДАЧА: 0.00 [18:36:06]line НСП 1% : 6.19 [18:36:06]line НДС 12% : 74.34 [18:36:06]line Наличными: 700.00 [18:36:06]line Безнал.: 0.00 [18:36:06]line Место: АЗС № 91 "Партнер Нефть" [18:36:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:36:06]line СНО: Общий режим [18:36:06]line Чек 143 15.05.2024 18:36 [18:36:06]line Смена: 356 ФФД: 1.0 [18:36:06]line ЗНМ: 0300000119 [18:36:06]line РНМ: 0000000000091845 [18:36:06]line Версия ККМ: 001 [18:36:06]line ФМ: 0000000000871829 [18:36:06]line ФД: 67325 [18:36:06]line ФПД: 181396084843309 [18:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T183606&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67325&fm=181396084843309&tin=02508201610067®Number=0000000000091845&sum=70000 [18:36:06]written 0, free lines is 4095 [18:36:06]Write to MH i2c: 01 00 00 64 20 84 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 CB 0C 62 [18:36:06]RasterBufferAndPrint [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]written 0, free lines is 3281 [18:36:07]MH_Cut [18:36:07]Write to MH i2c: D1 01 00 6B 20 01 5D [18:36:07]Write i2c OK [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: D1 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: D1 01 00 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: D1 01 00 6B 20 00 5C [18:36:07]Write to MH i2c: 01 00 00 6C 20 8C [18:36:07]Write i2c OK [18:36:07]MH_I2C_Read... [18:36:07]*** Cut start [18:36:07]*** Purtial cut [18:36:07]*** Stage 1: CUTSNS_PIN = 1 [18:36:08]Read from MH i2c: 01 [18:36:08]MH_I2C_Read... [18:36:08]*** Stop cut motor [18:36:08]*** Cut end [18:36:08]Read from MH i2c: 01 07 00 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: 01 07 00 6C 20 00 00 00 00 00 FF 0F A1 [18:36:08]process_action close_receipt done [18:36:08]requested_data is exist [18:36:08]produce_requested_data [18:36:08]requested_item fm.sn is exist - process it [18:36:08]wFMCommunicate request_size=4 [18:36:08]MH_SAM_APDU [18:36:08]CAPDU: 80 11 00 00 [18:36:08]Write to MH i2c: E2 08 00 6D 20 80 11 00 00 00 00 00 00 07 [18:36:08]Write i2c OK [18:36:08]MH_I2C_Read... [18:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:08]Read from MH i2c: E2 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 17 00 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 17 00 6D 20 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:36:08]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:08]wFMCommunicate OK [18:36:08]requested_item fd.num is exist - process it [18:36:08]SAM_PROTO_GetFieldsCounters [18:36:08]wFMCommunicate request_size=4 [18:36:08]MH_SAM_APDU [18:36:08]CAPDU: 80 13 00 00 [18:36:08]Write to MH i2c: E2 08 00 6E 20 80 13 00 00 00 00 00 00 0A [18:36:08]Write i2c OK [18:36:08]MH_I2C_Read... [18:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:08]Read from MH i2c: E2 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 62 00 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 62 00 6E 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 FD 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:36: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 FD 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:08]wFMCommunicate OK [18:36:08]SAM_PROTO_GetFieldsCounters done [18:36:08]requested_item shift.num is exist - process it [18:36:08]requested_item shift.opened is exist - process it [18:36:08]req_shift_opened [18:36:08]FM_GetShiftState [18:36:08]SAM_PROTO_GetShiftState [18:36:08]wFMCommunicate request_size=4 [18:36:08]MH_SAM_APDU [18:36:08]CAPDU: 80 13 01 00 [18:36:08]Write to MH i2c: E2 08 00 6F 20 80 13 01 00 00 00 00 00 0C [18:36:08]Write i2c OK [18:36:08]MH_I2C_Read... [18:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:08]Read from MH i2c: E2 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 0E 00 [18:36:08]MH_I2C_Read... [18:36:08]Read from MH i2c: E2 0E 00 6F 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B7 [18:36:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:36:08]wFMCommunicate OK [18:36:08]SAM_PROTO_GetShiftState done [18:36:08]FM_GetShiftState done [18:36:08]req_shift_opened done [18:36:08]requested_item shift.open_date is exist - process it [18:36:08]req_shift_open_date [18:36:08]req_shift_open_date done [18:36:08]produce_requested_data done [18:36:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67325,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:36:08]process_action_free close_receipt [18:36:08]json_value_free [18:36:08]json_value_free done [18:36:08]process_json_proto returns [18:36:08]Send response to host [18:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67325,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:36:08]free response buf [18:36:08]execute_script done [18:36:08]execute_script returns [18:36:08]free content buf [18:36:08]Sock 7.Close socket [18:36:08]Sock 7.Thread stoped [18:36:11]ConnectInit Can't take IP for lk.salyk.kg [18:36:11]CommunicateWithHost connect error [18:36:11]CommunicateWithHost err = -1 [18:36:11]OFD Sender: Server communicate error [18:36:16]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:16]ProducePacketName [18:36:16]name=ofd_packets/00067325 [18:36:16]OFD Sender: To server: pG, [18:36:16]CommunicateWithHost lk.salyk.kg:30040 [18:36:16]ConnectInit lk.salyk.kg [18:36:21]ConnectInit Can't take IP for lk.salyk.kg [18:36:21]CommunicateWithHost connect error [18:36:21]CommunicateWithHost err = -1 [18:36:21]OFD Sender: Server communicate error [18:36:26]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:26]ProducePacketName [18:36:26]name=ofd_packets/00067325 [18:36:26]OFD Sender: To server: pG, [18:36:26]CommunicateWithHost lk.salyk.kg:30040 [18:36:26]ConnectInit lk.salyk.kg [18:36:31]ConnectInit Can't take IP for lk.salyk.kg [18:36:31]CommunicateWithHost connect error [18:36:31]CommunicateWithHost err = -1 [18:36:31]OFD Sender: Server communicate error [18:36:36]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:36]ProducePacketName [18:36:36]name=ofd_packets/00067325 [18:36:36]OFD Sender: To server: pG, [18:36:36]CommunicateWithHost lk.salyk.kg:30040 [18:36:36]ConnectInit lk.salyk.kg [18:36:41]ConnectInit Can't take IP for lk.salyk.kg [18:36:41]CommunicateWithHost connect error [18:36:41]CommunicateWithHost err = -1 [18:36:41]OFD Sender: Server communicate error [18:36:46]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:46]ProducePacketName [18:36:46]name=ofd_packets/00067325 [18:36:46]OFD Sender: To server: pG, [18:36:46]CommunicateWithHost lk.salyk.kg:30040 [18:36:46]ConnectInit lk.salyk.kg [18:36:51]ConnectInit Can't take IP for lk.salyk.kg [18:36:51]CommunicateWithHost connect error [18:36:51]CommunicateWithHost err = -1 [18:36:51]OFD Sender: Server communicate error [18:36:56]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:36:56]ProducePacketName [18:36:56]name=ofd_packets/00067325 [18:36:56]OFD Sender: To server: pG, [18:36:56]CommunicateWithHost lk.salyk.kg:30040 [18:36:56]ConnectInit lk.salyk.kg [18:37:01]ConnectInit Can't take IP for lk.salyk.kg [18:37:01]CommunicateWithHost connect error [18:37:01]CommunicateWithHost err = -1 [18:37:01]OFD Sender: Server communicate error [18:37:06]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:06]ProducePacketName [18:37:06]name=ofd_packets/00067325 [18:37:06]OFD Sender: To server: pG, [18:37:06]CommunicateWithHost lk.salyk.kg:30040 [18:37:06]ConnectInit lk.salyk.kg [18:37:11]ConnectInit Can't take IP for lk.salyk.kg [18:37:11]CommunicateWithHost connect error [18:37:11]CommunicateWithHost err = -1 [18:37:11]OFD Sender: Server communicate error [18:37:16]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:16]ProducePacketName [18:37:16]name=ofd_packets/00067325 [18:37:16]OFD Sender: To server: pG, [18:37:16]CommunicateWithHost lk.salyk.kg:30040 [18:37:16]ConnectInit lk.salyk.kg [18:37:21]ConnectInit Can't take IP for lk.salyk.kg [18:37:21]CommunicateWithHost connect error [18:37:21]CommunicateWithHost err = -1 [18:37:21]OFD Sender: Server communicate error [18:37:26]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:26]ProducePacketName [18:37:26]name=ofd_packets/00067325 [18:37:26]OFD Sender: To server: pG, [18:37:26]CommunicateWithHost lk.salyk.kg:30040 [18:37:26]ConnectInit lk.salyk.kg [18:37:31]ConnectInit Can't take IP for lk.salyk.kg [18:37:31]CommunicateWithHost connect error [18:37:31]CommunicateWithHost err = -1 [18:37:31]OFD Sender: Server communicate error [18:37:36]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:36]ProducePacketName [18:37:36]name=ofd_packets/00067325 [18:37:36]OFD Sender: To server: pG, [18:37:36]CommunicateWithHost lk.salyk.kg:30040 [18:37:36]ConnectInit lk.salyk.kg [18:37:41]ConnectInit Can't take IP for lk.salyk.kg [18:37:41]CommunicateWithHost connect error [18:37:41]CommunicateWithHost err = -1 [18:37:41]OFD Sender: Server communicate error [18:37:46]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:46]ProducePacketName [18:37:46]name=ofd_packets/00067325 [18:37:46]OFD Sender: To server: pG, [18:37:46]CommunicateWithHost lk.salyk.kg:30040 [18:37:46]ConnectInit lk.salyk.kg [18:37:51]ConnectInit Can't take IP for lk.salyk.kg [18:37:51]CommunicateWithHost connect error [18:37:51]CommunicateWithHost err = -1 [18:37:51]OFD Sender: Server communicate error [18:37:52]ConnectInit Can't connect to host [18:37:56]OFD Sender: Processing packet 67325 [packets to send 35, broken 34] [18:37:56]ProducePacketName [18:37:56]name=ofd_packets/00067325 [18:37:56]OFD Sender: To server: pG, [18:37:56]CommunicateWithHost lk.salyk.kg:30040 [18:37:56]ConnectInit lk.salyk.kg [18:37:56]Connected sock=7 [18:37: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 90 2A 07 01 64 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 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 8F 00 00 00 F4 03 04 00 96 00 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A4 FA 91 33 63 2D C0 2D 77 D0 C4 1A 28 4E [18:37: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 19 12 47 00 5C 25 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 06 01 00 F4 03 04 00 E1 A8 44 66 B6 04 01 00 00 C3 65 C5 1D B9 BF 2E D9 [18:37:56]CommunicateWithHost err = 0 [18:37:56]CheckOFDResponse [18:37:56]1017 (14) - 77093643461234 [18:37:56]1041 (16) - 0000000000871829 [18:37:56]1040 (4) - 67325 [18:37:56]1012 (4) - 15.05.2024 12:21 [18:37:56]1206 (1) - 0 [18:37:56]OFD Sender: Remove packet 67325 [18:37:56]ProducePacketName [18:37:56]name=ofd_packets/00067325 [18:37:56]NVStorageDeleteData [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]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:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]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:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:50:58]accept exits with 10 [18:50:58]New connection [18:50:58]New thread 3067030884 created [18:50:58]Thread 3067174244 joined [18:50:58]Waiting for new connection... [18:50:58] Sock 10.Parse request [18:50:58]Sock 10.Check first char [18:50:58]Sock 10.First char is OK [18:50:58]request: POST /json_proto HTTP/1.0 [18:50:58]Method: POST [18:50:58]URL: /json_proto [18:50:58]Method is POST - this is cgi request [18:50:58]url: /json_proto [18:50:58]query_string will be loaded in cgi processing [18:50:58]execute_cgi json_proto POST (null) [18:50:58]execute_cgi path=json_proto method=POST [18:50:58]POST find Content-Length [18:50:58]Host: 172.17.41.195:8080 [18:50:58]Content-Length: 1217 [18:50:58]Content-Type: application/json [18:50:58] [18:50:58]POST finish read [18:50:58]Found Content-Length = 1217 [18:50: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)507309\u000A15.05.2024 18:33\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3470086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:58]execute_script... [18:50: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)507309\u000A15.05.2024 18:33\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3470086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:58]POST & json_proto [18:50:58]process_json_proto [18:50:58]json parsed OK: [18:50:58]protocol is kg_v1.0 [18:50:58]action value=print_text [18:50:58]process_action print_text [18:50:58]cmd_print_text [18:50:58]ExternCall_PrintAddStr [18:50:58]wPrintStart [18:50:58]Write to MH i2c: 01 00 00 70 20 90 [18:50:58]Write i2c OK [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 07 00 [18:50:58]MH_I2C_Read... [18:50:58]Read from MH i2c: 01 07 00 70 20 00 00 00 00 00 FF 0F A5 [18:50:58]RasterBufferAndPrint [18:50:58]line *****ТОВАРНЫЙ ЧЕК***** [18:50:58]line АЗС-91 [18:50:58]line Партнер нефть [18:50:58]line 02508201610067 [18:50:58]line Кассир : Арстанбеков Н. [18:50:58]line Счет N : (1)507309 [18:50:58]line 15.05.2024 18:33 [18:50:58]line ПРОДАЖА [18:50:58]line ТРК (МРК, ГНК): 11 [18:50:58]line Вид ГСМ : 2710194210 [18:50:58]line ДТ-К-5 [18:50:58]line 50.000 x 74.70 [18:50:58]line ИТОГ: 3735.00 [18:50:58]line Тип оплаты: Талоны: Топливные Талоны [18:50:58]line 3470086 [18:50:58]line ______________________ [18:50:58]line (подпись) [18:50:58]written 0, free lines is 4095 [18:50:59]Write to MH i2c: 01 00 00 84 20 A4 [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 0F 0E C8 [18:50:59]RasterBufferAndPrint [18:50:59]line [18:50:59]line [18:50:59]line [18:50:59]line [18:50:59]line [18:50:59]written 0, free lines is 3600 [18:50:59]MH_Cut [18:50:59]Write to MH i2c: D1 01 00 8B 20 01 7D [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: D1 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: D1 01 00 [18:50:59]MH_I2C_Read... [18:50:59]Read from MH i2c: D1 01 00 8B 20 00 7C [18:50:59]Write to MH i2c: 01 00 00 8C 20 AC [18:50:59]Write i2c OK [18:50:59]MH_I2C_Read... [18:50:59]*** Cut start [18:50:59]*** Purtial cut [18:50:59]*** CUTSNS_PIN = 0 [18:50:59]*** Stage 1: CUTSNS_PIN = 1 [18:51:01]Read from MH i2c: 01 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: 01 07 00 [18:51:01]MH_I2C_Read... [18:51:01]*** Stop cut motor [18:51:01]*** Cut end [18:51:01]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 FF 0F C1 [18:51:01]process_action print_text done [18:51:01]requested_data is exist [18:51:01]produce_requested_data [18:51:01]requested_item fm.sn is exist - process it [18:51:01]wFMCommunicate request_size=4 [18:51:01]MH_SAM_APDU [18:51:01]CAPDU: 80 11 00 00 [18:51:01]Write to MH i2c: E2 08 00 8D 20 80 11 00 00 00 00 00 00 27 [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 17 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 17 00 8D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [18:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:51:01]wFMCommunicate OK [18:51:01]requested_item fd.num is exist - process it [18:51:01]SAM_PROTO_GetFieldsCounters [18:51:01]wFMCommunicate request_size=4 [18:51:01]MH_SAM_APDU [18:51:01]CAPDU: 80 13 00 00 [18:51:01]Write to MH i2c: E2 08 00 8E 20 80 13 00 00 00 00 00 00 2A [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 62 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 62 00 8E 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 FD 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:51: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 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:01]wFMCommunicate OK [18:51:01]SAM_PROTO_GetFieldsCounters done [18:51:01]requested_item shift.num is exist - process it [18:51:01]requested_item shift.opened is exist - process it [18:51:01]req_shift_opened [18:51:01]FM_GetShiftState [18:51:01]SAM_PROTO_GetShiftState [18:51:01]wFMCommunicate request_size=4 [18:51:01]MH_SAM_APDU [18:51:01]CAPDU: 80 13 01 00 [18:51:01]Write to MH i2c: E2 08 00 8F 20 80 13 01 00 00 00 00 00 2C [18:51:01]Write i2c OK [18:51:01]MH_I2C_Read... [18:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:01]Read from MH i2c: E2 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 0E 00 [18:51:01]MH_I2C_Read... [18:51:01]Read from MH i2c: E2 0E 00 8F 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D7 [18:51:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:51:01]wFMCommunicate OK [18:51:01]SAM_PROTO_GetShiftState done [18:51:01]FM_GetShiftState done [18:51:01]req_shift_opened done [18:51:01]requested_item shift.open_date is exist - process it [18:51:01]req_shift_open_date [18:51:01]req_shift_open_date done [18:51:01]produce_requested_data done [18:51:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67325,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:51:01]process_action_free print_text [18:51:01]json_value_free [18:51:01]json_value_free done [18:51:01]process_json_proto returns [18:51:01]Send response to host [18:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67325,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:51:01]free response buf [18:51:01]execute_script done [18:51:01]execute_script returns [18:51:01]free content buf [18:51:01]Sock 10.Close socket [18:51:01]Sock 10.Thread stoped [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:14]accept exits with 7 [18:52:14]New connection [18:52:14]New thread 3067174244 created [18:52:14]Thread 3067030884 joined [18:52:14]Waiting for new connection... [18:52:14] Sock 7.Parse request [18:52:14]Sock 7.Check first char [18:52:14]Sock 7.First char is OK [18:52:14]request: POST /json_proto HTTP/1.0 [18:52:14]Method: POST [18:52:14]URL: /json_proto [18:52:14]Method is POST - this is cgi request [18:52:14]url: /json_proto [18:52:14]query_string will be loaded in cgi processing [18:52:14]execute_cgi json_proto POST (null) [18:52:14]execute_cgi path=json_proto method=POST [18:52:14]POST find Content-Length [18:52:14]Host: 172.17.41.195:8080 [18:52:14]Content-Length: 677 [18:52:14]Content-Type: application/json [18:52:14] [18:52:14]POST finish read [18:52:14]Found Content-Length = 677 [18:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507310", "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" : 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" ] } } [18:52:14]execute_script... [18:52: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)507310", "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" : 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" ] } } [18:52:14]POST & json_proto [18:52:14]process_json_proto [18:52:14]json parsed OK: [18:52:14]protocol is kg_v1.0 [18:52:14]action value=close_receipt [18:52:14]process_action close_receipt [18:52:14]cmd_close_receipt [18:52:14]MH_GetDate [18:52:14]Write to MH i2c: F0 00 00 90 20 9F [18:52:14]Write i2c OK [18:52:14]MH_I2C_Read... [18:52:14]Read from MH i2c: F0 [18:52:14]MH_I2C_Read... [18:52:14]Read from MH i2c: F0 09 00 [18:52:14]MH_I2C_Read... [18:52:14]Read from MH i2c: F0 09 00 90 20 00 60 04 45 66 FC 21 6F 64 A7 [18:52:14]GetLastDocTimeStamp 1715798166 [18:52:14]current date 1715799136 [18:52:14]FM_GetShiftState [18:52:14]SAM_PROTO_GetShiftState [18:52:14]wFMCommunicate request_size=4 [18:52:14]MH_SAM_APDU [18:52:14]CAPDU: 80 13 01 00 [18:52:14]Write to MH i2c: E2 08 00 91 20 80 13 01 00 00 00 00 00 2E [18:52:14]Write i2c OK [18:52:14]MH_I2C_Read... [18:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:14]Read from MH i2c: E2 [18:52:14]MH_I2C_Read... [18:52:14]Read from MH i2c: E2 0E 00 [18:52:14]MH_I2C_Read... [18:52:14]Read from MH i2c: E2 0E 00 91 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D9 [18:52:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:52:14]wFMCommunicate OK [18:52:14]SAM_PROTO_GetShiftState done [18:52:14]FM_GetShiftState done [18:52:14]opened in 1715732471 [18:52:14]opened+sec_in_day 1715818871 [18:52:14]quantity*price = 40013 [18:52:14]sum+1 = 40014 [18:52:14]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 СНО: Общий режим Чек 144 15.05.2024 18:52 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67326 ФПД: 77250922781667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67326&fm=77250922781667&tin=02508201610067®Number=0000000000091845&sum=40000 [18:52:15]StoreToDocumentArchive [18:52:15]shift 356 fd 67326 [18:52:15]save to /storage/0356/doc_00067326 [18:52:15]save last doc name /storage/0356/doc_00067326 to /storage/kkm_last_doc_name [18:52:15]save OK [18:52:15]Clear old archive folders... [18:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:15]tlvbuf is 00B5C9F0 [18:52:15]SAM_PROTO_ClearQueue [18:52:15]wFMCommunicate request_size=4 [18:52:15]MH_SAM_APDU [18:52:15]CAPDU: 80 09 00 00 [18:52:15]Write to MH i2c: E2 08 00 9E 20 80 09 00 00 00 00 00 00 30 [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [18:52:15]RAPDU: 90 00 [18:52:15]wFMCommunicate OK [18:52:15]SAM_PROTO_ClearQueue done [18:52:15]KKMCreateOFDPacket [18:52:15]OFDProtocolAddRootSTLVToBuf [18:52:15]FM_MakeSignedData [18:52:15]FM_MakeSignedData [18:52:15]SAM_PROTO_SignData [18:52:15]wFMCommunicate request_size=4 [18:52:15]MH_SAM_APDU [18:52:15]CAPDU: 80 0D 01 02 [18:52:15]Write to MH i2c: E2 08 00 9F 20 80 0D 01 02 00 00 00 00 38 [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [18:52:15]RAPDU: 90 00 [18:52:15]wFMCommunicate OK [18:52:15]wFMCommunicate request_size=255 [18:52:15]MH_SAM_APDU [18:52: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 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 90 00 00 00 F4 03 04 00 60 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 46 [18:52:15]Write to MH i2c: E2 02 01 A0 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 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 90 00 00 00 F4 03 04 00 60 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 46 00 00 F2 [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [18:52:15]RAPDU: 90 00 [18:52:15]wFMCommunicate OK [18:52:15]wFMCommunicate request_size=10 [18:52:15]MH_SAM_APDU [18:52:15]CAPDU: 80 0D 02 02 05 42 61 CF 9B E3 [18:52:15]Write to MH i2c: E2 0D 00 A1 20 80 0D 02 02 05 00 42 61 CF 9B E3 00 00 35 [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [18:52:15]RAPDU: 90 00 [18:52:15]wFMCommunicate OK [18:52:15]wFMCommunicate request_size=4 [18:52:15]MH_SAM_APDU [18:52:15]CAPDU: 80 0D 03 02 [18:52:15]Write to MH i2c: E2 08 00 A2 20 80 0D 03 02 00 00 00 00 3D [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 0B 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 0B 00 A2 20 00 06 9B 73 45 C9 C0 28 13 90 00 5B [18:52:15]RAPDU: 06 9B 73 45 C9 C0 28 13 90 00 [18:52:15]wFMCommunicate OK [18:52:15]SAM_PROTO_SignData done [18:52:15]FM_MakeSignedData done [18:52:15]CreateOFDProtocolMessage [18:52:15]wFMCommunicate request_size=4 [18:52:15]MH_SAM_APDU [18:52:15]CAPDU: 80 11 00 00 [18:52:15]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:15]Read from MH i2c: E2 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 17 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: E2 17 00 A3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [18:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:52:15]wFMCommunicate OK [18:52:15]CreateOFDProtocolMessage done [18:52:15]OFDSenderStorePacket 67326 [18:52:15]StoreOFDPacket docnum=67326 [18:52: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 D9 78 07 01 E7 65 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 90 00 00 00 F4 03 04 00 60 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 46 42 61 CF 9B E3 06 9B 73 45 C9 C0 28 13 [18:52:15]CheckFolder [18:52:15]dirname=/storage/ofd_packets [18:52:15]CheckFolder done [18:52:15]ProducePacketName [18:52:15]name=ofd_packets/00067326 [18:52:15]NVStorageSaveData ofd_packets/00067326 [18:52:15]File name is /storage/ofd_packets/00067326 [18:52:15]Write 301 bytes [18:52:15]NVStorageSaveData done [18:52:15]OFDSenderStorePacket done [18:52:15]KKMCreateOFDPacket done [18:52:15]NVStorageSaveData kkm_last_timestamp [18:52:15]File name is /storage/kkm_last_timestamp [18:52:15]Write 4 bytes [18:52:15]NVStorageSaveData done [18:52:15]OFD Sender: Processing packet 67326 [packets to send 35, broken 34] [18:52:15]ProducePacketName [18:52:15]name=ofd_packets/00067326 [18:52:15]OFD Sender: To server: pG, [18:52:15]CommunicateWithHost lk.salyk.kg:30040 [18:52:15]ConnectInit lk.salyk.kg [18:52:15]ExternCall_PrintAddStr [18:52:15]wPrintStart [18:52:15]Write to MH i2c: 01 00 00 A4 20 C4 [18:52:15]Write i2c OK [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: 01 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: 01 07 00 [18:52:15]MH_I2C_Read... [18:52:15]Read from MH i2c: 01 07 00 A4 20 00 00 00 00 00 FF 0F D9 [18:52:15]RasterBufferAndPrint [18:52:15]line Счет N : (1)507310 [18:52:15]line ИНН: 02508201610067 [18:52:15]line Контрольно-Кассовый Чек [18:52:15]line ПРОДАЖА [18:52:15]line ТРК (МРК, ГНК) : 33 [18:52:15]line Товар: 2710124130 [18:52:15]line Аи-92-К-5 [18:52:15]line 5.990 * 66.80 [18:52:15]line = 400.13 [18:52:15]line НДС 12% НСП 1% [18:52:15]line > о реализуемом товаре [18:52:15]line ОКРУГЛЕНИЕ: -0.13 [18:52:15]line ИТОГО: 400.00 [18:52:15]line Внесено: 400.00 [18:52:15]line СДАЧА: 0.00 [18:52:15]line НСП 1% : 3.54 [18:52:15]line НДС 12% : 42.49 [18:52:15]line Наличными: 400.00 [18:52:15]line Безнал.: 0.00 [18:52:15]line Место: АЗС № 91 "Партнер Нефть" [18:52:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:52:15]line СНО: Общий режим [18:52:15]line Чек 144 15.05.2024 18:52 [18:52:15]line Смена: 356 ФФД: 1.0 [18:52:15]line ЗНМ: 0300000119 [18:52:15]line РНМ: 0000000000091845 [18:52:15]line Версия ККМ: 001 [18:52:15]line ФМ: 0000000000871829 [18:52:15]line ФД: 67326 [18:52:15]line ФПД: 77250922781667 [18:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67326&fm=77250922781667&tin=02508201610067®Number=0000000000091845&sum=40000 [18:52:16]Connected sock=11 [18:52: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 0F 01 00 00 D9 78 07 01 E7 65 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 90 00 00 00 F4 03 04 00 60 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 46 42 61 CF 9B E3 06 9B 73 45 C9 C0 28 13 [18:52:16]written 0, free lines is 4095 [18:52: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 1C B2 47 00 BD EF 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 06 01 00 F4 03 04 00 3C AC 44 66 B6 04 01 00 00 01 BA DB CC 72 A7 01 A3 [18:52:16]CommunicateWithHost err = 0 [18:52:16]CheckOFDResponse [18:52:16]1017 (14) - 77093643461234 [18:52:16]1041 (16) - 0000000000871829 [18:52:16]1040 (4) - 67326 [18:52:16]1012 (4) - 15.05.2024 12:36 [18:52:16]1206 (1) - 0 [18:52:16]OFD Sender: Remove packet 67326 [18:52:16]ProducePacketName [18:52:16]name=ofd_packets/00067326 [18:52:16]NVStorageDeleteData [18:52:16]Write to MH i2c: 01 00 00 CE 20 EE [18:52:16]Write i2c OK [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: 01 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: 01 07 00 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 C8 0C C9 [18:52:16]RasterBufferAndPrint [18:52:16]line [18:52:16]line [18:52:16]line [18:52:16]line [18:52:16]line [18:52:16]written 0, free lines is 3278 [18:52:16]MH_Cut [18:52:16]Write to MH i2c: D1 01 00 D5 20 01 C7 [18:52:16]Write i2c OK [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: D1 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: D1 01 00 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: D1 01 00 D5 20 00 C6 [18:52:16]Write to MH i2c: 01 00 00 D6 20 F6 [18:52:16]Write i2c OK [18:52:16]MH_I2C_Read... [18:52:16]OFD Sender: No OFD packet to send [18:52:17]*** Cut start [18:52:17]*** Purtial cut [18:52:17]*** Stage 1: CUTSNS_PIN = 1 [18:52:17]Read from MH i2c: 01 [18:52:17]MH_I2C_Read... [18:52:17]*** Stop cut motor [18:52:17]*** Cut end [18:52:17]Read from MH i2c: 01 07 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: 01 07 00 D6 20 00 00 00 00 00 FF 0F 0B [18:52:17]process_action close_receipt done [18:52:17]requested_data is exist [18:52:17]produce_requested_data [18:52:17]requested_item fm.sn is exist - process it [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 11 00 00 [18:52:17]Write to MH i2c: E2 08 00 D7 20 80 11 00 00 00 00 00 00 71 [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 17 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 17 00 D7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [18:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:52:17]wFMCommunicate OK [18:52:17]requested_item fd.num is exist - process it [18:52:17]SAM_PROTO_GetFieldsCounters [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 13 00 00 [18:52:17]Write to MH i2c: E2 08 00 D8 20 80 13 00 00 00 00 00 00 74 [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 62 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 62 00 D8 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 FE 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:52: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 FE 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:17]wFMCommunicate OK [18:52:17]SAM_PROTO_GetFieldsCounters done [18:52:17]requested_item shift.num is exist - process it [18:52:17]requested_item shift.opened is exist - process it [18:52:17]req_shift_opened [18:52:17]FM_GetShiftState [18:52:17]SAM_PROTO_GetShiftState [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 13 01 00 [18:52:17]Write to MH i2c: E2 08 00 D9 20 80 13 01 00 00 00 00 00 76 [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 0E 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 0E 00 D9 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 21 [18:52:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:52:17]wFMCommunicate OK [18:52:17]SAM_PROTO_GetShiftState done [18:52:17]FM_GetShiftState done [18:52:17]req_shift_opened done [18:52:17]requested_item shift.open_date is exist - process it [18:52:17]req_shift_open_date [18:52:17]req_shift_open_date done [18:52:17]produce_requested_data done [18:52:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67326,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:52:17]process_action_free close_receipt [18:52:17]json_value_free [18:52:17]json_value_free done [18:52:17]process_json_proto returns [18:52:17]Send response to host [18:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67326,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:52:17]free response buf [18:52:17]execute_script done [18:52:17]execute_script returns [18:52:17]free content buf [18:52:17]Sock 7.Close socket [18:52:17]Sock 7.Thread stoped [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:47]accept exits with 9 [18:52:47]New connection [18:52:47]New thread 3067030884 created [18:52:47]Thread 3067174244 joined [18:52:47]Waiting for new connection... [18:52:47] Sock 9.Parse request [18:52:47]Sock 9.Check first char [18:52:47]Sock 9.First char is OK [18:52:47]request: POST /json_proto HTTP/1.0 [18:52:47]Method: POST [18:52:47]URL: /json_proto [18:52:47]Method is POST - this is cgi request [18:52:47]url: /json_proto [18:52:47]query_string will be loaded in cgi processing [18:52:47]execute_cgi json_proto POST (null) [18:52:47]execute_cgi path=json_proto method=POST [18:52:47]POST find Content-Length [18:52:47]Host: 172.17.41.195:8080 [18:52:47]Content-Length: 654 [18:52:47]Content-Type: application/json [18:52:47] [18:52:47]POST finish read [18:52:47]Found Content-Length = 654 [18:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12078", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:47]execute_script... [18:52: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 : (3)12078", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:47]POST & json_proto [18:52:47]process_json_proto [18:52:47]json parsed OK: [18:52:47]protocol is kg_v1.0 [18:52:47]action value=close_receipt [18:52:47]process_action close_receipt [18:52:47]cmd_close_receipt [18:52:47]MH_GetDate [18:52:47]Write to MH i2c: F0 00 00 DA 20 E9 [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 09 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 09 00 DA 20 00 81 04 45 66 FC 21 6F 64 12 [18:52:47]GetLastDocTimeStamp 1715799136 [18:52:47]current date 1715799169 [18:52:47]FM_GetShiftState [18:52:47]SAM_PROTO_GetShiftState [18:52:47]wFMCommunicate request_size=4 [18:52:47]MH_SAM_APDU [18:52:47]CAPDU: 80 13 01 00 [18:52:47]Write to MH i2c: E2 08 00 DB 20 80 13 01 00 00 00 00 00 78 [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:47]Read from MH i2c: E2 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 DB 20 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 23 [18:52:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:52:47]wFMCommunicate OK [18:52:47]SAM_PROTO_GetShiftState done [18:52:47]FM_GetShiftState done [18:52:47]opened in 1715732471 [18:52:47]opened+sec_in_day 1715818871 [18:52:47]quantity*price = 9900 [18:52:47]sum+1 = 9901 [18:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 145 15.05.2024 18:52 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67327 ФПД: 17772488506660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67327&fm=17772488506660&tin=02508201610067®Number=0000000000091845&sum=9900 0 [18:52:48]StoreToDocumentArchive [18:52:48]shift 356 fd 67327 [18:52:48]save to /storage/0356/doc_00067327 [18:52:48]save last doc name /storage/0356/doc_00067327 to /storage/kkm_last_doc_name [18:52:48]save OK [18:52:48]Clear old archive folders... [18:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:52:48]tlvbuf is 00B3A730 [18:52:48]SAM_PROTO_ClearQueue [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 09 00 00 [18:52:48]Write to MH i2c: E2 08 00 E8 20 80 09 00 00 00 00 00 00 7A [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]SAM_PROTO_ClearQueue done [18:52:48]KKMCreateOFDPacket [18:52:48]OFDProtocolAddRootSTLVToBuf [18:52:48]FM_MakeSignedData [18:52:48]FM_MakeSignedData [18:52:48]SAM_PROTO_SignData [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 01 02 [18:52:48]Write to MH i2c: E2 08 00 E9 20 80 0D 01 02 00 00 00 00 82 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]wFMCommunicate request_size=255 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 81 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 [18:52:48]Write to MH i2c: E2 02 01 EA 20 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 81 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 00 00 62 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]wFMCommunicate request_size=37 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 06 01 00 35 04 06 00 10 29 FA DD 3D 24 [18:52:48]Write to MH i2c: E2 28 00 EB 20 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 06 01 00 35 04 06 00 10 29 FA DD 3D 24 00 00 56 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 03 02 [18:52:48]Write to MH i2c: E2 08 00 EC 20 80 0D 03 02 00 00 00 00 87 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 0B 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 0B 00 EC 20 00 F3 31 EE B3 BE 73 DE E4 90 00 40 [18:52:48]RAPDU: F3 31 EE B3 BE 73 DE E4 90 00 [18:52:48]wFMCommunicate OK [18:52:48]SAM_PROTO_SignData done [18:52:48]FM_MakeSignedData done [18:52:48]CreateOFDProtocolMessage [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 11 00 00 [18:52:48]Write to MH i2c: E2 08 00 ED 20 80 11 00 00 00 00 00 00 87 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 17 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 17 00 ED 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [18:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:52:48]wFMCommunicate OK [18:52:48]CreateOFDProtocolMessage done [18:52:48]OFDSenderStorePacket 67327 [18:52:48]StoreOFDPacket docnum=67327 [18:52: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 2A 01 00 00 30 74 22 01 33 4B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 81 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 10 29 FA DD 3D 24 F3 31 EE B3 BE 73 DE E4 [18:52:48]CheckFolder [18:52:48]dirname=/storage/ofd_packets [18:52:48]CheckFolder done [18:52:48]ProducePacketName [18:52:48]name=ofd_packets/00067327 [18:52:48]NVStorageSaveData ofd_packets/00067327 [18:52:48]File name is /storage/ofd_packets/00067327 [18:52:48]Write 328 bytes [18:52:48]NVStorageSaveData done [18:52:48]OFDSenderStorePacket done [18:52:48]KKMCreateOFDPacket done [18:52:48]NVStorageSaveData kkm_last_timestamp [18:52:48]File name is /storage/kkm_last_timestamp [18:52:48]Write 4 bytes [18:52:48]NVStorageSaveData done [18:52:48]ExternCall_PrintAddStr [18:52:48]wPrintStart [18:52:48]Write to MH i2c: 01 00 00 EE 20 0E [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: 01 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: 01 07 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 FF 0F 23 [18:52:48]RasterBufferAndPrint [18:52:48]line Счет N : (3)12078 [18:52:48]line ИНН: 02508201610067 [18:52:48]line Контрольно-Кассовый Чек [18:52:48]line ПРОДАЖА [18:52:48]line Товар: 5449000054227 [18:52:48]line Напиток Кока-Кола 1л [18:52:48]line 1.000 * 99.00 [18:52:48]line = 99.00 [18:52:48]line НДС 12% НСП 1% [18:52:48]line > о реализуемом товаре [18:52:48]line ИТОГО: 99.00 [18:52:48]line НСП 1% : 0.88 [18:52:48]line НДС 12% : 10.51 [18:52:48]line Наличными: 99.00 [18:52:48]line Безнал.: 0.00 [18:52:48]line Место: АЗС № 91 "Партнер Нефть" [18:52:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:52:48]line СНО: Общий режим [18:52:48]line Чек 145 15.05.2024 18:52 [18:52:48]line Смена: 356 ФФД: 1.0 [18:52:48]line ЗНМ: 0300000119 [18:52:48]line РНМ: 0000000000091845 [18:52:48]line Версия ККМ: 001 [18:52:48]line ФМ: 0000000000871829 [18:52:48]line ФД: 67327 [18:52:48]line ФПД: 17772488506660 [18:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67327&fm=17772488506660&tin=02508201610067®Number=0000000000091845&sum=9900 [18:52:49]line 0 [18:52:49]OFD Sender: Processing packet 67327 [packets to send 35, broken 34] [18:52:49]ProducePacketName [18:52:49]name=ofd_packets/00067327 [18:52:49]OFD Sender: To server: pG, [18:52:49]CommunicateWithHost lk.salyk.kg:30040 [18:52:49]ConnectInit lk.salyk.kg [18:52:49]written 0, free lines is 4095 [18:52:49]Connected sock=10 [18:52: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 2A 01 00 00 30 74 22 01 33 4B 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 81 04 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 10 29 FA DD 3D 24 F3 31 EE B3 BE 73 DE E4 [18:52: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 04 2B 47 00 32 2C 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 06 01 00 F4 03 04 00 5D AC 44 66 B6 04 01 00 00 84 24 12 77 1D BC 04 4F [18:52:49]CommunicateWithHost err = 0 [18:52:49]CheckOFDResponse [18:52:49]1017 (14) - 77093643461234 [18:52:49]1041 (16) - 0000000000871829 [18:52:49]1040 (4) - 67327 [18:52:49]1012 (4) - 15.05.2024 12:36 [18:52:49]1206 (1) - 0 [18:52:49]OFD Sender: Remove packet 67327 [18:52:49]ProducePacketName [18:52:49]name=ofd_packets/00067327 [18:52:49]NVStorageDeleteData [18:52:49]Write to MH i2c: 01 00 00 15 21 36 [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 15 21 00 00 00 00 00 EC 0C 35 [18:52:49]RasterBufferAndPrint [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]written 0, free lines is 3315 [18:52:49]MH_Cut [18:52:49]Write to MH i2c: D1 01 00 1C 21 01 0F [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: D1 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: D1 01 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: D1 01 00 1C 21 00 0E [18:52:49]Write to MH i2c: 01 00 00 1D 21 3E [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]OFD Sender: No OFD packet to send [18:52:50]*** Cut start [18:52:50]*** Purtial cut [18:52:50]*** CUTSNS_PIN = 0 [18:52:50]*** Stage 1: CUTSNS_PIN = 1 [18:52:52]Read from MH i2c: 01 [18:52:52]MH_I2C_Read... [18:52:52]*** Stop cut motor [18:52:52]*** Cut end [18:52:52]Read from MH i2c: 01 07 00 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: 01 07 00 1D 21 00 00 00 00 00 FF 0F 53 [18:52:52]process_action close_receipt done [18:52:52]requested_data is exist [18:52:52]produce_requested_data [18:52:52]requested_item fm.sn is exist - process it [18:52:52]wFMCommunicate request_size=4 [18:52:52]MH_SAM_APDU [18:52:52]CAPDU: 80 11 00 00 [18:52:52]Write to MH i2c: E2 08 00 1E 21 80 11 00 00 00 00 00 00 B9 [18:52:52]Write i2c OK [18:52:52]MH_I2C_Read... [18:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:52]Read from MH i2c: E2 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 17 00 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 17 00 1E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [18:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:52:52]wFMCommunicate OK [18:52:52]requested_item fd.num is exist - process it [18:52:52]SAM_PROTO_GetFieldsCounters [18:52:52]wFMCommunicate request_size=4 [18:52:52]MH_SAM_APDU [18:52:52]CAPDU: 80 13 00 00 [18:52:52]Write to MH i2c: E2 08 00 1F 21 80 13 00 00 00 00 00 00 BC [18:52:52]Write i2c OK [18:52:52]MH_I2C_Read... [18:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:52]Read from MH i2c: E2 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 62 00 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 62 00 1F 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 FF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:52: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 FF 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:52]wFMCommunicate OK [18:52:52]SAM_PROTO_GetFieldsCounters done [18:52:52]requested_item shift.num is exist - process it [18:52:52]requested_item shift.opened is exist - process it [18:52:52]req_shift_opened [18:52:52]FM_GetShiftState [18:52:52]SAM_PROTO_GetShiftState [18:52:52]wFMCommunicate request_size=4 [18:52:52]MH_SAM_APDU [18:52:52]CAPDU: 80 13 01 00 [18:52:52]Write to MH i2c: E2 08 00 20 21 80 13 01 00 00 00 00 00 BE [18:52:52]Write i2c OK [18:52:52]MH_I2C_Read... [18:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:52]Read from MH i2c: E2 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 0E 00 [18:52:52]MH_I2C_Read... [18:52:52]Read from MH i2c: E2 0E 00 20 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 69 [18:52:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:52:52]wFMCommunicate OK [18:52:52]SAM_PROTO_GetShiftState done [18:52:52]FM_GetShiftState done [18:52:52]req_shift_opened done [18:52:52]requested_item shift.open_date is exist - process it [18:52:52]req_shift_open_date [18:52:52]req_shift_open_date done [18:52:52]produce_requested_data done [18:52:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67327,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:52:52]process_action_free close_receipt [18:52:52]json_value_free [18:52:52]json_value_free done [18:52:52]process_json_proto returns [18:52:52]Send response to host [18:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67327,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:52:52]free response buf [18:52:52]execute_script done [18:52:52]execute_script returns [18:52:52]free content buf [18:52:52]Sock 9.Close socket [18:52:52]Sock 9.Thread stoped [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]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:39]accept exits with 7 [18:58:39]New connection [18:58:39]New thread 3067174244 created [18:58:39]Thread 3067030884 joined [18:58:39]Waiting for new connection... [18:58:39] Sock 7.Parse request [18:58:39]Sock 7.Check first char [18:58:39]Sock 7.First char is OK [18:58:39]request: POST /json_proto HTTP/1.0 [18:58:39]Method: POST [18:58:39]URL: /json_proto [18:58:39]Method is POST - this is cgi request [18:58:39]url: /json_proto [18:58:39]query_string will be loaded in cgi processing [18:58:39]execute_cgi json_proto POST (null) [18:58:39]execute_cgi path=json_proto method=POST [18:58:39]POST find Content-Length [18:58:39]Host: 172.17.41.195:8080 [18:58:39]Content-Length: 679 [18:58:39]Content-Type: application/json [18:58:39] [18:58:39]POST finish read [18:58:39]Found Content-Length = 679 [18:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507311", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:39]execute_script... [18:58: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)507311", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:39]POST & json_proto [18:58:39]process_json_proto [18:58:39]json parsed OK: [18:58:39]protocol is kg_v1.0 [18:58:39]action value=close_receipt [18:58:39]process_action close_receipt [18:58:39]cmd_close_receipt [18:58:39]MH_GetDate [18:58:39]Write to MH i2c: F0 00 00 21 21 31 [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: F0 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: F0 09 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: F0 09 00 21 21 00 E1 05 45 66 FC 21 6F 64 BB [18:58:39]GetLastDocTimeStamp 1715799169 [18:58:39]current date 1715799521 [18:58:39]FM_GetShiftState [18:58:39]SAM_PROTO_GetShiftState [18:58:39]wFMCommunicate request_size=4 [18:58:39]MH_SAM_APDU [18:58:39]CAPDU: 80 13 01 00 [18:58:39]Write to MH i2c: E2 08 00 22 21 80 13 01 00 00 00 00 00 C0 [18:58:39]Write i2c OK [18:58:39]MH_I2C_Read... [18:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:39]Read from MH i2c: E2 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 0E 00 [18:58:39]MH_I2C_Read... [18:58:39]Read from MH i2c: E2 0E 00 22 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6B [18:58:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:58:39]wFMCommunicate OK [18:58:39]SAM_PROTO_GetShiftState done [18:58:39]FM_GetShiftState done [18:58:39]opened in 1715732471 [18:58:39]opened+sec_in_day 1715818871 [18:58:39]quantity*price = 150072 [18:58:39]sum+1 = 150073 [18:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 146 15.05.2024 18:58 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67328 ФПД: 157428740085467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67328&fm=157428740085467&tin=02508201610067®Number=0000000000091845&sum=150000 [18:58:40]StoreToDocumentArchive [18:58:40]shift 356 fd 67328 [18:58:40]save to /storage/0356/doc_00067328 [18:58:40]save last doc name /storage/0356/doc_00067328 to /storage/kkm_last_doc_name [18:58:40]save OK [18:58:40]Clear old archive folders... [18:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:58:40]tlvbuf is 00B0EEF0 [18:58:40]SAM_PROTO_ClearQueue [18:58:40]wFMCommunicate request_size=4 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 09 00 00 [18:58:40]Write to MH i2c: E2 08 00 2F 21 80 09 00 00 00 00 00 00 C2 [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 2F 21 00 90 00 C4 [18:58:40]RAPDU: 90 00 [18:58:40]wFMCommunicate OK [18:58:40]SAM_PROTO_ClearQueue done [18:58:40]KKMCreateOFDPacket [18:58:40]OFDProtocolAddRootSTLVToBuf [18:58:40]FM_MakeSignedData [18:58:40]FM_MakeSignedData [18:58:40]SAM_PROTO_SignData [18:58:40]wFMCommunicate request_size=4 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 0D 01 02 [18:58:40]Write to MH i2c: E2 08 00 30 21 80 0D 01 02 00 00 00 00 CA [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [18:58:40]RAPDU: 90 00 [18:58:40]wFMCommunicate OK [18:58:40]wFMCommunicate request_size=255 [18:58:40]MH_SAM_APDU [18:58:40]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E1 05 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8F 2E 3C 21 [18:58:40]Write to MH i2c: E2 02 01 31 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E1 05 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8F 2E 3C 21 00 00 97 [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [18:58:40]RAPDU: 90 00 [18:58:40]wFMCommunicate OK [18:58:40]wFMCommunicate request_size=7 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 0D 02 02 02 56 DB [18:58:40]Write to MH i2c: E2 0A 00 32 21 80 0D 02 02 02 00 56 DB 00 00 02 [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [18:58:40]RAPDU: 90 00 [18:58:40]wFMCommunicate OK [18:58:40]wFMCommunicate request_size=4 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 0D 03 02 [18:58:40]Write to MH i2c: E2 08 00 33 21 80 0D 03 02 00 00 00 00 CF [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 0B 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 0B 00 33 21 00 14 09 C1 B9 48 EC 0C 9B 90 00 42 [18:58:40]RAPDU: 14 09 C1 B9 48 EC 0C 9B 90 00 [18:58:40]wFMCommunicate OK [18:58:40]SAM_PROTO_SignData done [18:58:40]FM_MakeSignedData done [18:58:40]CreateOFDProtocolMessage [18:58:40]wFMCommunicate request_size=4 [18:58:40]MH_SAM_APDU [18:58:40]CAPDU: 80 11 00 00 [18:58:40]Write to MH i2c: E2 08 00 34 21 80 11 00 00 00 00 00 00 CF [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:40]Read from MH i2c: E2 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 17 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: E2 17 00 34 21 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:58: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:58:40]wFMCommunicate OK [18:58:40]CreateOFDProtocolMessage done [18:58:40]OFDSenderStorePacket 67328 [18:58:40]StoreOFDPacket docnum=67328 [18:58: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 0C 01 00 00 1A 9F 04 01 20 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E1 05 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8F 2E 3C 21 56 DB 14 09 C1 B9 48 EC 0C 9B [18:58:40]CheckFolder [18:58:40]dirname=/storage/ofd_packets [18:58:40]CheckFolder done [18:58:40]ProducePacketName [18:58:40]name=ofd_packets/00067328 [18:58:40]NVStorageSaveData ofd_packets/00067328 [18:58:40]File name is /storage/ofd_packets/00067328 [18:58:40]Write 298 bytes [18:58:40]NVStorageSaveData done [18:58:40]OFDSenderStorePacket done [18:58:40]KKMCreateOFDPacket done [18:58:40]NVStorageSaveData kkm_last_timestamp [18:58:40]File name is /storage/kkm_last_timestamp [18:58:40]Write 4 bytes [18:58:40]NVStorageSaveData done [18:58:40]ExternCall_PrintAddStr [18:58:40]wPrintStart [18:58:40]Write to MH i2c: 01 00 00 35 21 56 [18:58:40]Write i2c OK [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: 01 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: 01 07 00 [18:58:40]MH_I2C_Read... [18:58:40]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 FF 0F 6B [18:58:40]RasterBufferAndPrint [18:58:40]line Счет N : (1)507311 [18:58:40]line ИНН: 02508201610067 [18:58:40]line Контрольно-Кассовый Чек [18:58:40]line ПРОДАЖА [18:58:40]line ТРК (МРК, ГНК) : 31 [18:58:40]line Товар: 2710194210 [18:58:40]line ДТ-К-5 [18:58:40]line 20.090 * 74.70 [18:58:40]line = 1500.72 [18:58:40]line НДС 12% НСП 1% [18:58:40]line > о реализуемом товаре [18:58:40]line ОКРУГЛЕНИЕ: -0.72 [18:58:40]line ИТОГО: 1500.00 [18:58:40]line Внесено: 1500.00 [18:58:40]line СДАЧА: 0.00 [18:58:40]line НСП 1% : 13.28 [18:58:40]line НДС 12% : 159.37 [18:58:40]line Наличными: 1500.00 [18:58:40]line Безнал.: 0.00 [18:58:40]line Место: АЗС № 91 "Партнер Нефть" [18:58:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:58:40]line СНО: Общий режим [18:58:40]line Чек 146 15.05.2024 18:58 [18:58:40]line Смена: 356 ФФД: 1.0 [18:58:40]line ЗНМ: 0300000119 [18:58:40]line РНМ: 0000000000091845 [18:58:40]line Версия ККМ: 001 [18:58:40]line ФМ: 0000000000871829 [18:58:40]line ФД: 67328 [18:58:40]line ФПД: 157428740085467 [18:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T185841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67328&fm=157428740085467&tin=02508201610067®Number=0000000000091845&sum=150000 [18:58:41]OFD Sender: Processing packet 67328 [packets to send 35, broken 34] [18:58:41]ProducePacketName [18:58:41]name=ofd_packets/00067328 [18:58:41]OFD Sender: To server: pG, [18:58:41]CommunicateWithHost lk.salyk.kg:30040 [18:58:41]ConnectInit lk.salyk.kg [18:58:41]written 0, free lines is 4095 [18:58:41]Connected sock=10 [18:58: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 0C 01 00 00 1A 9F 04 01 20 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E1 05 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8F 2E 3C 21 56 DB 14 09 C1 B9 48 EC 0C 9B [18:58: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 62 5C 47 00 80 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 00 07 01 00 F4 03 04 00 BD AD 44 66 B6 04 01 00 00 56 F4 53 37 94 9E F4 1F [18:58:41]CommunicateWithHost err = 0 [18:58:41]CheckOFDResponse [18:58:41]1017 (14) - 77093643461234 [18:58:41]1041 (16) - 0000000000871829 [18:58:41]1040 (4) - 67328 [18:58:41]1012 (4) - 15.05.2024 12:42 [18:58:41]1206 (1) - 0 [18:58:41]OFD Sender: Remove packet 67328 [18:58:41]ProducePacketName [18:58:41]name=ofd_packets/00067328 [18:58:41]NVStorageDeleteData [18:58:41]Write to MH i2c: 01 00 00 5F 21 80 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: 01 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: 01 07 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: 01 07 00 5F 21 00 00 00 00 00 C8 0C 5B [18:58:41]RasterBufferAndPrint [18:58:41]line [18:58:41]line [18:58:41]line [18:58:41]line [18:58:41]line [18:58:41]written 0, free lines is 3278 [18:58:41]MH_Cut [18:58:41]Write to MH i2c: D1 01 00 66 21 01 59 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: D1 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: D1 01 00 [18:58:41]MH_I2C_Read... [18:58:41]Read from MH i2c: D1 01 00 66 21 00 58 [18:58:41]Write to MH i2c: 01 00 00 67 21 88 [18:58:41]Write i2c OK [18:58:41]MH_I2C_Read... [18:58:41]OFD Sender: No OFD packet to send [18:58:42]*** Cut start [18:58:42]*** Purtial cut [18:58:42]*** Stage 1: CUTSNS_PIN = 1 [18:58:42]Read from MH i2c: 01 [18:58:42]MH_I2C_Read... [18:58:42]*** Stop cut motor [18:58:42]*** Cut end [18:58:42]Read from MH i2c: 01 07 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: 01 07 00 67 21 00 00 00 00 00 FF 0F 9D [18:58:42]process_action close_receipt done [18:58:42]requested_data is exist [18:58:42]produce_requested_data [18:58:42]requested_item fm.sn is exist - process it [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 11 00 00 [18:58:42]Write to MH i2c: E2 08 00 68 21 80 11 00 00 00 00 00 00 03 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 17 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 17 00 68 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [18:58: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:58:42]wFMCommunicate OK [18:58:42]requested_item fd.num is exist - process it [18:58:42]SAM_PROTO_GetFieldsCounters [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 13 00 00 [18:58:42]Write to MH i2c: E2 08 00 69 21 80 13 00 00 00 00 00 00 06 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:42]Read from MH i2c: E2 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 62 00 [18:58:42]MH_I2C_Read... [18:58:42]Read from MH i2c: E2 62 00 69 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 00 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:58: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 00 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:42]wFMCommunicate OK [18:58:42]SAM_PROTO_GetFieldsCounters done [18:58:42]requested_item shift.num is exist - process it [18:58:42]requested_item shift.opened is exist - process it [18:58:42]req_shift_opened [18:58:42]FM_GetShiftState [18:58:42]SAM_PROTO_GetShiftState [18:58:42]wFMCommunicate request_size=4 [18:58:42]MH_SAM_APDU [18:58:42]CAPDU: 80 13 01 00 [18:58:42]Write to MH i2c: E2 08 00 6A 21 80 13 01 00 00 00 00 00 08 [18:58:42]Write i2c OK [18:58:42]MH_I2C_Read... [18:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:42]Read from MH i2c: E2 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: E2 0E 00 [18:58:43]MH_I2C_Read... [18:58:43]Read from MH i2c: E2 0E 00 6A 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B3 [18:58:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [18:58:43]wFMCommunicate OK [18:58:43]SAM_PROTO_GetShiftState done [18:58:43]FM_GetShiftState done [18:58:43]req_shift_opened done [18:58:43]requested_item shift.open_date is exist - process it [18:58:43]req_shift_open_date [18:58:43]req_shift_open_date done [18:58:43]produce_requested_data done [18:58:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67328,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [18:58:43]process_action_free close_receipt [18:58:43]json_value_free [18:58:43]json_value_free done [18:58:43]process_json_proto returns [18:58:43]Send response to host [18:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67328,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [18:58:43]free response buf [18:58:43]execute_script done [18:58:43]execute_script returns [18:58:43]free content buf [18:58:43]Sock 7.Close socket [18:58:43]Sock 7.Thread stoped [18:58:46]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:29]accept exits with 9 [19:00:29]New connection [19:00:29]New thread 3067030884 created [19:00:29]Thread 3067174244 joined [19:00:29]Waiting for new connection... [19:00:29] Sock 9.Parse request [19:00:29]Sock 9.Check first char [19:00:29]Sock 9.First char is OK [19:00:29]request: POST /json_proto HTTP/1.0 [19:00:29]Method: POST [19:00:29]URL: /json_proto [19:00:29]Method is POST - this is cgi request [19:00:29]url: /json_proto [19:00:29]query_string will be loaded in cgi processing [19:00:29]execute_cgi json_proto POST (null) [19:00:29]execute_cgi path=json_proto method=POST [19:00:29]POST find Content-Length [19:00:29]Host: 172.17.41.195:8080 [19:00:29]Content-Length: 215 [19:00:29]Content-Type: application/json [19:00:29] [19:00:29]POST finish read [19:00:29]Found Content-Length = 215 [19:00:29]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:00:29]execute_script... [19:00:29]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:00:29]POST & json_proto [19:00:29]process_json_proto [19:00:29]json parsed OK: [19:00:29]protocol is kg_v1.0 [19:00:29]action value=get_value [19:00:29]process_action get_value [19:00:29]cmd_get_value [19:00:29]process_action get_value done [19:00:29]requested_data is exist [19:00:29]produce_requested_data [19:00:29]requested_item kkm.sn is exist - process it [19:00:29]requested_item kkm.ver is exist - process it [19:00:29]requested_item fm.sn is exist - process it [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 11 00 00 [19:00:29]Write to MH i2c: E2 08 00 6B 21 80 11 00 00 00 00 00 00 06 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 17 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 17 00 6B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [19:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:00:29]wFMCommunicate OK [19:00:29]requested_item fd.num is exist - process it [19:00:29]SAM_PROTO_GetFieldsCounters [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 13 00 00 [19:00:29]Write to MH i2c: E2 08 00 6C 21 80 13 00 00 00 00 00 00 09 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 62 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 62 00 6C 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 00 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:00: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 00 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:29]wFMCommunicate OK [19:00:29]SAM_PROTO_GetFieldsCounters done [19:00:29]requested_item shift.num is exist - process it [19:00:29]requested_item shift.opened is exist - process it [19:00:29]req_shift_opened [19:00:29]FM_GetShiftState [19:00:29]SAM_PROTO_GetShiftState [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 13 01 00 [19:00:29]Write to MH i2c: E2 08 00 6D 21 80 13 01 00 00 00 00 00 0B [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 0E 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 0E 00 6D 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B6 [19:00:29]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:00:29]wFMCommunicate OK [19:00:29]SAM_PROTO_GetShiftState done [19:00:29]FM_GetShiftState done [19:00:29]req_shift_opened done [19:00:29]requested_item shift.open_date is exist - process it [19:00:29]req_shift_open_date [19:00:29]req_shift_open_date done [19:00:29]produce_requested_data done [19:00:29]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67328,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:00:29]process_action_free get_value [19:00:29]json_value_free [19:00:29]json_value_free done [19:00:29]process_json_proto returns [19:00:29]Send response to host [19:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67328,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:00:29]free response buf [19:00:29]execute_script done [19:00:29]execute_script returns [19:00:29]free content buf [19:00:29]Sock 9.Close socket [19:00:29]Sock 9.Thread stoped [19:00:29]accept exits with 7 [19:00:29]New connection [19:00:29]New thread 3067174244 created [19:00:29]Thread 3067030884 joined [19:00:29]Waiting for new connection... [19:00:29] Sock 7.Parse request [19:00:29]Sock 7.Check first char [19:00:29]Sock 7.First char is OK [19:00:29]request: POST /json_proto HTTP/1.0 [19:00:29]Method: POST [19:00:29]URL: /json_proto [19:00:29]Method is POST - this is cgi request [19:00:29]url: /json_proto [19:00:29]query_string will be loaded in cgi processing [19:00:29]execute_cgi json_proto POST (null) [19:00:29]execute_cgi path=json_proto method=POST [19:00:29]POST find Content-Length [19:00:29]Host: 172.17.41.195:8080 [19:00:29]Content-Length: 331 [19:00:29]Content-Type: application/json [19:00:29] [19:00:29]POST finish read [19:00:29]Found Content-Length = 331 [19:00:29]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:00:29]execute_script... [19:00:29]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:00:29]POST & json_proto [19:00:29]process_json_proto [19:00:29]json parsed OK: [19:00:29]protocol is kg_v1.0 [19:00:29]action value=get_value [19:00:29]process_action get_value [19:00:29]cmd_get_value [19:00:29]process_action get_value done [19:00:29]requested_data is exist [19:00:29]produce_requested_data [19:00:29]requested_item fm.sale.total is exist - process it [19:00:29]SAM_PROTO_GetFMData [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 13 03 00 [19:00:29]Write to MH i2c: E2 08 00 6E 21 80 13 03 00 00 00 00 00 0E [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:00:30]Read from MH i2c: E2 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 6E 21 00 C6 04 85 04 C2 04 6E 04 04 00 38 04 01 00 69 04 A3 00 6F 04 04 00 92 03 01 00 B1 04 05 00 8D 5B 34 1A 03 70 04 05 00 18 E8 01 BF 02 72 04 04 00 75 73 32 5B 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 BD 13 5A 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 2E 6D 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 F6 [19:00:30]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 38 04 01 00 69 04 A3 00 6F 04 04 00 92 03 01 00 B1 04 05 00 8D 5B 34 1A 03 70 04 05 00 18 E8 01 BF 02 72 04 04 00 75 73 32 5B 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 BD 13 5A 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 2E 6D 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [19:00:30]wFMCommunicate OK [19:00:30]wFMCommunicate request_size=4 [19:00:30]MH_SAM_APDU [19:00:30]CAPDU: 80 17 00 00 [19:00:30]Write to MH i2c: E2 08 00 6F 21 80 17 00 00 00 00 00 00 10 [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:30]Read from MH i2c: E2 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 6F 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 27 [19:00:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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:00:30]wFMCommunicate OK [19:00:30]wFMCommunicate request_size=4 [19:00:30]MH_SAM_APDU [19:00:30]CAPDU: 80 17 00 00 [19:00:30]Write to MH i2c: E2 08 00 70 21 80 17 00 00 00 00 00 00 11 [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:30]Read from MH i2c: E2 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: E2 FD 00 70 21 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 38 [19:00:30]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:00:30]wFMCommunicate OK [19:00:30]wFMCommunicate request_size=4 [19:00:30]MH_SAM_APDU [19:00:30]CAPDU: 80 17 00 00 [19:00:30]Write to MH i2c: E2 08 00 71 21 80 17 00 00 00 00 00 00 12 [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 FD 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 FD 00 71 21 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [19:00:31]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:00:31]wFMCommunicate OK [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 17 00 00 [19:00:31]Write to MH i2c: E2 08 00 72 21 80 17 00 00 00 00 00 00 13 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 E3 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 E3 00 72 21 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [19:00:31]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:00:31]wFMCommunicate OK [19:00:31]SAM_PROTO_GetFMData done [19:00:31]requested_item fm.sale_refund.total is exist - process it [19:00:31]requested_item fm.buy.total is exist - process it [19:00:31]requested_item shift.sale.total is exist - process it [19:00:31]SAM_PROTO_GetShiftData [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 13 02 00 [19:00:31]Write to MH i2c: E2 08 00 73 21 80 13 02 00 00 00 00 00 12 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:00:31]Read from MH i2c: E2 FD 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 FD 00 73 21 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9D 00 6F 04 04 00 91 00 00 00 B1 04 04 00 EF A2 24 01 70 04 03 00 3C 82 3C 72 04 03 00 B3 20 E8 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 2F 14 1F 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 FB 96 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 84 [19:00:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9D 00 6F 04 04 00 91 00 00 00 B1 04 04 00 EF A2 24 01 70 04 03 00 3C 82 3C 72 04 03 00 B3 20 E8 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 2F 14 1F 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 FB 96 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:00:31]wFMCommunicate OK [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 17 00 00 [19:00:31]Write to MH i2c: E2 08 00 74 21 80 17 00 00 00 00 00 00 15 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 74 21 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [19:00:32]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 17 00 00 [19:00:32]Write to MH i2c: E2 08 00 75 21 80 17 00 00 00 00 00 00 16 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]OFD Sender: No OFD packet to send [19:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 75 21 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [19:00:32]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 17 00 00 [19:00:32]Write to MH i2c: E2 08 00 76 21 80 17 00 00 00 00 00 00 17 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 FD 00 76 21 00 00 EF 03 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 90 00 8F [19:00:32]RAPDU: 00 EF 03 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 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 17 00 00 [19:00:32]Write to MH i2c: E2 08 00 77 21 80 17 00 00 00 00 00 00 18 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 D7 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 D7 00 77 21 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FB [19:00:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:32]wFMCommunicate OK [19:00:32]SAM_PROTO_GetShiftData done [19:00:32]requested_item shift.sale.total_cash is exist - process it [19:00:32]requested_item shift.sale_refund.total is exist - process it [19:00:32]requested_item shift.sale_refund.total_cash is exist - process it [19:00:32]requested_item shift.buy.total is exist - process it [19:00:32]requested_item shift.buy.total_cash is exist - process it [19:00:32]produce_requested_data done [19:00:32]produce_requested_data return {"fm.sale.total":133245408.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":191782.23,"shift.sale.total_cash":39655.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:00:32]process_action_free get_value [19:00:32]json_value_free [19:00:32]json_value_free done [19:00:32]process_json_proto returns [19:00:32]Send response to host [19:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133245408.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":191782.23,"shift.sale.total_cash":39655.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:00:32]free response buf [19:00:32]execute_script done [19:00:32]execute_script returns [19:00:32]free content buf [19:00:32]Sock 7.Close socket [19:00:32]Sock 7.Thread stoped [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:45]accept exits with 9 [19:00:45]New connection [19:00:45]New thread 3067030884 created [19:00:45]Thread 3067174244 joined [19:00:45]Waiting for new connection... [19:00:45] Sock 9.Parse request [19:00:45]Sock 9.Check first char [19:00:45]Sock 9.First char is OK [19:00:45]request: POST /json_proto HTTP/1.0 [19:00:45]Method: POST [19:00:45]URL: /json_proto [19:00:45]Method is POST - this is cgi request [19:00:45]url: /json_proto [19:00:45]query_string will be loaded in cgi processing [19:00:45]execute_cgi json_proto POST (null) [19:00:45]execute_cgi path=json_proto method=POST [19:00:45]POST find Content-Length [19:00:45]Host: 172.17.41.195:8080 [19:00:45]Content-Length: 629 [19:00:45]Content-Type: application/json [19:00:45] [19:00:45]POST finish read [19:00:45]Found Content-Length = 629 [19:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12079", "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" ] } } [19:00:45]execute_script... [19:00: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)12079", "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" ] } } [19:00:45]POST & json_proto [19:00:45]process_json_proto [19:00:45]json parsed OK: [19:00:45]protocol is kg_v1.0 [19:00:45]action value=close_receipt [19:00:45]process_action close_receipt [19:00:45]cmd_close_receipt [19:00:45]MH_GetDate [19:00:45]Write to MH i2c: F0 00 00 78 21 88 [19:00:45]Write i2c OK [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: F0 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: F0 09 00 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: F0 09 00 78 21 00 60 06 45 66 FC 21 6F 64 92 [19:00:45]GetLastDocTimeStamp 1715799521 [19:00:45]current date 1715799648 [19:00:45]FM_GetShiftState [19:00:45]SAM_PROTO_GetShiftState [19:00:45]wFMCommunicate request_size=4 [19:00:45]MH_SAM_APDU [19:00:45]CAPDU: 80 13 01 00 [19:00:45]Write to MH i2c: E2 08 00 79 21 80 13 01 00 00 00 00 00 17 [19:00:45]Write i2c OK [19:00:45]MH_I2C_Read... [19:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:46]Read from MH i2c: E2 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: E2 0E 00 [19:00:46]MH_I2C_Read... [19:00:46]Read from MH i2c: E2 0E 00 79 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C2 [19:00:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:00:46]wFMCommunicate OK [19:00:46]SAM_PROTO_GetShiftState done [19:00:46]FM_GetShiftState done [19:00:46]opened in 1715732471 [19:00:46]opened+sec_in_day 1715818871 [19:00:46]quantity*price = 4500 [19:00:46]sum+1 = 4501 [19:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 147 15.05.2024 19:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67329 ФПД: 50034558754931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190048&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67329&fm=50034558754931&tin=02508201610067®Number=0000000000091845&sum=4500 0 [19:00:47]StoreToDocumentArchive [19:00:47]shift 356 fd 67329 [19:00:47]save to /storage/0356/doc_00067329 [19:00:47]save last doc name /storage/0356/doc_00067329 to /storage/kkm_last_doc_name [19:00:47]save OK [19:00:47]Clear old archive folders... [19:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:00:47]tlvbuf is 00B722A0 [19:00:47]SAM_PROTO_ClearQueue [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 09 00 00 [19:00:47]Write to MH i2c: E2 08 00 86 21 80 09 00 00 00 00 00 00 19 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 86 21 00 90 00 1B [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]SAM_PROTO_ClearQueue done [19:00:47]KKMCreateOFDPacket [19:00:47]OFDProtocolAddRootSTLVToBuf [19:00:47]FM_MakeSignedData [19:00:47]FM_MakeSignedData [19:00:47]SAM_PROTO_SignData [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 0D 01 02 [19:00:47]Write to MH i2c: E2 08 00 87 21 80 0D 01 02 00 00 00 00 21 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]OFD Sender: No OFD packet to send [19:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]wFMCommunicate request_size=255 [19:00:47]MH_SAM_APDU [19:00:47]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 93 00 00 00 F4 03 04 00 60 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:00:47]Write to MH i2c: E2 02 01 88 21 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 93 00 00 00 F4 03 04 00 60 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 31 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]wFMCommunicate request_size=28 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 0D 02 02 17 37 31 38 32 39 10 04 04 00 01 07 01 00 35 04 06 00 2D 81 94 19 E0 73 [19:00:47]Write to MH i2c: E2 1F 00 89 21 80 0D 02 02 17 00 37 31 38 32 39 10 04 04 00 01 07 01 00 35 04 06 00 2D 81 94 19 E0 73 00 00 6B [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [19:00:47]RAPDU: 90 00 [19:00:47]wFMCommunicate OK [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 0D 03 02 [19:00:47]Write to MH i2c: E2 08 00 8A 21 80 0D 03 02 00 00 00 00 26 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 0B 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 0B 00 8A 21 00 AE 4A 83 70 8C D1 62 E0 90 00 B1 [19:00:47]RAPDU: AE 4A 83 70 8C D1 62 E0 90 00 [19:00:47]wFMCommunicate OK [19:00:47]SAM_PROTO_SignData done [19:00:47]FM_MakeSignedData done [19:00:47]CreateOFDProtocolMessage [19:00:47]wFMCommunicate request_size=4 [19:00:47]MH_SAM_APDU [19:00:47]CAPDU: 80 11 00 00 [19:00:47]Write to MH i2c: E2 08 00 8B 21 80 11 00 00 00 00 00 00 26 [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:47]Read from MH i2c: E2 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 17 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: E2 17 00 8B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [19:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:00:47]wFMCommunicate OK [19:00:47]CreateOFDProtocolMessage done [19:00:47]OFDSenderStorePacket 67329 [19:00:47]StoreOFDPacket docnum=67329 [19:00: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 21 01 00 00 5B AF 19 01 C1 22 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 93 00 00 00 F4 03 04 00 60 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2D 81 94 19 E0 73 AE 4A 83 70 8C D1 62 E0 [19:00:47]CheckFolder [19:00:47]dirname=/storage/ofd_packets [19:00:47]CheckFolder done [19:00:47]ProducePacketName [19:00:47]name=ofd_packets/00067329 [19:00:47]NVStorageSaveData ofd_packets/00067329 [19:00:47]File name is /storage/ofd_packets/00067329 [19:00:47]Write 319 bytes [19:00:47]NVStorageSaveData done [19:00:47]OFDSenderStorePacket done [19:00:47]KKMCreateOFDPacket done [19:00:47]NVStorageSaveData kkm_last_timestamp [19:00:47]File name is /storage/kkm_last_timestamp [19:00:47]Write 4 bytes [19:00:47]NVStorageSaveData done [19:00:47]ExternCall_PrintAddStr [19:00:47]wPrintStart [19:00:47]Write to MH i2c: 01 00 00 8C 21 AD [19:00:47]Write i2c OK [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: 01 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: 01 07 00 [19:00:47]MH_I2C_Read... [19:00:47]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [19:00:47]RasterBufferAndPrint [19:00:47]line Счет N : (3)12079 [19:00:47]line ИНН: 02508201610067 [19:00:47]line Контрольно-Кассовый Чек [19:00:47]line ПРОДАЖА [19:00:47]line Товар: 4700000160358 [19:00:47]line Вода Легенда 1л [19:00:47]line 1.000 * 45.00 [19:00:47]line = 45.00 [19:00:47]line НДС 12% НСП 1% [19:00:47]line > о реализуемом товаре [19:00:47]line ИТОГО: 45.00 [19:00:47]line НСП 1% : 0.40 [19:00:47]line НДС 12% : 4.78 [19:00:47]line Наличными: 45.00 [19:00:47]line Безнал.: 0.00 [19:00:47]line Место: АЗС № 91 "Партнер Нефть" [19:00:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:00:47]line СНО: Общий режим [19:00:47]line Чек 147 15.05.2024 19:00 [19:00:47]line Смена: 356 ФФД: 1.0 [19:00:47]line ЗНМ: 0300000119 [19:00:47]line РНМ: 0000000000091845 [19:00:47]line Версия ККМ: 001 [19:00:47]line ФМ: 0000000000871829 [19:00:47]line ФД: 67329 [19:00:47]line ФПД: 50034558754931 [19:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190048&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67329&fm=50034558754931&tin=02508201610067®Number=0000000000091845&sum=4500 [19:00:48]line 0 [19:00:48]OFD Sender: Processing packet 67329 [packets to send 35, broken 34] [19:00:48]ProducePacketName [19:00:48]name=ofd_packets/00067329 [19:00:48]OFD Sender: To server: pG, [19:00:48]CommunicateWithHost lk.salyk.kg:30040 [19:00:48]ConnectInit lk.salyk.kg [19:00:48]written 0, free lines is 4095 [19:00:48]Connected sock=10 [19:00: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 21 01 00 00 5B AF 19 01 C1 22 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 93 00 00 00 F4 03 04 00 60 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2D 81 94 19 E0 73 AE 4A 83 70 8C D1 62 E0 [19:00: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 96 9B 47 00 21 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 01 07 01 00 F4 03 04 00 3C AE 44 66 B6 04 01 00 00 8B B0 22 F7 9E C0 D8 2E [19:00:48]CommunicateWithHost err = 0 [19:00:48]CheckOFDResponse [19:00:48]1017 (14) - 77093643461234 [19:00:48]1041 (16) - 0000000000871829 [19:00:48]1040 (4) - 67329 [19:00:48]1012 (4) - 15.05.2024 12:44 [19:00:48]1206 (1) - 0 [19:00:48]OFD Sender: Remove packet 67329 [19:00:48]ProducePacketName [19:00:48]name=ofd_packets/00067329 [19:00:48]NVStorageDeleteData [19:00:48]Write to MH i2c: 01 00 00 B3 21 D4 [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 07 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 F4 0C DB [19:00:48]RasterBufferAndPrint [19:00:48]line [19:00:48]line [19:00:48]line [19:00:48]line [19:00:48]line [19:00:48]written 0, free lines is 3320 [19:00:48]MH_Cut [19:00:48]Write to MH i2c: D1 01 00 BA 21 01 AD [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: D1 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: D1 01 00 [19:00:48]MH_I2C_Read... [19:00:48]Read from MH i2c: D1 01 00 BA 21 00 AC [19:00:48]Write to MH i2c: 01 00 00 BB 21 DC [19:00:48]Write i2c OK [19:00:48]MH_I2C_Read... [19:00:48]OFD Sender: No OFD packet to send [19:00:49]*** Cut start [19:00:49]*** Purtial cut [19:00:49]*** CUTSNS_PIN = 0 [19:00:49]*** Stage 1: CUTSNS_PIN = 1 [19:00:51]Read from MH i2c: 01 [19:00:51]MH_I2C_Read... [19:00:51]*** Stop cut motor [19:00:51]*** Cut end [19:00:51]Read from MH i2c: 01 07 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: 01 07 00 BB 21 00 00 00 00 00 FF 0F F1 [19:00:51]process_action close_receipt done [19:00:51]requested_data is exist [19:00:51]produce_requested_data [19:00:51]requested_item fm.sn is exist - process it [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 11 00 00 [19:00:51]Write to MH i2c: E2 08 00 BC 21 80 11 00 00 00 00 00 00 57 [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 17 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 17 00 BC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [19:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:00:51]wFMCommunicate OK [19:00:51]requested_item fd.num is exist - process it [19:00:51]SAM_PROTO_GetFieldsCounters [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 13 00 00 [19:00:51]Write to MH i2c: E2 08 00 BD 21 80 13 00 00 00 00 00 00 5A [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 62 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 62 00 BD 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 01 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19:00: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 01 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:51]wFMCommunicate OK [19:00:51]SAM_PROTO_GetFieldsCounters done [19:00:51]requested_item shift.num is exist - process it [19:00:51]requested_item shift.opened is exist - process it [19:00:51]req_shift_opened [19:00:51]FM_GetShiftState [19:00:51]SAM_PROTO_GetShiftState [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 13 01 00 [19:00:51]Write to MH i2c: E2 08 00 BE 21 80 13 01 00 00 00 00 00 5C [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 0E 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 0E 00 BE 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 07 [19:00:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:00:51]wFMCommunicate OK [19:00:51]SAM_PROTO_GetShiftState done [19:00:51]FM_GetShiftState done [19:00:51]req_shift_opened done [19:00:51]requested_item shift.open_date is exist - process it [19:00:51]req_shift_open_date [19:00:51]req_shift_open_date done [19:00:51]produce_requested_data done [19:00:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67329,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:00:51]process_action_free close_receipt [19:00:51]json_value_free [19:00:51]json_value_free done [19:00:51]process_json_proto returns [19:00:51]Send response to host [19:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67329,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:00:51]free response buf [19:00:51]execute_script done [19:00:51]execute_script returns [19:00:51]free content buf [19:00:51]Sock 9.Close socket [19:00:51]Sock 9.Thread stoped [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 7 [19:01:04]New connection [19:01:04]New thread 3067174244 created [19:01:04]Thread 3067030884 joined [19:01:04]Waiting for new connection... [19:01:04] Sock 7.Parse request [19:01:04]Sock 7.Check first char [19:01:04]Sock 7.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: 679 [19:01:04]Content-Type: application/json [19:01:04] [19:01:04]POST finish read [19:01:04]Found Content-Length = 679 [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)507312", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "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)507312", "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" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "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 BF 21 CF [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 BF 21 00 72 06 45 66 FC 21 6F 64 EB [19:01:04]GetLastDocTimeStamp 1715799648 [19:01:04]current date 1715799666 [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 C0 21 80 13 01 00 00 00 00 00 5E [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 C0 21 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [19:01:04]RAPDU: 09 00 01 F7 FF 43 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 1715732471 [19:01:04]opened+sec_in_day 1715818871 [19:01:04]quantity*price = 300069 [19:01:04]sum+1 = 300071 [19:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 148 15.05.2024 19:01 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67330 ФПД: 277363837420429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190107&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67330&fm=277363837420429&tin=02508201610067®Number=0000000000091845&sum=300000 [19:01:06]StoreToDocumentArchive [19:01:06]shift 356 fd 67330 [19:01:06]save to /storage/0356/doc_00067330 [19:01:06]save last doc name /storage/0356/doc_00067330 to /storage/kkm_last_doc_name [19:01:06]save OK [19:01:06]Clear old archive folders... [19:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:01:06]tlvbuf is 00BB2870 [19:01:06]SAM_PROTO_ClearQueue [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 09 00 00 [19:01:06]Write to MH i2c: E2 08 00 CD 21 80 09 00 00 00 00 00 00 60 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 09 00 00... 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 CD 21 00 90 00 62 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_ClearQueue done [19:01:06]KKMCreateOFDPacket [19:01:06]OFDProtocolAddRootSTLVToBuf [19:01:06]FM_MakeSignedData [19:01:06]FM_MakeSignedData [19:01:06]SAM_PROTO_SignData [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 01 02 [19:01:06]Write to MH i2c: E2 08 00 CE 21 80 0D 01 02 00 00 00 00 68 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 01 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 CE 21 00 90 00 63 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=255 [19:01:06]MH_SAM_APDU [19:01: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 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 73 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FC 42 CD 00 [19:01:06]Write to MH i2c: E2 02 01 CF 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 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 73 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FC 42 CD 00 00 00 D8 [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 CF 21 00 90 00 64 [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 C3 8D [19:01:06]Write to MH i2c: E2 0A 00 D0 21 80 0D 02 02 02 00 C3 8D 00 00 BF [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 D0 21 00 90 00 65 [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 D1 21 80 0D 03 02 00 00 00 00 6D [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 D1 21 00 5A 77 CE AF DD 84 10 ED 90 00 1A [19:01:06]RAPDU: 5A 77 CE AF DD 84 10 ED 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 D2 21 80 11 00 00 00 00 00 00 6D [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 D2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [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 67330 [19:01:06]StoreOFDPacket docnum=67330 [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 E8 73 04 01 0C 9E 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 73 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FC 42 CD 00 C3 8D 5A 77 CE AF DD 84 10 ED [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/00067330 [19:01:06]NVStorageSaveData ofd_packets/00067330 [19:01:06]File name is /storage/ofd_packets/00067330 [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 D3 21 F4 [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 D3 21 00 00 00 00 00 FF 0F 09 [19:01:06]RasterBufferAndPrint [19:01:06]line Счет N : (1)507312 [19:01:06]line ИНН: 02508201610067 [19:01:06]line Контрольно-Кассовый Чек [19:01:06]line ПРОДАЖА [19:01:06]line ТРК (МРК, ГНК) : 11 [19:01:06]line Товар: 2710194210 [19:01:06]line ДТ-К-5 [19:01:06]line 40.170 * 74.70 [19:01:06]line = 3000.70 [19:01:06]line НДС 12% НСП 1% [19:01:06]line > о реализуемом товаре [19:01:06]line ОКРУГЛЕНИЕ: -0.70 [19:01:06]line ИТОГО: 3000.00 [19:01:06]line Внесено: 3000.00 [19:01:06]line СДАЧА: 0.00 [19:01:06]line НСП 1% : 26.55 [19:01:06]line НДС 12% : 318.66 [19:01:06]line Наличными: 3000.00 [19:01:06]line Безнал.: 0.00 [19:01:06]line Место: АЗС № 91 "Партнер Нефть" [19:01:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:01:06]line СНО: Общий режим [19:01:06]line Чек 148 15.05.2024 19:01 [19:01:06]line Смена: 356 ФФД: 1.0 [19:01:06]line ЗНМ: 0300000119 [19:01:06]line РНМ: 0000000000091845 [19:01:06]line Версия ККМ: 001 [19:01:06]line ФМ: 0000000000871829 [19:01:06]line ФД: 67330 [19:01:06]line ФПД: 277363837420429 [19:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190107&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67330&fm=277363837420429&tin=02508201610067®Number=0000000000091845&sum=300000 [19:01:06]OFD Sender: Processing packet 67330 [packets to send 35, broken 34] [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00067330 [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:07]Connected sock=10 [19:01: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 E8 73 04 01 0C 9E 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 E0 93 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 73 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FC 42 CD 00 C3 8D 5A 77 CE AF DD 84 10 ED [19:01: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 D1 73 47 00 F4 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 02 07 01 00 F4 03 04 00 4F AE 44 66 B6 04 01 00 00 57 FD 5C 0B 8A 54 90 B3 [19:01:07]CommunicateWithHost err = 0 [19:01:07]CheckOFDResponse [19:01:07]1017 (14) - 77093643461234 [19:01:07]1041 (16) - 0000000000871829 [19:01:07]1040 (4) - 67330 [19:01:07]1012 (4) - 15.05.2024 12:45 [19:01:07]1206 (1) - 0 [19:01:07]OFD Sender: Remove packet 67330 [19:01:07]ProducePacketName [19:01:07]name=ofd_packets/00067330 [19:01:07]NVStorageDeleteData [19:01:07]Write to MH i2c: 01 00 00 FD 21 1E [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 FD 21 00 00 00 00 00 D2 0C 03 [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 3288 [19:01:07]MH_Cut [19:01:07]Write to MH i2c: D1 01 00 04 22 01 F8 [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 04 22 00 F7 [19:01:07]Write to MH i2c: 01 00 00 05 22 27 [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]OFD Sender: No OFD packet to send [19:01:08]*** Cut start [19:01:08]*** Purtial cut [19:01:08]*** 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 05 22 00 00 00 00 00 FF 0F 3C [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 06 22 80 11 00 00 00 00 00 00 A2 [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 06 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [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 07 22 80 13 00 00 00 00 00 00 A5 [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 07 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 02 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [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 02 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 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 08 22 80 13 01 00 00 00 00 00 A7 [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 08 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 52 [19:01:08]RAPDU: 09 00 01 F7 FF 43 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":67330,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [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":67330,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [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 7.Close socket [19:01:08]Sock 7.Thread stoped [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:19]accept exits with 9 [19:01:19]New connection [19:01:19]New thread 3067030884 created [19:01:19]Thread 3067174244 joined [19:01:19]Waiting for new connection... [19:01:19] Sock 9.Parse request [19:01:19]Sock 9.Check first char [19:01:19]Sock 9.First char is OK [19:01:19]request: POST /json_proto HTTP/1.0 [19:01:19]Method: POST [19:01:19]URL: /json_proto [19:01:19]Method is POST - this is cgi request [19:01:19]url: /json_proto [19:01:19]query_string will be loaded in cgi processing [19:01:19]execute_cgi json_proto POST (null) [19:01:19]execute_cgi path=json_proto method=POST [19:01:19]POST find Content-Length [19:01:19]Host: 172.17.41.195:8080 [19:01:19]Content-Length: 677 [19:01:19]Content-Type: application/json [19:01:19] [19:01:19]POST finish read [19:01:19]Found Content-Length = 677 [19:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507313", "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" : 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:01:19]execute_script... [19:01:19]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)507313", "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" : 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:01:19]POST & json_proto [19:01:19]process_json_proto [19:01:19]json parsed OK: [19:01:19]protocol is kg_v1.0 [19:01:19]action value=close_receipt [19:01:19]process_action close_receipt [19:01:19]cmd_close_receipt [19:01:19]MH_GetDate [19:01:19]Write to MH i2c: F0 00 00 09 22 1A [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 09 00 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: F0 09 00 09 22 00 82 06 45 66 FC 21 6F 64 46 [19:01:19]GetLastDocTimeStamp 1715799667 [19:01:19]current date 1715799682 [19:01:19]FM_GetShiftState [19:01:19]SAM_PROTO_GetShiftState [19:01:19]wFMCommunicate request_size=4 [19:01:19]MH_SAM_APDU [19:01:19]CAPDU: 80 13 01 00 [19:01:19]Write to MH i2c: E2 08 00 0A 22 80 13 01 00 00 00 00 00 A9 [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0E 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0E 00 0A 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 54 [19:01:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:01:20]wFMCommunicate OK [19:01:20]SAM_PROTO_GetShiftState done [19:01:20]FM_GetShiftState done [19:01:20]opened in 1715732471 [19:01:20]opened+sec_in_day 1715818871 [19:01:20]quantity*price = 30060 [19:01:20]sum+1 = 30061 [19:01:20]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 СНО: Общий режим Чек 149 15.05.2024 19:01 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67331 ФПД: 180048714136909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67331&fm=180048714136909&tin=02508201610067®Number=0000000000091845&sum=30000 [19:01:21]StoreToDocumentArchive [19:01:21]shift 356 fd 67331 [19:01:21]save to /storage/0356/doc_00067331 [19:01:21]save last doc name /storage/0356/doc_00067331 to /storage/kkm_last_doc_name [19:01:21]save OK [19:01:21]Clear old archive folders... [19:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:21]tlvbuf is 00BB2B90 [19:01:21]SAM_PROTO_ClearQueue [19:01:21]wFMCommunicate request_size=4 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 09 00 00 [19:01:21]Write to MH i2c: E2 08 00 17 22 80 09 00 00 00 00 00 00 AB [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [19:01:21]RAPDU: 90 00 [19:01:21]wFMCommunicate OK [19:01:21]SAM_PROTO_ClearQueue done [19:01:21]KKMCreateOFDPacket [19:01:21]OFDProtocolAddRootSTLVToBuf [19:01:21]FM_MakeSignedData [19:01:21]FM_MakeSignedData [19:01:21]SAM_PROTO_SignData [19:01:21]wFMCommunicate request_size=4 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 0D 01 02 [19:01:21]Write to MH i2c: E2 08 00 18 22 80 0D 01 02 00 00 00 00 B3 [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 18 22 00 90 00 AE [19:01:21]RAPDU: 90 00 [19:01:21]wFMCommunicate OK [19:01:21]wFMCommunicate request_size=255 [19:01:21]MH_SAM_APDU [19:01:21]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 95 00 00 00 F4 03 04 00 82 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A3 [19:01:21]Write to MH i2c: E2 02 01 19 22 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 95 00 00 00 F4 03 04 00 82 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A3 00 00 2E [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 19 22 00 90 00 AF [19:01:21]RAPDU: 90 00 [19:01:21]wFMCommunicate OK [19:01:21]wFMCommunicate request_size=10 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 0D 02 02 05 C0 DB A5 FD 4D [19:01:21]Write to MH i2c: E2 0D 00 1A 22 80 0D 02 02 05 00 C0 DB A5 FD 4D 00 00 4A [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 03 00 1A 22 00 90 00 B0 [19:01:21]RAPDU: 90 00 [19:01:21]wFMCommunicate OK [19:01:21]wFMCommunicate request_size=4 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 0D 03 02 [19:01:21]Write to MH i2c: E2 08 00 1B 22 80 0D 03 02 00 00 00 00 B8 [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 0B 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 0B 00 1B 22 00 83 07 A3 BB 06 2E BF 31 90 00 C5 [19:01:21]RAPDU: 83 07 A3 BB 06 2E BF 31 90 00 [19:01:21]wFMCommunicate OK [19:01:21]SAM_PROTO_SignData done [19:01:21]FM_MakeSignedData done [19:01:21]CreateOFDProtocolMessage [19:01:21]wFMCommunicate request_size=4 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 11 00 00 [19:01:21]Write to MH i2c: E2 08 00 1C 22 80 11 00 00 00 00 00 00 B8 [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 17 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 17 00 1C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [19:01:21]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:21]wFMCommunicate OK [19:01:21]CreateOFDProtocolMessage done [19:01:21]OFDSenderStorePacket 67331 [19:01:21]StoreOFDPacket docnum=67331 [19:01:21]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 A0 1F 07 01 F2 73 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 95 00 00 00 F4 03 04 00 82 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A3 C0 DB A5 FD 4D 83 07 A3 BB 06 2E BF 31 [19:01:21]CheckFolder [19:01:21]dirname=/storage/ofd_packets [19:01:21]CheckFolder done [19:01:21]ProducePacketName [19:01:21]name=ofd_packets/00067331 [19:01:21]NVStorageSaveData ofd_packets/00067331 [19:01:21]File name is /storage/ofd_packets/00067331 [19:01:21]Write 301 bytes [19:01:21]NVStorageSaveData done [19:01:21]OFDSenderStorePacket done [19:01:21]KKMCreateOFDPacket done [19:01:21]NVStorageSaveData kkm_last_timestamp [19:01:21]File name is /storage/kkm_last_timestamp [19:01:21]Write 4 bytes [19:01:21]NVStorageSaveData done [19:01:21]ExternCall_PrintAddStr [19:01:21]wPrintStart [19:01:21]Write to MH i2c: 01 00 00 1D 22 3F [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 07 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: 01 07 00 1D 22 00 00 00 00 00 FF 0F 54 [19:01:21]RasterBufferAndPrint [19:01:21]line Счет N : (1)507313 [19:01:21]line ИНН: 02508201610067 [19:01:21]line Контрольно-Кассовый Чек [19:01:21]line ПРОДАЖА [19:01:21]line ТРК (МРК, ГНК) : 33 [19:01:21]line Товар: 2710124130 [19:01:21]line Аи-92-К-5 [19:01:21]line 4.500 * 66.80 [19:01:21]line = 300.60 [19:01:21]line НДС 12% НСП 1% [19:01:21]line > о реализуемом товаре [19:01:21]line ОКРУГЛЕНИЕ: -0.60 [19:01:21]line ИТОГО: 300.00 [19:01:21]line Внесено: 300.00 [19:01:21]line СДАЧА: 0.00 [19:01:21]line НСП 1% : 2.66 [19:01:21]line НДС 12% : 31.92 [19:01:21]line Наличными: 300.00 [19:01:21]line Безнал.: 0.00 [19:01:21]line Место: АЗС № 91 "Партнер Нефть" [19:01:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:01:21]line СНО: Общий режим [19:01:21]line Чек 149 15.05.2024 19:01 [19:01:21]line Смена: 356 ФФД: 1.0 [19:01:21]line ЗНМ: 0300000119 [19:01:21]line РНМ: 0000000000091845 [19:01:21]line Версия ККМ: 001 [19:01:21]line ФМ: 0000000000871829 [19:01:21]line ФД: 67331 [19:01:21]line ФПД: 180048714136909 [19:01:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67331&fm=180048714136909&tin=02508201610067®Number=0000000000091845&sum=30000 [19:01:22]written 0, free lines is 4095 [19:01:22]OFD Sender: Processing packet 67331 [packets to send 35, broken 34] [19:01:22]ProducePacketName [19:01:22]name=ofd_packets/00067331 [19:01:22]OFD Sender: To server: pG, [19:01:22]CommunicateWithHost lk.salyk.kg:30040 [19:01:22]ConnectInit lk.salyk.kg [19:01:22]Connected sock=10 [19:01:22]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 A0 1F 07 01 F2 73 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 95 00 00 00 F4 03 04 00 82 06 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A3 C0 DB A5 FD 4D 83 07 A3 BB 06 2E BF 31 [19:01:22]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 03 47 00 97 52 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 07 01 00 F4 03 04 00 5E AE 44 66 B6 04 01 00 00 4D D4 90 99 07 A0 7F 8C [19:01:22]CommunicateWithHost err = 0 [19:01:22]CheckOFDResponse [19:01:22]1017 (14) - 77093643461234 [19:01:22]1041 (16) - 0000000000871829 [19:01:22]1040 (4) - 67331 [19:01:22]1012 (4) - 15.05.2024 12:45 [19:01:22]1206 (1) - 0 [19:01:22]OFD Sender: Remove packet 67331 [19:01:22]ProducePacketName [19:01:22]name=ofd_packets/00067331 [19:01:22]NVStorageDeleteData [19:01:22]Write to MH i2c: 01 00 00 47 22 69 [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: 01 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: 01 07 00 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: 01 07 00 47 22 00 00 00 00 00 D1 0C 4D [19:01:22]RasterBufferAndPrint [19:01:22]line [19:01:22]line [19:01:22]line [19:01:22]line [19:01:22]line [19:01:22]written 0, free lines is 3287 [19:01:22]MH_Cut [19:01:22]Write to MH i2c: D1 01 00 4E 22 01 42 [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: D1 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: D1 01 00 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: D1 01 00 4E 22 00 41 [19:01:22]Write to MH i2c: 01 00 00 4F 22 71 [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:22]OFD Sender: No OFD packet to send [19:01:23]*** Cut start [19:01:23]*** Purtial cut [19:01:23]*** CUTSNS_PIN = 0 [19:01:23]*** Stage 1: CUTSNS_PIN = 1 [19:01:25]Read from MH i2c: 01 [19:01:25]MH_I2C_Read... [19:01:25]*** Stop cut motor [19:01:25]*** Cut end [19:01:25]Read from MH i2c: 01 07 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: 01 07 00 4F 22 00 00 00 00 00 FF 0F 86 [19:01:25]process_action close_receipt done [19:01:25]requested_data is exist [19:01:25]produce_requested_data [19:01:25]requested_item fm.sn is exist - process it [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 11 00 00 [19:01:25]Write to MH i2c: E2 08 00 50 22 80 11 00 00 00 00 00 00 EC [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 [19:01:25]MH_I2C_Read... [19:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:25]Read from MH i2c: E2 17 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 17 00 50 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [19:01: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:01:25]wFMCommunicate OK [19:01:25]requested_item fd.num is exist - process it [19:01:25]SAM_PROTO_GetFieldsCounters [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 13 00 00 [19:01:25]Write to MH i2c: E2 08 00 51 22 80 13 00 00 00 00 00 00 EF [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:25]Read from MH i2c: E2 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 62 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 62 00 51 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 03 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [19:01: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 03 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:25]wFMCommunicate OK [19:01:25]SAM_PROTO_GetFieldsCounters done [19:01:25]requested_item shift.num is exist - process it [19:01:25]requested_item shift.opened is exist - process it [19:01:25]req_shift_opened [19:01:25]FM_GetShiftState [19:01:25]SAM_PROTO_GetShiftState [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 13 01 00 [19:01:25]Write to MH i2c: E2 08 00 52 22 80 13 01 00 00 00 00 00 F1 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:25]Read from MH i2c: E2 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 0E 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 0E 00 52 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9C [19:01:25]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:01:25]wFMCommunicate OK [19:01:25]SAM_PROTO_GetShiftState done [19:01:25]FM_GetShiftState done [19:01:25]req_shift_opened done [19:01:25]requested_item shift.open_date is exist - process it [19:01:25]req_shift_open_date [19:01:25]req_shift_open_date done [19:01:25]produce_requested_data done [19:01:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67331,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:01:25]process_action_free close_receipt [19:01:25]json_value_free [19:01:25]json_value_free done [19:01:25]process_json_proto returns [19:01:25]Send response to host [19:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67331,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:01:25]free response buf [19:01:25]execute_script done [19:01:25]execute_script returns [19:01:25]free content buf [19:01:25]Sock 9.Close socket [19:01:25]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [19:02:08]accept exits with 7 [19:02:08]New connection [19:02:08]New thread 3067174244 created [19:02:08]Thread 3067030884 joined [19:02:08]Waiting for new connection... [19:02:08] Sock 7.Parse request [19:02:08]Sock 7.Check first char [19:02:08]Sock 7.First char is OK [19:02:08]request: POST /json_proto HTTP/1.0 [19:02:08]Method: POST [19:02:08]URL: /json_proto [19:02:08]Method is POST - this is cgi request [19:02:08]url: /json_proto [19:02:08]query_string will be loaded in cgi processing [19:02:08]execute_cgi json_proto POST (null) [19:02:08]execute_cgi path=json_proto method=POST [19:02:08]POST find Content-Length [19:02:08]Host: 172.17.41.195:8080 [19:02:08]Content-Length: 215 [19:02:08]Content-Type: application/json [19:02:08] [19:02:08]POST finish read [19:02:08]Found Content-Length = 215 [19:02:08]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:02:08]execute_script... [19:02:08]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:02:08]POST & json_proto [19:02:08]process_json_proto [19:02:08]json parsed OK: [19:02:08]protocol is kg_v1.0 [19:02:08]action value=get_value [19:02:08]process_action get_value [19:02:08]cmd_get_value [19:02:08]process_action get_value done [19:02:08]requested_data is exist [19:02:08]produce_requested_data [19:02:08]requested_item kkm.sn is exist - process it [19:02:08]requested_item kkm.ver is exist - process it [19:02:08]requested_item fm.sn is exist - process it [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 11 00 00 [19:02:08]Write to MH i2c: E2 08 00 53 22 80 11 00 00 00 00 00 00 EF [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 17 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 17 00 53 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [19:02: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:02:08]wFMCommunicate OK [19:02:08]requested_item fd.num is exist - process it [19:02:08]SAM_PROTO_GetFieldsCounters [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 00 00 [19:02:08]Write to MH i2c: E2 08 00 54 22 80 13 00 00 00 00 00 00 F2 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 62 00 54 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 03 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [19:02: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 03 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetFieldsCounters done [19:02:08]requested_item shift.num is exist - process it [19:02:08]requested_item shift.opened is exist - process it [19:02:08]req_shift_opened [19:02:08]FM_GetShiftState [19:02:08]SAM_PROTO_GetShiftState [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 01 00 [19:02:08]Write to MH i2c: E2 08 00 55 22 80 13 01 00 00 00 00 00 F4 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:08]Read from MH i2c: E2 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 [19:02:08]MH_I2C_Read... [19:02:08]Read from MH i2c: E2 0E 00 55 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9F [19:02:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:02:08]wFMCommunicate OK [19:02:08]SAM_PROTO_GetShiftState done [19:02:08]FM_GetShiftState done [19:02:08]req_shift_opened done [19:02:08]requested_item shift.open_date is exist - process it [19:02:08]req_shift_open_date [19:02:08]req_shift_open_date done [19:02:08]produce_requested_data done [19:02:08]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67331,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:02:08]process_action_free get_value [19:02:08]json_value_free [19:02:08]json_value_free done [19:02:08]process_json_proto returns [19:02:08]Send response to host [19:02:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67331,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:02:08]free response buf [19:02:08]execute_script done [19:02:08]execute_script returns [19:02:08]free content buf [19:02:08]Sock 7.Close socket [19:02:08]Sock 7.Thread stoped [19:02:08]accept exits with 9 [19:02:08]New connection [19:02:08]New thread 3067030884 created [19:02:08]Thread 3067174244 joined [19:02:08]Waiting for new connection... [19:02:08] Sock 9.Parse request [19:02:08]Sock 9.Check first char [19:02:08]Sock 9.First char is OK [19:02:08]request: POST /json_proto HTTP/1.0 [19:02:08]Method: POST [19:02:08]URL: /json_proto [19:02:08]Method is POST - this is cgi request [19:02:08]url: /json_proto [19:02:08]query_string will be loaded in cgi processing [19:02:08]execute_cgi json_proto POST (null) [19:02:08]execute_cgi path=json_proto method=POST [19:02:08]POST find Content-Length [19:02:08]Host: 172.17.41.195:8080 [19:02:08]Content-Length: 331 [19:02:08]Content-Type: application/json [19:02:08] [19:02:08]POST finish read [19:02:08]Found Content-Length = 331 [19:02:08]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:02:08]execute_script... [19:02:08]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:02:08]POST & json_proto [19:02:08]process_json_proto [19:02:08]json parsed OK: [19:02:08]protocol is kg_v1.0 [19:02:08]action value=get_value [19:02:08]process_action get_value [19:02:08]cmd_get_value [19:02:08]process_action get_value done [19:02:08]requested_data is exist [19:02:08]produce_requested_data [19:02:08]requested_item fm.sale.total is exist - process it [19:02:08]SAM_PROTO_GetFMData [19:02:08]wFMCommunicate request_size=4 [19:02:08]MH_SAM_APDU [19:02:08]CAPDU: 80 13 03 00 [19:02:08]Write to MH i2c: E2 08 00 56 22 80 13 03 00 00 00 00 00 F7 [19:02:08]Write i2c OK [19:02:08]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:02:09]Read from MH i2c: E2 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 56 22 00 C6 04 85 04 C2 04 6E 04 04 00 3B 04 01 00 69 04 A3 00 6F 04 04 00 95 03 01 00 B1 04 05 00 31 76 39 1A 03 70 04 05 00 BC 02 07 BF 02 72 04 04 00 75 73 32 5B 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 8D 9E 5A 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 BF 78 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 64 [19:02:09]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3B 04 01 00 69 04 A3 00 6F 04 04 00 95 03 01 00 B1 04 05 00 31 76 39 1A 03 70 04 05 00 BC 02 07 BF 02 72 04 04 00 75 73 32 5B 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 8D 9E 5A 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 BF 78 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [19:02:09]wFMCommunicate OK [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 17 00 00 [19:02:09]Write to MH i2c: E2 08 00 57 22 80 17 00 00 00 00 00 00 F9 [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:09]Read from MH i2c: E2 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 57 22 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 10 [19:02:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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:02:09]wFMCommunicate OK [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 17 00 00 [19:02:09]Write to MH i2c: E2 08 00 58 22 80 17 00 00 00 00 00 00 FA [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:09]Read from MH i2c: E2 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 [19:02:09]MH_I2C_Read... [19:02:09]Read from MH i2c: E2 FD 00 58 22 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:02:09]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:02:09]wFMCommunicate OK [19:02:09]wFMCommunicate request_size=4 [19:02:09]MH_SAM_APDU [19:02:09]CAPDU: 80 17 00 00 [19:02:09]Write to MH i2c: E2 08 00 59 22 80 17 00 00 00 00 00 00 FB [19:02:09]Write i2c OK [19:02:09]MH_I2C_Read... [19:02:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 59 22 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [19:02: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:02:10]wFMCommunicate OK [19:02:10]wFMCommunicate request_size=4 [19:02:10]MH_SAM_APDU [19:02:10]CAPDU: 80 17 00 00 [19:02:10]Write to MH i2c: E2 08 00 5A 22 80 17 00 00 00 00 00 00 FC [19:02:10]Write i2c OK [19:02:10]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 E3 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 E3 00 5A 22 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:02:10]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:02:10]wFMCommunicate OK [19:02:10]SAM_PROTO_GetFMData done [19:02:10]requested_item fm.sale_refund.total is exist - process it [19:02:10]requested_item fm.buy.total is exist - process it [19:02:10]requested_item shift.sale.total is exist - process it [19:02:10]SAM_PROTO_GetShiftData [19:02:10]wFMCommunicate request_size=4 [19:02:10]MH_SAM_APDU [19:02:10]CAPDU: 80 13 02 00 [19:02:10]Write to MH i2c: E2 08 00 5B 22 80 13 02 00 00 00 00 00 FB [19:02:10]Write i2c OK [19:02:10]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 5B 22 00 BA 04 AA 04 B6 04 6E 04 04 00 95 00 00 00 69 04 9D 00 6F 04 04 00 94 00 00 00 B1 04 04 00 93 BD 29 01 70 04 03 00 E0 9C 41 72 04 03 00 B3 20 E8 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 FF 9E 1F 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 8C A2 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F1 [19:02:10]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 95 00 00 00 69 04 9D 00 6F 04 04 00 94 00 00 00 B1 04 04 00 93 BD 29 01 70 04 03 00 E0 9C 41 72 04 03 00 B3 20 E8 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 FF 9E 1F 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 8C A2 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:02:10]wFMCommunicate OK [19:02:10]wFMCommunicate request_size=4 [19:02:10]MH_SAM_APDU [19:02:10]CAPDU: 80 17 00 00 [19:02:10]Write to MH i2c: E2 08 00 5C 22 80 17 00 00 00 00 00 00 FE [19:02:10]Write i2c OK [19:02:10]MH_I2C_Read... [19:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:10]Read from MH i2c: E2 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 [19:02:10]MH_I2C_Read... [19:02:10]Read from MH i2c: E2 FD 00 5C 22 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [19:02:11]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 17 00 00 [19:02:11]Write to MH i2c: E2 08 00 5D 22 80 17 00 00 00 00 00 00 FF [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 FD 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 FD 00 5D 22 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [19:02:11]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 17 00 00 [19:02:11]Write to MH i2c: E2 08 00 5E 22 80 17 00 00 00 00 00 00 00 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 FD 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 FD 00 5E 22 00 00 EF 03 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 90 00 78 [19:02:11]RAPDU: 00 EF 03 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 90 00 [19:02:11]wFMCommunicate OK [19:02:11]wFMCommunicate request_size=4 [19:02:11]MH_SAM_APDU [19:02:11]CAPDU: 80 17 00 00 [19:02:11]Write to MH i2c: E2 08 00 5F 22 80 17 00 00 00 00 00 00 01 [19:02:11]Write i2c OK [19:02:11]MH_I2C_Read... [19:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:02:11]Read from MH i2c: E2 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 D7 00 [19:02:11]MH_I2C_Read... [19:02:11]Read from MH i2c: E2 D7 00 5F 22 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [19:02:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:11]wFMCommunicate OK [19:02:11]SAM_PROTO_GetShiftData done [19:02:11]requested_item shift.sale.total_cash is exist - process it [19:02:11]requested_item shift.sale_refund.total is exist - process it [19:02:11]requested_item shift.sale_refund.total_cash is exist - process it [19:02:11]requested_item shift.buy.total is exist - process it [19:02:11]requested_item shift.buy.total_cash is exist - process it [19:02:11]produce_requested_data done [19:02:11]produce_requested_data return {"fm.sale.total":133248753.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":195127.23,"shift.sale.total_cash":43000.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:02:11]process_action_free get_value [19:02:11]json_value_free [19:02:11]json_value_free done [19:02:11]process_json_proto returns [19:02:11]Send response to host [19:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133248753.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":195127.23,"shift.sale.total_cash":43000.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:02:11]free response buf [19:02:11]execute_script done [19:02:11]execute_script returns [19:02:11]free content buf [19:02:11]Sock 9.Close socket [19:02:11]Sock 9.Thread stoped [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:27]accept exits with 7 [19:03:27]New connection [19:03:27]New thread 3067174244 created [19:03:27]Thread 3067030884 joined [19:03:27]Waiting for new connection... [19:03:27] Sock 7.Parse request [19:03:27]Sock 7.Check first char [19:03:27]Sock 7.First char is OK [19:03:27]request: POST /json_proto HTTP/1.0 [19:03:27]Method: POST [19:03:27]URL: /json_proto [19:03:27]Method is POST - this is cgi request [19:03:27]url: /json_proto [19:03:27]query_string will be loaded in cgi processing [19:03:27]execute_cgi json_proto POST (null) [19:03:27]execute_cgi path=json_proto method=POST [19:03:27]POST find Content-Length [19:03:27]Host: 172.17.41.195:8080 [19:03:27]Content-Length: 679 [19:03:27]Content-Type: application/json [19:03:27] [19:03:27]POST finish read [19:03:27]Found Content-Length = 679 [19:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507314", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:27]execute_script... [19:03: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)507314", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:27]POST & json_proto [19:03:27]process_json_proto [19:03:27]json parsed OK: [19:03:27]protocol is kg_v1.0 [19:03:27]action value=close_receipt [19:03:27]process_action close_receipt [19:03:27]cmd_close_receipt [19:03:27]MH_GetDate [19:03:27]Write to MH i2c: F0 00 00 60 22 71 [19:03:27]Write i2c OK [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: F0 [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: F0 09 00 [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: F0 09 00 60 22 00 01 07 45 66 FC 21 6F 64 1D [19:03:27]GetLastDocTimeStamp 1715799682 [19:03:27]current date 1715799809 [19:03:27]FM_GetShiftState [19:03:27]SAM_PROTO_GetShiftState [19:03:27]wFMCommunicate request_size=4 [19:03:27]MH_SAM_APDU [19:03:27]CAPDU: 80 13 01 00 [19:03:27]Write to MH i2c: E2 08 00 61 22 80 13 01 00 00 00 00 00 00 [19:03:27]Write i2c OK [19:03:27]MH_I2C_Read... [19:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:27]Read from MH i2c: E2 [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: E2 0E 00 [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: E2 0E 00 61 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AB [19:03:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:03:27]wFMCommunicate OK [19:03:27]SAM_PROTO_GetShiftState done [19:03:27]FM_GetShiftState done [19:03:27]opened in 1715732471 [19:03:27]opened+sec_in_day 1715818871 [19:03:27]quantity*price = 150072 [19:03:27]sum+1 = 150073 [19:03:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 150 15.05.2024 19:03 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67332 ФПД: 273132736203710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190329&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67332&fm=273132736203710&tin=02508201610067®Number=0000000000091845&sum=150000 [19:03:28]StoreToDocumentArchive [19:03:28]shift 356 fd 67332 [19:03:28]save to /storage/0356/doc_00067332 [19:03:28]save last doc name /storage/0356/doc_00067332 to /storage/kkm_last_doc_name [19:03:28]save OK [19:03:28]Clear old archive folders... [19:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:28]tlvbuf is 00BCAB30 [19:03:28]SAM_PROTO_ClearQueue [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 09 00 00 [19:03:28]Write to MH i2c: E2 08 00 6E 22 80 09 00 00 00 00 00 00 02 [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 6E 22 00 90 00 04 [19:03:28]RAPDU: 90 00 [19:03:28]wFMCommunicate OK [19:03:28]SAM_PROTO_ClearQueue done [19:03:28]KKMCreateOFDPacket [19:03:28]OFDProtocolAddRootSTLVToBuf [19:03:28]FM_MakeSignedData [19:03:28]FM_MakeSignedData [19:03:28]SAM_PROTO_SignData [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 0D 01 02 [19:03:28]Write to MH i2c: E2 08 00 6F 22 80 0D 01 02 00 00 00 00 0A [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 6F 22 00 90 00 05 [19:03:28]RAPDU: 90 00 [19:03:28]wFMCommunicate OK [19:03:28]wFMCommunicate request_size=255 [19:03:28]MH_SAM_APDU [19:03: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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F8 69 AB B7 [19:03:28]Write to MH i2c: E2 02 01 70 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F8 69 AB B7 00 00 AA [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [19:03:28]RAPDU: 90 00 [19:03:28]wFMCommunicate OK [19:03:28]wFMCommunicate request_size=7 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 0D 02 02 02 CB BE [19:03:28]Write to MH i2c: E2 0A 00 71 22 80 0D 02 02 02 00 CB BE 00 00 9A [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [19:03:28]RAPDU: 90 00 [19:03:28]wFMCommunicate OK [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 0D 03 02 [19:03:28]Write to MH i2c: E2 08 00 72 22 80 0D 03 02 00 00 00 00 0F [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 0B 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 0B 00 72 22 00 BB 93 78 BD A1 65 B2 3C 90 00 87 [19:03:28]RAPDU: BB 93 78 BD A1 65 B2 3C 90 00 [19:03:28]wFMCommunicate OK [19:03:28]SAM_PROTO_SignData done [19:03:28]FM_MakeSignedData done [19:03:28]CreateOFDProtocolMessage [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 11 00 00 [19:03:28]Write to MH i2c: E2 08 00 73 22 80 11 00 00 00 00 00 00 0F [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 17 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 17 00 73 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [19:03:28]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:28]wFMCommunicate OK [19:03:28]CreateOFDProtocolMessage done [19:03:28]OFDSenderStorePacket 67332 [19:03:28]StoreOFDPacket docnum=67332 [19:03: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 00 A4 04 01 51 69 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F8 69 AB B7 CB BE BB 93 78 BD A1 65 B2 3C [19:03:28]CheckFolder [19:03:28]dirname=/storage/ofd_packets [19:03:28]CheckFolder done [19:03:28]ProducePacketName [19:03:28]name=ofd_packets/00067332 [19:03:28]NVStorageSaveData ofd_packets/00067332 [19:03:28]File name is /storage/ofd_packets/00067332 [19:03:28]Write 298 bytes [19:03:28]NVStorageSaveData done [19:03:28]OFDSenderStorePacket done [19:03:28]KKMCreateOFDPacket done [19:03:28]NVStorageSaveData kkm_last_timestamp [19:03:28]File name is /storage/kkm_last_timestamp [19:03:28]Write 4 bytes [19:03:28]NVStorageSaveData done [19:03:28]ExternCall_PrintAddStr [19:03:28]wPrintStart [19:03:28]Write to MH i2c: 01 00 00 74 22 96 [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: 01 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: 01 07 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: 01 07 00 74 22 00 00 00 00 00 FF 0F AB [19:03:28]RasterBufferAndPrint [19:03:28]line Счет N : (1)507314 [19:03:28]line ИНН: 02508201610067 [19:03:28]line Контрольно-Кассовый Чек [19:03:28]line ПРОДАЖА [19:03:28]line ТРК (МРК, ГНК) : 31 [19:03:28]line Товар: 2710194210 [19:03:28]line ДТ-К-5 [19:03:28]line 20.090 * 74.70 [19:03:28]line = 1500.72 [19:03:28]line НДС 12% НСП 1% [19:03:28]line > о реализуемом товаре [19:03:28]line ОКРУГЛЕНИЕ: -0.72 [19:03:28]line ИТОГО: 1500.00 [19:03:28]line Внесено: 1500.00 [19:03:28]line СДАЧА: 0.00 [19:03:28]line НСП 1% : 13.28 [19:03:28]line НДС 12% : 159.37 [19:03:28]line Наличными: 1500.00 [19:03:28]line Безнал.: 0.00 [19:03:28]line Место: АЗС № 91 "Партнер Нефть" [19:03:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:03:28]line СНО: Общий режим [19:03:28]line Чек 150 15.05.2024 19:03 [19:03:28]line Смена: 356 ФФД: 1.0 [19:03:28]line ЗНМ: 0300000119 [19:03:28]line РНМ: 0000000000091845 [19:03:28]line Версия ККМ: 001 [19:03:28]line ФМ: 0000000000871829 [19:03:28]line ФД: 67332 [19:03:28]line ФПД: 273132736203710 [19:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190329&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67332&fm=273132736203710&tin=02508201610067®Number=0000000000091845&sum=150000 [19:03:29]OFD Sender: Processing packet 67332 [packets to send 35, broken 34] [19:03:29]ProducePacketName [19:03:29]name=ofd_packets/00067332 [19:03:29]OFD Sender: To server: pG, [19:03:29]CommunicateWithHost lk.salyk.kg:30040 [19:03:29]ConnectInit lk.salyk.kg [19:03:29]written 0, free lines is 4095 [19:03:29]Connected sock=10 [19:03: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 00 A4 04 01 51 69 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 01 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F8 69 AB B7 CB BE BB 93 78 BD A1 65 B2 3C [19:03: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 1F 44 47 00 0E 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 04 07 01 00 F4 03 04 00 DE AE 44 66 B6 04 01 00 00 AC 4B 2F E6 3C 78 B4 04 [19:03:29]CommunicateWithHost err = 0 [19:03:29]CheckOFDResponse [19:03:29]1017 (14) - 77093643461234 [19:03:29]1041 (16) - 0000000000871829 [19:03:29]1040 (4) - 67332 [19:03:29]1012 (4) - 15.05.2024 12:47 [19:03:29]1206 (1) - 0 [19:03:29]OFD Sender: Remove packet 67332 [19:03:29]ProducePacketName [19:03:29]name=ofd_packets/00067332 [19:03:29]NVStorageDeleteData [19:03:29]Write to MH i2c: 01 00 00 9E 22 C0 [19:03:29]Write i2c OK [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: 01 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: 01 07 00 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 E3 0C B6 [19:03:29]RasterBufferAndPrint [19:03:29]line [19:03:29]line [19:03:29]line [19:03:29]line [19:03:29]line [19:03:29]written 0, free lines is 3305 [19:03:29]MH_Cut [19:03:29]Write to MH i2c: D1 01 00 A5 22 01 99 [19:03:29]Write i2c OK [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: D1 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: D1 01 00 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: D1 01 00 A5 22 00 98 [19:03:29]Write to MH i2c: 01 00 00 A6 22 C8 [19:03:29]Write i2c OK [19:03:29]MH_I2C_Read... [19:03:30]OFD Sender: No OFD packet to send [19:03:30]*** Cut start [19:03:30]*** Purtial cut [19:03:30]*** Stage 1: CUTSNS_PIN = 1 [19:03:30]Read from MH i2c: 01 [19:03:30]MH_I2C_Read... [19:03:30]*** Stop cut motor [19:03:30]*** Cut end [19:03:30]Read from MH i2c: 01 07 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: 01 07 00 A6 22 00 00 00 00 00 FF 0F DD [19:03:30]process_action close_receipt done [19:03:30]requested_data is exist [19:03:30]produce_requested_data [19:03:30]requested_item fm.sn is exist - process it [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 11 00 00 [19:03:30]Write to MH i2c: E2 08 00 A7 22 80 11 00 00 00 00 00 00 43 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 17 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 17 00 A7 22 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:03:30]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:30]wFMCommunicate OK [19:03:30]requested_item fd.num is exist - process it [19:03:30]SAM_PROTO_GetFieldsCounters [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 13 00 00 [19:03:30]Write to MH i2c: E2 08 00 A8 22 80 13 00 00 00 00 00 00 46 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:31]Read from MH i2c: E2 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 62 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 62 00 A8 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 04 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [19:03: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 04 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:31]wFMCommunicate OK [19:03:31]SAM_PROTO_GetFieldsCounters done [19:03:31]requested_item shift.num is exist - process it [19:03:31]requested_item shift.opened is exist - process it [19:03:31]req_shift_opened [19:03:31]FM_GetShiftState [19:03:31]SAM_PROTO_GetShiftState [19:03:31]wFMCommunicate request_size=4 [19:03:31]MH_SAM_APDU [19:03:31]CAPDU: 80 13 01 00 [19:03:31]Write to MH i2c: E2 08 00 A9 22 80 13 01 00 00 00 00 00 48 [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:31]Read from MH i2c: E2 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 0E 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: E2 0E 00 A9 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F3 [19:03:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:03:31]wFMCommunicate OK [19:03:31]SAM_PROTO_GetShiftState done [19:03:31]FM_GetShiftState done [19:03:31]req_shift_opened done [19:03:31]requested_item shift.open_date is exist - process it [19:03:31]req_shift_open_date [19:03:31]req_shift_open_date done [19:03:31]produce_requested_data done [19:03:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67332,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:03:31]process_action_free close_receipt [19:03:31]json_value_free [19:03:31]json_value_free done [19:03:31]process_json_proto returns [19:03:31]Send response to host [19:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67332,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:03:31]free response buf [19:03:31]execute_script done [19:03:31]execute_script returns [19:03:31]free content buf [19:03:31]Sock 7.Close socket [19:03:31]Sock 7.Thread stoped [19:03:35]OFD Sender: No OFD packet to send [19:03:35]int [19:03:35]Write to MH i2c: 01 00 00 AA 22 CC [19:03:35]*** FLAG_PRN_PAP1 set [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 AA 22 00 01 00 00 00 FF 0F E2 [19:03:35]state=0 [19:03:35]No paper [19:03:35]int [19:03:35]Write to MH i2c: 01 00 00 AB 22 CD [19:03:35]*** FLAG_PRN_PAP2 set [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 AB 22 00 03 00 00 00 FF 0F E5 [19:03:35]state=0 [19:03:35]No paper [19:03:35]Cover opened [19:03:38]int [19:03:38]Write to MH i2c: 01 00 00 AC 22 CE [19:03:38]*** FLAG_PRN_KEY set [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 07 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 07 00 AC 22 00 0B 00 00 00 FF 0F EE [19:03:38]state=3 [19:03:38]No paper [19:03:38]Cover opened [19:03:38]Key pressed [19:03:38]Key pressed with opened cover [19:03:38]int [19:03:38]Write to MH i2c: 01 00 00 AD 22 CF [19:03:38]*** FLAG_PRN_KEY reset [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 07 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 07 00 AD 22 00 03 00 00 00 FF 0F E7 [19:03:38]state=4 [19:03:38]No paper [19:03:38]Cover opened [19:03:38]Key released [19:03:39]int [19:03:39]Write to MH i2c: 01 00 00 AE 22 D0 [19:03:39]*** FLAG_PRN_KEY set [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: 01 [19:03:39]MH_I2C_Read... [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 AE 22 00 0B 00 00 00 FF 0F F0 [19:03:39]state=3 [19:03:39]No paper [19:03:39]Cover opened [19:03:39]Key pressed [19:03:39]Key pressed with opened cover [19:03:39]Write to MH i2c: 01 00 00 AF 22 D1 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: 01 [19:03:39]MH_I2C_Read... [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 AF 22 00 0B 00 00 00 FF 0F F1 [19:03:39]state=4 [19:03:39]No paper [19:03:39]Cover opened [19:03:39]Key pressed [19:03:40]OFD Sender: No OFD packet to send [19:03:40]Write to MH i2c: 01 00 00 B0 22 D2 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 07 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 07 00 B0 22 00 0B 00 00 00 FF 0F F2 [19:03:40]state=4 [19:03:40]No paper [19:03:40]Cover opened [19:03:40]Key pressed [19:03:40]Write to MH i2c: 01 00 00 B1 22 D3 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 07 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: 01 07 00 B1 22 00 0B 00 00 00 FF 0F F3 [19:03:40]state=4 [19:03:40]No paper [19:03:40]Cover opened [19:03:40]Key pressed [19:03:41]Write to MH i2c: 01 00 00 B2 22 D4 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 B2 22 00 0B 00 00 00 FF 0F F4 [19:03:41]state=4 [19:03:41]No paper [19:03:41]Cover opened [19:03:41]Key pressed [19:03:41]Write to MH i2c: 01 00 00 B3 22 D5 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 B3 22 00 0B 00 00 00 FF 0F F5 [19:03:41]state=4 [19:03:41]No paper [19:03:41]Cover opened [19:03:41]Key pressed [19:03:42]Write to MH i2c: 01 00 00 B4 22 D6 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 B4 22 00 0B 00 00 00 FF 0F F6 [19:03:42]state=4 [19:03:42]No paper [19:03:42]Cover opened [19:03:42]Key pressed [19:03:42]Write to MH i2c: 01 00 00 B5 22 D7 [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: 01 07 00 B5 22 00 0B 00 00 00 FF 0F F7 [19:03:42]state=4 [19:03:42]No paper [19:03:42]Cover opened [19:03:42]Key pressed [19:03:43]int [19:03:43]Write to MH i2c: 01 00 00 B6 22 D8 [19:03:43]*** FLAG_PRN_KEY reset [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 07 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 07 00 B6 22 00 03 00 00 00 FF 0F F0 [19:03:43]state=4 [19:03:43]No paper [19:03:43]Cover opened [19:03:43]Key released [19:03:45]OFD Sender: No OFD packet to send [19:03:48]Write to MH i2c: 01 00 00 B7 22 D9 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 07 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: 01 07 00 B7 22 00 03 00 00 00 FF 0F F1 [19:03:48]state=3 [19:03:48]No paper [19:03:48]Cover opened [19:03:50]OFD Sender: No OFD packet to send [19:03:53]Write to MH i2c: 01 00 00 B8 22 DA [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 B8 22 00 03 00 00 00 FF 0F F2 [19:03:53]state=3 [19:03:53]No paper [19:03:53]Cover opened [19:03:55]OFD Sender: No OFD packet to send [19:03:56]int [19:03:56]Write to MH i2c: 01 00 00 B9 22 DB [19:03:56]*** FLAG_PRN_PAP1 reset [19:03:56]*** FLAG_PRN_PAP2 reset [19:03:56]Write i2c OK [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 07 00 [19:03:56]MH_I2C_Read... [19:03:56]Read from MH i2c: 01 07 00 B9 22 00 00 00 00 00 FF 0F F0 [19:03:56]state=3 [19:03:56]Cover closed [19:03:58]int [19:03:58]Write to MH i2c: 01 00 00 BA 22 DC [19:03:58]*** FLAG_PRN_KEY set [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 BA 22 00 08 00 00 00 FF 0F F9 [19:03:58]state=0 [19:03:58]Key pressed [19:03:58]Feed [19:03:58]Write to MH i2c: D8 00 00 BB 22 B4 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: D8 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: D8 01 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: D8 01 00 BB 22 00 B5 [19:03:58]int [19:03:58]Write to MH i2c: 01 00 00 BC 22 DE [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 BC 22 00 48 00 00 00 3C 00 69 [19:03:58]state=2 [19:03:58]Key pressed [19:03:58]int [19:03:58]Write to MH i2c: 01 00 00 BD 22 DF [19:03:58]*** FLAG_PRN_KEY reset [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: 01 07 00 BD 22 00 00 00 00 00 F9 0F EE [19:03:58]state=2 [19:03:58]Stop feed [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:38]accept exits with 9 [19:05:38]New connection [19:05:38]New thread 3067030884 created [19:05:38]Thread 3067174244 joined [19:05:38]Waiting for new connection... [19:05:38] Sock 9.Parse request [19:05:38]Sock 9.Check first char [19:05:38]Sock 9.First char is OK [19:05:38]request: POST /json_proto HTTP/1.0 [19:05:38]Method: POST [19:05:38]URL: /json_proto [19:05:38]Method is POST - this is cgi request [19:05:38]url: /json_proto [19:05:38]query_string will be loaded in cgi processing [19:05:38]execute_cgi json_proto POST (null) [19:05:38]execute_cgi path=json_proto method=POST [19:05:38]POST find Content-Length [19:05:38]Host: 172.17.41.195:8080 [19:05:38]Content-Length: 682 [19:05:38]Content-Type: application/json [19:05:38] [19:05:38]POST finish read [19:05:38]Found Content-Length = 682 [19:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507315", "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" : 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:05:38]execute_script... [19:05: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)507315", "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" : 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:05:38]POST & json_proto [19:05:38]process_json_proto [19:05:38]json parsed OK: [19:05:38]protocol is kg_v1.0 [19:05:38]action value=close_receipt [19:05:38]process_action close_receipt [19:05:38]cmd_close_receipt [19:05:38]MH_GetDate [19:05:38]Write to MH i2c: F0 00 00 BE 22 CF [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: F0 09 00 BE 22 00 84 07 45 66 FC 21 6F 64 FE [19:05:38]GetLastDocTimeStamp 1715799809 [19:05:38]current date 1715799940 [19:05:38]FM_GetShiftState [19:05:38]SAM_PROTO_GetShiftState [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 13 01 00 [19:05:38]Write to MH i2c: E2 08 00 BF 22 80 13 01 00 00 00 00 00 5E [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 BF 22 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [19:05:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:05:38]wFMCommunicate OK [19:05:38]SAM_PROTO_GetShiftState done [19:05:38]FM_GetShiftState done [19:05:38]opened in 1715732471 [19:05:38]opened+sec_in_day 1715818871 [19:05:38]quantity*price = 100066 [19:05:38]sum+1 = 100067 [19:05:38]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 СНО: Общий режим Чек 151 15.05.2024 19:05 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67333 ФПД: 160311972849451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190540&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67333&fm=160311972849451&tin=02508201610067®Number=0000000000091845&sum=100000 [19:05:39]StoreToDocumentArchive [19:05:39]shift 356 fd 67333 [19:05:39]save to /storage/0356/doc_00067333 [19:05:39]save last doc name /storage/0356/doc_00067333 to /storage/kkm_last_doc_name [19:05:39]save OK [19:05:39]Clear old archive folders... [19:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:39]tlvbuf is 00B36470 [19:05:39]SAM_PROTO_ClearQueue [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 09 00 00 [19:05:39]Write to MH i2c: E2 08 00 CC 22 80 09 00 00 00 00 00 00 60 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 CC 22 00 90 00 62 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]SAM_PROTO_ClearQueue done [19:05:39]KKMCreateOFDPacket [19:05:39]OFDProtocolAddRootSTLVToBuf [19:05:39]FM_MakeSignedData [19:05:39]FM_MakeSignedData [19:05:39]SAM_PROTO_SignData [19:05:39]wFMCommunicate request_size=4 [19:05:39]MH_SAM_APDU [19:05:39]CAPDU: 80 0D 01 02 [19:05:39]Write to MH i2c: E2 08 00 CD 22 80 0D 01 02 00 00 00 00 68 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:39]Read from MH i2c: E2 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 [19:05:39]MH_I2C_Read... [19:05:39]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [19:05:39]RAPDU: 90 00 [19:05:39]wFMCommunicate OK [19:05:39]wFMCommunicate request_size=255 [19:05:39]MH_SAM_APDU [19:05: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 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 97 00 00 00 F4 03 04 00 84 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 91 [19:05:39]Write to MH i2c: E2 02 01 CE 22 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 97 00 00 00 F4 03 04 00 84 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 91 00 00 11 [19:05:39]Write i2c OK [19:05:39]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [19:05:40]RAPDU: 90 00 [19:05:40]wFMCommunicate OK [19:05:40]wFMCommunicate request_size=10 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 0D 02 02 05 CD 8A 31 E7 2B [19:05:40]Write to MH i2c: E2 0D 00 CF 22 80 0D 02 02 05 00 CD 8A 31 E7 2B 00 00 0F [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [19:05:40]RAPDU: 90 00 [19:05:40]wFMCommunicate OK [19:05:40]wFMCommunicate request_size=4 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 0D 03 02 [19:05:40]Write to MH i2c: E2 08 00 D0 22 80 0D 03 02 00 00 00 00 6D [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 0B 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 0B 00 D0 22 00 CD 68 1B 85 47 24 2E 5A 90 00 36 [19:05:40]RAPDU: CD 68 1B 85 47 24 2E 5A 90 00 [19:05:40]wFMCommunicate OK [19:05:40]SAM_PROTO_SignData done [19:05:40]FM_MakeSignedData done [19:05:40]CreateOFDProtocolMessage [19:05:40]wFMCommunicate request_size=4 [19:05:40]MH_SAM_APDU [19:05:40]CAPDU: 80 11 00 00 [19:05:40]Write to MH i2c: E2 08 00 D1 22 80 11 00 00 00 00 00 00 6D [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:40]Read from MH i2c: E2 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 17 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: E2 17 00 D1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [19:05:40]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:40]wFMCommunicate OK [19:05:40]CreateOFDProtocolMessage done [19:05:40]OFDSenderStorePacket 67333 [19:05:40]StoreOFDPacket docnum=67333 [19:05: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 78 6B 07 01 66 0D 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 97 00 00 00 F4 03 04 00 84 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 91 CD 8A 31 E7 2B CD 68 1B 85 47 24 2E 5A [19:05:40]CheckFolder [19:05:40]dirname=/storage/ofd_packets [19:05:40]CheckFolder done [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00067333 [19:05:40]NVStorageSaveData ofd_packets/00067333 [19:05:40]File name is /storage/ofd_packets/00067333 [19:05:40]Write 301 bytes [19:05:40]NVStorageSaveData done [19:05:40]OFDSenderStorePacket done [19:05:40]KKMCreateOFDPacket done [19:05:40]NVStorageSaveData kkm_last_timestamp [19:05:40]File name is /storage/kkm_last_timestamp [19:05:40]Write 4 bytes [19:05:40]NVStorageSaveData done [19:05:40]ExternCall_PrintAddStr [19:05:40]wPrintStart [19:05:40]Write to MH i2c: 01 00 00 D2 22 F4 [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 D2 22 00 00 00 00 00 FF 0F 09 [19:05:40]RasterBufferAndPrint [19:05:40]line Счет N : (1)507315 [19:05:40]line ИНН: 02508201610067 [19:05:40]line Контрольно-Кассовый Чек [19:05:40]line ПРОДАЖА [19:05:40]line ТРК (МРК, ГНК) : 13 [19:05:40]line Товар: 2710124130 [19:05:40]line Аи-92-К-5 [19:05:40]line 14.980 * 66.80 [19:05:40]line = 1000.66 [19:05:40]line НДС 12% НСП 1% [19:05:40]line > о реализуемом товаре [19:05:40]line ОКРУГЛЕНИЕ: -0.66 [19:05:40]line ИТОГО: 1000.00 [19:05:40]line Внесено: 1000.00 [19:05:40]line СДАЧА: 0.00 [19:05:40]line НСП 1% : 8.85 [19:05:40]line НДС 12% : 106.26 [19:05:40]line Наличными: 1000.00 [19:05:40]line Безнал.: 0.00 [19:05:40]line Место: АЗС № 91 "Партнер Нефть" [19:05:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:05:40]line СНО: Общий режим [19:05:40]line Чек 151 15.05.2024 19:05 [19:05:40]line Смена: 356 ФФД: 1.0 [19:05:40]line ЗНМ: 0300000119 [19:05:40]line РНМ: 0000000000091845 [19:05:40]line Версия ККМ: 001 [19:05:40]line ФМ: 0000000000871829 [19:05:40]line ФД: 67333 [19:05:40]line ФПД: 160311972849451 [19:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T190540&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67333&fm=160311972849451&tin=02508201610067®Number=0000000000091845&sum=100000 [19:05:40]written 0, free lines is 4095 [19:05:40]OFD Sender: Processing packet 67333 [packets to send 35, broken 34] [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00067333 [19:05:40]OFD Sender: To server: pG, [19:05:40]CommunicateWithHost lk.salyk.kg:30040 [19:05:40]ConnectInit lk.salyk.kg [19:05:40]Connected sock=10 [19:05: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 78 6B 07 01 66 0D 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 97 00 00 00 F4 03 04 00 84 07 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 91 CD 8A 31 E7 2B CD 68 1B 85 47 24 2E 5A [19:05: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 C8 F3 47 00 18 56 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 07 01 00 F4 03 04 00 61 AF 44 66 B6 04 01 00 00 B1 2B B1 10 D1 C9 74 97 [19:05:40]CommunicateWithHost err = 0 [19:05:40]CheckOFDResponse [19:05:40]1017 (14) - 77093643461234 [19:05:40]1041 (16) - 0000000000871829 [19:05:40]1040 (4) - 67333 [19:05:40]1012 (4) - 15.05.2024 12:49 [19:05:40]1206 (1) - 0 [19:05:40]OFD Sender: Remove packet 67333 [19:05:40]ProducePacketName [19:05:40]name=ofd_packets/00067333 [19:05:40]NVStorageDeleteData [19:05:40]Write to MH i2c: 01 00 00 FC 22 1E [19:05:40]Write i2c OK [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 [19:05:40]MH_I2C_Read... [19:05:40]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 E8 0C 19 [19:05:40]RasterBufferAndPrint [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]line [19:05:40]written 0, free lines is 3310 [19:05:41]MH_Cut [19:05:41]Write to MH i2c: D1 01 00 03 23 01 F8 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: D1 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: D1 01 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: D1 01 00 03 23 00 F7 [19:05:41]Write to MH i2c: 01 00 00 04 23 27 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]OFD Sender: No OFD packet to send [19:05:41]*** Cut start [19:05:41]*** Purtial cut [19:05:41]*** CUTSNS_PIN = 0 [19:05:42]*** Stage 1: CUTSNS_PIN = 1 [19:05:43]Read from MH i2c: 01 [19:05:43]MH_I2C_Read... [19:05:43]*** Stop cut motor [19:05:43]*** Cut end [19:05:43]Read from MH i2c: 01 07 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: 01 07 00 04 23 00 00 00 00 00 FF 0F 3C [19:05:43]process_action close_receipt done [19:05:43]requested_data is exist [19:05:43]produce_requested_data [19:05:43]requested_item fm.sn is exist - process it [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 11 00 00 [19:05:43]Write to MH i2c: E2 08 00 05 23 80 11 00 00 00 00 00 00 A2 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 17 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 17 00 05 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [19:05:43]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:43]wFMCommunicate OK [19:05:43]requested_item fd.num is exist - process it [19:05:43]SAM_PROTO_GetFieldsCounters [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 13 00 00 [19:05:43]Write to MH i2c: E2 08 00 06 23 80 13 00 00 00 00 00 00 A5 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 62 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 62 00 06 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 05 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [19:05: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 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:43]wFMCommunicate OK [19:05:43]SAM_PROTO_GetFieldsCounters done [19:05:43]requested_item shift.num is exist - process it [19:05:43]requested_item shift.opened is exist - process it [19:05:43]req_shift_opened [19:05:43]FM_GetShiftState [19:05:43]SAM_PROTO_GetShiftState [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 13 01 00 [19:05:43]Write to MH i2c: E2 08 00 07 23 80 13 01 00 00 00 00 00 A7 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0E 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0E 00 07 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 52 [19:05:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:05:44]wFMCommunicate OK [19:05:44]SAM_PROTO_GetShiftState done [19:05:44]FM_GetShiftState done [19:05:44]req_shift_opened done [19:05:44]requested_item shift.open_date is exist - process it [19:05:44]req_shift_open_date [19:05:44]req_shift_open_date done [19:05:44]produce_requested_data done [19:05:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67333,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:05:44]process_action_free close_receipt [19:05:44]json_value_free [19:05:44]json_value_free done [19:05:44]process_json_proto returns [19:05:44]Send response to host [19:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67333,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:05:44]free response buf [19:05:44]execute_script done [19:05:44]execute_script returns [19:05:44]free content buf [19:05:44]Sock 9.Close socket [19:05:44]Sock 9.Thread stoped [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:47]accept exits with 7 [19:15:47]New connection [19:15:47]New thread 3067174244 created [19:15:47]Thread 3067030884 joined [19:15:47]Waiting for new connection... [19:15:47] Sock 7.Parse request [19:15:47]Sock 7.Check first char [19:15:47]Sock 7.First char is OK [19:15:47]request: POST /json_proto HTTP/1.0 [19:15:47]Method: POST [19:15:47]URL: /json_proto [19:15:47]Method is POST - this is cgi request [19:15:47]url: /json_proto [19:15:47]query_string will be loaded in cgi processing [19:15:47]execute_cgi json_proto POST (null) [19:15:47]execute_cgi path=json_proto method=POST [19:15:47]POST find Content-Length [19:15:47]Host: 172.17.41.195:8080 [19:15:47]Content-Length: 215 [19:15:47]Content-Type: application/json [19:15:47] [19:15:47]POST finish read [19:15:47]Found Content-Length = 215 [19:15:47]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:15:47]execute_script... [19:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:47]POST & json_proto [19:15:47]process_json_proto [19:15:47]json parsed OK: [19:15:47]protocol is kg_v1.0 [19:15:47]action value=get_value [19:15:47]process_action get_value [19:15:47]cmd_get_value [19:15:47]process_action get_value done [19:15:47]requested_data is exist [19:15:47]produce_requested_data [19:15:47]requested_item kkm.sn is exist - process it [19:15:47]requested_item kkm.ver is exist - process it [19:15:47]requested_item fm.sn is exist - process it [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 11 00 00 [19:15:47]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 17 00 [19:15:47]MH_I2C_Read... [19:15:47]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 [19:15:47]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:47]wFMCommunicate OK [19:15:47]requested_item fd.num is exist - process it [19:15:47]SAM_PROTO_GetFieldsCounters [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 00 00 [19:15:47]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 62 00 [19:15:47]MH_I2C_Read... [19:15:47]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 05 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [19:15: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 05 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetFieldsCounters done [19:15:47]requested_item shift.num is exist - process it [19:15:47]requested_item shift.opened is exist - process it [19:15:47]req_shift_opened [19:15:47]FM_GetShiftState [19:15:47]SAM_PROTO_GetShiftState [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 01 00 [19:15:47]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 55 [19:15:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetShiftState done [19:15:47]FM_GetShiftState done [19:15:47]req_shift_opened done [19:15:47]requested_item shift.open_date is exist - process it [19:15:47]req_shift_open_date [19:15:47]req_shift_open_date done [19:15:47]produce_requested_data done [19:15:47]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67333,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:15:47]process_action_free get_value [19:15:47]json_value_free [19:15:47]json_value_free done [19:15:47]process_json_proto returns [19:15:47]Send response to host [19:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67333,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:15:47]free response buf [19:15:47]execute_script done [19:15:47]execute_script returns [19:15:47]free content buf [19:15:47]Sock 7.Close socket [19:15:47]Sock 7.Thread stoped [19:15:47]accept exits with 9 [19:15:47]New connection [19:15:47]New thread 3067030884 created [19:15:47]Thread 3067174244 joined [19:15:47]Waiting for new connection... [19:15:47] Sock 9.Parse request [19:15:47]Sock 9.Check first char [19:15:47]Sock 9.First char is OK [19:15:47]request: POST /json_proto HTTP/1.0 [19:15:47]Method: POST [19:15:47]URL: /json_proto [19:15:47]Method is POST - this is cgi request [19:15:47]url: /json_proto [19:15:47]query_string will be loaded in cgi processing [19:15:47]execute_cgi json_proto POST (null) [19:15:47]execute_cgi path=json_proto method=POST [19:15:47]POST find Content-Length [19:15:47]Host: 172.17.41.195:8080 [19:15:47]Content-Length: 331 [19:15:47]Content-Type: application/json [19:15:47] [19:15:47]POST finish read [19:15:47]Found Content-Length = 331 [19:15:47]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:15:47]execute_script... [19:15:47]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:15:47]POST & json_proto [19:15:47]process_json_proto [19:15:47]json parsed OK: [19:15:47]protocol is kg_v1.0 [19:15:47]action value=get_value [19:15:47]process_action get_value [19:15:47]cmd_get_value [19:15:47]process_action get_value done [19:15:47]requested_data is exist [19:15:47]produce_requested_data [19:15:47]requested_item fm.sale.total is exist - process it [19:15:47]SAM_PROTO_GetFMData [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 03 00 [19:15:47]Write to MH i2c: E2 08 00 0B 23 80 13 03 00 00 00 00 00 AD [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:15:48]Read from MH i2c: E2 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 0B 23 00 C6 04 85 04 C2 04 6E 04 04 00 3D 04 01 00 69 04 A3 00 6F 04 04 00 97 03 01 00 B1 04 05 00 C1 46 3D 1A 03 70 04 05 00 4C D3 0A BF 02 72 04 04 00 75 73 32 5B 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 50 06 5B 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 64 81 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 C0 [19:15:48]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 3D 04 01 00 69 04 A3 00 6F 04 04 00 97 03 01 00 B1 04 05 00 C1 46 3D 1A 03 70 04 05 00 4C D3 0A BF 02 72 04 04 00 75 73 32 5B 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 50 06 5B 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 64 81 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [19:15:48]wFMCommunicate OK [19:15:48]wFMCommunicate request_size=4 [19:15:48]MH_SAM_APDU [19:15:48]CAPDU: 80 17 00 00 [19:15:48]Write to MH i2c: E2 08 00 0C 23 80 17 00 00 00 00 00 00 AF [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:48]Read from MH i2c: E2 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 0C 23 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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 C6 [19:15:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 72 FD F3 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:15:48]wFMCommunicate OK [19:15:48]wFMCommunicate request_size=4 [19:15:48]MH_SAM_APDU [19:15:48]CAPDU: 80 17 00 00 [19:15:48]Write to MH i2c: E2 08 00 0D 23 80 17 00 00 00 00 00 00 B0 [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:48]Read from MH i2c: E2 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 FD 00 0D 23 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 D7 [19:15:48]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:15:48]wFMCommunicate OK [19:15:48]wFMCommunicate request_size=4 [19:15:48]MH_SAM_APDU [19:15:48]CAPDU: 80 17 00 00 [19:15:48]Write to MH i2c: E2 08 00 0E 23 80 17 00 00 00 00 00 00 B1 [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 FD 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 FD 00 0E 23 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [19:15:49]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:15:49]wFMCommunicate OK [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 17 00 00 [19:15:49]Write to MH i2c: E2 08 00 0F 23 80 17 00 00 00 00 00 00 B2 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 E3 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 E3 00 0F 23 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [19:15:49]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:15:49]wFMCommunicate OK [19:15:49]SAM_PROTO_GetFMData done [19:15:49]requested_item fm.sale_refund.total is exist - process it [19:15:49]requested_item fm.buy.total is exist - process it [19:15:49]requested_item shift.sale.total is exist - process it [19:15:49]SAM_PROTO_GetShiftData [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 13 02 00 [19:15:49]Write to MH i2c: E2 08 00 10 23 80 13 02 00 00 00 00 00 B1 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 FD 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 FD 00 10 23 00 BA 04 AA 04 B6 04 6E 04 04 00 97 00 00 00 69 04 9D 00 6F 04 04 00 96 00 00 00 B1 04 04 00 23 8E 2D 01 70 04 03 00 70 6D 45 72 04 03 00 B3 20 E8 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 C2 06 20 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 31 AB 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4F [19:15:49]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 97 00 00 00 69 04 9D 00 6F 04 04 00 96 00 00 00 B1 04 04 00 23 8E 2D 01 70 04 03 00 70 6D 45 72 04 03 00 B3 20 E8 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 C2 06 20 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 31 AB 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:15:49]wFMCommunicate OK [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 17 00 00 [19:15:49]Write to MH i2c: E2 08 00 11 23 80 17 00 00 00 00 00 00 B4 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:50]Read from MH i2c: E2 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 11 23 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [19:15:50]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:15:50]wFMCommunicate OK [19:15:50]wFMCommunicate request_size=4 [19:15:50]MH_SAM_APDU [19:15:50]CAPDU: 80 17 00 00 [19:15:50]Write to MH i2c: E2 08 00 12 23 80 17 00 00 00 00 00 00 B5 [19:15:50]Write i2c OK [19:15:50]MH_I2C_Read... [19:15:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:50]Read from MH i2c: E2 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 12 23 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [19:15:50]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:15:50]wFMCommunicate OK [19:15:50]wFMCommunicate request_size=4 [19:15:50]MH_SAM_APDU [19:15:50]CAPDU: 80 17 00 00 [19:15:50]Write to MH i2c: E2 08 00 13 23 80 17 00 00 00 00 00 00 B6 [19:15:50]Write i2c OK [19:15:50]MH_I2C_Read... [19:15:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:15:50]Read from MH i2c: E2 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 FD 00 13 23 00 00 EF 03 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 90 00 2E [19:15:50]RAPDU: 00 EF 03 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 90 00 [19:15:50]wFMCommunicate OK [19:15:50]wFMCommunicate request_size=4 [19:15:50]MH_SAM_APDU [19:15:50]CAPDU: 80 17 00 00 [19:15:50]Write to MH i2c: E2 08 00 14 23 80 17 00 00 00 00 00 00 B7 [19:15:50]Write i2c OK [19:15:50]MH_I2C_Read... [19:15:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:15:50]Read from MH i2c: E2 [19:15:50]MH_I2C_Read... [19:15:50]Read from MH i2c: E2 D7 00 [19:15:50]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 D7 00 14 23 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [19:15:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_GetShiftData done [19:15:51]requested_item shift.sale.total_cash is exist - process it [19:15:51]requested_item shift.sale_refund.total is exist - process it [19:15:51]requested_item shift.sale_refund.total_cash is exist - process it [19:15:51]requested_item shift.buy.total is exist - process it [19:15:51]requested_item shift.buy.total_cash is exist - process it [19:15:51]produce_requested_data done [19:15:51]produce_requested_data return {"fm.sale.total":133251253.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":197627.23,"shift.sale.total_cash":45500.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:15:51]process_action_free get_value [19:15:51]json_value_free [19:15:51]json_value_free done [19:15:51]process_json_proto returns [19:15:51]Send response to host [19:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133251253.13,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":197627.23,"shift.sale.total_cash":45500.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:15:51]free response buf [19:15:51]execute_script done [19:15:51]execute_script returns [19:15:51]free content buf [19:15:51]Sock 9.Close socket [19:15:51]Sock 9.Thread stoped [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:12]accept exits with 7 [19:17:12]New connection [19:17:12]New thread 3067174244 created [19:17:12]Thread 3067030884 joined [19:17:12]Waiting for new connection... [19:17:12] Sock 7.Parse request [19:17:12]Sock 7.Check first char [19:17:12]Sock 7.First char is OK [19:17:12]request: POST /json_proto HTTP/1.0 [19:17:12]Method: POST [19:17:12]URL: /json_proto [19:17:12]Method is POST - this is cgi request [19:17:12]url: /json_proto [19:17:12]query_string will be loaded in cgi processing [19:17:12]execute_cgi json_proto POST (null) [19:17:12]execute_cgi path=json_proto method=POST [19:17:12]POST find Content-Length [19:17:12]Host: 172.17.41.195:8080 [19:17:12]Content-Length: 800 [19:17:12]Content-Type: application/json [19:17:12] [19:17:12]POST finish read [19:17:12]Found Content-Length = 800 [19:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507316", "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" ] } } [19:17:12]execute_script... [19:17: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)507316", "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" ] } } [19:17:12]POST & json_proto [19:17:12]process_json_proto [19:17:12]json parsed OK: [19:17:12]protocol is kg_v1.0 [19:17:12]action value=close_receipt [19:17:12]process_action close_receipt [19:17:12]cmd_close_receipt [19:17:12]MH_GetDate [19:17:12]Write to MH i2c: F0 00 00 15 23 27 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 09 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: F0 09 00 15 23 00 3A 0A 45 66 FC 21 6F 64 0F [19:17:12]GetLastDocTimeStamp 1715799940 [19:17:12]current date 1715800634 [19:17:12]FM_GetShiftState [19:17:12]SAM_PROTO_GetShiftState [19:17:12]wFMCommunicate request_size=4 [19:17:12]MH_SAM_APDU [19:17:12]CAPDU: 80 13 01 00 [19:17:12]Write to MH i2c: E2 08 00 16 23 80 13 01 00 00 00 00 00 B6 [19:17:12]Write i2c OK [19:17:12]MH_I2C_Read... [19:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:12]Read from MH i2c: E2 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0E 00 [19:17:12]MH_I2C_Read... [19:17:12]Read from MH i2c: E2 0E 00 16 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 61 [19:17:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:17:12]wFMCommunicate OK [19:17:12]SAM_PROTO_GetShiftState done [19:17:12]FM_GetShiftState done [19:17:12]opened in 1715732471 [19:17:12]opened+sec_in_day 1715818871 [19:17:12]quantity*price = 150072 [19:17:12]sum+1 = 150073 [19:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 152 15.05.2024 19:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67334 ФПД: 272645925344459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T191714&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67334&fm=272645925344459&tin=02508201610067®Number=0000000000091845&sum=150072 [19:17:13]StoreToDocumentArchive [19:17:13]shift 356 fd 67334 [19:17:13]save to /storage/0356/doc_00067334 [19:17:13]save last doc name /storage/0356/doc_00067334 to /storage/kkm_last_doc_name [19:17:13]save OK [19:17:13]Clear old archive folders... [19:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:17:13]tlvbuf is 00BB3150 [19:17:13]SAM_PROTO_ClearQueue [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 09 00 00 [19:17:13]Write to MH i2c: E2 08 00 23 23 80 09 00 00 00 00 00 00 B8 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:13]Read from MH i2c: E2 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [19:17:13]RAPDU: 90 00 [19:17:13]wFMCommunicate OK [19:17:13]SAM_PROTO_ClearQueue done [19:17:13]KKMCreateOFDPacket [19:17:13]OFDProtocolAddRootSTLVToBuf [19:17:13]FM_MakeSignedData [19:17:13]FM_MakeSignedData [19:17:13]SAM_PROTO_SignData [19:17:13]wFMCommunicate request_size=4 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 0D 01 02 [19:17:13]Write to MH i2c: E2 08 00 24 23 80 0D 01 02 00 00 00 00 C0 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:13]Read from MH i2c: E2 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [19:17:13]RAPDU: 90 00 [19:17:13]wFMCommunicate OK [19:17:13]wFMCommunicate request_size=255 [19:17:13]MH_SAM_APDU [19:17: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 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 98 00 00 00 F4 03 04 00 3A 0A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F7 F8 53 87 [19:17:13]Write to MH i2c: E2 02 01 25 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 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 98 00 00 00 F4 03 04 00 3A 0A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F7 F8 53 87 00 00 38 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:13]Read from MH i2c: E2 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 [19:17:13]MH_I2C_Read... [19:17:13]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [19:17:13]RAPDU: 90 00 [19:17:13]wFMCommunicate OK [19:17:13]wFMCommunicate request_size=7 [19:17:13]MH_SAM_APDU [19:17:13]CAPDU: 80 0D 02 02 02 94 CB [19:17:13]Write to MH i2c: E2 0A 00 26 23 80 0D 02 02 02 00 94 CB 00 00 26 [19:17:13]Write i2c OK [19:17:13]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 03 00 26 23 00 90 00 BD [19:17:14]RAPDU: 90 00 [19:17:14]wFMCommunicate OK [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 0D 03 02 [19:17:14]Write to MH i2c: E2 08 00 27 23 80 0D 03 02 00 00 00 00 C5 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0B 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0B 00 27 23 00 BD 5D F7 7A 54 05 63 64 90 00 71 [19:17:14]RAPDU: BD 5D F7 7A 54 05 63 64 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_SignData done [19:17:14]FM_MakeSignedData done [19:17:14]CreateOFDProtocolMessage [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 11 00 00 [19:17:14]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 17 00 [19:17:14]MH_I2C_Read... [19:17:14]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 [19:17:14]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:14]wFMCommunicate OK [19:17:14]CreateOFDProtocolMessage done [19:17:14]OFDSenderStorePacket 67334 [19:17:14]StoreOFDPacket docnum=67334 [19:17: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 0C 01 00 00 89 3C 04 01 BB 12 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 98 00 00 00 F4 03 04 00 3A 0A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F7 F8 53 87 94 CB BD 5D F7 7A 54 05 63 64 [19:17:14]CheckFolder [19:17:14]dirname=/storage/ofd_packets [19:17:14]CheckFolder done [19:17:14]ProducePacketName [19:17:14]name=ofd_packets/00067334 [19:17:14]NVStorageSaveData ofd_packets/00067334 [19:17:14]File name is /storage/ofd_packets/00067334 [19:17:14]Write 298 bytes [19:17:14]NVStorageSaveData done [19:17:14]OFDSenderStorePacket done [19:17:14]KKMCreateOFDPacket done [19:17:14]NVStorageSaveData kkm_last_timestamp [19:17:14]File name is /storage/kkm_last_timestamp [19:17:14]Write 4 bytes [19:17:14]NVStorageSaveData done [19:17:14]ExternCall_PrintAddStr [19:17:14]wPrintStart [19:17:14]Write to MH i2c: 01 00 00 29 23 4C [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 29 23 00 00 00 00 00 FF 0F 61 [19:17:14]RasterBufferAndPrint [19:17:14]line Счет N : (1)507316 [19:17:14]line ИНН: 02508201610067 [19:17:14]line Контрольно-Кассовый Чек [19:17:14]line ПРОДАЖА [19:17:14]line ТРК (МРК, ГНК) : 41 [19:17:14]line Товар: 2710194210 [19:17:14]line ДТ-К-5 [19:17:14]line 20.090 * 74.70 [19:17:14]line = 1500.72 [19:17:14]line НДС 12% НСП 1% [19:17:14]line > о реализуемом товаре [19:17:14]line ИТОГО: 1500.72 [19:17:14]line НСП 1% : 13.28 [19:17:14]line НДС 12% : 159.37 [19:17:14]line Наличными: 0.00 [19:17:14]line Безнал.: 1500.72 [19:17:14]line Место: АЗС № 91 "Партнер Нефть" [19:17:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:17:14]line СНО: Общий режим [19:17:14]line Чек 152 15.05.2024 19:17 [19:17:14]line Смена: 356 ФФД: 1.0 [19:17:14]line ЗНМ: 0300000119 [19:17:14]line РНМ: 0000000000091845 [19:17:14]line Версия ККМ: 001 [19:17:14]line Платежная система: O! деньги [19:17:14]line ФМ: 0000000000871829 [19:17:14]line ФД: 67334 [19:17:14]line ФПД: 272645925344459 [19:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T191714&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67334&fm=272645925344459&tin=02508201610067®Number=0000000000091845&sum=150072 [19:17:14]OFD Sender: Processing packet 67334 [packets to send 35, broken 34] [19:17:14]ProducePacketName [19:17:14]name=ofd_packets/00067334 [19:17:14]OFD Sender: To server: pG, [19:17:14]CommunicateWithHost lk.salyk.kg:30040 [19:17:14]ConnectInit lk.salyk.kg [19:17:14]written 0, free lines is 4095 [19:17:14]Connected sock=10 [19:17: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 89 3C 04 01 BB 12 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 98 00 00 00 F4 03 04 00 3A 0A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F7 F8 53 87 94 CB BD 5D F7 7A 54 05 63 64 [19:17: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 B0 F9 47 00 DA 53 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 07 01 00 F4 03 04 00 17 B2 44 66 B6 04 01 00 00 E5 26 5A 59 5C E9 C4 C6 [19:17:14]CommunicateWithHost err = 0 [19:17:14]CheckOFDResponse [19:17:14]1017 (14) - 77093643461234 [19:17:14]1041 (16) - 0000000000871829 [19:17:14]1040 (4) - 67334 [19:17:14]1012 (4) - 15.05.2024 13:01 [19:17:14]1206 (1) - 0 [19:17:14]OFD Sender: Remove packet 67334 [19:17:14]ProducePacketName [19:17:14]name=ofd_packets/00067334 [19:17:14]NVStorageDeleteData [19:17:14]Write to MH i2c: 01 00 00 52 23 75 [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 F1 0C 79 [19:17:14]RasterBufferAndPrint [19:17:14]line [19:17:14]line [19:17:14]line [19:17:14]line [19:17:14]line [19:17:14]written 0, free lines is 3319 [19:17:14]MH_Cut [19:17:14]Write to MH i2c: D1 01 00 59 23 01 4E [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: D1 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: D1 01 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: D1 01 00 59 23 00 4D [19:17:14]Write to MH i2c: 01 00 00 5A 23 7D [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:15]OFD Sender: No OFD packet to send [19:17:15]*** Cut start [19:17:15]*** Purtial cut [19:17:15]*** Stage 1: CUTSNS_PIN = 1 [19:17:15]Read from MH i2c: 01 [19:17:15]MH_I2C_Read... [19:17:15]*** Stop cut motor [19:17:15]*** Cut end [19:17:15]Read from MH i2c: 01 07 00 [19:17:15]MH_I2C_Read... [19:17:15]Read from MH i2c: 01 07 00 5A 23 00 00 00 00 00 FF 0F 92 [19:17:15]process_action close_receipt done [19:17:15]requested_data is exist [19:17:15]produce_requested_data [19:17:15]requested_item fm.sn is exist - process it [19:17:15]wFMCommunicate request_size=4 [19:17:15]MH_SAM_APDU [19:17:15]CAPDU: 80 11 00 00 [19:17:15]Write to MH i2c: E2 08 00 5B 23 80 11 00 00 00 00 00 00 F8 [19:17:15]Write i2c OK [19:17:15]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 5B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [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 5C 23 80 13 00 00 00 00 00 00 FB [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 5C 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 06 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [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 06 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_GetFieldsCounters done [19:17:16]requested_item shift.num is exist - process it [19:17:16]requested_item shift.opened is exist - process it [19:17:16]req_shift_opened [19:17:16]FM_GetShiftState [19:17:16]SAM_PROTO_GetShiftState [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 13 01 00 [19:17:16]Write to MH i2c: E2 08 00 5D 23 80 13 01 00 00 00 00 00 FD [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 5D 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A8 [19:17:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_GetShiftState done [19:17:16]FM_GetShiftState done [19:17:16]req_shift_opened done [19:17:16]requested_item shift.open_date is exist - process it [19:17:16]req_shift_open_date [19:17:16]req_shift_open_date done [19:17:16]produce_requested_data done [19:17:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67334,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:17:16]process_action_free close_receipt [19:17:16]json_value_free [19:17:16]json_value_free done [19:17:16]process_json_proto returns [19:17:16]Send response to host [19:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67334,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:17:16]free response buf [19:17:16]execute_script done [19:17:16]execute_script returns [19:17:16]free content buf [19:17:16]Sock 7.Close socket [19:17:16]Sock 7.Thread stoped [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:27]int [19:17:27]Write to MH i2c: 01 00 00 5E 23 81 [19:17:27]*** FLAG_PRN_PAP1 set [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: 01 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: 01 07 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: 01 07 00 5E 23 00 01 00 00 00 FF 0F 97 [19:17:27]state=0 [19:17:27]No paper [19:17:28]int [19:17:28]Write to MH i2c: 01 00 00 5F 23 82 [19:17:28]*** FLAG_PRN_PAP2 set [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 07 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 07 00 5F 23 00 03 00 00 00 FF 0F 9A [19:17:28]state=0 [19:17:28]No paper [19:17:28]Cover opened [19:17:30]OFD Sender: No OFD packet to send [19:17:33]int [19:17:33]Write to MH i2c: 01 00 00 60 23 83 [19:17:33]*** FLAG_PRN_PAP1 reset [19:17:33]*** FLAG_PRN_PAP2 reset [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 60 23 00 00 00 00 00 FF 0F 98 [19:17:33]state=3 [19:17:33]Cover closed [19:17:34]int [19:17:34]Write to MH i2c: 01 00 00 61 23 84 [19:17:34]*** FLAG_PRN_KEY set [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 61 23 00 08 00 00 00 FF 0F A1 [19:17:34]state=0 [19:17:34]Key pressed [19:17:34]Feed [19:17:34]Write to MH i2c: D8 00 00 62 23 5C [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: D8 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: D8 01 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: D8 01 00 62 23 00 5D [19:17:34]int [19:17:34]Write to MH i2c: 01 00 00 63 23 86 [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 63 23 00 48 00 00 00 3C 00 11 [19:17:34]state=2 [19:17:34]Key pressed [19:17:34]int [19:17:34]Write to MH i2c: 01 00 00 64 23 87 [19:17:34]*** FLAG_PRN_KEY reset [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 FF 0F 9C [19:17:34]state=2 [19:17:34]Stop feed [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:16]accept exits with 9 [19:21:16]New connection [19:21:16]New thread 3067030884 created [19:21:16]Thread 3067174244 joined [19:21:16]Waiting for new connection... [19:21:16] Sock 9.Parse request [19:21:16]Sock 9.Check first char [19:21:16]Sock 9.First char is OK [19:21:16]request: POST /json_proto HTTP/1.0 [19:21:16]Method: POST [19:21:16]URL: /json_proto [19:21:16]Method is POST - this is cgi request [19:21:16]url: /json_proto [19:21:16]query_string will be loaded in cgi processing [19:21:16]execute_cgi json_proto POST (null) [19:21:16]execute_cgi path=json_proto method=POST [19:21:16]POST find Content-Length [19:21:16]Host: 172.17.41.195:8080 [19:21:16]Content-Length: 679 [19:21:16]Content-Type: application/json [19:21:16] [19:21:16]POST finish read [19:21:16]Found Content-Length = 679 [19:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507317", "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" : 40.180, "sum" : 3001.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3001.00, "payments": [ { "type": 0, "sum" : 3001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:16]execute_script... [19:21: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)507317", "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" : 40.180, "sum" : 3001.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3001.00, "payments": [ { "type": 0, "sum" : 3001.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:16]POST & json_proto [19:21:16]process_json_proto [19:21:16]json parsed OK: [19:21:16]protocol is kg_v1.0 [19:21:16]action value=close_receipt [19:21:16]process_action close_receipt [19:21:16]cmd_close_receipt [19:21:16]MH_GetDate [19:21:16]Write to MH i2c: F0 00 00 65 23 77 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 09 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 09 00 65 23 00 2E 0B 45 66 FC 21 6F 64 54 [19:21:16]GetLastDocTimeStamp 1715800634 [19:21:16]current date 1715800878 [19:21:16]FM_GetShiftState [19:21:16]SAM_PROTO_GetShiftState [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 13 01 00 [19:21:16]Write to MH i2c: E2 08 00 66 23 80 13 01 00 00 00 00 00 06 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0E 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0E 00 66 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B1 [19:21:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:16]wFMCommunicate OK [19:21:16]SAM_PROTO_GetShiftState done [19:21:16]FM_GetShiftState done [19:21:16]opened in 1715732471 [19:21:16]opened+sec_in_day 1715818871 [19:21:16]quantity*price = 300144 [19:21:16]sum+1 = 300146 [19:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 3001.00 Внесено: 6000.00 СДАЧА: 2999.00 НСП 1% : 26.56 НДС 12% : 318.74 Наличными: 3001.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 153 15.05.2024 19:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67335 ФПД: 114561030527572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192118&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67335&fm=114561030527572&tin=02508201610067®Number=0000000000091845&sum=300100 [19:21:17]StoreToDocumentArchive [19:21:17]shift 356 fd 67335 [19:21:17]save to /storage/0356/doc_00067335 [19:21:17]save last doc name /storage/0356/doc_00067335 to /storage/kkm_last_doc_name [19:21:17]save OK [19:21:17]Clear old archive folders... [19:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:17]tlvbuf is 00B36470 [19:21:17]SAM_PROTO_ClearQueue [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 09 00 00 [19:21:17]Write to MH i2c: E2 08 00 73 23 80 09 00 00 00 00 00 00 08 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 73 23 00 90 00 0A [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]SAM_PROTO_ClearQueue done [19:21:17]KKMCreateOFDPacket [19:21:17]OFDProtocolAddRootSTLVToBuf [19:21:17]FM_MakeSignedData [19:21:17]FM_MakeSignedData [19:21:17]SAM_PROTO_SignData [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 0D 01 02 [19:21:17]Write to MH i2c: E2 08 00 74 23 80 0D 01 02 00 00 00 00 10 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 74 23 00 90 00 0B [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]wFMCommunicate request_size=255 [19:21:17]MH_SAM_APDU [19:21: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 F4 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 7C 00 00 00 00 07 04 06 00 44 94 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 2E 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 68 31 51 87 [19:21:17]Write to MH i2c: E2 02 01 75 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 F4 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 7C 00 00 00 00 07 04 06 00 44 94 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 2E 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 68 31 51 87 00 00 D8 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 75 23 00 90 00 0C [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]wFMCommunicate request_size=7 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 0D 02 02 02 9A 54 [19:21:17]Write to MH i2c: E2 0A 00 76 23 80 0D 02 02 02 00 9A 54 00 00 05 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 0D 03 02 [19:21:17]Write to MH i2c: E2 08 00 77 23 80 0D 03 02 00 00 00 00 15 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0B 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0B 00 77 23 00 03 7B 5D 78 31 4D 9C 5E 90 00 E1 [19:21:17]RAPDU: 03 7B 5D 78 31 4D 9C 5E 90 00 [19:21:17]wFMCommunicate OK [19:21:17]SAM_PROTO_SignData done [19:21:17]FM_MakeSignedData done [19:21:17]CreateOFDProtocolMessage [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 11 00 00 [19:21:17]Write to MH i2c: E2 08 00 78 23 80 11 00 00 00 00 00 00 15 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 17 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 17 00 78 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [19:21: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:21:17]wFMCommunicate OK [19:21:17]CreateOFDProtocolMessage done [19:21:17]OFDSenderStorePacket 67335 [19:21:17]StoreOFDPacket docnum=67335 [19:21: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 E8 A4 04 01 1B 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 F4 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 7C 00 00 00 00 07 04 06 00 44 94 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 2E 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 68 31 51 87 9A 54 03 7B 5D 78 31 4D 9C 5E [19:21:17]CheckFolder [19:21:17]dirname=/storage/ofd_packets [19:21:17]CheckFolder done [19:21:17]ProducePacketName [19:21:17]name=ofd_packets/00067335 [19:21:17]NVStorageSaveData ofd_packets/00067335 [19:21:17]File name is /storage/ofd_packets/00067335 [19:21:17]Write 298 bytes [19:21:17]NVStorageSaveData done [19:21:17]OFDSenderStorePacket done [19:21:17]KKMCreateOFDPacket done [19:21:17]NVStorageSaveData kkm_last_timestamp [19:21:17]File name is /storage/kkm_last_timestamp [19:21:17]Write 4 bytes [19:21:17]NVStorageSaveData done [19:21:17]ExternCall_PrintAddStr [19:21:17]wPrintStart [19:21:17]Write to MH i2c: 01 00 00 79 23 9C [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 07 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: 01 07 00 79 23 00 00 00 00 00 FF 0F B1 [19:21:17]RasterBufferAndPrint [19:21:17]line Счет N : (1)507317 [19:21:17]line ИНН: 02508201610067 [19:21:17]line Контрольно-Кассовый Чек [19:21:17]line ПРОДАЖА [19:21:17]line ТРК (МРК, ГНК) : 31 [19:21:17]line Товар: 2710194210 [19:21:17]line ДТ-К-5 [19:21:17]line 40.180 * 74.70 [19:21:17]line = 3001.45 [19:21:17]line НДС 12% НСП 1% [19:21:17]line > о реализуемом товаре [19:21:17]line ОКРУГЛЕНИЕ: -0.45 [19:21:17]line ИТОГО: 3001.00 [19:21:17]line Внесено: 6000.00 [19:21:17]line СДАЧА: 2999.00 [19:21:17]line НСП 1% : 26.56 [19:21:17]line НДС 12% : 318.74 [19:21:17]line Наличными: 3001.00 [19:21:17]line Безнал.: 0.00 [19:21:17]line Место: АЗС № 91 "Партнер Нефть" [19:21:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:21:17]line СНО: Общий режим [19:21:17]line Чек 153 15.05.2024 19:21 [19:21:17]line Смена: 356 ФФД: 1.0 [19:21:17]line ЗНМ: 0300000119 [19:21:17]line РНМ: 0000000000091845 [19:21:17]line Версия ККМ: 001 [19:21:17]line ФМ: 0000000000871829 [19:21:17]line ФД: 67335 [19:21:17]line ФПД: 114561030527572 [19:21:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192118&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67335&fm=114561030527572&tin=02508201610067®Number=0000000000091845&sum=300100 [19:21:18]OFD Sender: Processing packet 67335 [packets to send 35, broken 34] [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00067335 [19:21:18]OFD Sender: To server: pG, [19:21:18]CommunicateWithHost lk.salyk.kg:30040 [19:21:18]ConnectInit lk.salyk.kg [19:21:18]written 0, free lines is 4095 [19:21:18]Connected sock=10 [19:21: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 E8 A4 04 01 1B 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 F4 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 71 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 7C 00 00 00 00 07 04 06 00 44 94 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 2E 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 68 31 51 87 9A 54 03 7B 5D 78 31 4D 9C 5E [19:21: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 0C 80 47 00 A2 B0 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 07 01 00 F4 03 04 00 0A B3 44 66 B6 04 01 00 00 AE C5 EA 71 66 FB 1E 78 [19:21:18]CommunicateWithHost err = 0 [19:21:18]CheckOFDResponse [19:21:18]1017 (14) - 77093643461234 [19:21:18]1041 (16) - 0000000000871829 [19:21:18]1040 (4) - 67335 [19:21:18]1012 (4) - 15.05.2024 13:05 [19:21:18]1206 (1) - 0 [19:21:18]OFD Sender: Remove packet 67335 [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00067335 [19:21:18]NVStorageDeleteData [19:21:18]Write to MH i2c: 01 00 00 A3 23 C6 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 E4 0C BD [19:21:18]RasterBufferAndPrint [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]written 0, free lines is 3306 [19:21:18]MH_Cut [19:21:18]Write to MH i2c: D1 01 00 AA 23 01 9F [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 01 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D1 01 00 AA 23 00 9E [19:21:18]Write to MH i2c: 01 00 00 AB 23 CE [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]OFD Sender: No OFD packet to send [19:21:19]*** Cut start [19:21:19]*** Purtial cut [19:21:19]*** CUTSNS_PIN = 0 [19:21:19]*** Stage 1: CUTSNS_PIN = 1 [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]*** Stop cut motor [19:21:21]*** Cut end [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 AB 23 00 00 00 00 00 FF 0F E3 [19:21:21]process_action close_receipt done [19:21:21]requested_data is exist [19:21:21]produce_requested_data [19:21:21]requested_item fm.sn is exist - process it [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 11 00 00 [19:21:21]Write to MH i2c: E2 08 00 AC 23 80 11 00 00 00 00 00 00 49 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 AC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [19:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:21:21]wFMCommunicate OK [19:21:21]requested_item fd.num is exist - process it [19:21:21]SAM_PROTO_GetFieldsCounters [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 00 00 [19:21:21]Write to MH i2c: E2 08 00 AD 23 80 13 00 00 00 00 00 00 4C [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 62 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 62 00 AD 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 07 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:21: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 07 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetFieldsCounters done [19:21:21]requested_item shift.num is exist - process it [19:21:21]requested_item shift.opened is exist - process it [19:21:21]req_shift_opened [19:21:21]FM_GetShiftState [19:21:21]SAM_PROTO_GetShiftState [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 01 00 [19:21:21]Write to MH i2c: E2 08 00 AE 23 80 13 01 00 00 00 00 00 4E [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 AE 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F9 [19:21:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetShiftState done [19:21:21]FM_GetShiftState done [19:21:21]req_shift_opened done [19:21:21]requested_item shift.open_date is exist - process it [19:21:21]req_shift_open_date [19:21:21]req_shift_open_date done [19:21:21]produce_requested_data done [19:21:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67335,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:21:21]process_action_free close_receipt [19:21:21]json_value_free [19:21:21]json_value_free done [19:21:21]process_json_proto returns [19:21:21]Send response to host [19:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67335,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:21:21]free response buf [19:21:21]execute_script done [19:21:21]execute_script returns [19:21:21]free content buf [19:21:21]Sock 9.Close socket [19:21:21]Sock 9.Thread stoped [19:21:21]accept exits with 7 [19:21:21]New connection [19:21:21]New thread 3067174244 created [19:21:21]Thread 3067030884 joined [19:21:21]Waiting for new connection... [19:21:21] Sock 7.Parse request [19:21:21]Sock 7.Check first char [19:21:21]Sock 7.First char is OK [19:21:21]request: POST /json_proto HTTP/1.0 [19:21:21]Method: POST [19:21:21]URL: /json_proto [19:21:21]Method is POST - this is cgi request [19:21:21]url: /json_proto [19:21:21]query_string will be loaded in cgi processing [19:21:21]execute_cgi json_proto POST (null) [19:21:21]execute_cgi path=json_proto method=POST [19:21:21]POST find Content-Length [19:21:21]Host: 172.17.41.195:8080 [19:21:21]Content-Length: 679 [19:21:21]Content-Type: application/json [19:21:21] [19:21:21]POST finish read [19:21:21]Found Content-Length = 679 [19:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507318", "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 }]} ], "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:21:21]execute_script... [19:21: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)507318", "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 }]} ], "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:21:21]POST & json_proto [19:21:21]process_json_proto [19:21:21]json parsed OK: [19:21:21]protocol is kg_v1.0 [19:21:21]action value=close_receipt [19:21:21]process_action close_receipt [19:21:21]cmd_close_receipt [19:21:21]MH_GetDate [19:21:21]Write to MH i2c: F0 00 00 AF 23 C1 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 09 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 09 00 AF 23 00 34 0B 45 66 FC 21 6F 64 A4 [19:21:21]GetLastDocTimeStamp 1715800878 [19:21:21]current date 1715800884 [19:21:21]FM_GetShiftState [19:21:21]SAM_PROTO_GetShiftState [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 01 00 [19:21:21]Write to MH i2c: E2 08 00 B0 23 80 13 01 00 00 00 00 00 50 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 B0 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FB [19:21:21]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetShiftState done [19:21:21]FM_GetShiftState done [19:21:21]opened in 1715732471 [19:21:21]opened+sec_in_day 1715818871 [19:21:21]quantity*price = 100023 [19:21:21]sum+1 = 100024 [19:21:21]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 СНО: Общий режим Чек 154 15.05.2024 19:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67336 ФПД: 11864811621793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192124&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67336&fm=11864811621793&tin=02508201610067®Number=0000000000091845&sum=100000 [19:21:23]StoreToDocumentArchive [19:21:23]shift 356 fd 67336 [19:21:23]save to /storage/0356/doc_00067336 [19:21:23]save last doc name /storage/0356/doc_00067336 to /storage/kkm_last_doc_name [19:21:23]save OK [19:21:23]Clear old archive folders... [19:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:23]tlvbuf is 00B8FDA0 [19:21:23]SAM_PROTO_ClearQueue [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 09 00 00 [19:21:23]Write to MH i2c: E2 08 00 BD 23 80 09 00 00 00 00 00 00 52 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_ClearQueue done [19:21:23]KKMCreateOFDPacket [19:21:23]OFDProtocolAddRootSTLVToBuf [19:21:23]FM_MakeSignedData [19:21:23]FM_MakeSignedData [19:21:23]SAM_PROTO_SignData [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 01 02 [19:21:23]Write to MH i2c: E2 08 00 BE 23 80 0D 01 02 00 00 00 00 5A [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 BE 23 00 90 00 55 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=255 [19:21:23]MH_SAM_APDU [19:21:23]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 9A 00 00 00 F4 03 04 00 34 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A CA 7D E1 [19:21:23]Write to MH i2c: E2 02 01 BF 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 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 9A 00 00 00 F4 03 04 00 34 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A CA 7D E1 00 00 5F [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 BF 23 00 90 00 56 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=7 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 02 02 02 CD A1 [19:21:23]Write to MH i2c: E2 0A 00 C0 23 80 0D 02 02 02 00 CD A1 00 00 CF [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 C0 23 00 90 00 57 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 03 02 [19:21:23]Write to MH i2c: E2 08 00 C1 23 80 0D 03 02 00 00 00 00 5F [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0B 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0B 00 C1 23 00 6E 16 AB B5 98 9E C3 32 90 00 6F [19:21:23]RAPDU: 6E 16 AB B5 98 9E C3 32 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_SignData done [19:21:23]FM_MakeSignedData done [19:21:23]CreateOFDProtocolMessage [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 11 00 00 [19:21:23]Write to MH i2c: E2 08 00 C2 23 80 11 00 00 00 00 00 00 5F [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]OFD Sender: No OFD packet to send [19:21:23]Read from MH i2c: E2 17 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 17 00 C2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B5 [19:21: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:21:23]wFMCommunicate OK [19:21:23]CreateOFDProtocolMessage done [19:21:23]OFDSenderStorePacket 67336 [19:21:23]StoreOFDPacket docnum=67336 [19:21: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 0C 01 00 00 97 8E 04 01 F5 EE 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 9A 00 00 00 F4 03 04 00 34 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A CA 7D E1 CD A1 6E 16 AB B5 98 9E C3 32 [19:21:23]CheckFolder [19:21:23]dirname=/storage/ofd_packets [19:21:23]CheckFolder done [19:21:23]ProducePacketName [19:21:23]name=ofd_packets/00067336 [19:21:24]NVStorageSaveData ofd_packets/00067336 [19:21:24]File name is /storage/ofd_packets/00067336 [19:21:24]Write 298 bytes [19:21:24]NVStorageSaveData done [19:21:24]OFDSenderStorePacket done [19:21:24]KKMCreateOFDPacket done [19:21:24]NVStorageSaveData kkm_last_timestamp [19:21:24]File name is /storage/kkm_last_timestamp [19:21:24]Write 4 bytes [19:21:24]NVStorageSaveData done [19:21:24]ExternCall_PrintAddStr [19:21:24]wPrintStart [19:21:24]Write to MH i2c: 01 00 00 C3 23 E6 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 C3 23 00 00 00 00 00 FF 0F FB [19:21:24]RasterBufferAndPrint [19:21:24]line Счет N : (1)507318 [19:21:24]line ИНН: 02508201610067 [19:21:24]line Контрольно-Кассовый Чек [19:21:24]line ПРОДАЖА [19:21:24]line ТРК (МРК, ГНК) : 41 [19:21:24]line Товар: 2710194210 [19:21:24]line ДТ-К-5 [19:21:24]line 13.390 * 74.70 [19:21:24]line = 1000.23 [19:21:24]line НДС 12% НСП 1% [19:21:24]line > о реализуемом товаре [19:21:24]line ОКРУГЛЕНИЕ: -0.23 [19:21:24]line ИТОГО: 1000.00 [19:21:24]line Внесено: 1000.00 [19:21:24]line СДАЧА: 0.00 [19:21:24]line НСП 1% : 8.85 [19:21:24]line НДС 12% : 106.22 [19:21:24]line Наличными: 1000.00 [19:21:24]line Безнал.: 0.00 [19:21:24]line Место: АЗС № 91 "Партнер Нефть" [19:21:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:21:24]line СНО: Общий режим [19:21:24]line Чек 154 15.05.2024 19:21 [19:21:24]line Смена: 356 ФФД: 1.0 [19:21:24]line ЗНМ: 0300000119 [19:21:24]line РНМ: 0000000000091845 [19:21:24]line Версия ККМ: 001 [19:21:24]line ФМ: 0000000000871829 [19:21:24]line ФД: 67336 [19:21:24]line ФПД: 11864811621793 [19:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192124&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67336&fm=11864811621793&tin=02508201610067®Number=0000000000091845&sum=100000 [19:21:24]written 0, free lines is 4095 [19:21:24]OFD Sender: Processing packet 67336 [packets to send 35, broken 34] [19:21:24]ProducePacketName [19:21:24]name=ofd_packets/00067336 [19:21:24]OFD Sender: To server: pG, [19:21:24]CommunicateWithHost lk.salyk.kg:30040 [19:21:24]ConnectInit lk.salyk.kg [19:21:24]Connected sock=10 [19:21:24]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 97 8E 04 01 F5 EE 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 9A 00 00 00 F4 03 04 00 34 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A CA 7D E1 CD A1 6E 16 AB B5 98 9E C3 32 [19:21:24]Write to MH i2c: 01 00 00 ED 23 10 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 ED 23 00 00 00 00 00 D7 0C FA [19:21:24]RasterBufferAndPrint [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]written 0, free lines is 3300 [19:21:24]MH_Cut [19:21:24]Write to MH i2c: D1 01 00 F4 23 01 E9 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 01 00 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 01 00 F4 23 00 E8 [19:21:24]Write to MH i2c: 01 00 00 F5 23 18 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21: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 1C 99 47 00 13 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 08 07 01 00 F4 03 04 00 11 B3 44 66 B6 04 01 00 00 06 20 46 FE 86 AE C5 0A [19:21:24]CommunicateWithHost err = 0 [19:21:24]CheckOFDResponse [19:21:24]1017 (14) - 77093643461234 [19:21:24]1041 (16) - 0000000000871829 [19:21:24]1040 (4) - 67336 [19:21:24]1012 (4) - 15.05.2024 13:05 [19:21:24]1206 (1) - 0 [19:21:24]OFD Sender: Remove packet 67336 [19:21:24]ProducePacketName [19:21:24]name=ofd_packets/00067336 [19:21:24]NVStorageDeleteData [19:21:25]OFD Sender: No OFD packet to send [19:21:25]*** Cut start [19:21:25]*** Purtial cut [19:21:25]*** Stage 1: CUTSNS_PIN = 1 [19:21:25]Read from MH i2c: 01 [19:21:25]MH_I2C_Read... [19:21:25]*** Stop cut motor [19:21:25]*** Cut end [19:21:25]Read from MH i2c: 01 07 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: 01 07 00 F5 23 00 00 00 00 00 FF 0F 2D [19:21:25]process_action close_receipt done [19:21:25]requested_data is exist [19:21:25]produce_requested_data [19:21:25]requested_item fm.sn is exist - process it [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 11 00 00 [19:21:25]Write to MH i2c: E2 08 00 F6 23 80 11 00 00 00 00 00 00 93 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 F6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [19:21: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:21:25]wFMCommunicate OK [19:21:25]requested_item fd.num is exist - process it [19:21:25]SAM_PROTO_GetFieldsCounters [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 00 00 [19:21:25]Write to MH i2c: E2 08 00 F7 23 80 13 00 00 00 00 00 00 96 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:26]Read from MH i2c: E2 [19:21:26]MH_I2C_Read... [19:21:26]Read from MH i2c: E2 62 00 [19:21:26]MH_I2C_Read... [19:21:26]Read from MH i2c: E2 62 00 F7 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 08 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [19:21: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 08 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:26]wFMCommunicate OK [19:21:26]SAM_PROTO_GetFieldsCounters done [19:21:26]requested_item shift.num is exist - process it [19:21:26]requested_item shift.opened is exist - process it [19:21:26]req_shift_opened [19:21:26]FM_GetShiftState [19:21:26]SAM_PROTO_GetShiftState [19:21:26]wFMCommunicate request_size=4 [19:21:26]MH_SAM_APDU [19:21:26]CAPDU: 80 13 01 00 [19:21:26]Write to MH i2c: E2 08 00 F8 23 80 13 01 00 00 00 00 00 98 [19:21:26]Write i2c OK [19:21:26]MH_I2C_Read... [19:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:26]Read from MH i2c: E2 [19:21:26]MH_I2C_Read... [19:21:26]Read from MH i2c: E2 0E 00 [19:21:26]MH_I2C_Read... [19:21:26]Read from MH i2c: E2 0E 00 F8 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 43 [19:21:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:26]wFMCommunicate OK [19:21:26]SAM_PROTO_GetShiftState done [19:21:26]FM_GetShiftState done [19:21:26]req_shift_opened done [19:21:26]requested_item shift.open_date is exist - process it [19:21:26]req_shift_open_date [19:21:26]req_shift_open_date done [19:21:26]produce_requested_data done [19:21:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67336,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:21:26]process_action_free close_receipt [19:21:26]json_value_free [19:21:26]json_value_free done [19:21:26]process_json_proto returns [19:21:26]Send response to host [19:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67336,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:21:26]free response buf [19:21:26]execute_script done [19:21:26]execute_script returns [19:21:26]free content buf [19:21:26]Sock 7.Close socket [19:21:26]Sock 7.Thread stoped [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:41]accept exits with 9 [19:21:41]New connection [19:21:41]New thread 3067030884 created [19:21:41]Thread 3067174244 joined [19:21:41]Waiting for new connection... [19:21:41] Sock 9.Parse request [19:21:41]Sock 9.Check first char [19:21:41]Sock 9.First char is OK [19:21:41]request: POST /json_proto HTTP/1.0 [19:21:41]Method: POST [19:21:41]URL: /json_proto [19:21:41]Method is POST - this is cgi request [19:21:41]url: /json_proto [19:21:41]query_string will be loaded in cgi processing [19:21:41]execute_cgi json_proto POST (null) [19:21:41]execute_cgi path=json_proto method=POST [19:21:41]POST find Content-Length [19:21:41]Host: 172.17.41.195:8080 [19:21:41]Content-Length: 706 [19:21:41]Content-Type: application/json [19:21:41] [19:21:41]POST finish read [19:21:41]Found Content-Length = 706 [19:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12080", "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" ] } } [19:21:41]execute_script... [19:21:41]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)12080", "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" ] } } [19:21:41]POST & json_proto [19:21:41]process_json_proto [19:21:41]json parsed OK: [19:21:41]protocol is kg_v1.0 [19:21:41]action value=close_receipt [19:21:41]process_action close_receipt [19:21:41]cmd_close_receipt [19:21:41]MH_GetDate [19:21:41]Write to MH i2c: F0 00 00 F9 23 0B [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 09 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: F0 09 00 F9 23 00 47 0B 45 66 FC 21 6F 64 01 [19:21:41]GetLastDocTimeStamp 1715800884 [19:21:41]current date 1715800903 [19:21:41]FM_GetShiftState [19:21:41]SAM_PROTO_GetShiftState [19:21:41]wFMCommunicate request_size=4 [19:21:41]MH_SAM_APDU [19:21:41]CAPDU: 80 13 01 00 [19:21:41]Write to MH i2c: E2 08 00 FA 23 80 13 01 00 00 00 00 00 9A [19:21:41]Write i2c OK [19:21:41]MH_I2C_Read... [19:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:41]Read from MH i2c: E2 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 0E 00 [19:21:41]MH_I2C_Read... [19:21:41]Read from MH i2c: E2 0E 00 FA 23 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 45 [19:21:41]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:41]wFMCommunicate OK [19:21:41]SAM_PROTO_GetShiftState done [19:21:41]FM_GetShiftState done [19:21:41]opened in 1715732471 [19:21:41]opened+sec_in_day 1715818871 [19:21:41]quantity*price = 7500 [19:21:41]sum+1 = 7501 [19:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 155 15.05.2024 19:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67337 ФПД: 1727350053721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192143&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67337&fm=1727350053721&tin=02508201610067®Number=0000000000091845&sum=7500 0 [19:21:42]StoreToDocumentArchive [19:21:42]shift 356 fd 67337 [19:21:42]save to /storage/0356/doc_00067337 [19:21:42]save last doc name /storage/0356/doc_00067337 to /storage/kkm_last_doc_name [19:21:42]save OK [19:21:42]Clear old archive folders... [19:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=302 [19:21:42]tlvbuf is 00B7CA00 [19:21:42]SAM_PROTO_ClearQueue [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 09 00 00 [19:21:42]Write to MH i2c: E2 08 00 07 24 80 09 00 00 00 00 00 00 9D [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_ClearQueue done [19:21:42]KKMCreateOFDPacket [19:21:42]OFDProtocolAddRootSTLVToBuf [19:21:42]FM_MakeSignedData [19:21:42]FM_MakeSignedData [19:21:42]SAM_PROTO_SignData [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 01 02 [19:21:42]Write to MH i2c: E2 08 00 08 24 80 0D 01 02 00 00 00 00 A5 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=255 [19:21:42]MH_SAM_APDU [19:21:42]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 9B 00 00 00 F4 03 04 00 47 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 [19:21:42]Write to MH i2c: E2 02 01 09 24 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 9B 00 00 00 F4 03 04 00 47 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 00 00 F5 [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=61 [19:21:42]MH_SAM_APDU [19:21:42]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 09 07 01 00 35 04 06 00 01 92 2E 16 1B 59 [19:21:42]Write to MH i2c: E2 40 00 0A 24 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 09 07 01 00 35 04 06 00 01 92 2E 16 1B 59 00 00 3E [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [19:21:42]RAPDU: 90 00 [19:21:42]wFMCommunicate OK [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 0D 03 02 [19:21:42]Write to MH i2c: E2 08 00 0B 24 80 0D 03 02 00 00 00 00 AA [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0B 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 0B 00 0B 24 00 56 30 C8 6B 58 A8 AE 19 90 00 2B [19:21:42]RAPDU: 56 30 C8 6B 58 A8 AE 19 90 00 [19:21:42]wFMCommunicate OK [19:21:42]SAM_PROTO_SignData done [19:21:42]FM_MakeSignedData done [19:21:42]CreateOFDProtocolMessage [19:21:42]wFMCommunicate request_size=4 [19:21:42]MH_SAM_APDU [19:21:42]CAPDU: 80 11 00 00 [19:21:42]Write to MH i2c: E2 08 00 0C 24 80 11 00 00 00 00 00 00 AA [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:42]Read from MH i2c: E2 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 17 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: E2 17 00 0C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [19:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:21:42]wFMCommunicate OK [19:21:42]CreateOFDProtocolMessage done [19:21:42]OFDSenderStorePacket 67337 [19:21:42]StoreOFDPacket docnum=67337 [19:21: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 42 01 00 00 4B AB 3A 01 F8 67 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 9B 00 00 00 F4 03 04 00 47 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 01 92 2E 16 1B 59 56 30 C8 6B 58 A8 AE 19 [19:21:42]CheckFolder [19:21:42]dirname=/storage/ofd_packets [19:21:42]CheckFolder done [19:21:42]ProducePacketName [19:21:42]name=ofd_packets/00067337 [19:21:42]NVStorageSaveData ofd_packets/00067337 [19:21:42]File name is /storage/ofd_packets/00067337 [19:21:42]Write 352 bytes [19:21:42]NVStorageSaveData done [19:21:42]OFDSenderStorePacket done [19:21:42]KKMCreateOFDPacket done [19:21:42]NVStorageSaveData kkm_last_timestamp [19:21:42]File name is /storage/kkm_last_timestamp [19:21:42]Write 4 bytes [19:21:42]NVStorageSaveData done [19:21:42]ExternCall_PrintAddStr [19:21:42]wPrintStart [19:21:42]Write to MH i2c: 01 00 00 0D 24 31 [19:21:42]OFD Sender: Processing packet 67337 [packets to send 35, broken 34] [19:21:42]ProducePacketName [19:21:42]name=ofd_packets/00067337 [19:21:42]OFD Sender: To server: pG, [19:21:42]CommunicateWithHost lk.salyk.kg:30040 [19:21:42]ConnectInit lk.salyk.kg [19:21:42]Write i2c OK [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: 01 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: 01 07 00 [19:21:42]MH_I2C_Read... [19:21:42]Read from MH i2c: 01 07 00 0D 24 00 00 00 00 00 FF 0F 46 [19:21:42]RasterBufferAndPrint [19:21:42]line Счет N : (3)12080 [19:21:42]line ИНН: 02508201610067 [19:21:42]line Контрольно-Кассовый Чек [19:21:42]line ПРОДАЖА [19:21:42]line Товар: 4700000480050 [19:21:42]line Напиток энергетический Nitro 0.45 ж/б [19:21:42]line 1.000 * 75.00 [19:21:42]line = 75.00 [19:21:42]line НДС 12% НСП 1% [19:21:42]line > о реализуемом товаре [19:21:42]line ИТОГО: 75.00 [19:21:42]line НСП 1% : 0.66 [19:21:42]line НДС 12% : 7.96 [19:21:42]line Наличными: 75.00 [19:21:42]line Безнал.: 0.00 [19:21:42]line Место: АЗС № 91 "Партнер Нефть" [19:21:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:21:42]line СНО: Общий режим [19:21:42]line Чек 155 15.05.2024 19:21 [19:21:42]line Смена: 356 ФФД: 1.0 [19:21:42]line ЗНМ: 0300000119 [19:21:42]line РНМ: 0000000000091845 [19:21:42]line Версия ККМ: 001 [19:21:42]line ФМ: 0000000000871829 [19:21:42]line ФД: 67337 [19:21:42]line ФПД: 1727350053721 [19:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192143&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67337&fm=1727350053721&tin=02508201610067®Number=0000000000091845&sum=7500 [19:21:42]line 0 [19:21:42]written 0, free lines is 4095 [19:21:42]Connected sock=10 [19:21: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 42 01 00 00 4B AB 3A 01 F8 67 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 9B 00 00 00 F4 03 04 00 47 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 01 92 2E 16 1B 59 56 30 C8 6B 58 A8 AE 19 [19:21: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 BB F8 47 00 75 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 09 07 01 00 F4 03 04 00 23 B3 44 66 B6 04 01 00 00 52 1A 3C F6 8D 5A EC 72 [19:21:43]CommunicateWithHost err = 0 [19:21:43]CheckOFDResponse [19:21:43]1017 (14) - 77093643461234 [19:21:43]1041 (16) - 0000000000871829 [19:21:43]1040 (4) - 67337 [19:21:43]1012 (4) - 15.05.2024 13:05 [19:21:43]1206 (1) - 0 [19:21:43]OFD Sender: Remove packet 67337 [19:21:43]ProducePacketName [19:21:43]name=ofd_packets/00067337 [19:21:43]NVStorageDeleteData [19:21:43]Write to MH i2c: 01 00 00 35 24 59 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 DE 0C 4A [19:21:43]RasterBufferAndPrint [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]line [19:21:43]written 0, free lines is 3302 [19:21:43]MH_Cut [19:21:43]Write to MH i2c: D1 01 00 3C 24 01 32 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 01 00 [19:21:43]MH_I2C_Read... [19:21:43]Read from MH i2c: D1 01 00 3C 24 00 31 [19:21:43]Write to MH i2c: 01 00 00 3D 24 61 [19:21:43]Write i2c OK [19:21:43]MH_I2C_Read... [19:21:43]OFD Sender: No OFD packet to send [19:21:44]*** Cut start [19:21:44]*** Purtial cut [19:21:44]*** CUTSNS_PIN = 0 [19:21:44]*** Stage 1: CUTSNS_PIN = 1 [19:21:46]Read from MH i2c: 01 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 07 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 07 00 3D 24 00 00 00 00 00 FF 0F 76 [19:21:46]process_action close_receipt done [19:21:46]requested_data is exist [19:21:46]produce_requested_data [19:21:46]requested_item fm.sn is exist - process it [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 11 00 00 [19:21:46]Write to MH i2c: E2 08 00 3E 24 80 11 00 00 00 00 00 00 DC [19:21:46]int [19:21:46]*** Stop cut motor [19:21:46]*** Cut end [19:21:46]*** FLAG_PRN_PAP1 set [19:21:46]*** FLAG_PRN_PAP2 set [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 17 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 17 00 3E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [19:21: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:21:46]wFMCommunicate OK [19:21:46]requested_item fd.num is exist - process it [19:21:46]SAM_PROTO_GetFieldsCounters [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 13 00 00 [19:21:46]Write to MH i2c: 01 00 00 3F 24 63 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 07 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: 01 07 00 3F 24 00 03 00 00 00 FF 0F 7B [19:21:46]state=0 [19:21:46]No paper [19:21:46]Cover opened [19:21:46]Write to MH i2c: E2 08 00 40 24 80 13 00 00 00 00 00 00 E0 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 62 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 62 00 40 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 09 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:21: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 09 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:46]wFMCommunicate OK [19:21:46]SAM_PROTO_GetFieldsCounters done [19:21:46]requested_item shift.num is exist - process it [19:21:46]requested_item shift.opened is exist - process it [19:21:46]req_shift_opened [19:21:46]FM_GetShiftState [19:21:46]SAM_PROTO_GetShiftState [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 13 01 00 [19:21:46]Write to MH i2c: E2 08 00 41 24 80 13 01 00 00 00 00 00 E2 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 41 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8D [19:21:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:21:46]wFMCommunicate OK [19:21:46]SAM_PROTO_GetShiftState done [19:21:46]FM_GetShiftState done [19:21:46]req_shift_opened done [19:21:46]requested_item shift.open_date is exist - process it [19:21:46]req_shift_open_date [19:21:46]req_shift_open_date done [19:21:46]produce_requested_data done [19:21:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67337,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:21:46]process_action_free close_receipt [19:21:46]json_value_free [19:21:46]json_value_free done [19:21:46]process_json_proto returns [19:21:46]Send response to host [19:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67337,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:21:46]free response buf [19:21:46]execute_script done [19:21:46]execute_script returns [19:21:46]free content buf [19:21:46]Sock 9.Close socket [19:21:46]Sock 9.Thread stoped [19:21:48]OFD Sender: No OFD packet to send [19:21:50]int [19:21:50]Write to MH i2c: 01 00 00 42 24 66 [19:21:50]*** FLAG_PRN_PAP1 reset [19:21:50]*** FLAG_PRN_PAP2 reset [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: 01 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: 01 07 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: 01 07 00 42 24 00 00 00 00 00 FF 0F 7B [19:21:50]state=3 [19:21:50]Cover closed [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:05]accept exits with 7 [19:22:05]New connection [19:22:05]New thread 3067174244 created [19:22:05]Thread 3067030884 joined [19:22:05]Waiting for new connection... [19:22:05] Sock 7.Parse request [19:22:05]Sock 7.Check first char [19:22:05]Sock 7.First char is OK [19:22:05]request: POST /json_proto HTTP/1.0 [19:22:05]Method: POST [19:22:05]URL: /json_proto [19:22:05]Method is POST - this is cgi request [19:22:05]url: /json_proto [19:22:05]query_string will be loaded in cgi processing [19:22:05]execute_cgi json_proto POST (null) [19:22:05]execute_cgi path=json_proto method=POST [19:22:05]POST find Content-Length [19:22:05]Host: 172.17.41.195:8080 [19:22:05]Content-Length: 675 [19:22:05]Content-Type: application/json [19:22:05] [19:22:05]POST finish read [19:22:05]Found Content-Length = 675 [19:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:05]execute_script... [19:22: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)507319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:05]POST & json_proto [19:22:05]process_json_proto [19:22:05]json parsed OK: [19:22:05]protocol is kg_v1.0 [19:22:05]action value=close_receipt [19:22:05]process_action close_receipt [19:22:05]cmd_close_receipt [19:22:05]MH_GetDate [19:22:05]Write to MH i2c: F0 00 00 43 24 56 [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 09 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: F0 09 00 43 24 00 5F 0B 45 66 FC 21 6F 64 64 [19:22:05]GetLastDocTimeStamp 1715800903 [19:22:05]current date 1715800927 [19:22:05]FM_GetShiftState [19:22:05]SAM_PROTO_GetShiftState [19:22:05]wFMCommunicate request_size=4 [19:22:05]MH_SAM_APDU [19:22:05]CAPDU: 80 13 01 00 [19:22:05]Write to MH i2c: E2 08 00 44 24 80 13 01 00 00 00 00 00 E5 [19:22:05]Write i2c OK [19:22:05]MH_I2C_Read... [19:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:05]Read from MH i2c: E2 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 [19:22:05]MH_I2C_Read... [19:22:05]Read from MH i2c: E2 0E 00 44 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 90 [19:22:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:22:05]wFMCommunicate OK [19:22:05]SAM_PROTO_GetShiftState done [19:22:05]FM_GetShiftState done [19:22:05]opened in 1715732471 [19:22:05]opened+sec_in_day 1715818871 [19:22:05]quantity*price = 150041 [19:22:05]sum+1 = 150042 [19:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 156 15.05.2024 19:22 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67338 ФПД: 279454699607906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67338&fm=279454699607906&tin=02508201610067®Number=0000000000091845&sum=150000 [19:22:06]StoreToDocumentArchive [19:22:06]shift 356 fd 67338 [19:22:06]save to /storage/0356/doc_00067338 [19:22:06]save last doc name /storage/0356/doc_00067338 to /storage/kkm_last_doc_name [19:22:06]save OK [19:22:06]Clear old archive folders... [19:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:22:06]tlvbuf is 00B0F9F0 [19:22:06]SAM_PROTO_ClearQueue [19:22:06]wFMCommunicate request_size=4 [19:22:06]MH_SAM_APDU [19:22:06]CAPDU: 80 09 00 00 [19:22:06]Write to MH i2c: E2 08 00 51 24 80 09 00 00 00 00 00 00 E7 [19:22:06]Write i2c OK [19:22:06]MH_I2C_Read... [19:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:06]Read from MH i2c: E2 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 51 24 00 90 00 E9 [19:22:06]RAPDU: 90 00 [19:22:06]wFMCommunicate OK [19:22:06]SAM_PROTO_ClearQueue done [19:22:06]KKMCreateOFDPacket [19:22:06]OFDProtocolAddRootSTLVToBuf [19:22:06]FM_MakeSignedData [19:22:06]FM_MakeSignedData [19:22:06]SAM_PROTO_SignData [19:22:06]wFMCommunicate request_size=4 [19:22:06]MH_SAM_APDU [19:22:06]CAPDU: 80 0D 01 02 [19:22:06]Write to MH i2c: E2 08 00 52 24 80 0D 01 02 00 00 00 00 EF [19:22:06]Write i2c OK [19:22:06]MH_I2C_Read... [19:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:06]Read from MH i2c: E2 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 [19:22:06]MH_I2C_Read... [19:22:06]Read from MH i2c: E2 03 00 52 24 00 90 00 EA [19:22:06]RAPDU: 90 00 [19:22:06]wFMCommunicate OK [19:22:06]wFMCommunicate request_size=255 [19:22:06]MH_SAM_APDU [19:22:06]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 5F 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [19:22:06]Write to MH i2c: E2 02 01 53 24 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 5F 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 3A [19:22:06]Write i2c OK [19:22:06]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [19:22:07]RAPDU: 90 00 [19:22:07]wFMCommunicate OK [19:22:07]wFMCommunicate request_size=11 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 0D 02 02 06 FE 29 9E 19 D7 62 [19:22:07]Write to MH i2c: E2 0E 00 54 24 80 0D 02 02 06 00 FE 29 9E 19 D7 62 00 00 15 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [19:22:07]RAPDU: 90 00 [19:22:07]wFMCommunicate OK [19:22:07]wFMCommunicate request_size=4 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 0D 03 02 [19:22:07]Write to MH i2c: E2 08 00 55 24 80 0D 03 02 00 00 00 00 F4 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 0B 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 0B 00 55 24 00 94 F0 98 48 AF 92 7C FE 90 00 14 [19:22:07]RAPDU: 94 F0 98 48 AF 92 7C FE 90 00 [19:22:07]wFMCommunicate OK [19:22:07]SAM_PROTO_SignData done [19:22:07]FM_MakeSignedData done [19:22:07]CreateOFDProtocolMessage [19:22:07]wFMCommunicate request_size=4 [19:22:07]MH_SAM_APDU [19:22:07]CAPDU: 80 11 00 00 [19:22:07]Write to MH i2c: E2 08 00 56 24 80 11 00 00 00 00 00 00 F4 [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:07]Read from MH i2c: E2 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 17 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: E2 17 00 56 24 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:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:22:07]wFMCommunicate OK [19:22:07]CreateOFDProtocolMessage done [19:22:07]OFDSenderStorePacket 67338 [19:22:07]StoreOFDPacket docnum=67338 [19:22: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 10 01 00 00 AF 9F 08 01 CB 87 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 5F 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FE 29 9E 19 D7 62 94 F0 98 48 AF 92 7C FE [19:22:07]CheckFolder [19:22:07]dirname=/storage/ofd_packets [19:22:07]CheckFolder done [19:22:07]ProducePacketName [19:22:07]name=ofd_packets/00067338 [19:22:07]NVStorageSaveData ofd_packets/00067338 [19:22:07]File name is /storage/ofd_packets/00067338 [19:22:07]Write 302 bytes [19:22:07]NVStorageSaveData done [19:22:07]OFDSenderStorePacket done [19:22:07]KKMCreateOFDPacket done [19:22:07]NVStorageSaveData kkm_last_timestamp [19:22:07]File name is /storage/kkm_last_timestamp [19:22:07]Write 4 bytes [19:22:07]NVStorageSaveData done [19:22:07]ExternCall_PrintAddStr [19:22:07]wPrintStart [19:22:07]Write to MH i2c: 01 00 00 57 24 7B [19:22:07]Write i2c OK [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: 01 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: 01 07 00 [19:22:07]MH_I2C_Read... [19:22:07]Read from MH i2c: 01 07 00 57 24 00 00 00 00 00 FF 0F 90 [19:22:07]RasterBufferAndPrint [19:22:07]line Счет N : (1)507319 [19:22:07]line ИНН: 02508201610067 [19:22:07]line Контрольно-Кассовый Чек [19:22:07]line ПРОДАЖА [19:22:07]line ТРК (МРК, ГНК) : 12 [19:22:07]line Товар: 2710124130 [19:22:07]line Super-92-К-5 [19:22:07]line 22.130 * 67.80 [19:22:07]line = 1500.41 [19:22:07]line НДС 12% НСП 1% [19:22:07]line > о реализуемом товаре [19:22:07]line ОКРУГЛЕНИЕ: -0.41 [19:22:07]line ИТОГО: 1500.00 [19:22:07]line Внесено: 1500.00 [19:22:07]line СДАЧА: 0.00 [19:22:07]line НСП 1% : 13.28 [19:22:07]line НДС 12% : 159.34 [19:22:07]line Наличными: 1500.00 [19:22:07]line Безнал.: 0.00 [19:22:07]line Место: АЗС № 91 "Партнер Нефть" [19:22:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:22:07]line СНО: Общий режим [19:22:07]line Чек 156 15.05.2024 19:22 [19:22:07]line Смена: 356 ФФД: 1.0 [19:22:07]line ЗНМ: 0300000119 [19:22:07]line РНМ: 0000000000091845 [19:22:07]line Версия ККМ: 001 [19:22:07]line ФМ: 0000000000871829 [19:22:07]line ФД: 67338 [19:22:07]line ФПД: 279454699607906 [19:22:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67338&fm=279454699607906&tin=02508201610067®Number=0000000000091845&sum=150000 [19:22:07]written 0, free lines is 4095 [19:22:07]OFD Sender: Processing packet 67338 [packets to send 35, broken 34] [19:22:07]ProducePacketName [19:22:07]name=ofd_packets/00067338 [19:22:07]OFD Sender: To server: pG, [19:22:07]CommunicateWithHost lk.salyk.kg:30040 [19:22:07]ConnectInit lk.salyk.kg [19:22:07]Connected sock=10 [19:22: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 10 01 00 00 AF 9F 08 01 CB 87 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 5F 0B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FE 29 9E 19 D7 62 94 F0 98 48 AF 92 7C FE [19:22: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 4A 2D 47 00 DE 2E 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 07 01 00 F4 03 04 00 3C B3 44 66 B6 04 01 00 00 1F 4E 77 A5 20 B1 FD D5 [19:22:07]CommunicateWithHost err = 0 [19:22:07]CheckOFDResponse [19:22:07]1017 (14) - 77093643461234 [19:22:07]1041 (16) - 0000000000871829 [19:22:07]1040 (4) - 67338 [19:22:07]1012 (4) - 15.05.2024 13:06 [19:22:07]1206 (1) - 0 [19:22:07]OFD Sender: Remove packet 67338 [19:22:07]ProducePacketName [19:22:07]name=ofd_packets/00067338 [19:22:07]NVStorageDeleteData [19:22:08]Write to MH i2c: 01 00 00 81 24 A5 [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 07 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 E2 0C 9A [19:22:08]RasterBufferAndPrint [19:22:08]line [19:22:08]line [19:22:08]line [19:22:08]line [19:22:08]line [19:22:08]written 0, free lines is 3304 [19:22:08]MH_Cut [19:22:08]Write to MH i2c: D1 01 00 88 24 01 7E [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: D1 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: D1 01 00 [19:22:08]MH_I2C_Read... [19:22:08]Read from MH i2c: D1 01 00 88 24 00 7D [19:22:08]Write to MH i2c: 01 00 00 89 24 AD [19:22:08]Write i2c OK [19:22:08]MH_I2C_Read... [19:22:08]OFD Sender: No OFD packet to send [19:22:08]*** Cut start [19:22:08]*** Purtial cut [19:22:08]*** Stage 1: CUTSNS_PIN = 1 [19:22:09]Read from MH i2c: 01 [19:22:09]MH_I2C_Read... [19:22:09]*** Stop cut motor [19:22:09]*** Cut end [19:22:09]Read from MH i2c: 01 07 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: 01 07 00 89 24 00 00 00 00 00 FF 0F C2 [19:22:09]process_action close_receipt done [19:22:09]requested_data is exist [19:22:09]produce_requested_data [19:22:09]requested_item fm.sn is exist - process it [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 11 00 00 [19:22:09]Write to MH i2c: E2 08 00 8A 24 80 11 00 00 00 00 00 00 28 [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 17 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 17 00 8A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [19:22: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:22:09]wFMCommunicate OK [19:22:09]requested_item fd.num is exist - process it [19:22:09]SAM_PROTO_GetFieldsCounters [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 13 00 00 [19:22:09]Write to MH i2c: E2 08 00 8B 24 80 13 00 00 00 00 00 00 2B [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 62 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 62 00 8B 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 0A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [19:22: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 0A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:09]wFMCommunicate OK [19:22:09]SAM_PROTO_GetFieldsCounters done [19:22:09]requested_item shift.num is exist - process it [19:22:09]requested_item shift.opened is exist - process it [19:22:09]req_shift_opened [19:22:09]FM_GetShiftState [19:22:09]SAM_PROTO_GetShiftState [19:22:09]wFMCommunicate request_size=4 [19:22:09]MH_SAM_APDU [19:22:09]CAPDU: 80 13 01 00 [19:22:09]Write to MH i2c: E2 08 00 8C 24 80 13 01 00 00 00 00 00 2D [19:22:09]Write i2c OK [19:22:09]MH_I2C_Read... [19:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:09]Read from MH i2c: E2 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 0E 00 [19:22:09]MH_I2C_Read... [19:22:09]Read from MH i2c: E2 0E 00 8C 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [19:22:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:22:09]wFMCommunicate OK [19:22:09]SAM_PROTO_GetShiftState done [19:22:09]FM_GetShiftState done [19:22:09]req_shift_opened done [19:22:09]requested_item shift.open_date is exist - process it [19:22:09]req_shift_open_date [19:22:09]req_shift_open_date done [19:22:09]produce_requested_data done [19:22:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67338,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:22:09]process_action_free close_receipt [19:22:09]json_value_free [19:22:09]json_value_free done [19:22:09]process_json_proto returns [19:22:09]Send response to host [19:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67338,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:22:09]free response buf [19:22:09]execute_script done [19:22:09]execute_script returns [19:22:09]free content buf [19:22:09]Sock 7.Close socket [19:22:09]Sock 7.Thread stoped [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:10]accept exits with 9 [19:26:10]New connection [19:26:10]New thread 3067030884 created [19:26:10]Thread 3067174244 joined [19:26:10]Waiting for new connection... [19:26:10] Sock 9.Parse request [19:26:10]Sock 9.Check first char [19:26:10]Sock 9.First char is OK [19:26:10]request: POST /json_proto HTTP/1.0 [19:26:10]Method: POST [19:26:10]URL: /json_proto [19:26:10]Method is POST - this is cgi request [19:26:10]url: /json_proto [19:26:10]query_string will be loaded in cgi processing [19:26:10]execute_cgi json_proto POST (null) [19:26:10]execute_cgi path=json_proto method=POST [19:26:10]POST find Content-Length [19:26:10]Host: 172.17.41.195:8080 [19:26:10]Content-Length: 637 [19:26:10]Content-Type: application/json [19:26:10] [19:26:10]POST finish read [19:26:10]Found Content-Length = 637 [19:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507320", "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" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:10]execute_script... [19:26: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)507320", "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" : 10.000, "sum" : 747.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:10]POST & json_proto [19:26:10]process_json_proto [19:26:10]json parsed OK: [19:26:10]protocol is kg_v1.0 [19:26:10]action value=close_receipt [19:26:10]process_action close_receipt [19:26:10]cmd_close_receipt [19:26:10]MH_GetDate [19:26:10]Write to MH i2c: F0 00 00 8D 24 A0 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 09 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: F0 09 00 8D 24 00 54 0C 45 66 FC 21 6F 64 A4 [19:26:10]GetLastDocTimeStamp 1715800927 [19:26:10]current date 1715801172 [19:26:10]FM_GetShiftState [19:26:10]SAM_PROTO_GetShiftState [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 13 01 00 [19:26:10]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 0E 00 8E 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DA [19:26:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:26:10]wFMCommunicate OK [19:26:10]SAM_PROTO_GetShiftState done [19:26:10]FM_GetShiftState done [19:26:10]opened in 1715732471 [19:26:10]opened+sec_in_day 1715818871 [19:26:10]quantity*price = 74700 [19:26:10]sum+1 = 74701 [19:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 747.00 НСП 1% : 6.61 НДС 12% : 79.33 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 157 15.05.2024 19:26 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67339 ФПД: 263797829207327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67339&fm=263797829207327&tin=02508201610067®Number=0000000000091845&sum=74700 [19:26:11]StoreToDocumentArchive [19:26:11]shift 356 fd 67339 [19:26:11]save to /storage/0356/doc_00067339 [19:26:11]save last doc name /storage/0356/doc_00067339 to /storage/kkm_last_doc_name [19:26:11]save OK [19:26:11]Clear old archive folders... [19:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:26:11]tlvbuf is 00BF6700 [19:26:11]SAM_PROTO_ClearQueue [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 09 00 00 [19:26:11]Write to MH i2c: E2 08 00 9B 24 80 09 00 00 00 00 00 00 31 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]SAM_PROTO_ClearQueue done [19:26:11]KKMCreateOFDPacket [19:26:11]OFDProtocolAddRootSTLVToBuf [19:26:11]FM_MakeSignedData [19:26:11]FM_MakeSignedData [19:26:11]SAM_PROTO_SignData [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 0D 01 02 [19:26:11]Write to MH i2c: E2 08 00 9C 24 80 0D 01 02 00 00 00 00 39 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 9C 24 00 90 00 34 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=255 [19:26:11]MH_SAM_APDU [19:26:11]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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 EF EC 37 E7 [19:26:11]Write to MH i2c: E2 02 01 9D 24 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 EF EC 37 E7 00 00 B8 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 9D 24 00 90 00 35 [19:26:11]RAPDU: 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=7 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 0D 02 02 02 05 1F [19:26:11]Write to MH i2c: E2 0A 00 9E 24 80 0D 02 02 02 00 05 1F 00 00 64 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 03 00 9E 24 00 90 00 36 [19:26:11]RAPDU: 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 0D 03 02 [19:26:11]Write to MH i2c: E2 08 00 9F 24 80 0D 03 02 00 00 00 00 3E [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0B 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 0B 00 9F 24 00 B9 10 A3 05 5B 74 83 39 90 00 3B [19:26:11]RAPDU: B9 10 A3 05 5B 74 83 39 90 00 [19:26:11]wFMCommunicate OK [19:26:11]SAM_PROTO_SignData done [19:26:11]FM_MakeSignedData done [19:26:11]CreateOFDProtocolMessage [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 11 00 00 [19:26:11]Write to MH i2c: E2 08 00 A0 24 80 11 00 00 00 00 00 00 3E [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 17 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 17 00 A0 24 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:26:11]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:11]wFMCommunicate OK [19:26:11]CreateOFDProtocolMessage done [19:26:11]OFDSenderStorePacket 67339 [19:26:11]StoreOFDPacket docnum=67339 [19:26: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 0C 01 00 00 FB D1 04 01 A8 60 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 EF EC 37 E7 05 1F B9 10 A3 05 5B 74 83 39 [19:26:11]CheckFolder [19:26:11]dirname=/storage/ofd_packets [19:26:11]CheckFolder done [19:26:11]ProducePacketName [19:26:11]name=ofd_packets/00067339 [19:26:11]NVStorageSaveData ofd_packets/00067339 [19:26:11]File name is /storage/ofd_packets/00067339 [19:26:11]Write 298 bytes [19:26:11]NVStorageSaveData done [19:26:11]OFDSenderStorePacket done [19:26:11]KKMCreateOFDPacket done [19:26:11]NVStorageSaveData kkm_last_timestamp [19:26:11]File name is /storage/kkm_last_timestamp [19:26:11]Write 4 bytes [19:26:11]NVStorageSaveData done [19:26:11]ExternCall_PrintAddStr [19:26:11]wPrintStart [19:26:11]Write to MH i2c: 01 00 00 A1 24 C5 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 07 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 FF 0F DA [19:26:11]RasterBufferAndPrint [19:26:11]line Счет N : (1)507320 [19:26:11]line ИНН: 02508201610067 [19:26:11]line Контрольно-Кассовый Чек [19:26:11]line ПРОДАЖА [19:26:11]line ТРК (МРК, ГНК) : 11 [19:26:11]line Товар: 2710194210 [19:26:11]line ДТ-К-5 [19:26:11]line 10.000 * 74.70 [19:26:11]line = 747.00 [19:26:11]line НДС 12% НСП 1% [19:26:11]line > о реализуемом товаре [19:26:11]line ИТОГО: 747.00 [19:26:11]line НСП 1% : 6.61 [19:26:11]line НДС 12% : 79.33 [19:26:11]line Наличными: 747.00 [19:26:11]line Безнал.: 0.00 [19:26:11]line Место: АЗС № 91 "Партнер Нефть" [19:26:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:26:11]line СНО: Общий режим [19:26:11]line Чек 157 15.05.2024 19:26 [19:26:11]line Смена: 356 ФФД: 1.0 [19:26:11]line ЗНМ: 0300000119 [19:26:11]line РНМ: 0000000000091845 [19:26:11]line Версия ККМ: 001 [19:26:11]line ФМ: 0000000000871829 [19:26:11]line ФД: 67339 [19:26:11]line ФПД: 263797829207327 [19:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67339&fm=263797829207327&tin=02508201610067®Number=0000000000091845&sum=74700 [19:26:12]OFD Sender: Processing packet 67339 [packets to send 35, broken 34] [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00067339 [19:26:12]OFD Sender: To server: pG, [19:26:12]CommunicateWithHost lk.salyk.kg:30040 [19:26:12]ConnectInit lk.salyk.kg [19:26:12]written 0, free lines is 4095 [19:26:12]Connected sock=10 [19:26: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 FB D1 04 01 A8 60 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 10 27 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 CC 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1E 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 54 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 EF EC 37 E7 05 1F B9 10 A3 05 5B 74 83 39 [19:26: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 3E A0 47 00 50 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 0B 07 01 00 F4 03 04 00 30 B4 44 66 B6 04 01 00 00 E7 F0 C2 74 E0 8D D9 57 [19:26:12]CommunicateWithHost err = 0 [19:26:12]CheckOFDResponse [19:26:12]1017 (14) - 77093643461234 [19:26:12]1041 (16) - 0000000000871829 [19:26:12]1040 (4) - 67339 [19:26:12]1012 (4) - 15.05.2024 13:10 [19:26:12]1206 (1) - 0 [19:26:12]OFD Sender: Remove packet 67339 [19:26:12]ProducePacketName [19:26:12]name=ofd_packets/00067339 [19:26:12]NVStorageDeleteData [19:26:12]Write to MH i2c: 01 00 00 C8 24 EC [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 0C 0D 0C [19:26:12]RasterBufferAndPrint [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]line [19:26:12]written 0, free lines is 3344 [19:26:12]MH_Cut [19:26:12]Write to MH i2c: D1 01 00 CF 24 01 C5 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 01 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: D1 01 00 CF 24 00 C4 [19:26:12]Write to MH i2c: 01 00 00 D0 24 F4 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]OFD Sender: No OFD packet to send [19:26:13]*** Cut start [19:26:13]*** Purtial cut [19:26:13]*** CUTSNS_PIN = 0 [19:26:13]*** Stage 1: CUTSNS_PIN = 1 [19:26:15]Read from MH i2c: 01 [19:26:15]MH_I2C_Read... [19:26:15]*** Stop cut motor [19:26:15]*** Cut end [19:26:15]Read from MH i2c: 01 07 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [19:26:15]process_action close_receipt done [19:26:15]requested_data is exist [19:26:15]produce_requested_data [19:26:15]requested_item fm.sn is exist - process it [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 11 00 00 [19:26:15]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 17 00 D1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [19:26: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:26:15]wFMCommunicate OK [19:26:15]requested_item fd.num is exist - process it [19:26:15]SAM_PROTO_GetFieldsCounters [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 13 00 00 [19:26:15]Write to MH i2c: E2 08 00 D2 24 80 13 00 00 00 00 00 00 72 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 62 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 62 00 D2 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 0B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:26: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 0B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_GetFieldsCounters done [19:26:15]requested_item shift.num is exist - process it [19:26:15]requested_item shift.opened is exist - process it [19:26:15]req_shift_opened [19:26:15]FM_GetShiftState [19:26:15]SAM_PROTO_GetShiftState [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 13 01 00 [19:26:15]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 0E 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1F [19:26:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:26:15]wFMCommunicate OK [19:26:15]SAM_PROTO_GetShiftState done [19:26:15]FM_GetShiftState done [19:26:15]req_shift_opened done [19:26:15]requested_item shift.open_date is exist - process it [19:26:15]req_shift_open_date [19:26:15]req_shift_open_date done [19:26:15]produce_requested_data done [19:26:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67339,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:26:15]process_action_free close_receipt [19:26:15]json_value_free [19:26:15]json_value_free done [19:26:15]process_json_proto returns [19:26:15]Send response to host [19:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67339,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:26:15]free response buf [19:26:15]execute_script done [19:26:15]execute_script returns [19:26:15]free content buf [19:26:15]Sock 9.Close socket [19:26:15]Sock 9.Thread stoped [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]accept exits with 7 [19:27:47]New connection [19:27:47]New thread 3067174244 created [19:27:47]Thread 3067030884 joined [19:27:47]Waiting for new connection... [19:27:47] Sock 7.Parse request [19:27:47]Sock 7.Check first char [19:27:47]Sock 7.First char is OK [19:27:47]request: POST /json_proto HTTP/1.0 [19:27:47]Method: POST [19:27:47]URL: /json_proto [19:27:47]Method is POST - this is cgi request [19:27:47]url: /json_proto [19:27:47]query_string will be loaded in cgi processing [19:27:47]execute_cgi json_proto POST (null) [19:27:47]execute_cgi path=json_proto method=POST [19:27:47]POST find Content-Length [19:27:47]Host: 172.17.41.195:8080 [19:27:47]Content-Length: 679 [19:27:47]Content-Type: application/json [19:27:47] [19:27:47]POST finish read [19:27:47]Found Content-Length = 679 [19:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507321", "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 }]} ], "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:27:47]execute_script... [19:27: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)507321", "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 }]} ], "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:27:47]POST & json_proto [19:27:47]process_json_proto [19:27:47]json parsed OK: [19:27:47]protocol is kg_v1.0 [19:27:47]action value=close_receipt [19:27:47]process_action close_receipt [19:27:47]cmd_close_receipt [19:27:47]MH_GetDate [19:27:47]Write to MH i2c: F0 00 00 D4 24 E7 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: F0 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: F0 09 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: F0 09 00 D4 24 00 B5 0C 45 66 FC 21 6F 64 4C [19:27:47]GetLastDocTimeStamp 1715801172 [19:27:47]current date 1715801269 [19:27:47]FM_GetShiftState [19:27:47]SAM_PROTO_GetShiftState [19:27:47]wFMCommunicate request_size=4 [19:27:47]MH_SAM_APDU [19:27:47]CAPDU: 80 13 01 00 [19:27:47]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:47]Read from MH i2c: E2 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 0E 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 21 [19:27:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:27:47]wFMCommunicate OK [19:27:47]SAM_PROTO_GetShiftState done [19:27:47]FM_GetShiftState done [19:27:47]opened in 1715732471 [19:27:47]opened+sec_in_day 1715818871 [19:27:47]quantity*price = 100023 [19:27:47]sum+1 = 100024 [19:27:47]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 СНО: Общий режим Чек 158 15.05.2024 19:27 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67340 ФПД: 61231329358804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67340&fm=61231329358804&tin=02508201610067®Number=0000000000091845&sum=100000 [19:27:48]StoreToDocumentArchive [19:27:48]shift 356 fd 67340 [19:27:48]save to /storage/0356/doc_00067340 [19:27:48]save last doc name /storage/0356/doc_00067340 to /storage/kkm_last_doc_name [19:27:48]save OK [19:27:48]Clear old archive folders... [19:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:27:48]tlvbuf is 00B98130 [19:27:48]SAM_PROTO_ClearQueue [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 09 00 00 [19:27:48]Write to MH i2c: E2 08 00 E2 24 80 09 00 00 00 00 00 00 78 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [19:27:48]RAPDU: 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_ClearQueue done [19:27:48]KKMCreateOFDPacket [19:27:48]OFDProtocolAddRootSTLVToBuf [19:27:48]FM_MakeSignedData [19:27:48]FM_MakeSignedData [19:27:48]SAM_PROTO_SignData [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 0D 01 02 [19:27:48]Write to MH i2c: E2 08 00 E3 24 80 0D 01 02 00 00 00 00 80 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [19:27:48]RAPDU: 90 00 [19:27:48]wFMCommunicate OK [19:27:48]wFMCommunicate request_size=255 [19:27:48]MH_SAM_APDU [19:27:48]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 9E 00 00 00 F4 03 04 00 B5 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 37 B0 87 A2 [19:27:48]Write to MH i2c: E2 02 01 E4 24 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 9E 00 00 00 F4 03 04 00 B5 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 37 B0 87 A2 00 00 ED [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [19:27:48]RAPDU: 90 00 [19:27:48]wFMCommunicate OK [19:27:48]wFMCommunicate request_size=7 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 0D 02 02 02 B3 D4 [19:27:48]Write to MH i2c: E2 0A 00 E5 24 80 0D 02 02 02 00 B3 D4 00 00 0E [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [19:27:48]RAPDU: 90 00 [19:27:48]wFMCommunicate OK [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 0D 03 02 [19:27:48]Write to MH i2c: E2 08 00 E6 24 80 0D 03 02 00 00 00 00 85 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0B 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0B 00 E6 24 00 AF 1D CE 08 9F C3 16 F7 90 00 97 [19:27:48]RAPDU: AF 1D CE 08 9F C3 16 F7 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_SignData done [19:27:48]FM_MakeSignedData done [19:27:48]CreateOFDProtocolMessage [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 11 00 00 [19:27:48]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 E7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [19:27: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:27:48]wFMCommunicate OK [19:27:48]CreateOFDProtocolMessage done [19:27:48]OFDSenderStorePacket 67340 [19:27:48]StoreOFDPacket docnum=67340 [19:27: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 9F 46 04 01 9B 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 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 9E 00 00 00 F4 03 04 00 B5 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 37 B0 87 A2 B3 D4 AF 1D CE 08 9F C3 16 F7 [19:27:48]CheckFolder [19:27:48]dirname=/storage/ofd_packets [19:27:48]CheckFolder done [19:27:48]ProducePacketName [19:27:48]name=ofd_packets/00067340 [19:27:48]NVStorageSaveData ofd_packets/00067340 [19:27:48]File name is /storage/ofd_packets/00067340 [19:27:48]Write 298 bytes [19:27:48]NVStorageSaveData done [19:27:48]OFDSenderStorePacket done [19:27:48]KKMCreateOFDPacket done [19:27:48]NVStorageSaveData kkm_last_timestamp [19:27:48]File name is /storage/kkm_last_timestamp [19:27:48]Write 4 bytes [19:27:48]NVStorageSaveData done [19:27:48]ExternCall_PrintAddStr [19:27:48]wPrintStart [19:27:48]Write to MH i2c: 01 00 00 E8 24 0C [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 FF 0F 21 [19:27:48]RasterBufferAndPrint [19:27:48]line Счет N : (1)507321 [19:27:48]line ИНН: 02508201610067 [19:27:48]line Контрольно-Кассовый Чек [19:27:48]line ПРОДАЖА [19:27:48]line ТРК (МРК, ГНК) : 41 [19:27:48]line Товар: 2710194210 [19:27:48]line ДТ-К-5 [19:27:48]line 13.390 * 74.70 [19:27:48]line = 1000.23 [19:27:48]line НДС 12% НСП 1% [19:27:48]line > о реализуемом товаре [19:27:48]line ОКРУГЛЕНИЕ: -0.23 [19:27:48]line ИТОГО: 1000.00 [19:27:48]line Внесено: 1000.00 [19:27:48]line СДАЧА: 0.00 [19:27:48]line НСП 1% : 8.85 [19:27:48]line НДС 12% : 106.22 [19:27:48]line Наличными: 1000.00 [19:27:48]line Безнал.: 0.00 [19:27:48]line Место: АЗС № 91 "Партнер Нефть" [19:27:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:27:48]line СНО: Общий режим [19:27:48]line Чек 158 15.05.2024 19:27 [19:27:48]line Смена: 356 ФФД: 1.0 [19:27:48]line ЗНМ: 0300000119 [19:27:48]line РНМ: 0000000000091845 [19:27:48]line Версия ККМ: 001 [19:27:48]line ФМ: 0000000000871829 [19:27:48]line ФД: 67340 [19:27:48]line ФПД: 61231329358804 [19:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67340&fm=61231329358804&tin=02508201610067®Number=0000000000091845&sum=100000 [19:27:49]OFD Sender: Processing packet 67340 [packets to send 35, broken 34] [19:27:49]ProducePacketName [19:27:49]name=ofd_packets/00067340 [19:27:49]OFD Sender: To server: pG, [19:27:49]CommunicateWithHost lk.salyk.kg:30040 [19:27:49]ConnectInit lk.salyk.kg [19:27:49]written 0, free lines is 4095 [19:27:49]Connected sock=10 [19:27: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 0C 01 00 00 9F 46 04 01 9B 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 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 9E 00 00 00 F4 03 04 00 B5 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 37 B0 87 A2 B3 D4 AF 1D CE 08 9F C3 16 F7 [19:27: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 79 D1 47 00 86 5E 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 07 01 00 F4 03 04 00 91 B4 44 66 B6 04 01 00 00 EF AB 31 48 C1 A1 99 0B [19:27:49]CommunicateWithHost err = 0 [19:27:49]CheckOFDResponse [19:27:49]1017 (14) - 77093643461234 [19:27:49]1041 (16) - 0000000000871829 [19:27:49]1040 (4) - 67340 [19:27:49]1012 (4) - 15.05.2024 13:11 [19:27:49]1206 (1) - 0 [19:27:49]OFD Sender: Remove packet 67340 [19:27:49]ProducePacketName [19:27:49]name=ofd_packets/00067340 [19:27:49]NVStorageDeleteData [19:27:49]Write to MH i2c: 01 00 00 12 25 37 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: 01 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: 01 07 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: 01 07 00 12 25 00 00 00 00 00 D8 0C 22 [19:27:49]RasterBufferAndPrint [19:27:49]line [19:27:49]line [19:27:49]line [19:27:49]line [19:27:49]line [19:27:49]written 0, free lines is 3294 [19:27:49]MH_Cut [19:27:49]Write to MH i2c: D1 01 00 19 25 01 10 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: D1 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: D1 01 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: D1 01 00 19 25 00 0F [19:27:49]Write to MH i2c: 01 00 00 1A 25 3F [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]OFD Sender: No OFD packet to send [19:27:50]*** Cut start [19:27:50]*** Purtial cut [19:27:50]*** Stage 1: CUTSNS_PIN = 1 [19:27:50]Read from MH i2c: 01 [19:27:50]MH_I2C_Read... [19:27:50]*** Stop cut motor [19:27:50]*** Cut end [19:27:50]Read from MH i2c: 01 07 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 1A 25 00 00 00 00 00 FF 0F 54 [19:27:50]process_action close_receipt done [19:27:50]requested_data is exist [19:27:50]produce_requested_data [19:27:50]requested_item fm.sn is exist - process it [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 11 00 00 [19:27:50]Write to MH i2c: E2 08 00 1B 25 80 11 00 00 00 00 00 00 BA [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 1B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [19:27: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:27:50]wFMCommunicate OK [19:27:50]requested_item fd.num is exist - process it [19:27:50]SAM_PROTO_GetFieldsCounters [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 13 00 00 [19:27:50]Write to MH i2c: E2 08 00 1C 25 80 13 00 00 00 00 00 00 BD [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 62 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 62 00 1C 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 0C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [19: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 0C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:50]wFMCommunicate OK [19:27:50]SAM_PROTO_GetFieldsCounters done [19:27:50]requested_item shift.num is exist - process it [19:27:50]requested_item shift.opened is exist - process it [19:27:50]req_shift_opened [19:27:50]FM_GetShiftState [19:27:50]SAM_PROTO_GetShiftState [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 13 01 00 [19:27:50]Write to MH i2c: E2 08 00 1D 25 80 13 01 00 00 00 00 00 BF [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0E 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0E 00 1D 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6A [19:27:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:27:50]wFMCommunicate OK [19:27:50]SAM_PROTO_GetShiftState done [19:27:50]FM_GetShiftState done [19:27:50]req_shift_opened done [19:27:50]requested_item shift.open_date is exist - process it [19:27:50]req_shift_open_date [19:27:50]req_shift_open_date done [19:27:50]produce_requested_data done [19:27:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67340,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:27:50]process_action_free close_receipt [19:27:50]json_value_free [19:27:50]json_value_free done [19:27:50]process_json_proto returns [19:27:50]Send response to host [19:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67340,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:27:50]free response buf [19:27:50]execute_script done [19:27:50]execute_script returns [19:27:50]free content buf [19:27:50]Sock 7.Close socket [19:27:50]Sock 7.Thread stoped [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:03]accept exits with 9 [19:28:03]New connection [19:28:03]New thread 3067030884 created [19:28:03]Thread 3067174244 joined [19:28:03]Waiting for new connection... [19:28:03] Sock 9.Parse request [19:28:03]Sock 9.Check first char [19:28:03]Sock 9.First char is OK [19:28:03]request: POST /json_proto HTTP/1.0 [19:28:03]Method: POST [19:28:03]URL: /json_proto [19:28:03]Method is POST - this is cgi request [19:28:03]url: /json_proto [19:28:03]query_string will be loaded in cgi processing [19:28:03]execute_cgi json_proto POST (null) [19:28:03]execute_cgi path=json_proto method=POST [19:28:03]POST find Content-Length [19:28:03]Host: 172.17.41.195:8080 [19:28:03]Content-Length: 215 [19:28:03]Content-Type: application/json [19:28:03] [19:28:03]POST finish read [19:28:03]Found Content-Length = 215 [19:28: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" ] } } [19:28:03]execute_script... [19:28: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" ] } } [19:28:03]POST & json_proto [19:28:03]process_json_proto [19:28:03]json parsed OK: [19:28:03]protocol is kg_v1.0 [19:28:03]action value=get_value [19:28:03]process_action get_value [19:28:03]cmd_get_value [19:28:03]process_action get_value done [19:28:03]requested_data is exist [19:28:03]produce_requested_data [19:28:03]requested_item kkm.sn is exist - process it [19:28:03]requested_item kkm.ver is exist - process it [19:28:03]requested_item fm.sn is exist - process it [19:28:03]wFMCommunicate request_size=4 [19:28:03]MH_SAM_APDU [19:28:03]CAPDU: 80 11 00 00 [19:28:03]Write to MH i2c: E2 08 00 1E 25 80 11 00 00 00 00 00 00 BD [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:03]Read from MH i2c: E2 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 17 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 17 00 1E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [19:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:28:03]wFMCommunicate OK [19:28:03]requested_item fd.num is exist - process it [19:28:03]SAM_PROTO_GetFieldsCounters [19:28:03]wFMCommunicate request_size=4 [19:28:03]MH_SAM_APDU [19:28:03]CAPDU: 80 13 00 00 [19:28:03]Write to MH i2c: E2 08 00 1F 25 80 13 00 00 00 00 00 00 C0 [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:03]Read from MH i2c: E2 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 62 00 [19:28:03]MH_I2C_Read... [19:28:03]Read from MH i2c: E2 62 00 1F 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 0C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [19:28: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 0C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:03]wFMCommunicate OK [19:28:03]SAM_PROTO_GetFieldsCounters done [19:28:03]requested_item shift.num is exist - process it [19:28:03]requested_item shift.opened is exist - process it [19:28:03]req_shift_opened [19:28:03]FM_GetShiftState [19:28:03]SAM_PROTO_GetShiftState [19:28:03]wFMCommunicate request_size=4 [19:28:03]MH_SAM_APDU [19:28:03]CAPDU: 80 13 01 00 [19:28:03]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [19:28:03]Write i2c OK [19:28:03]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 0E 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6D [19:28:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:28:04]wFMCommunicate OK [19:28:04]SAM_PROTO_GetShiftState done [19:28:04]FM_GetShiftState done [19:28:04]req_shift_opened done [19:28:04]requested_item shift.open_date is exist - process it [19:28:04]req_shift_open_date [19:28:04]req_shift_open_date done [19:28:04]produce_requested_data done [19:28:04]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67340,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:28:04]process_action_free get_value [19:28:04]json_value_free [19:28:04]json_value_free done [19:28:04]process_json_proto returns [19:28:04]Send response to host [19:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67340,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:28:04]free response buf [19:28:04]execute_script done [19:28:04]execute_script returns [19:28:04]free content buf [19:28:04]Sock 9.Close socket [19:28:04]Sock 9.Thread stoped [19:28:04]accept exits with 10 [19:28:04]New connection [19:28:04]New thread 3067174244 created [19:28:04]Thread 3067030884 joined [19:28:04]Waiting for new connection... [19:28:04] Sock 10.Parse request [19:28:04]Sock 10.Check first char [19:28:04]Sock 10.First char is OK [19:28:04]request: POST /json_proto HTTP/1.0 [19:28:04]Method: POST [19:28:04]URL: /json_proto [19:28:04]Method is POST - this is cgi request [19:28:04]url: /json_proto [19:28:04]query_string will be loaded in cgi processing [19:28:04]execute_cgi json_proto POST (null) [19:28:04]execute_cgi path=json_proto method=POST [19:28:04]POST find Content-Length [19:28:04]Host: 172.17.41.195:8080 [19:28:04]Content-Length: 331 [19:28:04]Content-Type: application/json [19:28:04] [19:28:04]POST finish read [19:28:04]Found Content-Length = 331 [19:28:04]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:28:04]execute_script... [19:28: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" ] } } [19:28:04]POST & json_proto [19:28:04]process_json_proto [19:28:04]json parsed OK: [19:28:04]protocol is kg_v1.0 [19:28:04]action value=get_value [19:28:04]process_action get_value [19:28:04]cmd_get_value [19:28:04]process_action get_value done [19:28:04]requested_data is exist [19:28:04]produce_requested_data [19:28:04]requested_item fm.sale.total is exist - process it [19:28:04]SAM_PROTO_GetFMData [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 13 03 00 [19:28:04]Write to MH i2c: E2 08 00 21 25 80 13 03 00 00 00 00 00 C5 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 FD 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 FD 00 21 25 00 C6 04 85 04 C2 04 6E 04 04 00 44 04 01 00 69 04 A3 00 6F 04 04 00 9E 03 01 00 B1 04 05 00 85 BD 4A 1A 03 70 04 05 00 D8 FF 15 BF 02 72 04 04 00 AD BD 34 5B 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 66 74 5C 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 E5 9F 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 99 [19:28:04]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 44 04 01 00 69 04 A3 00 6F 04 04 00 9E 03 01 00 B1 04 05 00 85 BD 4A 1A 03 70 04 05 00 D8 FF 15 BF 02 72 04 04 00 AD BD 34 5B 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 66 74 5C 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 E5 9F 07 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 A6 00 00 00 B1 04 04 00 50 CF B2 DC 70 04 04 00 50 CF B2 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 EF E1 6F 17 EF 03 09 90 00 [19:28:04]wFMCommunicate OK [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 17 00 00 [19:28:04]Write to MH i2c: E2 08 00 22 25 80 17 00 00 00 00 00 00 C7 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:04]Read from MH i2c: E2 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 FD 00 [19:28:04]MH_I2C_Read... [19:28:04]Read from MH i2c: E2 FD 00 22 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 72 FD F3 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 DE [19:28: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 72 FD F3 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:28:04]wFMCommunicate OK [19:28:04]wFMCommunicate request_size=4 [19:28:04]MH_SAM_APDU [19:28:04]CAPDU: 80 17 00 00 [19:28:04]Write to MH i2c: E2 08 00 23 25 80 17 00 00 00 00 00 00 C8 [19:28:04]Write i2c OK [19:28:04]MH_I2C_Read... [19:28:04]OFD Sender: No OFD packet to send [19:28:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 FD 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 FD 00 23 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 EF [19:28: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 [19:28:05]wFMCommunicate OK [19:28:05]wFMCommunicate request_size=4 [19:28:05]MH_SAM_APDU [19:28:05]CAPDU: 80 17 00 00 [19:28:05]Write to MH i2c: E2 08 00 24 25 80 17 00 00 00 00 00 00 C9 [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 FD 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 FD 00 24 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 44 [19:28: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 [19:28:05]wFMCommunicate OK [19:28:05]wFMCommunicate request_size=4 [19:28:05]MH_SAM_APDU [19:28:05]CAPDU: 80 17 00 00 [19:28:05]Write to MH i2c: E2 08 00 25 25 80 17 00 00 00 00 00 00 CA [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:28:05]Read from MH i2c: E2 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 E3 00 [19:28:05]MH_I2C_Read... [19:28:05]Read from MH i2c: E2 E3 00 25 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 A9 [19:28: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 [19:28:05]wFMCommunicate OK [19:28:05]SAM_PROTO_GetFMData done [19:28:05]requested_item fm.sale_refund.total is exist - process it [19:28:05]requested_item fm.buy.total is exist - process it [19:28:05]requested_item shift.sale.total is exist - process it [19:28:05]SAM_PROTO_GetShiftData [19:28:05]wFMCommunicate request_size=4 [19:28:05]MH_SAM_APDU [19:28:05]CAPDU: 80 13 02 00 [19:28:05]Write to MH i2c: E2 08 00 26 25 80 13 02 00 00 00 00 00 C9 [19:28:05]Write i2c OK [19:28:05]MH_I2C_Read... [19:28:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:28:06]Read from MH i2c: E2 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 26 25 00 BA 04 AA 04 B6 04 6E 04 04 00 9E 00 00 00 69 04 9D 00 6F 04 04 00 9D 00 00 00 B1 04 04 00 E7 04 3B 01 70 04 03 00 FC 99 50 72 04 03 00 EB 6A EA 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 D8 74 21 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 B2 C9 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 28 [19:28:06]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 9E 00 00 00 69 04 9D 00 6F 04 04 00 9D 00 00 00 B1 04 04 00 E7 04 3B 01 70 04 03 00 FC 99 50 72 04 03 00 EB 6A EA 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 D8 74 21 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 B2 C9 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 E0 93 04 70 04 03 00 E0 93 04 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 7A 7C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:28:06]wFMCommunicate OK [19:28:06]wFMCommunicate request_size=4 [19:28:06]MH_SAM_APDU [19:28:06]CAPDU: 80 17 00 00 [19:28:06]Write to MH i2c: E2 08 00 27 25 80 17 00 00 00 00 00 00 CC [19:28:06]Write i2c OK [19:28:06]MH_I2C_Read... [19:28:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:06]Read from MH i2c: E2 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 27 25 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [19:28:06]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5F 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:28:06]wFMCommunicate OK [19:28:06]wFMCommunicate request_size=4 [19:28:06]MH_SAM_APDU [19:28:06]CAPDU: 80 17 00 00 [19:28:06]Write to MH i2c: E2 08 00 28 25 80 17 00 00 00 00 00 00 CD [19:28:06]Write i2c OK [19:28:06]MH_I2C_Read... [19:28:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:06]Read from MH i2c: E2 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 28 25 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [19:28:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:28:06]wFMCommunicate OK [19:28:06]wFMCommunicate request_size=4 [19:28:06]MH_SAM_APDU [19:28:06]CAPDU: 80 17 00 00 [19:28:06]Write to MH i2c: E2 08 00 29 25 80 17 00 00 00 00 00 00 CE [19:28:06]Write i2c OK [19:28:06]MH_I2C_Read... [19:28:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:28:06]Read from MH i2c: E2 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 [19:28:06]MH_I2C_Read... [19:28:06]Read from MH i2c: E2 FD 00 29 25 00 00 EF 03 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 90 00 46 [19:28:06]RAPDU: 00 EF 03 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 90 00 [19:28:06]wFMCommunicate OK [19:28:06]wFMCommunicate request_size=4 [19:28:06]MH_SAM_APDU [19:28:06]CAPDU: 80 17 00 00 [19:28:06]Write to MH i2c: E2 08 00 2A 25 80 17 00 00 00 00 00 00 CF [19:28:06]Write i2c OK [19:28:06]MH_I2C_Read... [19:28:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:28:07]Read from MH i2c: E2 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 D7 00 [19:28:07]MH_I2C_Read... [19:28:07]Read from MH i2c: E2 D7 00 2A 25 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B2 [19:28:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:28:07]wFMCommunicate OK [19:28:07]SAM_PROTO_GetShiftData done [19:28:07]requested_item shift.sale.total_cash is exist - process it [19:28:07]requested_item shift.sale_refund.total is exist - process it [19:28:07]requested_item shift.sale_refund.total_cash is exist - process it [19:28:07]requested_item shift.buy.total is exist - process it [19:28:07]requested_item shift.buy.total_cash is exist - process it [19:28:07]produce_requested_data done [19:28:07]produce_requested_data return {"fm.sale.total":133260076.85,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":206450.95,"shift.sale.total_cash":52823.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:28:07]process_action_free get_value [19:28:07]json_value_free [19:28:07]json_value_free done [19:28:07]process_json_proto returns [19:28:07]Send response to host [19:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133260076.85,"fm.sale_refund.total":37027060.00,"fm.buy.total":0.00,"shift.sale.total":206450.95,"shift.sale.total_cash":52823.00,"shift.sale_refund.total":3000.00,"shift.sale_refund.total_cash":3000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:28:07]free response buf [19:28:07]execute_script done [19:28:07]execute_script returns [19:28:07]free content buf [19:28:07]Sock 10.Close socket [19:28:07]Sock 10.Thread stoped [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:48]accept exits with 7 [19:28:48]New connection [19:28:48]New thread 3067030884 created [19:28:48]Thread 3067174244 joined [19:28:48]Waiting for new connection... [19:28:48] Sock 7.Parse request [19:28:48]Sock 7.Check first char [19:28:48]Sock 7.First char is OK [19:28:48]request: POST /json_proto HTTP/1.0 [19:28:48]Method: POST [19:28:48]URL: /json_proto [19:28:48]Method is POST - this is cgi request [19:28:48]url: /json_proto [19:28:48]query_string will be loaded in cgi processing [19:28:48]execute_cgi json_proto POST (null) [19:28:48]execute_cgi path=json_proto method=POST [19:28:48]POST find Content-Length [19:28:48]Host: 172.17.41.195:8080 [19:28:48]Content-Length: 677 [19:28:48]Content-Type: application/json [19:28:48] [19:28:48]POST finish read [19:28:48]Found Content-Length = 677 [19:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507322", "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" : 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:28:48]execute_script... [19:28: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)507322", "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" : 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:28:48]POST & json_proto [19:28:48]process_json_proto [19:28:48]json parsed OK: [19:28:48]protocol is kg_v1.0 [19:28:48]action value=close_receipt [19:28:48]process_action close_receipt [19:28:48]cmd_close_receipt [19:28:48]MH_GetDate [19:28:48]Write to MH i2c: F0 00 00 2B 25 3F [19:28:48]Write i2c OK [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 09 00 [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 09 00 2B 25 00 F3 0C 45 66 FC 21 6F 64 E2 [19:28:48]GetLastDocTimeStamp 1715801269 [19:28:48]current date 1715801331 [19:28:48]FM_GetShiftState [19:28:48]SAM_PROTO_GetShiftState [19:28:48]wFMCommunicate request_size=4 [19:28:48]MH_SAM_APDU [19:28:48]CAPDU: 80 13 01 00 [19:28:48]Write to MH i2c: E2 08 00 2C 25 80 13 01 00 00 00 00 00 CE [19:28:48]Write i2c OK [19:28:48]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 2C 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 79 [19:28:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetShiftState done [19:28:49]FM_GetShiftState done [19:28:49]opened in 1715732471 [19:28:49]opened+sec_in_day 1715818871 [19:28:49]quantity*price = 40013 [19:28:49]sum+1 = 40014 [19:28:49]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 СНО: Общий режим Чек 159 15.05.2024 19:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67341 ФПД: 8170071022246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192851&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67341&fm=8170071022246&tin=02508201610067®Number=0000000000091845&sum=40000 [19:28:50]StoreToDocumentArchive [19:28:50]shift 356 fd 67341 [19:28:50]save to /storage/0356/doc_00067341 [19:28:50]save last doc name /storage/0356/doc_00067341 to /storage/kkm_last_doc_name [19:28:50]save OK [19:28:50]Clear old archive folders... [19:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:50]tlvbuf is 00B717B0 [19:28:50]SAM_PROTO_ClearQueue [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 09 00 00 [19:28:50]Write to MH i2c: E2 08 00 39 25 80 09 00 00 00 00 00 00 D0 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 39 25 00 90 00 D2 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_ClearQueue done [19:28:50]KKMCreateOFDPacket [19:28:50]OFDProtocolAddRootSTLVToBuf [19:28:50]FM_MakeSignedData [19:28:50]FM_MakeSignedData [19:28:50]SAM_PROTO_SignData [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 01 02 [19:28:50]Write to MH i2c: E2 08 00 3A 25 80 0D 01 02 00 00 00 00 D8 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=255 [19:28:50]MH_SAM_APDU [19:28: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 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 9F 00 00 00 F4 03 04 00 F3 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 07 [19:28:50]Write to MH i2c: E2 02 01 3B 25 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 9F 00 00 00 F4 03 04 00 F3 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 07 00 00 0D [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=10 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 02 02 05 6E 3E 2E 5A A6 [19:28:50]Write to MH i2c: E2 0D 00 3C 25 80 0D 02 02 05 00 6E 3E 2E 5A A6 00 00 BF [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 3C 25 00 90 00 D5 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 03 02 [19:28:50]Write to MH i2c: E2 08 00 3D 25 80 0D 03 02 00 00 00 00 DD [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0B 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0B 00 3D 25 00 FD 7E 3D 44 52 D5 EA C1 90 00 AC [19:28:50]RAPDU: FD 7E 3D 44 52 D5 EA C1 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_SignData done [19:28:50]FM_MakeSignedData done [19:28:50]CreateOFDProtocolMessage [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 11 00 00 [19:28:50]Write to MH i2c: E2 08 00 3E 25 80 11 00 00 00 00 00 00 DD [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 3E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [19:28: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:28:50]wFMCommunicate OK [19:28:50]CreateOFDProtocolMessage done [19:28:50]OFDSenderStorePacket 67341 [19:28:50]StoreOFDPacket docnum=67341 [19:28: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 2D 6D 07 01 B6 28 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 9F 00 00 00 F4 03 04 00 F3 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 07 6E 3E 2E 5A A6 FD 7E 3D 44 52 D5 EA C1 [19:28:50]CheckFolder [19:28:50]dirname=/storage/ofd_packets [19:28:50]CheckFolder done [19:28:50]ProducePacketName [19:28:50]name=ofd_packets/00067341 [19:28:50]NVStorageSaveData ofd_packets/00067341 [19:28:50]File name is /storage/ofd_packets/00067341 [19:28:50]Write 301 bytes [19:28:50]NVStorageSaveData done [19:28:50]OFDSenderStorePacket done [19:28:50]KKMCreateOFDPacket done [19:28:50]NVStorageSaveData kkm_last_timestamp [19:28:50]File name is /storage/kkm_last_timestamp [19:28:50]Write 4 bytes [19:28:50]NVStorageSaveData done [19:28:50]ExternCall_PrintAddStr [19:28:50]wPrintStart [19:28:50]Write to MH i2c: 01 00 00 3F 25 64 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 3F 25 00 00 00 00 00 FF 0F 79 [19:28:50]RasterBufferAndPrint [19:28:50]line Счет N : (1)507322 [19:28:50]line ИНН: 02508201610067 [19:28:50]line Контрольно-Кассовый Чек [19:28:50]line ПРОДАЖА [19:28:50]line ТРК (МРК, ГНК) : 23 [19:28:50]line Товар: 2710124130 [19:28:50]line Аи-92-К-5 [19:28:50]line 5.990 * 66.80 [19:28:50]line = 400.13 [19:28:50]line НДС 12% НСП 1% [19:28:50]line > о реализуемом товаре [19:28:50]line ОКРУГЛЕНИЕ: -0.13 [19:28:50]line ИТОГО: 400.00 [19:28:50]line Внесено: 400.00 [19:28:50]line СДАЧА: 0.00 [19:28:50]line НСП 1% : 3.54 [19:28:50]line НДС 12% : 42.49 [19:28:50]line Наличными: 400.00 [19:28:50]line Безнал.: 0.00 [19:28:50]line Место: АЗС № 91 "Партнер Нефть" [19:28:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:28:50]line СНО: Общий режим [19:28:50]line Чек 159 15.05.2024 19:28 [19:28:50]line Смена: 356 ФФД: 1.0 [19:28:50]line ЗНМ: 0300000119 [19:28:50]line РНМ: 0000000000091845 [19:28:50]line Версия ККМ: 001 [19:28:50]line ФМ: 0000000000871829 [19:28:50]line ФД: 67341 [19:28:50]line ФПД: 8170071022246 [19:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T192851&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67341&fm=8170071022246&tin=02508201610067®Number=0000000000091845&sum=40000 [19:28:51]written 0, free lines is 4095 [19:28:51]OFD Sender: Processing packet 67341 [packets to send 35, broken 34] [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00067341 [19:28:51]OFD Sender: To server: pG, [19:28:51]CommunicateWithHost lk.salyk.kg:30040 [19:28:51]ConnectInit lk.salyk.kg [19:28:51]Connected sock=10 [19:28: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 2D 6D 07 01 B6 28 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 9F 00 00 00 F4 03 04 00 F3 0C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 07 6E 3E 2E 5A A6 FD 7E 3D 44 52 D5 EA C1 [19:28: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 DF BD 47 00 CB CC 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 07 01 00 F4 03 04 00 CF B4 44 66 B6 04 01 00 00 E4 A6 AE 0F 2C F4 D9 83 [19:28:51]CommunicateWithHost err = 0 [19:28:51]CheckOFDResponse [19:28:51]1017 (14) - 77093643461234 [19:28:51]1041 (16) - 0000000000871829 [19:28:51]1040 (4) - 67341 [19:28:51]1012 (4) - 15.05.2024 13:12 [19:28:51]1206 (1) - 0 [19:28:51]OFD Sender: Remove packet 67341 [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00067341 [19:28:51]NVStorageDeleteData [19:28:51]Write to MH i2c: 01 00 00 69 25 8E [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 E3 0C 84 [19:28:51]RasterBufferAndPrint [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]written 0, free lines is 3305 [19:28:51]MH_Cut [19:28:51]Write to MH i2c: D1 01 00 70 25 01 67 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 01 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 01 00 70 25 00 66 [19:28:51]Write to MH i2c: 01 00 00 71 25 96 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]OFD Sender: No OFD packet to send [19:28:52]*** Cut start [19:28:52]*** Purtial cut [19:28:52]*** CUTSNS_PIN = 0 [19:28:52]*** Stage 1: CUTSNS_PIN = 1 [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]*** Stop cut motor [19:28:54]*** Cut end [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 FF 0F AB [19:28:54]process_action close_receipt done [19:28:54]requested_data is exist [19:28:54]produce_requested_data [19:28:54]requested_item fm.sn is exist - process it [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 72 25 80 11 00 00 00 00 00 00 11 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 72 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [19:28: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:28:54]wFMCommunicate OK [19:28:54]requested_item fd.num is exist - process it [19:28:54]SAM_PROTO_GetFieldsCounters [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 00 00 [19:28:54]Write to MH i2c: E2 08 00 73 25 80 13 00 00 00 00 00 00 14 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 62 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 62 00 73 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 0D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [19:28: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 0D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_GetFieldsCounters done [19:28:54]requested_item shift.num is exist - process it [19:28:54]requested_item shift.opened is exist - process it [19:28:54]req_shift_opened [19:28:54]FM_GetShiftState [19:28:54]SAM_PROTO_GetShiftState [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 01 00 [19:28:54]Write to MH i2c: E2 08 00 74 25 80 13 01 00 00 00 00 00 16 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0E 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0E 00 74 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C1 [19:28:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_GetShiftState done [19:28:54]FM_GetShiftState done [19:28:54]req_shift_opened done [19:28:54]requested_item shift.open_date is exist - process it [19:28:54]req_shift_open_date [19:28:54]req_shift_open_date done [19:28:54]produce_requested_data done [19:28:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67341,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:28:54]process_action_free close_receipt [19:28:54]json_value_free [19:28:54]json_value_free done [19:28:54]process_json_proto returns [19:28:54]Send response to host [19:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67341,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:28:54]free response buf [19:28:54]execute_script done [19:28:54]execute_script returns [19:28:54]free content buf [19:28:54]Sock 7.Close socket [19:28:54]Sock 7.Thread stoped [19:28:54]int [19:28:54]Write to MH i2c: 01 00 00 75 25 9A [19:28:54]*** FLAG_PRN_PAP1 set [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 75 25 00 01 00 00 00 FF 0F B0 [19:28:54]state=0 [19:28:54]No paper [19:28:55]int [19:28:55]Write to MH i2c: 01 00 00 76 25 9B [19:28:55]*** FLAG_PRN_PAP2 set [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 76 25 00 03 00 00 00 FF 0F B3 [19:28:55]state=0 [19:28:55]No paper [19:28:55]Cover opened [19:28:55]int [19:28:55]Write to MH i2c: 01 00 00 77 25 9C [19:28:55]*** FLAG_PRN_PAP2 reset [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 77 25 00 01 00 00 *** FLAG_PRN_PAP2 set [19:28:55]00 FF 0F B2 [19:28:55]state=3 [19:28:55]No paper [19:28:55]Cover closed [19:28:55]int line is 0 - check status [19:28:55]Write to MH i2c: 01 00 00 78 25 9D [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 78 25 00 03 00 00 00 FF 0F B5 [19:28:55]state=0 [19:28:55]No paper [19:28:55]Cover opened [19:28:55]int [19:28:55]Write to MH i2c: 01 00 00 79 25 9E [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 79 25 00 03 00 00 00 FF 0F B6 [19:28:55]state=3 [19:28:55]No paper [19:28:55]Cover opened [19:28:56]OFD Sender: No OFD packet to send [19:29:00]Write to MH i2c: 01 00 00 7A 25 9F [19:29:00]Write i2c OK [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 07 00 [19:29:00]MH_I2C_Read... [19:29:00]Read from MH i2c: 01 07 00 7A 25 00 03 00 00 00 FF 0F B7 [19:29:00]state=3 [19:29:00]No paper [19:29:00]Cover opened [19:29:01]OFD Sender: No OFD packet to send [19:29:05]Write to MH i2c: 01 00 00 7B 25 A0 [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 7B 25 00 03 00 00 00 FF 0F B8 [19:29:05]state=3 [19:29:05]No paper [19:29:05]Cover opened [19:29:05]int [19:29:05]Write to MH i2c: 01 00 00 7C 25 A1 [19:29:05]*** FLAG_PRN_PAP1 reset [19:29:05]*** FLAG_PRN_PAP2 reset [19:29:05]Write i2c OK [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 [19:29:05]MH_I2C_Read... [19:29:05]Read from MH i2c: 01 07 00 7C 25 00 00 00 00 00 FF 0F B6 [19:29:05]state=3 [19:29:05]Cover closed [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:15]accept exits with 9 [19:30:15]New connection [19:30:15]New thread 3067174244 created [19:30:15]Thread 3067030884 joined [19:30:15]Waiting for new connection... [19:30:15] Sock 9.Parse request [19:30:15]Sock 9.Check first char [19:30:15]Sock 9.First char is OK [19:30:15]request: POST /json_proto HTTP/1.0 [19:30:15]Method: POST [19:30:15]URL: /json_proto [19:30:15]Method is POST - this is cgi request [19:30:15]url: /json_proto [19:30:15]query_string will be loaded in cgi processing [19:30:15]execute_cgi json_proto POST (null) [19:30:15]execute_cgi path=json_proto method=POST [19:30:15]POST find Content-Length [19:30:15]Host: 172.17.41.195:8080 [19:30:15]Content-Length: 670 [19:30:15]Content-Type: application/json [19:30:15] [19:30:15]POST finish read [19:30:15]Found Content-Length = 670 [19:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507323", "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" : 7.380, "sum" : 500.36, "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:30:15]execute_script... [19:30: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)507323", "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" : 7.380, "sum" : 500.36, "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:30:15]POST & json_proto [19:30:15]process_json_proto [19:30:15]json parsed OK: [19:30:15]protocol is kg_v1.0 [19:30:15]action value=close_receipt [19:30:15]process_action close_receipt [19:30:15]cmd_close_receipt [19:30:15]MH_GetDate [19:30:15]Write to MH i2c: F0 00 00 7D 25 91 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: F0 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: F0 09 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: F0 09 00 7D 25 00 49 0D 45 66 FC 21 6F 64 8B [19:30:15]GetLastDocTimeStamp 1715801331 [19:30:15]current date 1715801417 [19:30:15]FM_GetShiftState [19:30:15]SAM_PROTO_GetShiftState [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 13 01 00 [19:30:15]Write to MH i2c: E2 08 00 7E 25 80 13 01 00 00 00 00 00 20 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0E 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0E 00 7E 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CB [19:30:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:30:15]wFMCommunicate OK [19:30:15]SAM_PROTO_GetShiftState done [19:30:15]FM_GetShiftState done [19:30:15]opened in 1715732471 [19:30:15]opened+sec_in_day 1715818871 [19:30:15]quantity*price = 50036 [19:30:15]sum+1 = 50037 [19:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 160 15.05.2024 19:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67342 ФПД: 52386433341459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193017&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67342&fm=52386433341459&tin=02508201610067®Number=0000000000091845&sum=50000 [19:30:16]StoreToDocumentArchive [19:30:16]shift 356 fd 67342 [19:30:16]save to /storage/0356/doc_00067342 [19:30:16]save last doc name /storage/0356/doc_00067342 to /storage/kkm_last_doc_name [19:30:16]save OK [19:30:16]Clear old archive folders... [19:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:30:16]tlvbuf is 00B3A880 [19:30:16]SAM_PROTO_ClearQueue [19:30:16]wFMCommunicate request_size=4 [19:30:16]MH_SAM_APDU [19:30:16]CAPDU: 80 09 00 00 [19:30:16]Write to MH i2c: E2 08 00 8B 25 80 09 00 00 00 00 00 00 22 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:16]Read from MH i2c: E2 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 03 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 03 00 8B 25 00 90 00 24 [19:30:16]RAPDU: 90 00 [19:30:16]wFMCommunicate OK [19:30:16]SAM_PROTO_ClearQueue done [19:30:16]KKMCreateOFDPacket [19:30:16]OFDProtocolAddRootSTLVToBuf [19:30:16]FM_MakeSignedData [19:30:16]FM_MakeSignedData [19:30:16]SAM_PROTO_SignData [19:30:16]wFMCommunicate request_size=4 [19:30:16]MH_SAM_APDU [19:30:16]CAPDU: 80 0D 01 02 [19:30:16]Write to MH i2c: E2 08 00 8C 25 80 0D 01 02 00 00 00 00 2A [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:16]OFD Sender: No OFD packet to send [19:30:16]Read from MH i2c: E2 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 03 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [19:30:16]RAPDU: 90 00 [19:30:16]wFMCommunicate OK [19:30:16]wFMCommunicate request_size=255 [19:30:16]MH_SAM_APDU [19:30: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 A0 00 00 00 F4 03 04 00 49 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [19:30:16]Write to MH i2c: E2 02 01 8D 25 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 A0 00 00 00 F4 03 04 00 49 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 F4 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 8D 25 00 90 00 26 [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=11 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 02 02 06 2F A5 2A C0 18 13 [19:30:17]Write to MH i2c: E2 0E 00 8E 25 80 0D 02 02 06 00 2F A5 2A C0 18 13 00 00 22 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 03 02 [19:30:17]Write to MH i2c: E2 08 00 8F 25 80 0D 03 02 00 00 00 00 2F [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0B 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0B 00 8F 25 00 87 B7 16 D8 97 24 10 CB 90 00 F2 [19:30:17]RAPDU: 87 B7 16 D8 97 24 10 CB 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_SignData done [19:30:17]FM_MakeSignedData done [19:30:17]CreateOFDProtocolMessage [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 11 00 00 [19:30:17]Write to MH i2c: E2 08 00 90 25 80 11 00 00 00 00 00 00 2F [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 90 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [19: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 [19:30:17]wFMCommunicate OK [19:30:17]CreateOFDProtocolMessage done [19:30:17]OFDSenderStorePacket 67342 [19:30:17]StoreOFDPacket docnum=67342 [19:30: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 A1 CE 08 01 B7 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 A0 00 00 00 F4 03 04 00 49 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2F A5 2A C0 18 13 87 B7 16 D8 97 24 10 CB [19:30:17]CheckFolder [19:30:17]dirname=/storage/ofd_packets [19:30:17]CheckFolder done [19:30:17]ProducePacketName [19:30:17]name=ofd_packets/00067342 [19:30:17]NVStorageSaveData ofd_packets/00067342 [19:30:17]File name is /storage/ofd_packets/00067342 [19:30:17]Write 302 bytes [19:30:17]NVStorageSaveData done [19:30:17]OFDSenderStorePacket done [19:30:17]KKMCreateOFDPacket done [19:30:17]NVStorageSaveData kkm_last_timestamp [19:30:17]File name is /storage/kkm_last_timestamp [19:30:17]Write 4 bytes [19:30:17]NVStorageSaveData done [19:30:17]ExternCall_PrintAddStr [19:30:17]wPrintStart [19:30:17]Write to MH i2c: 01 00 00 91 25 B6 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 07 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 07 00 91 25 00 00 00 00 00 FF 0F CB [19:30:17]RasterBufferAndPrint [19:30:17]line Счет N : (1)507323 [19:30:17]line ИНН: 02508201610067 [19:30:17]line Контрольно-Кассовый Чек [19:30:17]line ПРОДАЖА [19:30:17]line ТРК (МРК, ГНК) : 42 [19:30:17]line Товар: 2710124130 [19:30:17]line Super-92-К-5 [19:30:17]line 7.380 * 67.80 [19:30:17]line = 500.36 [19:30:17]line НДС 12% НСП 1% [19:30:17]line > о реализуемом товаре [19:30:17]line ОКРУГЛЕНИЕ: -0.36 [19:30:17]line ИТОГО: 500.00 [19:30:17]line Внесено: 500.00 [19:30:17]line СДАЧА: 0.00 [19:30:17]line НСП 1% : 4.43 [19:30:17]line НДС 12% : 53.14 [19:30:17]line Наличными: 500.00 [19:30:17]line Безнал.: 0.00 [19:30:17]line Место: АЗС № 91 "Партнер Нефть" [19:30:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:30:17]line СНО: Общий режим [19:30:17]line Чек 160 15.05.2024 19:30 [19:30:17]line Смена: 356 ФФД: 1.0 [19:30:17]line ЗНМ: 0300000119 [19:30:17]line РНМ: 0000000000091845 [19:30:17]line Версия ККМ: 001 [19:30:17]line ФМ: 0000000000871829 [19:30:17]line ФД: 67342 [19:30:17]line ФПД: 52386433341459 [19:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193017&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67342&fm=52386433341459&tin=02508201610067®Number=0000000000091845&sum=50000 [19:30:17]OFD Sender: Processing packet 67342 [packets to send 35, broken 34] [19:30:17]ProducePacketName [19:30:17]name=ofd_packets/00067342 [19:30:17]OFD Sender: To server: pG, [19:30:17]CommunicateWithHost lk.salyk.kg:30040 [19:30:17]ConnectInit lk.salyk.kg [19:30:17]written 0, free lines is 4095 [19:30:17]Connected sock=10 [19:30: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 A1 CE 08 01 B7 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 A0 00 00 00 F4 03 04 00 49 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2F A5 2A C0 18 13 87 B7 16 D8 97 24 10 CB [19:30: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 25 A3 47 00 8C 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 0E 07 01 00 F4 03 04 00 26 B5 44 66 B6 04 01 00 00 29 11 C0 84 17 21 C3 74 [19:30:18]CommunicateWithHost err = 0 [19:30:18]CheckOFDResponse [19:30:18]1017 (14) - 77093643461234 [19:30:18]1041 (16) - 0000000000871829 [19:30:18]1040 (4) - 67342 [19:30:18]1012 (4) - 15.05.2024 13:14 [19:30:18]1206 (1) - 0 [19:30:18]OFD Sender: Remove packet 67342 [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00067342 [19:30:18]NVStorageDeleteData [19:30:18]Write to MH i2c: 01 00 00 BB 25 E0 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 DE 0C D1 [19:30:18]RasterBufferAndPrint [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]written 0, free lines is 3302 [19:30:18]MH_Cut [19:30:18]Write to MH i2c: D1 01 00 C2 25 01 B9 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 C2 25 00 B8 [19:30:18]Write to MH i2c: 01 00 00 C3 25 E8 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]OFD Sender: No OFD packet to send [19:30:18]*** Cut start [19:30:18]*** Purtial cut [19:30:18]*** Stage 1: CUTSNS_PIN = 1 [19:30:19]Read from MH i2c: 01 [19:30:19]MH_I2C_Read... [19:30:19]*** Stop cut motor [19:30:19]*** Cut end [19:30:19]Read from MH i2c: 01 07 00 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: 01 07 00 C3 25 00 00 00 00 00 FF 0F FD [19:30:19]process_action close_receipt done [19:30:19]requested_data is exist [19:30:19]produce_requested_data [19:30:19]requested_item fm.sn is exist - process it [19:30:19]wFMCommunicate request_size=4 [19:30:19]MH_SAM_APDU [19:30:19]CAPDU: 80 11 00 00 [19:30:19]Write to MH i2c: E2 08 00 C4 25 80 11 00 00 00 00 00 00 63 [19:30:19]Write i2c OK [19:30:19]MH_I2C_Read... [19:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:19]Read from MH i2c: E2 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 17 00 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 17 00 C4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [19:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:30:19]wFMCommunicate OK [19:30:19]requested_item fd.num is exist - process it [19:30:19]SAM_PROTO_GetFieldsCounters [19:30:19]wFMCommunicate request_size=4 [19:30:19]MH_SAM_APDU [19:30:19]CAPDU: 80 13 00 00 [19:30:19]Write to MH i2c: E2 08 00 C5 25 80 13 00 00 00 00 00 00 66 [19:30:19]Write i2c OK [19:30:19]MH_I2C_Read... [19:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:19]Read from MH i2c: E2 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 62 00 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 62 00 C5 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 0E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:30: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 0E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:19]wFMCommunicate OK [19:30:19]SAM_PROTO_GetFieldsCounters done [19:30:19]requested_item shift.num is exist - process it [19:30:19]requested_item shift.opened is exist - process it [19:30:19]req_shift_opened [19:30:19]FM_GetShiftState [19:30:19]SAM_PROTO_GetShiftState [19:30:19]wFMCommunicate request_size=4 [19:30:19]MH_SAM_APDU [19:30:19]CAPDU: 80 13 01 00 [19:30:19]Write to MH i2c: E2 08 00 C6 25 80 13 01 00 00 00 00 00 68 [19:30:19]Write i2c OK [19:30:19]MH_I2C_Read... [19:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:19]Read from MH i2c: E2 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 0E 00 [19:30:19]MH_I2C_Read... [19:30:19]Read from MH i2c: E2 0E 00 C6 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 13 [19:30:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:30:19]wFMCommunicate OK [19:30:19]SAM_PROTO_GetShiftState done [19:30:19]FM_GetShiftState done [19:30:19]req_shift_opened done [19:30:19]requested_item shift.open_date is exist - process it [19:30:19]req_shift_open_date [19:30:19]req_shift_open_date done [19:30:19]produce_requested_data done [19:30:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67342,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:30:19]process_action_free close_receipt [19:30:19]json_value_free [19:30:19]json_value_free done [19:30:19]process_json_proto returns [19:30:19]Send response to host [19:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67342,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:30:19]free response buf [19:30:19]execute_script done [19:30:19]execute_script returns [19:30:19]free content buf [19:30:19]Sock 9.Close socket [19:30:19]Sock 9.Thread stoped [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:45]accept exits with 7 [19:31:45]New connection [19:31:45]New thread 3067030884 created [19:31:45]Thread 3067174244 joined [19:31:45]Waiting for new connection... [19:31:45] Sock 7.Parse request [19:31:45]Sock 7.Check first char [19:31:45]Sock 7.First char is OK [19:31:45]request: POST /json_proto HTTP/1.0 [19:31:45]Method: POST [19:31:45]URL: /json_proto [19:31:45]Method is POST - this is cgi request [19:31:45]url: /json_proto [19:31:45]query_string will be loaded in cgi processing [19:31:45]execute_cgi json_proto POST (null) [19:31:45]execute_cgi path=json_proto method=POST [19:31:45]POST find Content-Length [19:31:45]Host: 172.17.41.195:8080 [19:31:45]Content-Length: 819 [19:31:45]Content-Type: application/json [19:31:45] [19:31:45]POST finish read [19:31:45]Found Content-Length = 819 [19:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507324", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:45]execute_script... [19:31: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)507324", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:45]POST & json_proto [19:31:45]process_json_proto [19:31:45]json parsed OK: [19:31:45]protocol is kg_v1.0 [19:31:45]action value=close_receipt [19:31:45]process_action close_receipt [19:31:45]cmd_close_receipt [19:31:45]MH_GetDate [19:31:45]Write to MH i2c: F0 00 00 C7 25 DB [19:31:45]Write i2c OK [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: F0 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: F0 09 00 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: F0 09 00 C7 25 00 A3 0D 45 66 FC 21 6F 64 2F [19:31:45]GetLastDocTimeStamp 1715801417 [19:31:45]current date 1715801507 [19:31:45]FM_GetShiftState [19:31:45]SAM_PROTO_GetShiftState [19:31:45]wFMCommunicate request_size=4 [19:31:45]MH_SAM_APDU [19:31:45]CAPDU: 80 13 01 00 [19:31:45]Write to MH i2c: E2 08 00 C8 25 80 13 01 00 00 00 00 00 6A [19:31:45]Write i2c OK [19:31:45]MH_I2C_Read... [19:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:45]Read from MH i2c: E2 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 0E 00 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 0E 00 C8 25 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 15 [19:31:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:31:45]wFMCommunicate OK [19:31:45]SAM_PROTO_GetShiftState done [19:31:45]FM_GetShiftState done [19:31:45]opened in 1715732471 [19:31:45]opened+sec_in_day 1715818871 [19:31:45]quantity*price = 100066 [19:31:45]sum+1 = 100067 [19:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 161 15.05.2024 19:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67343 ФПД: 148274771171059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193147&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67343&fm=148274771171059&tin=02508201610067®Number=0000000000091845&sum=100066 [19:31:46]StoreToDocumentArchive [19:31:46]shift 356 fd 67343 [19:31:46]save to /storage/0356/doc_00067343 [19:31:46]save last doc name /storage/0356/doc_00067343 to /storage/kkm_last_doc_name [19:31:46]save OK [19:31:46]Clear old archive folders... [19:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:46]tlvbuf is 00B120E0 [19:31:46]SAM_PROTO_ClearQueue [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 09 00 00 [19:31:46]Write to MH i2c: E2 08 00 D5 25 80 09 00 00 00 00 00 00 6C [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]SAM_PROTO_ClearQueue done [19:31:46]KKMCreateOFDPacket [19:31:46]OFDProtocolAddRootSTLVToBuf [19:31:46]FM_MakeSignedData [19:31:46]FM_MakeSignedData [19:31:46]SAM_PROTO_SignData [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 0D 01 02 [19:31:46]Write to MH i2c: E2 08 00 D6 25 80 0D 01 02 00 00 00 00 74 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]wFMCommunicate request_size=255 [19:31:46]MH_SAM_APDU [19: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 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 A1 00 00 00 F4 03 04 00 A3 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 86 [19:31:46]Write to MH i2c: E2 02 01 D7 25 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 A1 00 00 00 F4 03 04 00 A3 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 86 00 00 CF [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]wFMCommunicate request_size=10 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 0D 02 02 05 DA E9 10 96 F3 [19:31:46]Write to MH i2c: E2 0D 00 D8 25 80 0D 02 02 05 00 DA E9 10 96 F3 00 00 DD [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 D8 25 00 90 00 71 [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 0D 03 02 [19:31:46]Write to MH i2c: E2 08 00 D9 25 80 0D 03 02 00 00 00 00 79 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 0B 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 0B 00 D9 25 00 DA 26 92 CB 6E 16 98 21 90 00 14 [19:31:46]RAPDU: DA 26 92 CB 6E 16 98 21 90 00 [19:31:46]wFMCommunicate OK [19:31:46]SAM_PROTO_SignData done [19:31:46]FM_MakeSignedData done [19:31:46]CreateOFDProtocolMessage [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 11 00 00 [19:31:46]Write to MH i2c: E2 08 00 DA 25 80 11 00 00 00 00 00 00 79 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 17 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 17 00 DA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CF [19: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 [19:31:46]wFMCommunicate OK [19:31:46]CreateOFDProtocolMessage done [19:31:46]OFDSenderStorePacket 67343 [19:31:46]StoreOFDPacket docnum=67343 [19: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 87 CD 07 01 B1 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 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 A1 00 00 00 F4 03 04 00 A3 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 86 DA E9 10 96 F3 DA 26 92 CB 6E 16 98 21 [19:31:46]CheckFolder [19:31:46]dirname=/storage/ofd_packets [19:31:46]CheckFolder done [19:31:46]ProducePacketName [19:31:46]name=ofd_packets/00067343 [19:31:46]NVStorageSaveData ofd_packets/00067343 [19:31:46]File name is /storage/ofd_packets/00067343 [19:31:46]Write 301 bytes [19:31:46]NVStorageSaveData done [19:31:46]OFDSenderStorePacket done [19:31:46]KKMCreateOFDPacket done [19:31:46]NVStorageSaveData kkm_last_timestamp [19:31:46]File name is /storage/kkm_last_timestamp [19:31:46]Write 4 bytes [19:31:46]NVStorageSaveData done [19:31:46]ExternCall_PrintAddStr [19:31:46]wPrintStart [19:31:46]Write to MH i2c: 01 00 00 DB 25 00 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 07 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 07 00 DB 25 00 00 00 00 00 FF 0F 15 [19:31:46]RasterBufferAndPrint [19:31:46]line Счет N : (1)507324 [19:31:46]line ИНН: 02508201610067 [19:31:46]line Контрольно-Кассовый Чек [19:31:46]line ПРОДАЖА [19:31:46]line ТРК (МРК, ГНК) : 33 [19:31:46]line Товар: 2710124130 [19:31:46]line Аи-92-К-5 [19:31:46]line 14.980 * 66.80 [19:31:46]line = 1000.66 [19:31:46]line НДС 12% НСП 1% [19:31:46]line > о реализуемом товаре [19:31:46]line ИТОГО: 1000.66 [19:31:46]line НСП 1% : 8.85 [19:31:46]line НДС 12% : 106.26 [19:31:46]line Наличными: 0.00 [19:31:46]line Безнал.: 1000.66 [19:31:46]line Место: АЗС № 91 "Партнер Нефть" [19:31:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:31:46]line СНО: Общий режим [19:31:46]line Чек 161 15.05.2024 19:31 [19:31:46]line Смена: 356 ФФД: 1.0 [19:31:46]line ЗНМ: 0300000119 [19:31:46]line РНМ: 0000000000091845 [19:31:46]line Версия ККМ: 001 [19:31:46]line Платежная система: Бакай Банк [19:31:46]line ФМ: 0000000000871829 [19:31:46]line ФД: 67343 [19:31:46]line ФПД: 148274771171059 [19:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193147&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67343&fm=148274771171059&tin=02508201610067®Number=0000000000091845&sum=100066 [19:31:46]written 0, free lines is 4095 [19:31:46]OFD Sender: Processing packet 67343 [packets to send 35, broken 34] [19:31:46]ProducePacketName [19:31:46]name=ofd_packets/00067343 [19:31:46]OFD Sender: To server: pG, [19:31:46]CommunicateWithHost lk.salyk.kg:30040 [19:31:46]ConnectInit lk.salyk.kg [19:31:46]Connected sock=10 [19: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 87 CD 07 01 B1 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 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 A1 00 00 00 F4 03 04 00 A3 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 86 DA E9 10 96 F3 DA 26 92 CB 6E 16 98 21 [19: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 B5 A3 47 00 14 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 0F 07 01 00 F4 03 04 00 7F B5 44 66 B6 04 01 00 00 C6 49 42 0F BE AF AC 08 [19:31:47]CommunicateWithHost err = 0 [19:31:47]CheckOFDResponse [19:31:47]1017 (14) - 77093643461234 [19:31:47]1041 (16) - 0000000000871829 [19:31:47]1040 (4) - 67343 [19:31:47]1012 (4) - 15.05.2024 13:15 [19:31:47]1206 (1) - 0 [19:31:47]OFD Sender: Remove packet 67343 [19:31:47]ProducePacketName [19:31:47]name=ofd_packets/00067343 [19:31:47]NVStorageDeleteData [19:31:47]Write to MH i2c: 01 00 00 04 26 2A [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 07 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 07 00 04 26 00 00 00 00 00 EC 0C 29 [19:31:47]RasterBufferAndPrint [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]written 0, free lines is 3314 [19:31:47]MH_Cut [19:31:47]Write to MH i2c: D1 01 00 0B 26 01 03 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 01 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 01 00 0B 26 00 02 [19:31:47]Write to MH i2c: 01 00 00 0C 26 32 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]OFD Sender: No OFD packet to send [19:31:48]*** Cut start [19:31:48]*** Purtial cut [19:31:48]*** CUTSNS_PIN = 0 [19:31:48]*** Stage 1: CUTSNS_PIN = 1 [19:31:50]Read from MH i2c: 01 [19:31:50]MH_I2C_Read... [19:31:50]*** Stop cut motor [19:31:50]*** Cut end [19:31:50]Read from MH i2c: 01 07 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 0C 26 00 00 00 00 00 FF 0F 47 [19:31:50]process_action close_receipt done [19:31:50]requested_data is exist [19:31:50]produce_requested_data [19:31:50]requested_item fm.sn is exist - process it [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 11 00 00 [19:31:50]Write to MH i2c: E2 08 00 0D 26 80 11 00 00 00 00 00 00 AD [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 0D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [19: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 [19:31:50]wFMCommunicate OK [19:31:50]requested_item fd.num is exist - process it [19:31:50]SAM_PROTO_GetFieldsCounters [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 13 00 00 [19:31:50]Write to MH i2c: E2 08 00 0E 26 80 13 00 00 00 00 00 00 B0 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 62 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 62 00 0E 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 0F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [19: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 0F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_GetFieldsCounters done [19:31:50]requested_item shift.num is exist - process it [19:31:50]requested_item shift.opened is exist - process it [19:31:50]req_shift_opened [19:31:50]FM_GetShiftState [19:31:50]SAM_PROTO_GetShiftState [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 13 01 00 [19:31:50]Write to MH i2c: E2 08 00 0F 26 80 13 01 00 00 00 00 00 B2 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0E 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0E 00 0F 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5D [19:31:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_GetShiftState done [19:31:50]FM_GetShiftState done [19:31:50]req_shift_opened done [19:31:50]requested_item shift.open_date is exist - process it [19:31:50]req_shift_open_date [19:31:50]req_shift_open_date done [19:31:50]produce_requested_data done [19:31:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67343,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:31:50]process_action_free close_receipt [19:31:50]json_value_free [19:31:50]json_value_free done [19:31:50]process_json_proto returns [19:31:50]Send response to host [19:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67343,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:31:50]free response buf [19:31:50]execute_script done [19:31:50]execute_script returns [19:31:50]free content buf [19:31:50]Sock 7.Close socket [19:31:50]Sock 7.Thread stoped [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:19]accept exits with 9 [19:32:19]New connection [19:32:19]New thread 3067174244 created [19:32:19]Thread 3067030884 joined [19:32:19]Waiting for new connection... [19:32:19] Sock 9.Parse request [19:32:19]Sock 9.Check first char [19:32:19]Sock 9.First char is OK [19:32:19]request: POST /json_proto HTTP/1.0 [19:32:19]Method: POST [19:32:19]URL: /json_proto [19:32:19]Method is POST - this is cgi request [19:32:19]url: /json_proto [19:32:19]query_string will be loaded in cgi processing [19:32:19]execute_cgi json_proto POST (null) [19:32:19]execute_cgi path=json_proto method=POST [19:32:19]POST find Content-Length [19:32:19]Host: 172.17.41.195:8080 [19:32:19]Content-Length: 674 [19:32:19]Content-Type: application/json [19:32:19] [19:32:19]POST finish read [19:32:19]Found Content-Length = 674 [19:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507325", "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" ] } } [19:32:19]execute_script... [19:32:19]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)507325", "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" ] } } [19:32:19]POST & json_proto [19:32:19]process_json_proto [19:32:19]json parsed OK: [19:32:19]protocol is kg_v1.0 [19:32:19]action value=close_receipt [19:32:19]process_action close_receipt [19:32:19]cmd_close_receipt [19:32:19]MH_GetDate [19:32:19]Write to MH i2c: F0 00 00 10 26 25 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: F0 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: F0 09 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: F0 09 00 10 26 00 C5 0D 45 66 FC 21 6F 64 9B [19:32:19]GetLastDocTimeStamp 1715801507 [19:32:19]current date 1715801541 [19:32:19]FM_GetShiftState [19:32:19]SAM_PROTO_GetShiftState [19:32:19]wFMCommunicate request_size=4 [19:32:19]MH_SAM_APDU [19:32:19]CAPDU: 80 13 01 00 [19:32:19]Write to MH i2c: E2 08 00 11 26 80 13 01 00 00 00 00 00 B4 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:19]Read from MH i2c: E2 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 0E 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: E2 0E 00 11 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5F [19:32:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:32:19]wFMCommunicate OK [19:32:19]SAM_PROTO_GetShiftState done [19:32:19]FM_GetShiftState done [19:32:19]opened in 1715732471 [19:32:19]opened+sec_in_day 1715818871 [19:32:19]quantity*price = 40039 [19:32:19]sum+1 = 40040 [19:32:19]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 СНО: Общий режим Чек 162 15.05.2024 19:32 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67344 ФПД: 39405630993071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67344&fm=39405630993071&tin=02508201610067®Number=0000000000091845&sum=40000 [19:32:20]StoreToDocumentArchive [19:32:20]shift 356 fd 67344 [19:32:20]save to /storage/0356/doc_00067344 [19:32:20]save last doc name /storage/0356/doc_00067344 to /storage/kkm_last_doc_name [19:32:20]save OK [19:32:20]Clear old archive folders... [19:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:20]tlvbuf is 00BB2270 [19:32:20]SAM_PROTO_ClearQueue [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 09 00 00 [19:32:20]Write to MH i2c: E2 08 00 1E 26 80 09 00 00 00 00 00 00 B6 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 1E 26 00 90 00 B8 [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_ClearQueue done [19:32:20]KKMCreateOFDPacket [19:32:20]OFDProtocolAddRootSTLVToBuf [19:32:20]FM_MakeSignedData [19:32:20]FM_MakeSignedData [19:32:20]SAM_PROTO_SignData [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 01 02 [19:32:20]Write to MH i2c: E2 08 00 1F 26 80 0D 01 02 00 00 00 00 BE [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 1F 26 00 90 00 B9 [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=255 [19:32:20]MH_SAM_APDU [19:32:20]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 A2 00 00 00 F4 03 04 00 C5 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 23 D6 D6 A3 [19:32:20]Write to MH i2c: E2 02 01 20 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 A2 00 00 00 F4 03 04 00 C5 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 23 D6 D6 A3 00 00 47 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 20 26 00 90 00 BA [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=7 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 02 02 02 32 AF [19:32:20]Write to MH i2c: E2 0A 00 21 26 80 0D 02 02 02 00 32 AF 00 00 A6 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 03 00 21 26 00 90 00 BB [19:32:20]RAPDU: 90 00 [19:32:20]wFMCommunicate OK [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 0D 03 02 [19:32:20]Write to MH i2c: E2 08 00 22 26 80 0D 03 02 00 00 00 00 C3 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0B 00 22 26 00 87 D8 D4 69 38 B3 00 8D 90 00 D8 [19:32:20]RAPDU: 87 D8 D4 69 38 B3 00 8D 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_SignData done [19:32:20]FM_MakeSignedData done [19:32:20]CreateOFDProtocolMessage [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 11 00 00 [19:32:20]Write to MH i2c: E2 08 00 23 26 80 11 00 00 00 00 00 00 C3 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 23 26 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:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:32:20]wFMCommunicate OK [19:32:20]CreateOFDProtocolMessage done [19:32:20]OFDSenderStorePacket 67344 [19:32:20]StoreOFDPacket docnum=67344 [19:32: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 71 43 04 01 6D 0B 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 A2 00 00 00 F4 03 04 00 C5 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 23 D6 D6 A3 32 AF 87 D8 D4 69 38 B3 00 8D [19:32:20]CheckFolder [19:32:20]dirname=/storage/ofd_packets [19:32:20]CheckFolder done [19:32:20]ProducePacketName [19:32:20]name=ofd_packets/00067344 [19:32:20]NVStorageSaveData ofd_packets/00067344 [19:32:20]File name is /storage/ofd_packets/00067344 [19:32:20]Write 298 bytes [19:32:20]NVStorageSaveData done [19:32:20]OFDSenderStorePacket done [19:32:20]KKMCreateOFDPacket done [19:32:20]NVStorageSaveData kkm_last_timestamp [19:32:20]File name is /storage/kkm_last_timestamp [19:32:20]Write 4 bytes [19:32:20]NVStorageSaveData done [19:32:20]ExternCall_PrintAddStr [19:32:20]wPrintStart [19:32:20]Write to MH i2c: 01 00 00 24 26 4A [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 24 26 00 00 00 00 00 FF 0F 5F [19:32:20]RasterBufferAndPrint [19:32:20]line Счет N : (1)507325 [19:32:20]line ИНН: 02508201610067 [19:32:20]line Контрольно-Кассовый Чек [19:32:20]line ПРОДАЖА [19:32:20]line ТРК (МРК, ГНК) : 11 [19:32:20]line Товар: 2710194210 [19:32:20]line ДТ-К-5 [19:32:20]line 5.360 * 74.70 [19:32:20]line = 400.39 [19:32:20]line НДС 12% НСП 1% [19:32:20]line > о реализуемом товаре [19:32:20]line ОКРУГЛЕНИЕ: -0.39 [19:32:20]line ИТОГО: 400.00 [19:32:20]line Внесено: 400.00 [19:32:20]line СДАЧА: 0.00 [19:32:20]line НСП 1% : 3.54 [19:32:20]line НДС 12% : 42.52 [19:32:20]line Наличными: 400.00 [19:32:20]line Безнал.: 0.00 [19:32:20]line Место: АЗС № 91 "Партнер Нефть" [19:32:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:32:20]line СНО: Общий режим [19:32:20]line Чек 162 15.05.2024 19:32 [19:32:20]line Смена: 356 ФФД: 1.0 [19:32:20]line ЗНМ: 0300000119 [19:32:20]line РНМ: 0000000000091845 [19:32:20]line Версия ККМ: 001 [19:32:20]line ФМ: 0000000000871829 [19:32:20]line ФД: 67344 [19:32:20]line ФПД: 39405630993071 [19:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67344&fm=39405630993071&tin=02508201610067®Number=0000000000091845&sum=40000 [19:32:21]OFD Sender: Processing packet 67344 [packets to send 35, broken 34] [19:32:21]ProducePacketName [19:32:21]name=ofd_packets/00067344 [19:32:21]OFD Sender: To server: pG, [19:32:21]CommunicateWithHost lk.salyk.kg:30040 [19:32:21]ConnectInit lk.salyk.kg [19:32:21]written 0, free lines is 4095 [19:32:21]Connected sock=10 [19:32: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 71 43 04 01 6D 0B 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 A2 00 00 00 F4 03 04 00 C5 0D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 23 D6 D6 A3 32 AF 87 D8 D4 69 38 B3 00 8D [19:32: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 62 95 47 00 14 9B 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 07 01 00 F4 03 04 00 A1 B5 44 66 B6 04 01 00 00 6F C4 B6 3F 75 05 DD B7 [19:32:21]CommunicateWithHost err = 0 [19:32:21]CheckOFDResponse [19:32:21]1017 (14) - 77093643461234 [19:32:21]1041 (16) - 0000000000871829 [19:32:21]1040 (4) - 67344 [19:32:21]1012 (4) - 15.05.2024 13:16 [19:32:21]1206 (1) - 0 [19:32:21]OFD Sender: Remove packet 67344 [19:32:21]ProducePacketName [19:32:21]name=ofd_packets/00067344 [19:32:21]NVStorageDeleteData [19:32:21]Write to MH i2c: 01 00 00 4E 26 74 [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: 01 07 00 4E 26 00 00 00 00 00 DF 0C 66 [19:32:21]RasterBufferAndPrint [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]line [19:32:21]written 0, free lines is 3301 [19:32:21]MH_Cut [19:32:21]Write to MH i2c: D1 01 00 55 26 01 4D [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 01 00 [19:32:21]MH_I2C_Read... [19:32:21]Read from MH i2c: D1 01 00 55 26 00 4C [19:32:21]Write to MH i2c: 01 00 00 56 26 7C [19:32:21]Write i2c OK [19:32:21]MH_I2C_Read... [19:32:22]OFD Sender: No OFD packet to send [19:32:22]*** Cut start [19:32:22]*** Purtial cut [19:32:22]*** Stage 1: CUTSNS_PIN = 1 [19:32:22]Read from MH i2c: 01 [19:32:22]MH_I2C_Read... [19:32:22]*** Stop cut motor [19:32:22]*** Cut end [19:32:22]Read from MH i2c: 01 07 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: 01 07 00 56 26 00 00 00 00 00 FF 0F 91 [19:32:22]process_action close_receipt done [19:32:22]requested_data is exist [19:32:22]produce_requested_data [19:32:22]requested_item fm.sn is exist - process it [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 11 00 00 [19:32:22]Write to MH i2c: E2 08 00 57 26 80 11 00 00 00 00 00 00 F7 [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 17 00 57 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [19:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:32:22]wFMCommunicate OK [19:32:22]requested_item fd.num is exist - process it [19:32:22]SAM_PROTO_GetFieldsCounters [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 00 00 [19:32:22]Write to MH i2c: E2 08 00 58 26 80 13 00 00 00 00 00 00 FA [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:22]Read from MH i2c: E2 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 [19:32:22]MH_I2C_Read... [19:32:22]Read from MH i2c: E2 62 00 58 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 10 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [19:32: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 10 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:22]wFMCommunicate OK [19:32:22]SAM_PROTO_GetFieldsCounters done [19:32:22]requested_item shift.num is exist - process it [19:32:22]requested_item shift.opened is exist - process it [19:32:22]req_shift_opened [19:32:22]FM_GetShiftState [19:32:22]SAM_PROTO_GetShiftState [19:32:22]wFMCommunicate request_size=4 [19:32:22]MH_SAM_APDU [19:32:22]CAPDU: 80 13 01 00 [19:32:22]Write to MH i2c: E2 08 00 59 26 80 13 01 00 00 00 00 00 FC [19:32:22]Write i2c OK [19:32:22]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 [19:32:23]MH_I2C_Read... [19:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:23]Read from MH i2c: E2 0E 00 [19:32:23]MH_I2C_Read... [19:32:23]Read from MH i2c: E2 0E 00 59 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A7 [19:32:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:32:23]wFMCommunicate OK [19:32:23]SAM_PROTO_GetShiftState done [19:32:23]FM_GetShiftState done [19:32:23]req_shift_opened done [19:32:23]requested_item shift.open_date is exist - process it [19:32:23]req_shift_open_date [19:32:23]req_shift_open_date done [19:32:23]produce_requested_data done [19:32:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67344,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:32:23]process_action_free close_receipt [19:32:23]json_value_free [19:32:23]json_value_free done [19:32:23]process_json_proto returns [19:32:23]Send response to host [19:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67344,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:32:23]free response buf [19:32:23]execute_script done [19:32:23]execute_script returns [19:32:23]free content buf [19:32:23]Sock 9.Close socket [19:32:23]Sock 9.Thread stoped [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:33:58]accept exits with 7 [19:33:58]New connection [19:33:58]New thread 3067030884 created [19:33:58]Thread 3067174244 joined [19:33:58]Waiting for new connection... [19:33:58] Sock 7.Parse request [19:33:58]Sock 7.Check first char [19:33:58]Sock 7.First char is OK [19:33:58]request: POST /json_proto HTTP/1.0 [19:33:58]Method: POST [19:33:58]URL: /json_proto [19:33:58]Method is POST - this is cgi request [19:33:58]url: /json_proto [19:33:58]query_string will be loaded in cgi processing [19:33:58]execute_cgi json_proto POST (null) [19:33:58]execute_cgi path=json_proto method=POST [19:33:58]POST find Content-Length [19:33:58]Host: 172.17.41.195:8080 [19:33:58]Content-Length: 675 [19:33:58]Content-Type: application/json [19:33:58] [19:33:58]POST finish read [19:33:58]Found Content-Length = 675 [19:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507326", "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" : 10.710, "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" ] } } [19:33:58]execute_script... [19: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)507326", "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" : 10.710, "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" ] } } [19:33:58]POST & json_proto [19:33:58]process_json_proto [19:33:58]json parsed OK: [19:33:58]protocol is kg_v1.0 [19:33:58]action value=close_receipt [19:33:58]process_action close_receipt [19:33:58]cmd_close_receipt [19:33:58]MH_GetDate [19:33:58]Write to MH i2c: F0 00 00 5A 26 6F [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: F0 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: F0 09 00 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: F0 09 00 5A 26 00 28 0E 45 66 FC 21 6F 64 49 [19:33:58]GetLastDocTimeStamp 1715801541 [19:33:58]current date 1715801640 [19:33:58]FM_GetShiftState [19:33:58]SAM_PROTO_GetShiftState [19:33:58]wFMCommunicate request_size=4 [19:33:58]MH_SAM_APDU [19:33:58]CAPDU: 80 13 01 00 [19:33:58]Write to MH i2c: E2 08 00 5B 26 80 13 01 00 00 00 00 00 FE [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:58]Read from MH i2c: E2 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: E2 0E 00 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: E2 0E 00 5B 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A9 [19:33:58]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:33:58]wFMCommunicate OK [19:33:58]SAM_PROTO_GetShiftState done [19:33:58]FM_GetShiftState done [19:33:58]opened in 1715732471 [19:33:58]opened+sec_in_day 1715818871 [19:33:58]quantity*price = 80003 [19:33:58]sum+1 = 80005 [19:33:58]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 СНО: Общий режим Чек 163 15.05.2024 19:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67345 ФПД: 7285448602483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67345&fm=7285448602483&tin=02508201610067®Number=0000000000091845&sum=80000 [19:33:59]StoreToDocumentArchive [19:33:59]shift 356 fd 67345 [19:33:59]save to /storage/0356/doc_00067345 [19:33:59]save last doc name /storage/0356/doc_00067345 to /storage/kkm_last_doc_name [19:33:59]save OK [19:33:59]Clear old archive folders... [19:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:33:59]tlvbuf is 00B36740 [19:33:59]SAM_PROTO_ClearQueue [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 09 00 00 [19:33:59]Write to MH i2c: E2 08 00 68 26 80 09 00 00 00 00 00 00 00 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 03 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 03 00 68 26 00 90 00 02 [19:33:59]RAPDU: 90 00 [19:33:59]wFMCommunicate OK [19:33:59]SAM_PROTO_ClearQueue done [19:33:59]KKMCreateOFDPacket [19:33:59]OFDProtocolAddRootSTLVToBuf [19:33:59]FM_MakeSignedData [19:33:59]FM_MakeSignedData [19:33:59]SAM_PROTO_SignData [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 0D 01 02 [19:33:59]Write to MH i2c: E2 08 00 69 26 80 0D 01 02 00 00 00 00 08 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 03 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 03 00 69 26 00 90 00 03 [19:33:59]RAPDU: 90 00 [19:33:59]wFMCommunicate OK [19:33:59]wFMCommunicate request_size=255 [19:33:59]MH_SAM_APDU [19:33:59]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 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 A3 00 00 00 F4 03 04 00 28 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 06 A0 46 93 [19:33:59]Write to MH i2c: E2 02 01 6A 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 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 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 A3 00 00 00 F4 03 04 00 28 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 06 A0 46 93 00 00 7B [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:00]Read from MH i2c: E2 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 03 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 03 00 6A 26 00 90 00 04 [19:34:00]RAPDU: 90 00 [19:34:00]wFMCommunicate OK [19:34:00]wFMCommunicate request_size=7 [19:34:00]MH_SAM_APDU [19:34:00]CAPDU: 80 0D 02 02 02 73 73 [19:34:00]Write to MH i2c: E2 0A 00 6B 26 80 0D 02 02 02 00 73 73 00 00 F5 [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:00]Read from MH i2c: E2 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 03 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 03 00 6B 26 00 90 00 05 [19:34:00]RAPDU: 90 00 [19:34:00]wFMCommunicate OK [19:34:00]wFMCommunicate request_size=4 [19:34:00]MH_SAM_APDU [19:34:00]CAPDU: 80 0D 03 02 [19:34:00]Write to MH i2c: E2 08 00 6C 26 80 0D 03 02 00 00 00 00 0D [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:00]Read from MH i2c: E2 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 0B 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 0B 00 6C 26 00 BC 4A 95 21 55 6A DC 16 90 00 7B [19:34:00]RAPDU: BC 4A 95 21 55 6A DC 16 90 00 [19:34:00]wFMCommunicate OK [19:34:00]SAM_PROTO_SignData done [19:34:00]FM_MakeSignedData done [19:34:00]CreateOFDProtocolMessage [19:34:00]wFMCommunicate request_size=4 [19:34:00]MH_SAM_APDU [19:34:00]CAPDU: 80 11 00 00 [19:34:00]Write to MH i2c: E2 08 00 6D 26 80 11 00 00 00 00 00 00 0D [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:00]Read from MH i2c: E2 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 17 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: E2 17 00 6D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [19: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 [19:34:00]wFMCommunicate OK [19:34:00]CreateOFDProtocolMessage done [19:34:00]OFDSenderStorePacket 67345 [19:34:00]StoreOFDPacket docnum=67345 [19: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 0C 01 00 00 2E 9B 04 01 C5 E0 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 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 A3 00 00 00 F4 03 04 00 28 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 06 A0 46 93 73 73 BC 4A 95 21 55 6A DC 16 [19:34:00]CheckFolder [19:34:00]dirname=/storage/ofd_packets [19:34:00]CheckFolder done [19:34:00]ProducePacketName [19:34:00]name=ofd_packets/00067345 [19:34:00]NVStorageSaveData ofd_packets/00067345 [19:34:00]File name is /storage/ofd_packets/00067345 [19:34:00]Write 298 bytes [19:34:00]NVStorageSaveData done [19:34:00]OFDSenderStorePacket done [19:34:00]KKMCreateOFDPacket done [19:34:00]NVStorageSaveData kkm_last_timestamp [19:34:00]File name is /storage/kkm_last_timestamp [19:34:00]Write 4 bytes [19:34:00]NVStorageSaveData done [19:34:00]ExternCall_PrintAddStr [19:34:00]wPrintStart [19:34:00]Write to MH i2c: 01 00 00 6E 26 94 [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 07 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 07 00 6E 26 00 00 00 00 00 FF 0F A9 [19:34:00]RasterBufferAndPrint [19:34:00]line Счет N : (1)507326 [19:34:00]line ИНН: 02508201610067 [19:34:00]line Контрольно-Кассовый Чек [19:34:00]line ПРОДАЖА [19:34:00]line ТРК (МРК, ГНК) : 21 [19:34:00]line Товар: 2710194210 [19:34:00]line ДТ-К-5 [19:34:00]line 10.710 * 74.70 [19:34:00]line = 800.04 [19:34:00]line НДС 12% НСП 1% [19:34:00]line > о реализуемом товаре [19:34:00]line ОКРУГЛЕНИЕ: -0.04 [19:34:00]line ИТОГО: 800.00 [19:34:00]line Внесено: 800.00 [19:34:00]line СДАЧА: 0.00 [19:34:00]line НСП 1% : 7.08 [19:34:00]line НДС 12% : 84.96 [19:34:00]line Наличными: 800.00 [19:34:00]line Безнал.: 0.00 [19:34:00]line Место: АЗС № 91 "Партнер Нефть" [19:34:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:34:00]line СНО: Общий режим [19:34:00]line Чек 163 15.05.2024 19:34 [19:34:00]line Смена: 356 ФФД: 1.0 [19:34:00]line ЗНМ: 0300000119 [19:34:00]line РНМ: 0000000000091845 [19:34:00]line Версия ККМ: 001 [19:34:00]line ФМ: 0000000000871829 [19:34:00]line ФД: 67345 [19:34:00]line ФПД: 7285448602483 [19:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67345&fm=7285448602483&tin=02508201610067®Number=0000000000091845&sum=80000 [19:34:00]OFD Sender: Processing packet 67345 [packets to send 35, broken 34] [19:34:00]ProducePacketName [19:34:00]name=ofd_packets/00067345 [19:34:00]OFD Sender: To server: pG, [19:34:00]CommunicateWithHost lk.salyk.kg:30040 [19:34:00]ConnectInit lk.salyk.kg [19:34:00]written 0, free lines is 4095 [19:34:00]Connected sock=10 [19: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 0C 01 00 00 2E 9B 04 01 C5 E0 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 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 A3 00 00 00 F4 03 04 00 28 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 06 A0 46 93 73 73 BC 4A 95 21 55 6A DC 16 [19: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 0E 4B 47 00 33 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 11 07 01 00 F4 03 04 00 05 B6 44 66 B6 04 01 00 00 AA 67 50 25 5A 46 2F FE [19:34:00]CommunicateWithHost err = 0 [19:34:00]CheckOFDResponse [19:34:00]1017 (14) - 77093643461234 [19:34:00]1041 (16) - 0000000000871829 [19:34:00]1040 (4) - 67345 [19:34:00]1012 (4) - 15.05.2024 13:17 [19:34:00]1206 (1) - 0 [19:34:00]OFD Sender: Remove packet 67345 [19:34:00]ProducePacketName [19:34:00]name=ofd_packets/00067345 [19:34:00]NVStorageDeleteData [19:34:00]Write to MH i2c: 01 00 00 98 26 BE [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 07 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: 01 07 00 98 26 00 00 00 00 00 D5 0C A6 [19:34:00]RasterBufferAndPrint [19:34:00]line [19:34:00]line [19:34:00]line [19:34:00]line [19:34:00]line [19:34:00]written 0, free lines is 3292 [19:34:00]MH_Cut [19:34:00]Write to MH i2c: D1 01 00 9F 26 01 97 [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: D1 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: D1 01 00 [19:34:00]MH_I2C_Read... [19:34:00]Read from MH i2c: D1 01 00 9F 26 00 96 [19:34:00]Write to MH i2c: 01 00 00 A0 26 C6 [19:34:00]Write i2c OK [19:34:00]MH_I2C_Read... [19:34:01]OFD Sender: No OFD packet to send [19:34:01]*** Cut start [19:34:01]*** Purtial cut [19:34:01]*** CUTSNS_PIN = 0 [19:34:01]*** Stage 1: CUTSNS_PIN = 1 [19:34:03]Read from MH i2c: 01 [19:34:03]MH_I2C_Read... [19:34:03]*** Stop cut motor [19:34:03]*** Cut end [19:34:03]Read from MH i2c: 01 07 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: 01 07 00 A0 26 00 00 00 00 00 FF 0F DB [19:34:03]process_action close_receipt done [19:34:03]requested_data is exist [19:34:03]produce_requested_data [19:34:03]requested_item fm.sn is exist - process it [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 11 00 00 [19:34:03]Write to MH i2c: E2 08 00 A1 26 80 11 00 00 00 00 00 00 41 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 17 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 17 00 A1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [19:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:34:03]wFMCommunicate OK [19:34:03]requested_item fd.num is exist - process it [19:34:03]SAM_PROTO_GetFieldsCounters [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 13 00 00 [19:34:03]Write to MH i2c: E2 08 00 A2 26 80 13 00 00 00 00 00 00 44 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 62 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 62 00 A2 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 11 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:34: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 11 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:03]wFMCommunicate OK [19:34:03]SAM_PROTO_GetFieldsCounters done [19:34:03]requested_item shift.num is exist - process it [19:34:03]requested_item shift.opened is exist - process it [19:34:03]req_shift_opened [19:34:03]FM_GetShiftState [19:34:03]SAM_PROTO_GetShiftState [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 13 01 00 [19:34:03]Write to MH i2c: E2 08 00 A3 26 80 13 01 00 00 00 00 00 46 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 A3 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F1 [19:34:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_GetShiftState done [19:34:04]FM_GetShiftState done [19:34:04]req_shift_opened done [19:34:04]requested_item shift.open_date is exist - process it [19:34:04]req_shift_open_date [19:34:04]req_shift_open_date done [19:34:04]produce_requested_data done [19:34:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67345,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:34:04]process_action_free close_receipt [19:34:04]json_value_free [19:34:04]json_value_free done [19:34:04]process_json_proto returns [19:34:04]Send response to host [19:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67345,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:34:04]free response buf [19:34:04]execute_script done [19:34:04]execute_script returns [19:34:04]free content buf [19:34:04]Sock 7.Close socket [19:34:04]Sock 7.Thread stoped [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:41]int [19:34:41]Write to MH i2c: 01 00 00 A4 26 CA [19:34:41]*** FLAG_PRN_KEY set [19:34:41]Write i2c OK [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 07 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 07 00 A4 26 00 08 00 00 00 FF 0F E7 [19:34:41]state=0 [19:34:41]Key pressed [19:34:41]Feed [19:34:41]Write to MH i2c: D8 00 00 A5 26 A2 [19:34:41]Write i2c OK [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: D8 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: D8 01 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: D8 01 00 A5 26 00 A3 [19:34:41]int [19:34:41]Write to MH i2c: 01 00 00 A6 26 CC [19:34:41]Write i2c OK [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 07 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 07 00 A6 26 00 48 00 00 00 3C 00 57 [19:34:41]state=2 [19:34:41]Key pressed [19:34:42]int [19:34:42]Write to MH i2c: 01 00 00 A7 26 CD [19:34:42]*** FLAG_PRN_KEY reset [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 A7 26 00 00 00 00 00 FF 0F E2 [19:34:42]state=2 [19:34:42]Stop feed [19:34:42]int [19:34:42]Write to MH i2c: 01 00 00 A8 26 CE [19:34:42]*** FLAG_PRN_KEY set [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 A8 26 00 08 00 00 00 FF 0F EB [19:34:42]state=0 [19:34:42]Key pressed [19:34:42]Feed [19:34:42]Write to MH i2c: D8 00 00 A9 26 A6 [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: D8 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: D8 01 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: D8 01 00 A9 26 00 A7 [19:34:42]int [19:34:42]Write to MH i2c: 01 00 00 AA 26 D0 [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 AA 26 00 48 00 00 00 3C 00 5B [19:34:42]state=2 [19:34:42]Key pressed [19:34:42]int [19:34:42]Write to MH i2c: 01 00 00 AB 26 D1 [19:34:42]*** FLAG_PRN_KEY reset [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: 01 07 00 AB 26 00 00 00 00 00 F5 0F DC [19:34:42]state=2 [19:34:42]Stop feed [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:13]accept exits with 9 [19:36:13]New connection [19:36:13]New thread 3067174244 created [19:36:13]Thread 3067030884 joined [19:36:13]Waiting for new connection... [19:36:13] Sock 9.Parse request [19:36:13]Sock 9.Check first char [19:36:13]Sock 9.First char is OK [19:36:13]request: POST /json_proto HTTP/1.0 [19:36:13]Method: POST [19:36:13]URL: /json_proto [19:36:13]Method is POST - this is cgi request [19:36:13]url: /json_proto [19:36:13]query_string will be loaded in cgi processing [19:36:13]execute_cgi json_proto POST (null) [19:36:13]execute_cgi path=json_proto method=POST [19:36:13]POST find Content-Length [19:36:13]Host: 172.17.41.195:8080 [19:36:13]Content-Length: 682 [19:36:13]Content-Type: application/json [19:36:13] [19:36:13]POST finish read [19:36:13]Found Content-Length = 682 [19:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507327", "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 }]} ], "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:36:13]execute_script... [19: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)507327", "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 }]} ], "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:36:13]POST & json_proto [19:36:13]process_json_proto [19:36:13]json parsed OK: [19:36:13]protocol is kg_v1.0 [19:36:13]action value=close_receipt [19:36:13]process_action close_receipt [19:36:13]cmd_close_receipt [19:36:13]MH_GetDate [19:36:13]Write to MH i2c: F0 00 00 AC 26 C1 [19:36:13]Write i2c OK [19:36:13]MH_I2C_Read... [19:36:13]Read from MH i2c: F0 [19:36:13]MH_I2C_Read... [19:36:13]Read from MH i2c: F0 09 00 [19:36:13]MH_I2C_Read... [19:36:13]Read from MH i2c: F0 09 00 AC 26 00 B0 0E 45 66 FC 21 6F 64 23 [19:36:13]GetLastDocTimeStamp 1715801640 [19:36:13]current date 1715801776 [19:36:13]FM_GetShiftState [19:36:13]SAM_PROTO_GetShiftState [19:36:13]wFMCommunicate request_size=4 [19:36:13]MH_SAM_APDU [19:36:13]CAPDU: 80 13 01 00 [19:36:13]Write to MH i2c: E2 08 00 AD 26 80 13 01 00 00 00 00 00 50 [19:36:13]Write i2c OK [19:36:13]MH_I2C_Read... [19:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:13]Read from MH i2c: E2 [19:36:13]MH_I2C_Read... [19:36:13]Read from MH i2c: E2 0E 00 [19:36:13]MH_I2C_Read... [19:36:13]Read from MH i2c: E2 0E 00 AD 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FB [19:36:13]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:36:13]wFMCommunicate OK [19:36:13]SAM_PROTO_GetShiftState done [19:36:13]FM_GetShiftState done [19:36:13]opened in 1715732471 [19:36:13]opened+sec_in_day 1715818871 [19:36:13]quantity*price = 100066 [19:36:13]sum+1 = 100067 [19:36:13]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 СНО: Общий режим Чек 164 15.05.2024 19:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67346 ФПД: 23297653905437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67346&fm=23297653905437&tin=02508201610067®Number=0000000000091845&sum=100000 [19:36:15]StoreToDocumentArchive [19:36:15]shift 356 fd 67346 [19:36:15]save to /storage/0356/doc_00067346 [19:36:15]save last doc name /storage/0356/doc_00067346 to /storage/kkm_last_doc_name [19:36:15]save OK [19:36:15]Clear old archive folders... [19:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:15]tlvbuf is 00B74F50 [19:36:15]SAM_PROTO_ClearQueue [19:36:15]wFMCommunicate request_size=4 [19:36:15]MH_SAM_APDU [19:36:15]CAPDU: 80 09 00 00 [19:36:15]Write to MH i2c: E2 08 00 BA 26 80 09 00 00 00 00 00 00 52 [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 BA 26 00 90 00 54 [19:36:15]RAPDU: 90 00 [19:36:15]wFMCommunicate OK [19:36:15]SAM_PROTO_ClearQueue done [19:36:15]KKMCreateOFDPacket [19:36:15]OFDProtocolAddRootSTLVToBuf [19:36:15]FM_MakeSignedData [19:36:15]FM_MakeSignedData [19:36:15]SAM_PROTO_SignData [19:36:15]wFMCommunicate request_size=4 [19:36:15]MH_SAM_APDU [19:36:15]CAPDU: 80 0D 01 02 [19:36:15]Write to MH i2c: E2 08 00 BB 26 80 0D 01 02 00 00 00 00 5A [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 BB 26 00 90 00 55 [19:36:15]RAPDU: 90 00 [19:36:15]wFMCommunicate OK [19:36:15]wFMCommunicate request_size=255 [19:36:15]MH_SAM_APDU [19: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 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 A4 00 00 00 F4 03 04 00 B0 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 15 [19:36:15]Write to MH i2c: E2 02 01 BC 26 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 A4 00 00 00 F4 03 04 00 B0 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 15 00 00 D4 [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 BC 26 00 90 00 56 [19:36:15]RAPDU: 90 00 [19:36:15]wFMCommunicate OK [19:36:15]wFMCommunicate request_size=10 [19:36:15]MH_SAM_APDU [19:36:15]CAPDU: 80 0D 02 02 05 30 68 62 98 1D [19:36:15]Write to MH i2c: E2 0D 00 BD 26 80 0D 02 02 05 00 30 68 62 98 1D 00 00 16 [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 03 00 BD 26 00 90 00 57 [19:36:15]RAPDU: 90 00 [19:36:15]wFMCommunicate OK [19:36:15]wFMCommunicate request_size=4 [19:36:15]MH_SAM_APDU [19:36:15]CAPDU: 80 0D 03 02 [19:36:15]Write to MH i2c: E2 08 00 BE 26 80 0D 03 02 00 00 00 00 5F [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 0B 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 0B 00 BE 26 00 5F 71 9B 41 F1 02 8D 73 90 00 FF [19:36:15]RAPDU: 5F 71 9B 41 F1 02 8D 73 90 00 [19:36:15]wFMCommunicate OK [19:36:15]SAM_PROTO_SignData done [19:36:15]FM_MakeSignedData done [19:36:15]CreateOFDProtocolMessage [19:36:15]wFMCommunicate request_size=4 [19:36:15]MH_SAM_APDU [19:36:15]CAPDU: 80 11 00 00 [19:36:15]Write to MH i2c: E2 08 00 BF 26 80 11 00 00 00 00 00 00 5F [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:15]Read from MH i2c: E2 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 17 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: E2 17 00 BF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B5 [19: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 [19:36:15]wFMCommunicate OK [19:36:15]CreateOFDProtocolMessage done [19:36:15]OFDSenderStorePacket 67346 [19:36:15]StoreOFDPacket docnum=67346 [19: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 0B E1 07 01 B8 07 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 A4 00 00 00 F4 03 04 00 B0 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 15 30 68 62 98 1D 5F 71 9B 41 F1 02 8D 73 [19:36:15]CheckFolder [19:36:15]dirname=/storage/ofd_packets [19:36:15]CheckFolder done [19:36:15]ProducePacketName [19:36:15]name=ofd_packets/00067346 [19:36:15]NVStorageSaveData ofd_packets/00067346 [19:36:15]File name is /storage/ofd_packets/00067346 [19:36:15]Write 301 bytes [19:36:15]NVStorageSaveData done [19:36:15]OFDSenderStorePacket done [19:36:15]KKMCreateOFDPacket done [19:36:15]NVStorageSaveData kkm_last_timestamp [19:36:15]File name is /storage/kkm_last_timestamp [19:36:15]Write 4 bytes [19:36:15]NVStorageSaveData done [19:36:15]ExternCall_PrintAddStr [19:36:15]wPrintStart [19:36:15]Write to MH i2c: 01 00 00 C0 26 E6 [19:36:15]Write i2c OK [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: 01 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: 01 07 00 [19:36:15]MH_I2C_Read... [19:36:15]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 FF 0F FB [19:36:15]RasterBufferAndPrint [19:36:15]line Счет N : (1)507327 [19:36:15]line ИНН: 02508201610067 [19:36:15]line Контрольно-Кассовый Чек [19:36:15]line ПРОДАЖА [19:36:15]line ТРК (МРК, ГНК) : 33 [19:36:15]line Товар: 2710124130 [19:36:15]line Аи-92-К-5 [19:36:15]line 14.980 * 66.80 [19:36:15]line = 1000.66 [19:36:15]line НДС 12% НСП 1% [19:36:15]line > о реализуемом товаре [19:36:15]line ОКРУГЛЕНИЕ: -0.66 [19:36:15]line ИТОГО: 1000.00 [19:36:15]line Внесено: 1000.00 [19:36:15]line СДАЧА: 0.00 [19:36:15]line НСП 1% : 8.85 [19:36:15]line НДС 12% : 106.26 [19:36:15]line Наличными: 1000.00 [19:36:15]line Безнал.: 0.00 [19:36:15]line Место: АЗС № 91 "Партнер Нефть" [19:36:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:36:15]line СНО: Общий режим [19:36:15]line Чек 164 15.05.2024 19:36 [19:36:15]line Смена: 356 ФФД: 1.0 [19:36:15]line ЗНМ: 0300000119 [19:36:15]line РНМ: 0000000000091845 [19:36:15]line Версия ККМ: 001 [19:36:15]line ФМ: 0000000000871829 [19:36:15]line ФД: 67346 [19:36:15]line ФПД: 23297653905437 [19:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67346&fm=23297653905437&tin=02508201610067®Number=0000000000091845&sum=100000 [19:36:15]written 0, free lines is 4095 [19:36:15]OFD Sender: Processing packet 67346 [packets to send 35, broken 34] [19:36:15]ProducePacketName [19:36:15]name=ofd_packets/00067346 [19:36:15]OFD Sender: To server: pG, [19:36:15]CommunicateWithHost lk.salyk.kg:30040 [19:36:15]ConnectInit lk.salyk.kg [19:36:16]Connected sock=10 [19:36: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 0F 01 00 00 0B E1 07 01 B8 07 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 A4 00 00 00 F4 03 04 00 B0 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 15 30 68 62 98 1D 5F 71 9B 41 F1 02 8D 73 [19: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 55 62 47 00 40 02 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 07 01 00 F4 03 04 00 8C B6 44 66 B6 04 01 00 00 50 C8 F5 D0 6B 38 63 86 [19:36:16]CommunicateWithHost err = 0 [19:36:16]CheckOFDResponse [19:36:16]1017 (14) - 77093643461234 [19:36:16]1041 (16) - 0000000000871829 [19:36:16]1040 (4) - 67346 [19:36:16]1012 (4) - 15.05.2024 13:20 [19:36:16]1206 (1) - 0 [19:36:16]OFD Sender: Remove packet 67346 [19:36:16]ProducePacketName [19:36:16]name=ofd_packets/00067346 [19:36:16]NVStorageDeleteData [19:36:16]Write to MH i2c: 01 00 00 EA 26 10 [19:36:16]Write i2c OK [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: 01 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: 01 07 00 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: 01 07 00 EA 26 00 00 00 00 00 E9 0C 0C [19:36:16]RasterBufferAndPrint [19:36:16]line [19:36:16]line [19:36:16]line [19:36:16]line [19:36:16]line [19:36:16]written 0, free lines is 3311 [19:36:16]MH_Cut [19:36:16]Write to MH i2c: D1 01 00 F1 26 01 E9 [19:36:16]Write i2c OK [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: D1 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: D1 01 00 [19:36:16]MH_I2C_Read... [19:36:16]Read from MH i2c: D1 01 00 F1 26 00 E8 [19:36:16]Write to MH i2c: 01 00 00 F2 26 18 [19:36:16]Write i2c OK [19:36:16]MH_I2C_Read... [19:36:16]OFD Sender: No OFD packet to send [19:36:17]*** Cut start [19:36:17]*** Purtial cut [19:36:17]*** Stage 1: CUTSNS_PIN = 1 [19:36:17]Read from MH i2c: 01 [19:36:17]MH_I2C_Read... [19:36:17]*** Stop cut motor [19:36:17]*** Cut end [19:36:17]Read from MH i2c: 01 07 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: 01 07 00 F2 26 00 00 00 00 00 FF 0F 2D [19:36:17]process_action close_receipt done [19:36:17]requested_data is exist [19:36:17]produce_requested_data [19:36:17]requested_item fm.sn is exist - process it [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 11 00 00 [19:36:17]Write to MH i2c: E2 08 00 F3 26 80 11 00 00 00 00 00 00 93 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 17 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 17 00 F3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [19: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 [19:36:17]wFMCommunicate OK [19:36:17]requested_item fd.num is exist - process it [19:36:17]SAM_PROTO_GetFieldsCounters [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 13 00 00 [19:36:17]Write to MH i2c: E2 08 00 F4 26 80 13 00 00 00 00 00 00 96 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 62 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 62 00 F4 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 12 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [19: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 12 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:17]wFMCommunicate OK [19:36:17]SAM_PROTO_GetFieldsCounters done [19:36:17]requested_item shift.num is exist - process it [19:36:17]requested_item shift.opened is exist - process it [19:36:17]req_shift_opened [19:36:17]FM_GetShiftState [19:36:17]SAM_PROTO_GetShiftState [19:36:17]wFMCommunicate request_size=4 [19:36:17]MH_SAM_APDU [19:36:17]CAPDU: 80 13 01 00 [19:36:17]Write to MH i2c: E2 08 00 F5 26 80 13 01 00 00 00 00 00 98 [19:36:17]Write i2c OK [19:36:17]MH_I2C_Read... [19:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:17]Read from MH i2c: E2 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 0E 00 [19:36:17]MH_I2C_Read... [19:36:17]Read from MH i2c: E2 0E 00 F5 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 43 [19:36:17]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:36:17]wFMCommunicate OK [19:36:17]SAM_PROTO_GetShiftState done [19:36:17]FM_GetShiftState done [19:36:17]req_shift_opened done [19:36:17]requested_item shift.open_date is exist - process it [19:36:17]req_shift_open_date [19:36:17]req_shift_open_date done [19:36:17]produce_requested_data done [19:36:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67346,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:36:17]process_action_free close_receipt [19:36:17]json_value_free [19:36:17]json_value_free done [19:36:17]process_json_proto returns [19:36:17]Send response to host [19:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67346,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:36:17]free response buf [19:36:17]execute_script done [19:36:17]execute_script returns [19:36:17]free content buf [19:36:17]Sock 9.Close socket [19:36:17]Sock 9.Thread stoped [19:36:21]OFD Sender: No OFD packet to send [19:36:22]accept exits with 7 [19:36:22]New connection [19:36:22]New thread 3067030884 created [19:36:22]Thread 3067174244 joined [19:36:22]Waiting for new connection... [19:36:22] Sock 7.Parse request [19:36:22]Sock 7.Check first char [19:36:22]Sock 7.First char is OK [19:36:22]request: POST /json_proto HTTP/1.0 [19:36:22]Method: POST [19:36:22]URL: /json_proto [19:36:22]Method is POST - this is cgi request [19:36:22]url: /json_proto [19:36:22]query_string will be loaded in cgi processing [19:36:22]execute_cgi json_proto POST (null) [19:36:22]execute_cgi path=json_proto method=POST [19:36:22]POST find Content-Length [19:36:22]Host: 172.17.41.195:8080 [19:36:22]Content-Length: 658 [19:36:22]Content-Type: application/json [19:36:22] [19:36:22]POST finish read [19:36:22]Found Content-Length = 658 [19:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507328", "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" : 14.000, "sum" : 1045.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "total" : 1045.00, "payments": [ { "type": 0, "sum" : 1045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:22]execute_script... [19:36: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)507328", "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" : 14.000, "sum" : 1045.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "total" : 1045.00, "payments": [ { "type": 0, "sum" : 1045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:22]POST & json_proto [19:36:22]process_json_proto [19:36:22]json parsed OK: [19:36:22]protocol is kg_v1.0 [19:36:22]action value=close_receipt [19:36:22]process_action close_receipt [19:36:22]cmd_close_receipt [19:36:22]MH_GetDate [19:36:22]Write to MH i2c: F0 00 00 F6 26 0B [19:36:22]Write i2c OK [19:36:22]MH_I2C_Read... [19:36:22]Read from MH i2c: F0 [19:36:22]MH_I2C_Read... [19:36:22]Read from MH i2c: F0 09 00 [19:36:22]MH_I2C_Read... [19:36:22]Read from MH i2c: F0 09 00 F6 26 00 B9 0E 45 66 FC 21 6F 64 76 [19:36:22]GetLastDocTimeStamp 1715801776 [19:36:22]current date 1715801785 [19:36:22]FM_GetShiftState [19:36:22]SAM_PROTO_GetShiftState [19:36:22]wFMCommunicate request_size=4 [19:36:22]MH_SAM_APDU [19:36:22]CAPDU: 80 13 01 00 [19:36:22]Write to MH i2c: E2 08 00 F7 26 80 13 01 00 00 00 00 00 9A [19:36:22]Write i2c OK [19:36:22]MH_I2C_Read... [19:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:23]Read from MH i2c: E2 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 0E 00 [19:36:23]MH_I2C_Read... [19:36:23]Read from MH i2c: E2 0E 00 F7 26 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 45 [19:36:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:36:23]wFMCommunicate OK [19:36:23]SAM_PROTO_GetShiftState done [19:36:23]FM_GetShiftState done [19:36:23]opened in 1715732471 [19:36:23]opened+sec_in_day 1715818871 [19:36:23]quantity*price = 104580 [19:36:23]sum+1 = 104581 [19:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 1045.00 НСП 1% : 9.25 НДС 12% : 111.06 Наличными: 1045.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 165 15.05.2024 19:36 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67347 ФПД: 19076382310163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67347&fm=19076382310163&tin=02508201610067®Number=0000000000091845&sum=104500 [19:36:24]StoreToDocumentArchive [19:36:24]shift 356 fd 67347 [19:36:24]save to /storage/0356/doc_00067347 [19:36:24]save last doc name /storage/0356/doc_00067347 to /storage/kkm_last_doc_name [19:36:24]save OK [19:36:24]Clear old archive folders... [19:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:36:24]tlvbuf is 00BBBA00 [19:36:24]SAM_PROTO_ClearQueue [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 09 00 00 [19:36:24]Write to MH i2c: E2 08 00 04 27 80 09 00 00 00 00 00 00 9D [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [19:36:24]RAPDU: 90 00 [19:36:24]wFMCommunicate OK [19:36:24]SAM_PROTO_ClearQueue done [19:36:24]KKMCreateOFDPacket [19:36:24]OFDProtocolAddRootSTLVToBuf [19:36:24]FM_MakeSignedData [19:36:24]FM_MakeSignedData [19:36:24]SAM_PROTO_SignData [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 0D 01 02 [19:36:24]Write to MH i2c: E2 08 00 05 27 80 0D 01 02 00 00 00 00 A5 [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 05 27 00 90 00 A0 [19:36:24]RAPDU: 90 00 [19:36:24]wFMCommunicate OK [19:36:24]wFMCommunicate request_size=255 [19:36:24]MH_SAM_APDU [19:36: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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 11 59 90 FD [19:36:24]Write to MH i2c: E2 02 01 06 27 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 11 59 90 FD 00 00 AA [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 06 27 00 90 00 A1 [19:36:24]RAPDU: 90 00 [19:36:24]wFMCommunicate OK [19:36:24]wFMCommunicate request_size=7 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 0D 02 02 02 BF 13 [19:36:24]Write to MH i2c: E2 0A 00 07 27 80 0D 02 02 02 00 BF 13 00 00 7E [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:24]Read from MH i2c: E2 03 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 03 00 07 27 00 90 00 A2 [19:36:24]RAPDU: 90 00 [19:36:24]wFMCommunicate OK [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 0D 03 02 [19:36:24]Write to MH i2c: E2 08 00 08 27 80 0D 03 02 00 00 00 00 AA [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0B 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0B 00 08 27 00 E2 05 2B 69 2D A4 CC 70 90 00 33 [19:36:24]RAPDU: E2 05 2B 69 2D A4 CC 70 90 00 [19:36:24]wFMCommunicate OK [19:36:24]SAM_PROTO_SignData done [19:36:24]FM_MakeSignedData done [19:36:24]CreateOFDProtocolMessage [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 11 00 00 [19:36:24]Write to MH i2c: E2 08 00 09 27 80 11 00 00 00 00 00 00 AA [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 17 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 17 00 09 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [19:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:36:24]wFMCommunicate OK [19:36:24]CreateOFDProtocolMessage done [19:36:24]OFDSenderStorePacket 67347 [19:36:24]StoreOFDPacket docnum=67347 [19:36:24]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 8C E7 04 01 C7 62 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 11 59 90 FD BF 13 E2 05 2B 69 2D A4 CC 70 [19:36:24]CheckFolder [19:36:24]dirname=/storage/ofd_packets [19:36:24]CheckFolder done [19:36:24]ProducePacketName [19:36:24]name=ofd_packets/00067347 [19:36:24]NVStorageSaveData ofd_packets/00067347 [19:36:24]File name is /storage/ofd_packets/00067347 [19:36:24]Write 298 bytes [19:36:24]NVStorageSaveData done [19:36:24]OFDSenderStorePacket done [19:36:24]KKMCreateOFDPacket done [19:36:24]NVStorageSaveData kkm_last_timestamp [19:36:24]File name is /storage/kkm_last_timestamp [19:36:24]Write 4 bytes [19:36:24]NVStorageSaveData done [19:36:24]ExternCall_PrintAddStr [19:36:24]wPrintStart [19:36:24]Write to MH i2c: 01 00 00 0A 27 31 [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 07 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: 01 07 00 0A 27 00 00 00 00 00 FF 0F 46 [19:36:24]RasterBufferAndPrint [19:36:24]line Счет N : (1)507328 [19:36:24]line ИНН: 02508201610067 [19:36:24]line Контрольно-Кассовый Чек [19:36:24]line ПРОДАЖА [19:36:24]line ТРК (МРК, ГНК) : 41 [19:36:24]line Товар: 2710194210 [19:36:24]line ДТ-К-5 [19:36:24]line 14.000 * 74.70 [19:36:24]line = 1045.80 [19:36:24]line НДС 12% НСП 1% [19:36:24]line > о реализуемом товаре [19:36:24]line ОКРУГЛЕНИЕ: -0.80 [19:36:24]line ИТОГО: 1045.00 [19:36:24]line НСП 1% : 9.25 [19:36:24]line НДС 12% : 111.06 [19:36:24]line Наличными: 1045.00 [19:36:24]line Безнал.: 0.00 [19:36:24]line Место: АЗС № 91 "Партнер Нефть" [19:36:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:36:24]line СНО: Общий режим [19:36:24]line Чек 165 15.05.2024 19:36 [19:36:24]line Смена: 356 ФФД: 1.0 [19:36:24]line ЗНМ: 0300000119 [19:36:24]line РНМ: 0000000000091845 [19:36:24]line Версия ККМ: 001 [19:36:24]line ФМ: 0000000000871829 [19:36:24]line ФД: 67347 [19:36:24]line ФПД: 19076382310163 [19:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67347&fm=19076382310163&tin=02508201610067®Number=0000000000091845&sum=104500 [19:36:24]written 0, free lines is 4095 [19:36:24]OFD Sender: Processing packet 67347 [packets to send 35, broken 34] [19:36:24]ProducePacketName [19:36:24]name=ofd_packets/00067347 [19:36:24]OFD Sender: To server: pG, [19:36:24]CommunicateWithHost lk.salyk.kg:30040 [19:36:24]ConnectInit lk.salyk.kg [19:36:24]Connected sock=10 [19:36:24]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 8C E7 04 01 C7 62 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B9 0E 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 11 59 90 FD BF 13 E2 05 2B 69 2D A4 CC 70 [19:36: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 27 85 47 00 8E 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 13 07 01 00 F4 03 04 00 95 B6 44 66 B6 04 01 00 00 77 52 82 7C 39 20 CA 5B [19:36:25]CommunicateWithHost err = 0 [19:36:25]CheckOFDResponse [19:36:25]1017 (14) - 77093643461234 [19:36:25]1041 (16) - 0000000000871829 [19:36:25]1040 (4) - 67347 [19:36:25]1012 (4) - 15.05.2024 13:20 [19:36:25]1206 (1) - 0 [19:36:25]OFD Sender: Remove packet 67347 [19:36:25]ProducePacketName [19:36:25]name=ofd_packets/00067347 [19:36:25]NVStorageDeleteData [19:36:25]Write to MH i2c: 01 00 00 32 27 59 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 07 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 03 0D 70 [19:36:25]RasterBufferAndPrint [19:36:25]line [19:36:25]line [19:36:25]line [19:36:25]line [19:36:25]line [19:36:25]written 0, free lines is 3341 [19:36:25]MH_Cut [19:36:25]Write to MH i2c: D1 01 00 39 27 01 32 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: D1 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: D1 01 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: D1 01 00 39 27 00 31 [19:36:25]Write to MH i2c: 01 00 00 3A 27 61 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]OFD Sender: No OFD packet to send [19:36:25]*** Cut start [19:36:25]*** Purtial cut [19:36:25]*** CUTSNS_PIN = 0 [19:36:26]*** Stage 1: CUTSNS_PIN = 1 [19:36:27]Read from MH i2c: 01 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: 01 07 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: 01 07 00 3A 27 00 00 00 00 00 FF 0F 76 [19:36:27]process_action close_receipt done [19:36:27]requested_data is exist [19:36:27]produce_requested_data [19:36:27]requested_item fm.sn is exist - process it [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 11 00 00 [19:36:27]Write to MH i2c: E2 08 00 3B 27 80 11 00 00 00 00 00 00 DC [19:36:27]*** Stop cut motor [19:36:27]*** Cut end [19:36:27]*** FLAG_PRN_PAP1 set [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** FLAG_PRN_PAP2 set [19:36:27]int [19:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 17 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 17 00 3B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [19: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 [19:36:27]wFMCommunicate OK [19:36:27]requested_item fd.num is exist - process it [19:36:27]SAM_PROTO_GetFieldsCounters [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 13 00 00 [19:36:27]Write to MH i2c: E2 08 00 3C 27 80 13 00 00 00 00 00 00 DF [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:28]Read from MH i2c: E2 62 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 62 00 3C 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 13 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [19:36:28]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 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_GetFieldsCounters done [19:36:28]requested_item shift.num is exist - process it [19:36:28]requested_item shift.opened is exist - process it [19:36:28]req_shift_opened [19:36:28]FM_GetShiftState [19:36:28]SAM_PROTO_GetShiftState [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 13 01 00 [19:36:28]Write to MH i2c: 01 00 00 3D 27 64 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 07 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 07 00 3D 27 00 03 00 00 00 FF 0F 7C [19:36:28]state=0 [19:36:28]No paper [19:36:28]Cover opened [19:36:28]Write to MH i2c: E2 08 00 3E 27 80 13 01 00 00 00 00 00 E2 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0E 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0E 00 3E 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8D [19:36:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_GetShiftState done [19:36:28]FM_GetShiftState done [19:36:28]req_shift_opened done [19:36:28]requested_item shift.open_date is exist - process it [19:36:28]req_shift_open_date [19:36:28]req_shift_open_date done [19:36:28]produce_requested_data done [19:36:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67347,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:36:28]process_action_free close_receipt [19:36:28]json_value_free [19:36:28]json_value_free done [19:36:28]process_json_proto returns [19:36:28]Send response to host [19:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67347,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:36:28]free response buf [19:36:28]execute_script done [19:36:28]execute_script returns [19:36:28]free content buf [19:36:28]Sock 7.Close socket [19:36:28]Sock 7.Thread stoped [19:36:30]int [19:36:30]Write to MH i2c: 01 00 00 3F 27 66 [19:36:30]*** FLAG_PRN_PAP1 reset [19:36:30]*** FLAG_PRN_PAP2 reset [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: 01 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: 01 07 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: 01 07 00 3F 27 00 00 00 00 00 FF 0F 7B [19:36:30]state=3 [19:36:30]Cover closed [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:28]accept exits with 9 [19:39:28]New connection [19:39:28]New thread 3067174244 created [19:39:28]Thread 3067030884 joined [19:39:28]Waiting for new connection... [19:39:28] Sock 9.Parse request [19:39:28]Sock 9.Check first char [19:39:28]Sock 9.First char is OK [19:39:28]request: POST /json_proto HTTP/1.0 [19:39:28]Method: POST [19:39:28]URL: /json_proto [19:39:28]Method is POST - this is cgi request [19:39:28]url: /json_proto [19:39:28]query_string will be loaded in cgi processing [19:39:28]execute_cgi json_proto POST (null) [19:39:28]execute_cgi path=json_proto method=POST [19:39:28]POST find Content-Length [19:39:28]Host: 172.17.41.195:8080 [19:39:28]Content-Length: 679 [19:39:28]Content-Type: application/json [19:39:28] [19:39:28]POST finish read [19:39:28]Found Content-Length = 679 [19:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507329", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:28]execute_script... [19:39: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)507329", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:28]POST & json_proto [19:39:28]process_json_proto [19:39:28]json parsed OK: [19:39:28]protocol is kg_v1.0 [19:39:28]action value=close_receipt [19:39:28]process_action close_receipt [19:39:28]cmd_close_receipt [19:39:28]MH_GetDate [19:39:28]Write to MH i2c: F0 00 00 40 27 56 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: F0 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: F0 09 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: F0 09 00 40 27 00 72 0F 45 66 FC 21 6F 64 7B [19:39:28]GetLastDocTimeStamp 1715801785 [19:39:28]current date 1715801970 [19:39:28]FM_GetShiftState [19:39:28]SAM_PROTO_GetShiftState [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 13 01 00 [19:39:28]Write to MH i2c: E2 08 00 41 27 80 13 01 00 00 00 00 00 E5 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0E 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0E 00 41 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 90 [19:39:28]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_GetShiftState done [19:39:28]FM_GetShiftState done [19:39:28]opened in 1715732471 [19:39:28]opened+sec_in_day 1715818871 [19:39:28]quantity*price = 260030 [19:39:28]sum+1 = 260032 [19:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 166 15.05.2024 19:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67348 ФПД: 48899931447502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67348&fm=48899931447502&tin=02508201610067®Number=0000000000091845&sum=260000 [19:39:29]StoreToDocumentArchive [19:39:29]shift 356 fd 67348 [19:39:29]save to /storage/0356/doc_00067348 [19:39:29]save last doc name /storage/0356/doc_00067348 to /storage/kkm_last_doc_name [19:39:29]save OK [19:39:29]Clear old archive folders... [19:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:29]tlvbuf is 00B35FA0 [19:39:29]SAM_PROTO_ClearQueue [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 09 00 00 [19:39:29]Write to MH i2c: E2 08 00 4E 27 80 09 00 00 00 00 00 00 E7 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 03 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [19:39:29]RAPDU: 90 00 [19:39:29]wFMCommunicate OK [19:39:29]SAM_PROTO_ClearQueue done [19:39:29]KKMCreateOFDPacket [19:39:29]OFDProtocolAddRootSTLVToBuf [19:39:29]FM_MakeSignedData [19:39:29]FM_MakeSignedData [19:39:29]SAM_PROTO_SignData [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 0D 01 02 [19:39:29]Write to MH i2c: E2 08 00 4F 27 80 0D 01 02 00 00 00 00 EF [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 03 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 03 00 4F 27 00 90 00 EA [19:39:29]RAPDU: 90 00 [19:39:29]wFMCommunicate OK [19:39:29]wFMCommunicate request_size=255 [19:39:29]MH_SAM_APDU [19:39:29]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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 72 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2C 79 67 0B [19:39:29]Write to MH i2c: E2 02 01 50 27 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 72 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2C 79 67 0B 00 00 C2 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 50 27 00 90 00 EB [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]wFMCommunicate request_size=7 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 02 02 02 20 CE [19:39:30]Write to MH i2c: E2 0A 00 51 27 80 0D 02 02 02 00 20 CE 00 00 E4 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 03 00 51 27 00 90 00 EC [19:39:30]RAPDU: 90 00 [19:39:30]wFMCommunicate OK [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 0D 03 02 [19:39:30]Write to MH i2c: E2 08 00 52 27 80 0D 03 02 00 00 00 00 F4 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0B 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0B 00 52 27 00 0A 39 2F 7A F1 4D 5E 53 90 00 D0 [19:39:30]RAPDU: 0A 39 2F 7A F1 4D 5E 53 90 00 [19:39:30]wFMCommunicate OK [19:39:30]SAM_PROTO_SignData done [19:39:30]FM_MakeSignedData done [19:39:30]CreateOFDProtocolMessage [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 11 00 00 [19:39:30]Write to MH i2c: E2 08 00 53 27 80 11 00 00 00 00 00 00 F4 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 17 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 17 00 53 27 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:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:30]wFMCommunicate OK [19:39:30]CreateOFDProtocolMessage done [19:39:30]OFDSenderStorePacket 67348 [19:39:30]StoreOFDPacket docnum=67348 [19:39: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 0C 01 00 00 75 59 04 01 6C 3C 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 72 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2C 79 67 0B 20 CE 0A 39 2F 7A F1 4D 5E 53 [19:39:30]CheckFolder [19:39:30]dirname=/storage/ofd_packets [19:39:30]CheckFolder done [19:39:30]ProducePacketName [19:39:30]name=ofd_packets/00067348 [19:39:30]NVStorageSaveData ofd_packets/00067348 [19:39:30]File name is /storage/ofd_packets/00067348 [19:39:30]Write 298 bytes [19:39:30]NVStorageSaveData done [19:39:30]OFDSenderStorePacket done [19:39:30]KKMCreateOFDPacket done [19:39:30]NVStorageSaveData kkm_last_timestamp [19:39:30]File name is /storage/kkm_last_timestamp [19:39:30]Write 4 bytes [19:39:30]NVStorageSaveData done [19:39:30]ExternCall_PrintAddStr [19:39:30]wPrintStart [19:39:30]Write to MH i2c: 01 00 00 54 27 7B [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: 01 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: 01 07 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: 01 07 00 54 27 00 00 00 00 00 FF 0F 90 [19:39:30]RasterBufferAndPrint [19:39:30]line Счет N : (1)507329 [19:39:30]line ИНН: 02508201610067 [19:39:30]line Контрольно-Кассовый Чек [19:39:30]line ПРОДАЖА [19:39:30]line ТРК (МРК, ГНК) : 31 [19:39:30]line Товар: 2710194210 [19:39:30]line ДТ-К-5 [19:39:30]line 34.810 * 74.70 [19:39:30]line = 2600.31 [19:39:30]line НДС 12% НСП 1% [19:39:30]line > о реализуемом товаре [19:39:30]line ОКРУГЛЕНИЕ: -0.31 [19:39:30]line ИТОГО: 2600.00 [19:39:30]line Внесено: 2600.00 [19:39:30]line СДАЧА: 0.00 [19:39:30]line НСП 1% : 23.01 [19:39:30]line НДС 12% : 276.14 [19:39:30]line Наличными: 2600.00 [19:39:30]line Безнал.: 0.00 [19:39:30]line Место: АЗС № 91 "Партнер Нефть" [19:39:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:39:30]line СНО: Общий режим [19:39:30]line Чек 166 15.05.2024 19:39 [19:39:30]line Смена: 356 ФФД: 1.0 [19:39:30]line ЗНМ: 0300000119 [19:39:30]line РНМ: 0000000000091845 [19:39:30]line Версия ККМ: 001 [19:39:30]line ФМ: 0000000000871829 [19:39:30]line ФД: 67348 [19:39:30]line ФПД: 48899931447502 [19:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67348&fm=48899931447502&tin=02508201610067®Number=0000000000091845&sum=260000 [19:39:30]OFD Sender: Processing packet 67348 [packets to send 35, broken 34] [19:39:30]ProducePacketName [19:39:30]name=ofd_packets/00067348 [19:39:30]OFD Sender: To server: pG, [19:39:30]CommunicateWithHost lk.salyk.kg:30040 [19:39:30]ConnectInit lk.salyk.kg [19:39:30]written 0, free lines is 4095 [19:39:30]Connected sock=10 [19:39: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 0C 01 00 00 75 59 04 01 6C 3C 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 72 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 2C 79 67 0B 20 CE 0A 39 2F 7A F1 4D 5E 53 [19:39: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 00 54 47 00 E8 08 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 07 01 00 F4 03 04 00 4F B7 44 66 B6 04 01 00 00 2F 18 F8 68 6A 00 EE 50 [19:39:30]CommunicateWithHost err = 0 [19:39:30]CheckOFDResponse [19:39:30]1017 (14) - 77093643461234 [19:39:30]1041 (16) - 0000000000871829 [19:39:30]1040 (4) - 67348 [19:39:30]1012 (4) - 15.05.2024 13:23 [19:39:30]1206 (1) - 0 [19:39:30]OFD Sender: Remove packet 67348 [19:39:30]ProducePacketName [19:39:30]name=ofd_packets/00067348 [19:39:30]NVStorageDeleteData [19:39:31]Write to MH i2c: 01 00 00 7E 27 A5 [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: 01 07 00 7E 27 00 00 00 00 00 EB 0C A3 [19:39:31]RasterBufferAndPrint [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]line [19:39:31]written 0, free lines is 3313 [19:39:31]MH_Cut [19:39:31]Write to MH i2c: D1 01 00 85 27 01 7E [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: D1 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: D1 01 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: D1 01 00 85 27 00 7D [19:39:31]Write to MH i2c: 01 00 00 86 27 AD [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]OFD Sender: No OFD packet to send [19:39:31]*** Cut start [19:39:31]*** Purtial cut [19:39:31]*** Stage 1: CUTSNS_PIN = 1 [19:39:32]Read from MH i2c: 01 [19:39:32]MH_I2C_Read... [19:39:32]*** Stop cut motor [19:39:32]*** Cut end [19:39:32]Read from MH i2c: 01 07 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [19:39:32]process_action close_receipt done [19:39:32]requested_data is exist [19:39:32]produce_requested_data [19:39:32]requested_item fm.sn is exist - process it [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 11 00 00 [19:39:32]Write to MH i2c: E2 08 00 87 27 80 11 00 00 00 00 00 00 28 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 17 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 17 00 87 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [19:39: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:39:32]wFMCommunicate OK [19:39:32]requested_item fd.num is exist - process it [19:39:32]SAM_PROTO_GetFieldsCounters [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 13 00 00 [19:39:32]Write to MH i2c: E2 08 00 88 27 80 13 00 00 00 00 00 00 2B [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 62 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 62 00 88 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 14 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [19:39: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 14 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_GetFieldsCounters done [19:39:32]requested_item shift.num is exist - process it [19:39:32]requested_item shift.opened is exist - process it [19:39:32]req_shift_opened [19:39:32]FM_GetShiftState [19:39:32]SAM_PROTO_GetShiftState [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 13 01 00 [19:39:32]Write to MH i2c: E2 08 00 89 27 80 13 01 00 00 00 00 00 2D [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:32]Read from MH i2c: E2 0E 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 0E 00 89 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [19:39:32]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_GetShiftState done [19:39:32]FM_GetShiftState done [19:39:32]req_shift_opened done [19:39:32]requested_item shift.open_date is exist - process it [19:39:32]req_shift_open_date [19:39:32]req_shift_open_date done [19:39:32]produce_requested_data done [19:39:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67348,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:39:32]process_action_free close_receipt [19:39:32]json_value_free [19:39:32]json_value_free done [19:39:32]process_json_proto returns [19:39:32]Send response to host [19:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67348,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:39:32]free response buf [19:39:32]execute_script done [19:39:32]execute_script returns [19:39:32]free content buf [19:39:32]Sock 9.Close socket [19:39:32]Sock 9.Thread stoped [19:39:35]accept exits with 7 [19:39:35]New connection [19:39:35]New thread 3067030884 created [19:39:35]Thread 3067174244 joined [19:39:35]Waiting for new connection... [19:39:35] Sock 7.Parse request [19:39:35]Sock 7.Check first char [19:39:35]Sock 7.First char is OK [19:39:35]request: POST /json_proto HTTP/1.0 [19:39:35]Method: POST [19:39:35]URL: /json_proto [19:39:35]Method is POST - this is cgi request [19:39:35]url: /json_proto [19:39:35]query_string will be loaded in cgi processing [19:39:35]execute_cgi json_proto POST (null) [19:39:35]execute_cgi path=json_proto method=POST [19:39:35]POST find Content-Length [19:39:35]Host: 172.17.41.195:8080 [19:39:35]Content-Length: 735 [19:39:35]Content-Type: application/json [19:39:35] [19:39:35]POST finish read [19:39:35]Found Content-Length = 735 [19:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67348, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507329", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]execute_script... [19:39:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67348, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507329", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]POST & json_proto [19:39:35]process_json_proto [19:39:35]json parsed OK: [19:39:35]protocol is kg_v1.0 [19:39:35]action value=close_receipt [19:39:35]process_action close_receipt [19:39:35]cmd_close_receipt [19:39:35]MH_GetDate [19:39:35]Write to MH i2c: F0 00 00 8A 27 A0 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 8A 27 00 79 0F 45 66 FC 21 6F 64 CC [19:39:35]GetLastDocTimeStamp 1715801970 [19:39:35]current date 1715801977 [19:39:35]FM_GetShiftState [19:39:35]SAM_PROTO_GetShiftState [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 01 00 [19:39:35]Write to MH i2c: E2 08 00 8B 27 80 13 01 00 00 00 00 00 2F [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 8B 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DA [19:39:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetShiftState done [19:39:35]FM_GetShiftState done [19:39:35]opened in 1715732471 [19:39:35]opened+sec_in_day 1715818871 [19:39:35]quantity*price = 260030 [19:39:35]sum+1 = 260032 [19:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2600.00 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 167 15.05.2024 19:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФД осн.: 67348 ФМ осн.: 0000000000871829 ФМ: 0000000000871829 ФД: 67349 ФПД: 47616649397115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193937&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67349&fm=47616649397115&tin=02508201610067®Number=0000000000091845&sum=260000 [19:39:36]StoreToDocumentArchive [19:39:36]shift 356 fd 67349 [19:39:36]save to /storage/0356/doc_00067349 [19:39:36]save last doc name /storage/0356/doc_00067349 to /storage/kkm_last_doc_name [19:39:36]save OK [19:39:36]Clear old archive folders... [19:39:36]OFD Sender: No OFD packet to send [19:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:39:36]tlvbuf is 00B754A0 [19:39:36]SAM_PROTO_ClearQueue [19:39:36]wFMCommunicate request_size=4 [19:39:36]MH_SAM_APDU [19:39:36]CAPDU: 80 09 00 00 [19:39:36]Write to MH i2c: E2 08 00 9A 27 80 09 00 00 00 00 00 00 33 [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:36]Read from MH i2c: E2 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [19:39:36]RAPDU: 90 00 [19:39:36]wFMCommunicate OK [19:39:36]SAM_PROTO_ClearQueue done [19:39:36]KKMCreateOFDPacket [19:39:36]OFDProtocolAddRootSTLVToBuf [19:39:36]FM_MakeSignedData [19:39:36]FM_MakeSignedData [19:39:36]SAM_PROTO_SignData [19:39:36]wFMCommunicate request_size=4 [19:39:36]MH_SAM_APDU [19:39:36]CAPDU: 80 0D 01 02 [19:39:36]Write to MH i2c: E2 08 00 9B 27 80 0D 01 02 00 00 00 00 3B [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:36]Read from MH i2c: E2 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [19:39:36]RAPDU: 90 00 [19:39:36]wFMCommunicate OK [19:39:36]wFMCommunicate request_size=255 [19:39:36]MH_SAM_APDU [19:39:36]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 79 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 14 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 [19:39:36]Write to MH i2c: E2 02 01 9C 27 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 79 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 14 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 00 00 F1 [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:36]Read from MH i2c: E2 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 9C 27 00 90 00 37 [19:39:36]RAPDU: 90 00 [19:39:36]wFMCommunicate OK [19:39:36]wFMCommunicate request_size=35 [19:39:36]MH_SAM_APDU [19:39:36]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 07 01 00 35 04 06 00 2B 4E 9D 79 03 7B [19:39:36]Write to MH i2c: E2 26 00 9D 27 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 07 01 00 35 04 06 00 2B 4E 9D 79 03 7B 00 00 5E [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:36]Read from MH i2c: E2 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [19:39:36]RAPDU: 90 00 [19:39:36]wFMCommunicate OK [19:39:36]wFMCommunicate request_size=4 [19:39:36]MH_SAM_APDU [19:39:36]CAPDU: 80 0D 03 02 [19:39:36]Write to MH i2c: E2 08 00 9E 27 80 0D 03 02 00 00 00 00 40 [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 9E 27 00 56 3B 87 6C AE B1 8B C7 90 00 76 [19:39:37]RAPDU: 56 3B 87 6C AE B1 8B C7 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_SignData done [19:39:37]FM_MakeSignedData done [19:39:37]CreateOFDProtocolMessage [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 11 00 00 [19:39:37]Write to MH i2c: E2 08 00 9F 27 80 11 00 00 00 00 00 00 40 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 9F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [19:39: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:39:37]wFMCommunicate OK [19:39:37]CreateOFDProtocolMessage done [19:39:37]OFDSenderStorePacket 67349 [19:39:37]StoreOFDPacket docnum=67349 [19:39: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 28 01 00 00 84 D3 20 01 BE 4C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 79 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 14 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 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 07 01 00 35 04 06 00 2B 4E 9D 79 03 7B 56 3B 87 6C AE B1 8B C7 [19:39:37]CheckFolder [19:39:37]dirname=/storage/ofd_packets [19:39:37]CheckFolder done [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00067349 [19:39:37]NVStorageSaveData ofd_packets/00067349 [19:39:37]File name is /storage/ofd_packets/00067349 [19:39:37]Write 326 bytes [19:39:37]NVStorageSaveData done [19:39:37]OFDSenderStorePacket done [19:39:37]KKMCreateOFDPacket done [19:39:37]NVStorageSaveData kkm_last_timestamp [19:39:37]File name is /storage/kkm_last_timestamp [19:39:37]OFD Sender: Processing packet 67349 [packets to send 35, broken 34] [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00067349 [19:39:37]OFD Sender: To server: pG, [19:39:37]CommunicateWithHost lk.salyk.kg:30040 [19:39:37]ConnectInit lk.salyk.kg [19:39:37]Write 4 bytes [19:39:37]NVStorageSaveData done [19:39:37]ExternCall_PrintAddStr [19:39:37]wPrintStart [19:39:37]Write to MH i2c: 01 00 00 A0 27 C7 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 A0 27 00 00 00 00 00 FF 0F DC [19:39:37]RasterBufferAndPrint [19:39:37]line Счет N : (1)507329 [19:39:37]line ИНН: 02508201610067 [19:39:37]line Контрольно-Кассовый Чек [19:39:37]line ВОЗВРАТ ПРОДАЖИ [19:39:37]line ТРК (МРК, ГНК) : 31 [19:39:37]line Товар: 2710194210 [19:39:37]line ДТ-К-5 [19:39:37]line 34.810 * 74.70 [19:39:37]line = 2600.31 [19:39:37]line НДС 12% НСП 1% [19:39:37]line > о реализуемом товаре [19:39:37]line ОКРУГЛЕНИЕ: -0.31 [19:39:37]line ИТОГО: 2600.00 [19:39:37]line НСП 1% : 23.01 [19:39:37]line НДС 12% : 276.14 [19:39:37]line Наличными: 2600.00 [19:39:37]line Безнал.: 0.00 [19:39:37]line Место: АЗС № 91 "Партнер Нефть" [19:39:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:39:37]line СНО: Общий режим [19:39:37]line Чек 167 15.05.2024 19:39 [19:39:37]line Смена: 356 ФФД: 1.0 [19:39:37]line ЗНМ: 0300000119 [19:39:37]line РНМ: 0000000000091845 [19:39:37]line Версия ККМ: 001 [19:39:37]line ФД осн.: 67348 [19:39:37]line ФМ осн.: 0000000000871829 [19:39:37]line ФМ: 0000000000871829 [19:39:37]line ФД: 67349 [19:39:37]line ФПД: 47616649397115 [19:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T193937&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67349&fm=47616649397115&tin=02508201610067®Number=0000000000091845&sum=260000 [19:39:37]written 0, free lines is 4095 [19:39:37]Connected sock=11 [19:39: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 28 01 00 00 84 D3 20 01 BE 4C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 79 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 14 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 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 07 01 00 35 04 06 00 2B 4E 9D 79 03 7B 56 3B 87 6C AE B1 8B C7 [19:39: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 1A BB 47 00 B4 93 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 07 01 00 F4 03 04 00 55 B7 44 66 B6 04 01 00 00 A3 43 70 D1 48 37 D3 3F [19:39:37]CommunicateWithHost err = 0 [19:39:37]CheckOFDResponse [19:39:37]1017 (14) - 77093643461234 [19:39:37]1041 (16) - 0000000000871829 [19:39:37]1040 (4) - 67349 [19:39:37]1012 (4) - 15.05.2024 13:23 [19:39:37]1206 (1) - 0 [19:39:37]OFD Sender: Remove packet 67349 [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00067349 [19:39:37]NVStorageDeleteData [19:39:37]Write to MH i2c: 01 00 00 CA 27 F1 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 FF 0C 03 [19:39:37]RasterBufferAndPrint [19:39:37]line [19:39:37]line [19:39:37]line [19:39:37]line [19:39:37]line [19:39:37]written 0, free lines is 3341 [19:39:37]MH_Cut [19:39:37]Write to MH i2c: D1 01 00 D1 27 01 CA [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: D1 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: D1 01 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: D1 01 00 D1 27 00 C9 [19:39:37]Write to MH i2c: 01 00 00 D2 27 F9 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]OFD Sender: No OFD packet to send [19:39:38]*** Cut start [19:39:38]*** Purtial cut [19:39:38]*** CUTSNS_PIN = 0 [19:39:38]*** Stage 1: CUTSNS_PIN = 1 [19:39:40]Read from MH i2c: 01 [19:39:40]MH_I2C_Read... [19:39:40]*** Stop cut motor [19:39:40]Read from MH i2c: 01 07 00 [19:39:40]MH_I2C_Read... [19:39:40]*** Cut end [19:39:40]Read from MH i2c: 01 07 00 D2 27 00 00 00 00 00 FF 0F 0E [19:39:40]process_action close_receipt done [19:39:40]requested_data is exist [19:39:40]produce_requested_data [19:39:40]requested_item fm.sn is exist - process it [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 11 00 00 [19:39:40]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 17 00 [19:39:40]MH_I2C_Read... [19:39:40]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 [19:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:40]wFMCommunicate OK [19:39:40]requested_item fd.num is exist - process it [19:39:40]SAM_PROTO_GetFieldsCounters [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 00 00 [19:39:40]Write to MH i2c: E2 08 00 D4 27 80 13 00 00 00 00 00 00 77 [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 62 00 [19:39:40]MH_I2C_Read... [19:39:40]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 15 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [19:39: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 15 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetFieldsCounters done [19:39:40]requested_item shift.num is exist - process it [19:39:40]requested_item shift.opened is exist - process it [19:39:40]req_shift_opened [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 24 [19:39:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]req_shift_opened done [19:39:40]requested_item shift.open_date is exist - process it [19:39:40]req_shift_open_date [19:39:40]req_shift_open_date done [19:39:40]produce_requested_data done [19:39:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67349,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:39:40]process_action_free close_receipt [19:39:40]json_value_free [19:39:40]json_value_free done [19:39:40]process_json_proto returns [19:39:40]Send response to host [19:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67349,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:39:40]free response buf [19:39:40]execute_script done [19:39:40]execute_script returns [19:39:40]free content buf [19:39:40]Sock 7.Close socket [19:39:40]Sock 7.Thread stoped [19:39:42]OFD Sender: No OFD packet to send [19:39:44]int [19:39:44]Write to MH i2c: 01 00 00 D6 27 FD [19:39:44]*** FLAG_PRN_PAP1 set [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 D6 27 00 01 00 00 00 FF 0F 13 [19:39:44]state=0 [19:39:44]No paper [19:39:44]int [19:39:44]Write to MH i2c: 01 00 00 D7 27 FE [19:39:44]*** FLAG_PRN_PAP2 set [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 D7 27 00 03 00 00 00 FF 0F 16 [19:39:44]state=0 [19:39:44]No paper [19:39:44]Cover opened [19:39:47]int [19:39:47]Write to MH i2c: 01 00 00 D8 27 FF [19:39:47]*** FLAG_PRN_PAP1 reset [19:39:47]*** FLAG_PRN_PAP2 reset [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: 01 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: 01 07 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 FF 0F 14 [19:39:47]state=3 [19:39:47]Cover closed [19:39:47]OFD Sender: No OFD packet to send [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 D9 27 00 [19:39:49]*** FLAG_PRN_KEY set [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 D9 27 00 08 00 00 00 FF 0F 1D [19:39:49]state=0 [19:39:49]Key pressed [19:39:49]Feed [19:39:49]Write to MH i2c: D8 00 00 DA 27 D8 [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 01 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 01 00 DA 27 00 D9 [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 DB 27 02 [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 DB 27 00 48 00 00 00 3C 00 8D [19:39:49]state=2 [19:39:49]Key pressed [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 DC 27 03 [19:39:49]*** FLAG_PRN_KEY reset [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 DC 27 00 00 00 00 00 F8 0F 11 [19:39:49]state=2 [19:39:49]Stop feed [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 DD 27 04 [19:39:49]*** FLAG_PRN_KEY set [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 DD 27 00 08 00 00 00 FF 0F 21 [19:39:49]state=0 [19:39:49]Key pressed [19:39:49]Feed [19:39:49]Write to MH i2c: D8 00 00 DE 27 DC [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 01 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: D8 01 00 DE 27 00 DD [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 DF 27 06 [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 DF 27 00 48 00 00 00 3C 00 91 [19:39:49]state=2 [19:39:49]Key pressed [19:39:49]int [19:39:49]Write to MH i2c: 01 00 00 E0 27 07 [19:39:49]*** FLAG_PRN_KEY reset [19:39:49]Write i2c OK [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 [19:39:49]MH_I2C_Read... [19:39:49]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 F6 0F 13 [19:39:49]state=2 [19:39:49]Stop feed [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:05]accept exits with 9 [19:40:05]New connection [19:40:05]New thread 3067174244 created [19:40:05]Thread 3067030884 joined [19:40:05]Waiting for new connection... [19:40:05] Sock 9.Parse request [19:40:05]Sock 9.Check first char [19:40:05]Sock 9.First char is OK [19:40:05]request: POST /json_proto HTTP/1.0 [19:40:05]Method: POST [19:40:05]URL: /json_proto [19:40:05]Method is POST - this is cgi request [19:40:05]url: /json_proto [19:40:05]query_string will be loaded in cgi processing [19:40:05]execute_cgi json_proto POST (null) [19:40:05]execute_cgi path=json_proto method=POST [19:40:05]POST find Content-Length [19:40:05]Host: 172.17.41.195:8080 [19:40:05]Content-Length: 679 [19:40:05]Content-Type: application/json [19:40:05] [19:40:05]POST finish read [19:40:05]Found Content-Length = 679 [19:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507330", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:05]execute_script... [19:40: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)507330", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:05]POST & json_proto [19:40:05]process_json_proto [19:40:05]json parsed OK: [19:40:05]protocol is kg_v1.0 [19:40:05]action value=close_receipt [19:40:05]process_action close_receipt [19:40:05]cmd_close_receipt [19:40:05]MH_GetDate [19:40:05]Write to MH i2c: F0 00 00 E1 27 F7 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: F0 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: F0 09 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: F0 09 00 E1 27 00 97 0F 45 66 FC 21 6F 64 41 [19:40:05]GetLastDocTimeStamp 1715801977 [19:40:05]current date 1715802007 [19:40:05]FM_GetShiftState [19:40:05]SAM_PROTO_GetShiftState [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 01 00 [19:40:05]Write to MH i2c: E2 08 00 E2 27 80 13 01 00 00 00 00 00 86 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 0E 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 0E 00 E2 27 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 31 [19:40:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:40:05]wFMCommunicate OK [19:40:05]SAM_PROTO_GetShiftState done [19:40:05]FM_GetShiftState done [19:40:05]opened in 1715732471 [19:40:05]opened+sec_in_day 1715818871 [19:40:05]quantity*price = 260030 [19:40:05]sum+1 = 260032 [19:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 168 15.05.2024 19:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67350 ФПД: 166719775070824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T194007&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67350&fm=166719775070824&tin=02508201610067®Number=0000000000091845&sum=260000 [19:40:06]StoreToDocumentArchive [19:40:06]shift 356 fd 67350 [19:40:06]save to /storage/0356/doc_00067350 [19:40:06]save last doc name /storage/0356/doc_00067350 to /storage/kkm_last_doc_name [19:40:06]save OK [19:40:06]Clear old archive folders... [19:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:06]tlvbuf is 00B0FD10 [19:40:06]SAM_PROTO_ClearQueue [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 09 00 00 [19:40:06]Write to MH i2c: E2 08 00 EF 27 80 09 00 00 00 00 00 00 88 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 EF 27 00 90 00 8A [19:40:06]RAPDU: 90 00 [19:40:06]wFMCommunicate OK [19:40:06]SAM_PROTO_ClearQueue done [19:40:06]KKMCreateOFDPacket [19:40:06]OFDProtocolAddRootSTLVToBuf [19:40:06]FM_MakeSignedData [19:40:06]FM_MakeSignedData [19:40:06]SAM_PROTO_SignData [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 0D 01 02 [19:40:06]Write to MH i2c: E2 08 00 F0 27 80 0D 01 02 00 00 00 00 90 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 F0 27 00 90 00 8B [19:40:06]RAPDU: 90 00 [19:40:06]wFMCommunicate OK [19:40:06]wFMCommunicate request_size=255 [19:40:06]MH_SAM_APDU [19:40: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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 97 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 97 A1 78 F8 [19:40:06]Write to MH i2c: E2 02 01 F1 27 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 97 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 97 A1 78 F8 00 00 1D [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 F1 27 00 90 00 8C [19:40:06]RAPDU: 90 00 [19:40:06]wFMCommunicate OK [19:40:06]wFMCommunicate request_size=7 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 0D 02 02 02 5A 68 [19:40:06]Write to MH i2c: E2 0A 00 F2 27 80 0D 02 02 02 00 5A 68 00 00 59 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 03 00 F2 27 00 90 00 8D [19:40:06]RAPDU: 90 00 [19:40:06]wFMCommunicate OK [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 0D 03 02 [19:40:06]Write to MH i2c: E2 08 00 F3 27 80 0D 03 02 00 00 00 00 95 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:06]Read from MH i2c: E2 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0B 00 [19:40:06]MH_I2C_Read... [19:40:06]Read from MH i2c: E2 0B 00 F3 27 00 2B BA 96 DE 65 5E 5B 8F 90 00 9C [19:40:06]RAPDU: 2B BA 96 DE 65 5E 5B 8F 90 00 [19:40:06]wFMCommunicate OK [19:40:06]SAM_PROTO_SignData done [19:40:06]FM_MakeSignedData done [19:40:06]CreateOFDProtocolMessage [19:40:06]wFMCommunicate request_size=4 [19:40:06]MH_SAM_APDU [19:40:06]CAPDU: 80 11 00 00 [19:40:06]Write to MH i2c: E2 08 00 F4 27 80 11 00 00 00 00 00 00 95 [19:40:06]Write i2c OK [19:40:06]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 17 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 17 00 F4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [19:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:40:07]wFMCommunicate OK [19:40:07]CreateOFDProtocolMessage done [19:40:07]OFDSenderStorePacket 67350 [19:40:07]StoreOFDPacket docnum=67350 [19:40: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 5A 34 04 01 3D 21 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 97 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 97 A1 78 F8 5A 68 2B BA 96 DE 65 5E 5B 8F [19:40:07]CheckFolder [19:40:07]dirname=/storage/ofd_packets [19:40:07]CheckFolder done [19:40:07]ProducePacketName [19:40:07]name=ofd_packets/00067350 [19:40:07]NVStorageSaveData ofd_packets/00067350 [19:40:07]File name is /storage/ofd_packets/00067350 [19:40:07]Write 298 bytes [19:40:07]NVStorageSaveData done [19:40:07]OFDSenderStorePacket done [19:40:07]KKMCreateOFDPacket done [19:40:07]NVStorageSaveData kkm_last_timestamp [19:40:07]File name is /storage/kkm_last_timestamp [19:40:07]Write 4 bytes [19:40:07]NVStorageSaveData done [19:40:07]ExternCall_PrintAddStr [19:40:07]wPrintStart [19:40:07]Write to MH i2c: 01 00 00 F5 27 1C [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 07 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 07 00 F5 27 00 00 00 00 00 FF 0F 31 [19:40:07]RasterBufferAndPrint [19:40:07]line Счет N : (1)507330 [19:40:07]line ИНН: 02508201610067 [19:40:07]line Контрольно-Кассовый Чек [19:40:07]line ПРОДАЖА [19:40:07]line ТРК (МРК, ГНК) : 21 [19:40:07]line Товар: 2710194210 [19:40:07]line ДТ-К-5 [19:40:07]line 34.810 * 74.70 [19:40:07]line = 2600.31 [19:40:07]line НДС 12% НСП 1% [19:40:07]line > о реализуемом товаре [19:40:07]line ОКРУГЛЕНИЕ: -0.31 [19:40:07]line ИТОГО: 2600.00 [19:40:07]line Внесено: 2600.00 [19:40:07]line СДАЧА: 0.00 [19:40:07]line НСП 1% : 23.01 [19:40:07]line НДС 12% : 276.14 [19:40:07]line Наличными: 2600.00 [19:40:07]line Безнал.: 0.00 [19:40:07]line Место: АЗС № 91 "Партнер Нефть" [19:40:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:40:07]line СНО: Общий режим [19:40:07]line Чек 168 15.05.2024 19:40 [19:40:07]line Смена: 356 ФФД: 1.0 [19:40:07]line ЗНМ: 0300000119 [19:40:07]line РНМ: 0000000000091845 [19:40:07]line Версия ККМ: 001 [19:40:07]line ФМ: 0000000000871829 [19:40:07]line ФД: 67350 [19:40:07]line ФПД: 166719775070824 [19:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T194007&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67350&fm=166719775070824&tin=02508201610067®Number=0000000000091845&sum=260000 [19:40:07]OFD Sender: Processing packet 67350 [packets to send 35, broken 34] [19:40:07]ProducePacketName [19:40:07]name=ofd_packets/00067350 [19:40:07]OFD Sender: To server: pG, [19:40:07]CommunicateWithHost lk.salyk.kg:30040 [19:40:07]ConnectInit lk.salyk.kg [19:40:07]written 0, free lines is 4095 [19:40:07]Connected sock=10 [19:40: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 5A 34 04 01 3D 21 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 97 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 97 A1 78 F8 5A 68 2B BA 96 DE 65 5E 5B 8F [19:40: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 CD 00 47 00 B9 FC 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 07 01 00 F4 03 04 00 74 B7 44 66 B6 04 01 00 00 7A 09 A0 22 16 55 63 15 [19:40:07]CommunicateWithHost err = 0 [19:40:07]CheckOFDResponse [19:40:07]1017 (14) - 77093643461234 [19:40:07]1041 (16) - 0000000000871829 [19:40:07]1040 (4) - 67350 [19:40:07]1012 (4) - 15.05.2024 13:24 [19:40:07]1206 (1) - 0 [19:40:07]OFD Sender: Remove packet 67350 [19:40:07]ProducePacketName [19:40:07]name=ofd_packets/00067350 [19:40:07]NVStorageDeleteData [19:40:07]Write to MH i2c: 01 00 00 1F 28 47 [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 07 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 07 00 1F 28 00 00 00 00 00 EC 0C 46 [19:40:07]RasterBufferAndPrint [19:40:07]line [19:40:07]line [19:40:07]line [19:40:07]line [19:40:07]line [19:40:07]written 0, free lines is 3314 [19:40:07]MH_Cut [19:40:07]Write to MH i2c: D1 01 00 26 28 01 20 [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: D1 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: D1 01 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: D1 01 00 26 28 00 1F [19:40:07]Write to MH i2c: 01 00 00 27 28 4F [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:08]OFD Sender: No OFD packet to send [19:40:08]*** Cut start [19:40:08]*** Purtial cut [19:40:08]*** Stage 1: CUTSNS_PIN = 1 [19:40:08]Read from MH i2c: 01 [19:40:08]MH_I2C_Read... [19:40:08]*** Stop cut motor [19:40:08]*** Cut end [19:40:08]Read from MH i2c: 01 07 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 27 28 00 00 00 00 00 FF 0F 64 [19:40:08]process_action close_receipt done [19:40:08]requested_data is exist [19:40:08]produce_requested_data [19:40:08]requested_item fm.sn is exist - process it [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 11 00 00 [19:40:08]Write to MH i2c: E2 08 00 28 28 80 11 00 00 00 00 00 00 CA [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 28 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [19:40: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:40:08]wFMCommunicate OK [19:40:08]requested_item fd.num is exist - process it [19:40:08]SAM_PROTO_GetFieldsCounters [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 13 00 00 [19:40:08]Write to MH i2c: E2 08 00 29 28 80 13 00 00 00 00 00 00 CD [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:09]Read from MH i2c: E2 [19:40:09]MH_I2C_Read... [19:40:09]Read from MH i2c: E2 62 00 [19:40:09]MH_I2C_Read... [19:40:09]Read from MH i2c: E2 62 00 29 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 16 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:40: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 16 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:09]wFMCommunicate OK [19:40:09]SAM_PROTO_GetFieldsCounters done [19:40:09]requested_item shift.num is exist - process it [19:40:09]requested_item shift.opened is exist - process it [19:40:09]req_shift_opened [19:40:09]FM_GetShiftState [19:40:09]SAM_PROTO_GetShiftState [19:40:09]wFMCommunicate request_size=4 [19:40:09]MH_SAM_APDU [19:40:09]CAPDU: 80 13 01 00 [19:40:09]Write to MH i2c: E2 08 00 2A 28 80 13 01 00 00 00 00 00 CF [19:40:09]Write i2c OK [19:40:09]MH_I2C_Read... [19:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:09]Read from MH i2c: E2 [19:40:09]MH_I2C_Read... [19:40:09]Read from MH i2c: E2 0E 00 [19:40:09]MH_I2C_Read... [19:40:09]Read from MH i2c: E2 0E 00 2A 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7A [19:40:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:40:09]wFMCommunicate OK [19:40:09]SAM_PROTO_GetShiftState done [19:40:09]FM_GetShiftState done [19:40:09]req_shift_opened done [19:40:09]requested_item shift.open_date is exist - process it [19:40:09]req_shift_open_date [19:40:09]req_shift_open_date done [19:40:09]produce_requested_data done [19:40:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67350,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:40:09]process_action_free close_receipt [19:40:09]json_value_free [19:40:09]json_value_free done [19:40:09]process_json_proto returns [19:40:09]Send response to host [19:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67350,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:40:09]free response buf [19:40:09]execute_script done [19:40:09]execute_script returns [19:40:09]free content buf [19:40:09]Sock 9.Close socket [19:40:09]Sock 9.Thread stoped [19:40:11]accept exits with 7 [19:40:11]New connection [19:40:11]New thread 3067030884 created [19:40:11]Thread 3067174244 joined [19:40:11]Waiting for new connection... [19:40:11] Sock 7.Parse request [19:40:11]Sock 7.Check first char [19:40:11]Sock 7.First char is OK [19:40:11]request: POST /json_proto HTTP/1.0 [19:40:11]Method: POST [19:40:11]URL: /json_proto [19:40:11]Method is POST - this is cgi request [19:40:11]url: /json_proto [19:40:11]query_string will be loaded in cgi processing [19:40:11]execute_cgi json_proto POST (null) [19:40:11]execute_cgi path=json_proto method=POST [19:40:11]POST find Content-Length [19:40:11]Host: 172.17.41.195:8080 [19:40:11]Content-Length: 735 [19:40:11]Content-Type: application/json [19:40:11] [19:40:11]POST finish read [19:40:11]Found Content-Length = 735 [19:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67350, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507330", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]execute_script... [19:40:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 67350, "base_FM": "0000000000871829", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507330", "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" : 34.810, "sum" : 2600.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]POST & json_proto [19:40:11]process_json_proto [19:40:11]json parsed OK: [19:40:11]protocol is kg_v1.0 [19:40:11]action value=close_receipt [19:40:11]process_action close_receipt [19:40:11]cmd_close_receipt [19:40:11]MH_GetDate [19:40:11]Write to MH i2c: F0 00 00 2B 28 42 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 2B 28 00 9D 0F 45 66 FC 21 6F 64 92 [19:40:11]GetLastDocTimeStamp 1715802007 [19:40:11]current date 1715802013 [19:40:11]FM_GetShiftState [19:40:11]SAM_PROTO_GetShiftState [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 13 01 00 [19:40:11]Write to MH i2c: E2 08 00 2C 28 80 13 01 00 00 00 00 00 D1 [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 2C 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7C [19:40:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:40:11]wFMCommunicate OK [19:40:11]SAM_PROTO_GetShiftState done [19:40:11]FM_GetShiftState done [19:40:11]opened in 1715732471 [19:40:11]opened+sec_in_day 1715818871 [19:40:11]quantity*price = 260030 [19:40:11]sum+1 = 260032 [19:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2600.00 НСП 1% : 23.01 НДС 12% : 276.14 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 169 15.05.2024 19:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФД осн.: 67350 ФМ осн.: 0000000000871829 ФМ: 0000000000871829 ФД: 67351 ФПД: 116648856313442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T194013&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67351&fm=116648856313442&tin=02508201610067®Number=0000000000091845&sum=260000 [19:40:12]StoreToDocumentArchive [19:40:12]shift 356 fd 67351 [19:40:12]save to /storage/0356/doc_00067351 [19:40:12]save last doc name /storage/0356/doc_00067351 to /storage/kkm_last_doc_name [19:40:12]save OK [19:40:12]Clear old archive folders... [19:40:12]Write to MH i2c: 01 00 00 3E 28 66 [19:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:40:12]tlvbuf is 00BEDD00 [19:40:12]SAM_PROTO_ClearQueue [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 09 00 00 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 3E 28 00 00 00 00 00 FF 0F 7B [19:40:12]state=0 [19:40:12]Write to MH i2c: E2 08 00 3F 28 80 09 00 00 00 00 00 00 D9 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_ClearQueue done [19:40:12]KKMCreateOFDPacket [19:40:12]OFDProtocolAddRootSTLVToBuf [19:40:12]FM_MakeSignedData [19:40:12]FM_MakeSignedData [19:40:12]SAM_PROTO_SignData [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 01 02 [19:40:12]Write to MH i2c: E2 08 00 40 28 80 0D 01 02 00 00 00 00 E1 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 40 28 00 90 00 DC [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=255 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9D 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 16 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 [19:40:12]Write to MH i2c: E2 02 01 41 28 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9D 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 16 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 11 04 10 00 30 30 30 30 00 00 BF [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:13]OFD Sender: No OFD packet to send [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=35 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 07 01 00 35 04 06 00 6A 17 6D A4 DE 62 [19:40:13]Write to MH i2c: E2 26 00 42 28 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 07 01 00 35 04 06 00 6A 17 6D A4 DE 62 00 00 CB [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [19:40:13]RAPDU: 90 00 [19:40:13]wFMCommunicate OK [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 0D 03 02 [19:40:13]Write to MH i2c: E2 08 00 43 28 80 0D 03 02 00 00 00 00 E6 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 0B 00 43 28 00 66 E5 20 46 02 CE 5C A2 90 00 66 [19:40:13]RAPDU: 66 E5 20 46 02 CE 5C A2 90 00 [19:40:13]wFMCommunicate OK [19:40:13]SAM_PROTO_SignData done [19:40:13]FM_MakeSignedData done [19:40:13]CreateOFDProtocolMessage [19:40:13]wFMCommunicate request_size=4 [19:40:13]MH_SAM_APDU [19:40:13]CAPDU: 80 11 00 00 [19:40:13]Write to MH i2c: E2 08 00 44 28 80 11 00 00 00 00 00 00 E6 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:13]Read from MH i2c: E2 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: E2 17 00 44 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [19:40: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:40:13]wFMCommunicate OK [19:40:13]CreateOFDProtocolMessage done [19:40:13]OFDSenderStorePacket 67351 [19:40:13]StoreOFDPacket docnum=67351 [19:40: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 28 01 00 00 86 81 20 01 65 F9 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9D 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 16 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 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 07 01 00 35 04 06 00 6A 17 6D A4 DE 62 66 E5 20 46 02 CE 5C A2 [19:40:13]CheckFolder [19:40:13]dirname=/storage/ofd_packets [19:40:13]CheckFolder done [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00067351 [19:40:13]NVStorageSaveData ofd_packets/00067351 [19:40:13]File name is /storage/ofd_packets/00067351 [19:40:13]Write 326 bytes [19:40:13]NVStorageSaveData done [19:40:13]OFDSenderStorePacket done [19:40:13]KKMCreateOFDPacket done [19:40:13]NVStorageSaveData kkm_last_timestamp [19:40:13]File name is /storage/kkm_last_timestamp [19:40:13]Write 4 bytes [19:40:13]NVStorageSaveData done [19:40:13]ExternCall_PrintAddStr [19:40:13]wPrintStart [19:40:13]Write to MH i2c: 01 00 00 45 28 6D [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FF 0F 82 [19:40:13]RasterBufferAndPrint [19:40:13]line Счет N : (1)507330 [19:40:13]line ИНН: 02508201610067 [19:40:13]line Контрольно-Кассовый Чек [19:40:13]line ВОЗВРАТ ПРОДАЖИ [19:40:13]line ТРК (МРК, ГНК) : 21 [19:40:13]line Товар: 2710194210 [19:40:13]line ДТ-К-5 [19:40:13]line 34.810 * 74.70 [19:40:13]line = 2600.31 [19:40:13]line НДС 12% НСП 1% [19:40:13]line > о реализуемом товаре [19:40:13]line ОКРУГЛЕНИЕ: -0.31 [19:40:13]line ИТОГО: 2600.00 [19:40:13]line НСП 1% : 23.01 [19:40:13]line НДС 12% : 276.14 [19:40:13]line Наличными: 2600.00 [19:40:13]line Безнал.: 0.00 [19:40:13]line Место: АЗС № 91 "Партнер Нефть" [19:40:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:40:13]line СНО: Общий режим [19:40:13]line Чек 169 15.05.2024 19:40 [19:40:13]line Смена: 356 ФФД: 1.0 [19:40:13]line ЗНМ: 0300000119 [19:40:13]line РНМ: 0000000000091845 [19:40:13]line Версия ККМ: 001 [19:40:13]line ФД осн.: 67350 [19:40:13]line ФМ осн.: 0000000000871829 [19:40:13]line ФМ: 0000000000871829 [19:40:13]line ФД: 67351 [19:40:13]line ФПД: 116648856313442 [19:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T194013&type=2&operation_type=1&fn_number=0000000000871829&fd_number=67351&fm=116648856313442&tin=02508201610067®Number=0000000000091845&sum=260000 [19:40:13]written 0, free lines is 4095 [19:40:13]OFD Sender: Processing packet 67351 [packets to send 35, broken 34] [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00067351 [19:40:13]OFD Sender: To server: pG, [19:40:13]CommunicateWithHost lk.salyk.kg:30040 [19:40:13]ConnectInit lk.salyk.kg [19:40:13]Connected sock=10 [19:40: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 28 01 00 00 86 81 20 01 65 F9 5A 03 01 00 03 00 14 01 1E 04 01 00 02 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 FA 87 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 BF F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9D 0F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 27 04 04 00 16 07 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 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 07 01 00 35 04 06 00 6A 17 6D A4 DE 62 66 E5 20 46 02 CE 5C A2 [19:40: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 16 50 47 00 5E 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 17 07 01 00 F4 03 04 00 7A B7 44 66 B6 04 01 00 00 B9 54 D5 BA F4 A7 49 27 [19:40:13]CommunicateWithHost err = 0 [19:40:13]CheckOFDResponse [19:40:13]1017 (14) - 77093643461234 [19:40:13]1041 (16) - 0000000000871829 [19:40:13]1040 (4) - 67351 [19:40:13]1012 (4) - 15.05.2024 13:24 [19:40:13]1206 (1) - 0 [19:40:13]OFD Sender: Remove packet 67351 [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00067351 [19:40:13]NVStorageDeleteData [19:40:13]Write to MH i2c: 01 00 00 6F 28 97 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 03 0D AE [19:40:13]RasterBufferAndPrint [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]written 0, free lines is 3345 [19:40:13]MH_Cut [19:40:13]Write to MH i2c: D1 01 00 76 28 01 70 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 76 28 00 6F [19:40:13]Write to MH i2c: 01 00 00 77 28 9F [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:14]OFD Sender: No OFD packet to send [19:40:14]*** Cut start [19:40:14]*** Purtial cut [19:40:14]*** CUTSNS_PIN = 0 [19:40:14]*** Stage 1: CUTSNS_PIN = 1 [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]*** Stop cut motor [19:40:16]*** Cut end [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 77 28 00 00 00 00 00 FF 0F B4 [19:40:16]process_action close_receipt done [19:40:16]requested_data is exist [19:40:16]produce_requested_data [19:40:16]requested_item fm.sn is exist - process it [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 11 00 00 [19:40:16]Write to MH i2c: E2 08 00 78 28 80 11 00 00 00 00 00 00 1A [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 78 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [19:40: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:40:16]wFMCommunicate OK [19:40:16]requested_item fd.num is exist - process it [19:40:16]SAM_PROTO_GetFieldsCounters [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 00 00 [19:40:16]Write to MH i2c: E2 08 00 79 28 80 13 00 00 00 00 00 00 1D [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 79 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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [19:40: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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetFieldsCounters done [19:40:16]requested_item shift.num is exist - process it [19:40:16]requested_item shift.opened is exist - process it [19:40:16]req_shift_opened [19:40:16]FM_GetShiftState [19:40:16]SAM_PROTO_GetShiftState [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 01 00 [19:40:16]Write to MH i2c: E2 08 00 7A 28 80 13 01 00 00 00 00 00 1F [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 7A 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CA [19:40:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetShiftState done [19:40:16]FM_GetShiftState done [19:40:16]req_shift_opened done [19:40:16]requested_item shift.open_date is exist - process it [19:40:16]req_shift_open_date [19:40:16]req_shift_open_date done [19:40:16]produce_requested_data done [19:40:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:40:16]process_action_free close_receipt [19:40:16]json_value_free [19:40:16]json_value_free done [19:40:16]process_json_proto returns [19:40:16]Send response to host [19:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:40:16]free response buf [19:40:16]execute_script done [19:40:16]execute_script returns [19:40:16]free content buf [19:40:16]Sock 7.Close socket [19:40:16]Sock 7.Thread stoped [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]int [19:49:19]Write to MH i2c: 01 00 00 7B 28 A3 [19:49:19]*** FLAG_PRN_KEY set [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 7B 28 00 08 00 00 00 FF 0F C0 [19:49:19]state=0 [19:49:19]Key pressed [19:49:19]Feed [19:49:19]Write to MH i2c: D8 00 00 7C 28 7B [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: D8 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: D8 01 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: D8 01 00 7C 28 00 7C [19:49:19]int [19:49:19]Write to MH i2c: 01 00 00 7D 28 A5 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 7D 28 00 48 00 00 00 3C 00 30 [19:49:19]state=2 [19:49:19]Key pressed [19:49:19]OFD Sender: No OFD packet to send [19:49:19]int [19:49:19]Write to MH i2c: 01 00 00 7E 28 A6 [19:49:19]*** FLAG_PRN_KEY reset [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 7E 28 00 00 00 00 00 F7 0F B3 [19:49:19]state=2 [19:49:19]Stop feed [19:49:20]int [19:49:20]Write to MH i2c: 01 00 00 7F 28 A7 [19:49:20]*** FLAG_PRN_KEY set [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 7F 28 00 08 00 00 00 FF 0F C4 [19:49:20]state=0 [19:49:20]Key pressed [19:49:20]Feed [19:49:20]Write to MH i2c: D8 00 00 80 28 7F [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D8 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D8 01 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D8 01 00 80 28 00 80 [19:49:20]int [19:49:20]Write to MH i2c: 01 00 00 81 28 A9 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 81 28 00 48 00 00 00 3C 00 34 [19:49:20]state=2 [19:49:20]Key pressed [19:49:20]int [19:49:20]Write to MH i2c: 01 00 00 82 28 AA [19:49:20]*** FLAG_PRN_KEY reset [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: 01 07 00 82 28 00 00 00 00 00 F6 0F B6 [19:49:20]state=2 [19:49:20]Stop feed [19:49:22]int [19:49:22]Write to MH i2c: 01 00 00 83 28 AB [19:49:22]*** FLAG_PRN_PAP1 set [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 83 28 00 01 00 00 00 FF 0F C1 [19:49:22]state=0 [19:49:22]No paper [19:49:22]int [19:49:22]Write to MH i2c: 01 00 00 84 28 AC [19:49:22]*** FLAG_PRN_PAP2 set [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 84 28 00 03 00 00 00 FF 0F C4 [19:49:22]state=0 [19:49:22]No paper [19:49:22]Cover opened [19:49:22]accept exits with 9 [19:49:22]New connection [19:49:22]New thread 3067174244 created [19:49:22]Thread 3067030884 joined [19:49:22]Waiting for new connection... [19:49:22] Sock 9.Parse request [19:49:22]Sock 9.Check first char [19:49:22]Sock 9.First char is OK [19:49:22]request: POST /json_proto HTTP/1.0 [19:49:22]Method: POST [19:49:22]URL: /json_proto [19:49:22]Method is POST - this is cgi request [19:49:22]url: /json_proto [19:49:22]query_string will be loaded in cgi processing [19:49:22]execute_cgi json_proto POST (null) [19:49:22]execute_cgi path=json_proto method=POST [19:49:22]POST find Content-Length [19:49:22]Host: 172.17.41.195:8080 [19:49:22]Content-Length: 1174 [19:49:22]Content-Type: application/json [19:49:22] [19:49:22]POST finish read [19:49:22]Found Content-Length = 1174 [19:49: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)507331\u000A15.05.2024 19:31\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 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\u000A30085767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:22]execute_script... [19:49: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)507331\u000A15.05.2024 19:31\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 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\u000A30085767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:22]POST & json_proto [19:49:22]process_json_proto [19:49:22]json parsed OK: [19:49:22]protocol is kg_v1.0 [19:49:22]action value=print_text [19:49:22]process_action print_text [19:49:22]cmd_print_text [19:49:22]ExternCall_PrintAddStr [19:49:22]wPrintStart [19:49:22]Write to MH i2c: 01 00 00 85 28 AD [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 85 28 00 03 00 00 00 FF 0F C5 [19:49:22]RasterBufferAndPrint [19:49:22]line *****ТОВАРНЫЙ ЧЕК***** [19:49:22]line АЗС-91 [19:49:22]line Партнер нефть [19:49:22]line 02508201610067 [19:49:22]line Кассир : Арстанбеков Н. [19:49:22]line Счет N : (1)507331 [19:49:22]line 15.05.2024 19:31 [19:49:22]line ПРОДАЖА [19:49:22]line ТРК (МРК, ГНК): 33 [19:49:22]line Вид ГСМ : 2710124130 [19:49:22]line Аи-92-К-5 [19:49:22]line 30.000 x 66.80 [19:49:22]line ИТОГ: 2004.00 [19:49:22]line Тип оплаты: Талоны: ТК ГПНА Online [19:49:22]line 30085767 [19:49:22]line ______________________ [19:49:22]line (подпись) [19:49:22]written 0, free lines is 4095 [19:49:22]Error from MH - 05 [19:49:22]process_action_free print_text [19:49:22]json_value_free [19:49:22]json_value_free done [19:49:22]process_json_proto returns [19:49:22]Send response to host [19:49:22]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [19:49:22]free response buf [19:49:22]execute_script done [19:49:23]execute_script returns [19:49:23]free content buf [19:49:23]Sock 9.Close socket [19:49:23]Sock 9.Thread stoped [19:49:24]int [19:49:24]Write to MH i2c: 01 00 00 88 28 B0 [19:49:24]*** FLAG_PRN_PAP1 reset [19:49:24]*** FLAG_PRN_PAP2 reset [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 88 28 00 00 00 00 00 FF 0F C5 [19:49:24]state=3 [19:49:24]Cover closed [19:49:24]OFD Sender: No OFD packet to send [19:49:28]int [19:49:28]Write to MH i2c: 01 00 00 89 28 B1 [19:49:28]*** FLAG_PRN_KEY set [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 89 28 00 08 00 00 00 FF 0F CE [19:49:28]state=0 [19:49:28]Key pressed [19:49:28]Feed [19:49:28]Write to MH i2c: D8 00 00 8A 28 89 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D8 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D8 01 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: D8 01 00 8A 28 00 8A [19:49:28]int [19:49:28]Write to MH i2c: 01 00 00 8B 28 B3 [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 8B 28 00 48 00 00 00 3D 00 3F [19:49:28]state=2 [19:49:28]Key pressed [19:49:28]int [19:49:28]Write to MH i2c: 01 00 00 8C 28 B4 [19:49:28]*** FLAG_PRN_KEY reset [19:49:28]Write i2c OK [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 [19:49:28]MH_I2C_Read... [19:49:28]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 F6 0F C0 [19:49:28]state=2 [19:49:28]Stop feed [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:58]accept exits with 7 [19:49:58]New connection [19:49:58]New thread 3067030884 created [19:49:58]Thread 3067174244 joined [19:49:58]Waiting for new connection... [19:49:58] Sock 7.Parse request [19:49:58]Sock 7.Check first char [19:49:58]Sock 7.First char is OK [19:49:58]request: POST /json_proto HTTP/1.0 [19:49:58]Method: POST [19:49:58]URL: /json_proto [19:49:58]Method is POST - this is cgi request [19:49:58]url: /json_proto [19:49:58]query_string will be loaded in cgi processing [19:49:58]execute_cgi json_proto POST (null) [19:49:58]execute_cgi path=json_proto method=POST [19:49:58]POST find Content-Length [19:49:58]Host: 172.17.41.195:8080 [19:49:58]Content-Length: 215 [19:49:58]Content-Type: application/json [19:49:58] [19:49:58]POST finish read [19:49:58]Found Content-Length = 215 [19:49:58]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:49:58]execute_script... [19:49:58]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:49:58]POST & json_proto [19:49:58]process_json_proto [19:49:58]json parsed OK: [19:49:58]protocol is kg_v1.0 [19:49:58]action value=get_value [19:49:58]process_action get_value [19:49:58]cmd_get_value [19:49:58]process_action get_value done [19:49:58]requested_data is exist [19:49:58]produce_requested_data [19:49:58]requested_item kkm.sn is exist - process it [19:49:58]requested_item kkm.ver is exist - process it [19:49:58]requested_item fm.sn is exist - process it [19:49:58]wFMCommunicate request_size=4 [19:49:58]MH_SAM_APDU [19:49:58]CAPDU: 80 11 00 00 [19:49:58]Write to MH i2c: E2 08 00 8D 28 80 11 00 00 00 00 00 00 2F [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:58]Read from MH i2c: E2 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: E2 17 00 [19:49:58]MH_I2C_Read... [19:49:58]Read from MH i2c: E2 17 00 8D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [19: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 [19:49:58]wFMCommunicate OK [19:49:58]requested_item fd.num is exist - process it [19:49:58]SAM_PROTO_GetFieldsCounters [19:49:58]wFMCommunicate request_size=4 [19:49:58]MH_SAM_APDU [19:49:58]CAPDU: 80 13 00 00 [19:49:58]Write to MH i2c: E2 08 00 8E 28 80 13 00 00 00 00 00 00 32 [19:49:58]Write i2c OK [19:49:58]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 62 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 62 00 8E 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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:49: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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:59]wFMCommunicate OK [19:49:59]SAM_PROTO_GetFieldsCounters done [19:49:59]requested_item shift.num is exist - process it [19:49:59]requested_item shift.opened is exist - process it [19:49:59]req_shift_opened [19:49:59]FM_GetShiftState [19:49:59]SAM_PROTO_GetShiftState [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 13 01 00 [19:49:59]Write to MH i2c: E2 08 00 8F 28 80 13 01 00 00 00 00 00 34 [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 0E 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 0E 00 8F 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DF [19:49:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:49:59]wFMCommunicate OK [19:49:59]SAM_PROTO_GetShiftState done [19:49:59]FM_GetShiftState done [19:49:59]req_shift_opened done [19:49:59]requested_item shift.open_date is exist - process it [19:49:59]req_shift_open_date [19:49:59]req_shift_open_date done [19:49:59]produce_requested_data done [19:49:59]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:49:59]process_action_free get_value [19:49:59]json_value_free [19:49:59]json_value_free done [19:49:59]process_json_proto returns [19:49:59]Send response to host [19:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:49:59]free response buf [19:49:59]execute_script done [19:49:59]execute_script returns [19:49:59]free content buf [19:49:59]Sock 7.Close socket [19:49:59]Sock 7.Thread stoped [19:49:59]accept exits with 9 [19:49:59]New connection [19:49:59]New thread 3067174244 created [19:49:59]Thread 3067030884 joined [19:49:59]Waiting for new connection... [19:49:59] Sock 9.Parse request [19:49:59]Sock 9.Check first char [19:49:59]Sock 9.First char is OK [19:49:59]request: POST /json_proto HTTP/1.0 [19:49:59]Method: POST [19:49:59]URL: /json_proto [19:49:59]Method is POST - this is cgi request [19:49:59]url: /json_proto [19:49:59]query_string will be loaded in cgi processing [19:49:59]execute_cgi json_proto POST (null) [19:49:59]execute_cgi path=json_proto method=POST [19:49:59]POST find Content-Length [19:49:59]Host: 172.17.41.195:8080 [19:49:59]Content-Length: 331 [19:49:59]Content-Type: application/json [19:49:59] [19:49:59]POST finish read [19:49:59]Found Content-Length = 331 [19:49:59]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:49:59]execute_script... [19:49:59]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:49:59]POST & json_proto [19:49:59]process_json_proto [19:49:59]json parsed OK: [19:49:59]protocol is kg_v1.0 [19:49:59]action value=get_value [19:49:59]process_action get_value [19:49:59]cmd_get_value [19:49:59]process_action get_value done [19:49:59]requested_data is exist [19:49:59]produce_requested_data [19:49:59]requested_item fm.sale.total is exist - process it [19:49:59]SAM_PROTO_GetFMData [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 13 03 00 [19:49:59]Write to MH i2c: E2 08 00 90 28 80 13 03 00 00 00 00 00 37 [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:49:59]Read from MH i2c: E2 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 FD 00 [19:49:59]MH_I2C_Read... [19:49:59]Read from MH i2c: E2 FD 00 90 28 00 C6 04 85 04 C2 04 6E 04 04 00 4F 04 01 00 69 04 A3 00 6F 04 04 00 A7 03 01 00 B1 04 05 00 CB 86 5A 1A 03 70 04 05 00 3C 42 24 BF 02 72 04 04 00 8F 44 36 5B 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 AF 21 5E 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 A9 C3 07 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 44 [19:49:59]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4F 04 01 00 69 04 A3 00 6F 04 04 00 A7 03 01 00 B1 04 05 00 CB 86 5A 1A 03 70 04 05 00 3C 42 24 BF 02 72 04 04 00 8F 44 36 5B 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 AF 21 5E 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 A9 C3 07 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [19:49:59]wFMCommunicate OK [19:49:59]wFMCommunicate request_size=4 [19:49:59]MH_SAM_APDU [19:49:59]CAPDU: 80 17 00 00 [19:49:59]Write to MH i2c: E2 08 00 91 28 80 17 00 00 00 00 00 00 39 [19:49:59]Write i2c OK [19:49:59]MH_I2C_Read... [19:49:59]OFD Sender: No OFD packet to send [19:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:00]Read from MH i2c: E2 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 91 28 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 5D [19:50:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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:50:00]wFMCommunicate OK [19:50:00]wFMCommunicate request_size=4 [19:50:00]MH_SAM_APDU [19:50:00]CAPDU: 80 17 00 00 [19:50:00]Write to MH i2c: E2 08 00 92 28 80 17 00 00 00 00 00 00 3A [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:00]Read from MH i2c: E2 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 92 28 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 61 [19:50:00]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:50:00]wFMCommunicate OK [19:50:00]wFMCommunicate request_size=4 [19:50:00]MH_SAM_APDU [19:50:00]CAPDU: 80 17 00 00 [19:50:00]Write to MH i2c: E2 08 00 93 28 80 17 00 00 00 00 00 00 3B [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:00]Read from MH i2c: E2 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 FD 00 93 28 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B6 [19:50:00]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:50:00]wFMCommunicate OK [19:50:00]wFMCommunicate request_size=4 [19:50:00]MH_SAM_APDU [19:50:00]CAPDU: 80 17 00 00 [19:50:00]Write to MH i2c: E2 08 00 94 28 80 17 00 00 00 00 00 00 3C [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:50:00]Read from MH i2c: E2 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 E3 00 [19:50:00]MH_I2C_Read... [19:50:00]Read from MH i2c: E2 E3 00 94 28 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [19:50:00]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:50:00]wFMCommunicate OK [19:50:00]SAM_PROTO_GetFMData done [19:50:00]requested_item fm.sale_refund.total is exist - process it [19:50:00]requested_item fm.buy.total is exist - process it [19:50:00]requested_item shift.sale.total is exist - process it [19:50:00]SAM_PROTO_GetShiftData [19:50:00]wFMCommunicate request_size=4 [19:50:00]MH_SAM_APDU [19:50:00]CAPDU: 80 13 02 00 [19:50:00]Write to MH i2c: E2 08 00 95 28 80 13 02 00 00 00 00 00 3B [19:50:00]Write i2c OK [19:50:00]MH_I2C_Read... [19:50:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:50:01]Read from MH i2c: E2 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 95 28 00 BB 04 AA 04 B7 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A6 00 00 00 B1 04 04 00 2D CE 4A 01 70 04 03 00 60 DC 5E 72 04 03 00 CD F1 EB 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 22 23 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 76 ED 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 DA [19:50:01]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A6 00 00 00 B1 04 04 00 2D CE 4A 01 70 04 03 00 60 DC 5E 72 04 03 00 CD F1 EB 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 22 23 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 76 ED 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:50:01]wFMCommunicate OK [19:50:01]wFMCommunicate request_size=4 [19:50:01]MH_SAM_APDU [19:50:01]CAPDU: 80 17 00 00 [19:50:01]Write to MH i2c: E2 08 00 96 28 80 17 00 00 00 00 00 00 3E [19:50:01]Write i2c OK [19:50:01]MH_I2C_Read... [19:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:01]Read from MH i2c: E2 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 96 28 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [19:50:01]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:50:01]wFMCommunicate OK [19:50:01]wFMCommunicate request_size=4 [19:50:01]MH_SAM_APDU [19:50:01]CAPDU: 80 17 00 00 [19:50:01]Write to MH i2c: E2 08 00 97 28 80 17 00 00 00 00 00 00 3F [19:50:01]Write i2c OK [19:50:01]MH_I2C_Read... [19:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:01]Read from MH i2c: E2 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 [19:50:01]MH_I2C_Read... [19:50:01]Read from MH i2c: E2 FD 00 97 28 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [19:50:02]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:50:02]wFMCommunicate OK [19:50:02]wFMCommunicate request_size=4 [19:50:02]MH_SAM_APDU [19:50:02]CAPDU: 80 17 00 00 [19:50:02]Write to MH i2c: E2 08 00 98 28 80 17 00 00 00 00 00 00 40 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 FD 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 FD 00 98 28 00 00 00 EF 03 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 90 00 B5 [19:50:02]RAPDU: 00 00 EF 03 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 90 00 [19:50:02]wFMCommunicate OK [19:50:02]wFMCommunicate request_size=4 [19:50:02]MH_SAM_APDU [19:50:02]CAPDU: 80 17 00 00 [19:50:02]Write to MH i2c: E2 08 00 99 28 80 17 00 00 00 00 00 00 41 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [19:50:02]Read from MH i2c: E2 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 D8 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: E2 D8 00 99 28 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 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 28 [19:50:02]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 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:50:02]wFMCommunicate OK [19:50:02]SAM_PROTO_GetShiftData done [19:50:02]requested_item shift.sale.total_cash is exist - process it [19:50:02]requested_item shift.sale_refund.total is exist - process it [19:50:02]requested_item shift.sale_refund.total_cash is exist - process it [19:50:02]requested_item shift.buy.total is exist - process it [19:50:02]requested_item shift.buy.total_cash is exist - process it [19:50:02]produce_requested_data done [19:50:02]produce_requested_data return {"fm.sale.total":133270422.51,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":216796.61,"shift.sale.total_cash":62168.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:50:02]process_action_free get_value [19:50:02]json_value_free [19:50:02]json_value_free done [19:50:02]process_json_proto returns [19:50:02]Send response to host [19:50:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133270422.51,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":216796.61,"shift.sale.total_cash":62168.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:50:02]free response buf [19:50:02]execute_script done [19:50:02]execute_script returns [19:50:02]free content buf [19:50:02]Sock 9.Close socket [19:50:02]Sock 9.Thread stoped [19:50:02]accept exits with 7 [19:50:02]New connection [19:50:02]New thread 3067030884 created [19:50:02]Thread 3067174244 joined [19:50:02]Waiting for new connection... [19:50:02] Sock 7.Parse request [19:50:02]Sock 7.Check first char [19:50:02]Sock 7.First char is OK [19:50:02]request: POST /json_proto HTTP/1.0 [19:50:02]Method: POST [19:50:02]URL: /json_proto [19:50:02]Method is POST - this is cgi request [19:50:02]url: /json_proto [19:50:02]query_string will be loaded in cgi processing [19:50:02]execute_cgi json_proto POST (null) [19:50:02]execute_cgi path=json_proto method=POST [19:50:02]POST find Content-Length [19:50:02]Host: 172.17.41.195:8080 [19:50:02]Content-Length: 1174 [19:50:02]Content-Type: application/json [19:50:02] [19:50:02]POST finish read [19:50:02]Found Content-Length = 1174 [19:50: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)507331\u000A15.05.2024 19:32\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 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\u000A30085767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:02]execute_script... [19:50: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)507331\u000A15.05.2024 19:32\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 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\u000A30085767\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:02]POST & json_proto [19:50:02]process_json_proto [19:50:02]json parsed OK: [19:50:02]protocol is kg_v1.0 [19:50:02]action value=print_text [19:50:02]process_action print_text [19:50:02]cmd_print_text [19:50:02]ExternCall_PrintAddStr [19:50:02]wPrintStart [19:50:02]Write to MH i2c: 01 00 00 9A 28 C2 [19:50:02]Write i2c OK [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 07 00 [19:50:02]MH_I2C_Read... [19:50:02]Read from MH i2c: 01 07 00 9A 28 00 00 00 00 00 FF 0F D7 [19:50:02]RasterBufferAndPrint [19:50:02]line *****ТОВАРНЫЙ ЧЕК***** [19:50:02]line АЗС-91 [19:50:02]line Партнер нефть [19:50:02]line 02508201610067 [19:50:02]line Кассир : Арстанбеков Н. [19:50:02]line Счет N : (1)507331 [19:50:02]line 15.05.2024 19:32 [19:50:02]line ПРОДАЖА [19:50:02]line ТРК (МРК, ГНК): 33 [19:50:02]line Вид ГСМ : 2710124130 [19:50:02]line Аи-92-К-5 [19:50:02]line 30.000 x 66.80 [19:50:02]line ИТОГ: 2004.00 [19:50:02]line Тип оплаты: Талоны: ТК ГПНА Online [19:50:02]line 30085767 [19:50:02]line ______________________ [19:50:03]line (подпись) [19:50:03]written 0, free lines is 4095 [19:50:03]Write to MH i2c: 01 00 00 AE 28 D6 [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: 01 07 00 AE 28 00 00 00 00 00 17 0E 02 [19:50:03]RasterBufferAndPrint [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]line [19:50:03]written 0, free lines is 3616 [19:50:03]MH_Cut [19:50:03]Write to MH i2c: D1 01 00 B5 28 01 AF [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 01 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: D1 01 00 B5 28 00 AE [19:50:03]Write to MH i2c: 01 00 00 B6 28 DE [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]*** Cut start [19:50:03]*** Purtial cut [19:50:03]*** Stage 1: CUTSNS_PIN = 1 [19:50:04]Read from MH i2c: 01 [19:50:04]MH_I2C_Read... [19:50:04]*** Stop cut motor [19:50:04]*** Cut end [19:50:04]Read from MH i2c: 01 07 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: 01 07 00 B6 28 00 00 00 00 00 FF 0F F3 [19:50:04]process_action print_text done [19:50:04]requested_data is exist [19:50:04]produce_requested_data [19:50:04]requested_item fm.sn is exist - process it [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 11 00 00 [19:50:04]Write to MH i2c: E2 08 00 B7 28 80 11 00 00 00 00 00 00 59 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 B7 28 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:50: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:50:04]wFMCommunicate OK [19:50:04]requested_item fd.num is exist - process it [19:50:04]SAM_PROTO_GetFieldsCounters [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 13 00 00 [19:50:04]Write to MH i2c: E2 08 00 B8 28 80 13 00 00 00 00 00 00 5C [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 62 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 62 00 B8 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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:50: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 17 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_GetFieldsCounters done [19:50:04]requested_item shift.num is exist - process it [19:50:04]requested_item shift.opened is exist - process it [19:50:04]req_shift_opened [19:50:04]FM_GetShiftState [19:50:04]SAM_PROTO_GetShiftState [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 13 01 00 [19:50:04]Write to MH i2c: E2 08 00 B9 28 80 13 01 00 00 00 00 00 5E [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0E 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0E 00 B9 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [19:50:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_GetShiftState done [19:50:04]FM_GetShiftState done [19:50:04]req_shift_opened done [19:50:04]requested_item shift.open_date is exist - process it [19:50:04]req_shift_open_date [19:50:04]req_shift_open_date done [19:50:04]produce_requested_data done [19:50:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:50:04]process_action_free print_text [19:50:04]json_value_free [19:50:04]json_value_free done [19:50:04]process_json_proto returns [19:50:04]Send response to host [19:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67351,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:50:04]free response buf [19:50:04]execute_script done [19:50:04]execute_script returns [19:50:04]free content buf [19:50:04]Sock 7.Close socket [19:50:04]Sock 7.Thread stoped [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:08]accept exits with 9 [19:51:08]New connection [19:51:08]New thread 3067174244 created [19:51:08]Thread 3067030884 joined [19:51:08]Waiting for new connection... [19:51:08] Sock 9.Parse request [19:51:08]Sock 9.Check first char [19:51:08]Sock 9.First char is OK [19:51:08]request: POST /json_proto HTTP/1.0 [19:51:08]Method: POST [19:51:08]URL: /json_proto [19:51:08]Method is POST - this is cgi request [19:51:08]url: /json_proto [19:51:08]query_string will be loaded in cgi processing [19:51:08]execute_cgi json_proto POST (null) [19:51:08]execute_cgi path=json_proto method=POST [19:51:08]POST find Content-Length [19:51:08]Host: 172.17.41.195:8080 [19:51:08]Content-Length: 679 [19:51:08]Content-Type: application/json [19:51:08] [19:51:08]POST finish read [19:51:08]Found Content-Length = 679 [19:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507332", "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:51:08]execute_script... [19:51:08]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)507332", "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:51:08]POST & json_proto [19:51:08]process_json_proto [19:51:08]json parsed OK: [19:51:08]protocol is kg_v1.0 [19:51:08]action value=close_receipt [19:51:08]process_action close_receipt [19:51:08]cmd_close_receipt [19:51:08]MH_GetDate [19:51:08]Write to MH i2c: F0 00 00 BA 28 D1 [19:51:08]Write i2c OK [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: F0 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: F0 09 00 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: F0 09 00 BA 28 00 2E 12 45 66 FC 21 6F 64 B5 [19:51:08]GetLastDocTimeStamp 1715802013 [19:51:08]current date 1715802670 [19:51:08]FM_GetShiftState [19:51:08]SAM_PROTO_GetShiftState [19:51:08]wFMCommunicate request_size=4 [19:51:08]MH_SAM_APDU [19:51:08]CAPDU: 80 13 01 00 [19:51:08]Write to MH i2c: E2 08 00 BB 28 80 13 01 00 00 00 00 00 60 [19:51:08]Write i2c OK [19:51:08]MH_I2C_Read... [19:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:08]Read from MH i2c: E2 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: E2 0E 00 [19:51:08]MH_I2C_Read... [19:51:08]Read from MH i2c: E2 0E 00 BB 28 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0B [19:51:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:51:08]wFMCommunicate OK [19:51:08]SAM_PROTO_GetShiftState done [19:51:08]FM_GetShiftState done [19:51:08]opened in 1715732471 [19:51:08]opened+sec_in_day 1715818871 [19:51:08]quantity*price = 200046 [19:51:08]sum+1 = 200048 [19:51:08]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 СНО: Общий режим Чек 170 15.05.2024 19:51 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67352 ФПД: 222624069333638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T195110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67352&fm=222624069333638&tin=02508201610067®Number=0000000000091845&sum=200000 [19:51:09]StoreToDocumentArchive [19:51:09]shift 356 fd 67352 [19:51:09]save to /storage/0356/doc_00067352 [19:51:09]save last doc name /storage/0356/doc_00067352 to /storage/kkm_last_doc_name [19:51:09]save OK [19:51:09]Clear old archive folders... [19:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:51:09]tlvbuf is 00B362D0 [19:51:09]SAM_PROTO_ClearQueue [19:51:09]wFMCommunicate request_size=4 [19:51:09]MH_SAM_APDU [19:51:09]CAPDU: 80 09 00 00 [19:51:09]Write to MH i2c: E2 08 00 C8 28 80 09 00 00 00 00 00 00 62 [19:51:09]Write i2c OK [19:51:09]MH_I2C_Read... [19:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:09]Read from MH i2c: E2 [19:51:09]MH_I2C_Read... [19:51:09]Read from MH i2c: E2 03 00 [19:51:09]MH_I2C_Read... [19:51:09]Read from MH i2c: E2 03 00 C8 28 00 90 00 64 [19:51:09]RAPDU: 90 00 [19:51:09]wFMCommunicate OK [19:51:09]SAM_PROTO_ClearQueue done [19:51:09]KKMCreateOFDPacket [19:51:09]OFDProtocolAddRootSTLVToBuf [19:51:09]FM_MakeSignedData [19:51:09]FM_MakeSignedData [19:51:09]SAM_PROTO_SignData [19:51:09]wFMCommunicate request_size=4 [19:51:09]MH_SAM_APDU [19:51:09]CAPDU: 80 0D 01 02 [19:51:09]Write to MH i2c: E2 08 00 C9 28 80 0D 01 02 00 00 00 00 6A [19:51:09]Write i2c OK [19:51:09]MH_I2C_Read... [19:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:09]Read from MH i2c: E2 [19:51:09]MH_I2C_Read... [19:51:09]Read from MH i2c: E2 03 00 [19:51:09]MH_I2C_Read... [19:51:09]Read from MH i2c: E2 03 00 C9 28 00 90 00 65 [19:51:09]RAPDU: 90 00 [19:51:09]wFMCommunicate OK [19:51:09]wFMCommunicate request_size=255 [19:51:09]MH_SAM_APDU [19:51:09]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 AA 00 00 00 F4 03 04 00 2E 12 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CA 79 B4 92 [19:51:09]Write to MH i2c: E2 02 01 CA 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 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 AA 00 00 00 F4 03 04 00 2E 12 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CA 79 B4 92 00 00 1B [19:51:09]Write i2c OK [19:51:09]MH_I2C_Read... [19:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:10]Read from MH i2c: E2 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 03 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 03 00 CA 28 00 90 00 66 [19:51:10]RAPDU: 90 00 [19:51:10]wFMCommunicate OK [19:51:10]wFMCommunicate request_size=7 [19:51:10]MH_SAM_APDU [19:51:10]CAPDU: 80 0D 02 02 02 32 86 [19:51:10]Write to MH i2c: E2 0A 00 CB 28 80 0D 02 02 02 00 32 86 00 00 29 [19:51:10]OFD Sender: No OFD packet to send [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:10]Read from MH i2c: E2 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 03 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 03 00 CB 28 00 90 00 67 [19:51:10]RAPDU: 90 00 [19:51:10]wFMCommunicate OK [19:51:10]wFMCommunicate request_size=4 [19:51:10]MH_SAM_APDU [19:51:10]CAPDU: 80 0D 03 02 [19:51:10]Write to MH i2c: E2 08 00 CC 28 80 0D 03 02 00 00 00 00 6F [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:10]Read from MH i2c: E2 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 0B 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 0B 00 CC 28 00 2A C8 83 45 F8 15 A1 B8 90 00 90 [19:51:10]RAPDU: 2A C8 83 45 F8 15 A1 B8 90 00 [19:51:10]wFMCommunicate OK [19:51:10]SAM_PROTO_SignData done [19:51:10]FM_MakeSignedData done [19:51:10]CreateOFDProtocolMessage [19:51:10]wFMCommunicate request_size=4 [19:51:10]MH_SAM_APDU [19:51:10]CAPDU: 80 11 00 00 [19:51:10]Write to MH i2c: E2 08 00 CD 28 80 11 00 00 00 00 00 00 6F [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:10]Read from MH i2c: E2 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 17 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: E2 17 00 CD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [19:51: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:51:10]wFMCommunicate OK [19:51:10]CreateOFDProtocolMessage done [19:51:10]OFDSenderStorePacket 67352 [19:51:10]StoreOFDPacket docnum=67352 [19:51: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 56 4F 04 01 F5 C5 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 AA 00 00 00 F4 03 04 00 2E 12 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CA 79 B4 92 32 86 2A C8 83 45 F8 15 A1 B8 [19:51:10]CheckFolder [19:51:10]dirname=/storage/ofd_packets [19:51:10]CheckFolder done [19:51:10]ProducePacketName [19:51:10]name=ofd_packets/00067352 [19:51:10]NVStorageSaveData ofd_packets/00067352 [19:51:10]File name is /storage/ofd_packets/00067352 [19:51:10]Write 298 bytes [19:51:10]NVStorageSaveData done [19:51:10]OFDSenderStorePacket done [19:51:10]KKMCreateOFDPacket done [19:51:10]NVStorageSaveData kkm_last_timestamp [19:51:10]File name is /storage/kkm_last_timestamp [19:51:10]Write 4 bytes [19:51:10]NVStorageSaveData done [19:51:10]ExternCall_PrintAddStr [19:51:10]wPrintStart [19:51:10]Write to MH i2c: 01 00 00 CE 28 F6 [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 07 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 07 00 CE 28 00 00 00 00 00 FF 0F 0B [19:51:10]RasterBufferAndPrint [19:51:10]line Счет N : (1)507332 [19:51:10]line ИНН: 02508201610067 [19:51:10]line Контрольно-Кассовый Чек [19:51:10]line ПРОДАЖА [19:51:10]line ТРК (МРК, ГНК) : 11 [19:51:10]line Товар: 2710194210 [19:51:10]line ДТ-К-5 [19:51:10]line 26.780 * 74.70 [19:51:10]line = 2000.47 [19:51:10]line НДС 12% НСП 1% [19:51:10]line > о реализуемом товаре [19:51:10]line ОКРУГЛЕНИЕ: -0.47 [19:51:10]line ИТОГО: 2000.00 [19:51:10]line Внесено: 2000.00 [19:51:10]line СДАЧА: 0.00 [19:51:10]line НСП 1% : 17.70 [19:51:10]line НДС 12% : 212.44 [19:51:10]line Наличными: 2000.00 [19:51:10]line Безнал.: 0.00 [19:51:10]line Место: АЗС № 91 "Партнер Нефть" [19:51:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:51:10]line СНО: Общий режим [19:51:10]line Чек 170 15.05.2024 19:51 [19:51:10]line Смена: 356 ФФД: 1.0 [19:51:10]line ЗНМ: 0300000119 [19:51:10]line РНМ: 0000000000091845 [19:51:10]line Версия ККМ: 001 [19:51:10]line ФМ: 0000000000871829 [19:51:10]line ФД: 67352 [19:51:10]line ФПД: 222624069333638 [19:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T195110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67352&fm=222624069333638&tin=02508201610067®Number=0000000000091845&sum=200000 [19:51:10]written 0, free lines is 4095 [19:51:10]OFD Sender: Processing packet 67352 [packets to send 35, broken 34] [19:51:10]ProducePacketName [19:51:10]name=ofd_packets/00067352 [19:51:10]OFD Sender: To server: pG, [19:51:10]CommunicateWithHost lk.salyk.kg:30040 [19:51:10]ConnectInit lk.salyk.kg [19:51:10]Connected sock=10 [19:51: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 0C 01 00 00 56 4F 04 01 F5 C5 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 AA 00 00 00 F4 03 04 00 2E 12 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CA 79 B4 92 32 86 2A C8 83 45 F8 15 A1 B8 [19:51: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 B0 6C 47 00 84 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 18 07 01 00 F4 03 04 00 0B BA 44 66 B6 04 01 00 00 BC 76 CD 39 C0 2E 67 30 [19:51:10]CommunicateWithHost err = 0 [19:51:10]CheckOFDResponse [19:51:10]1017 (14) - 77093643461234 [19:51:10]1041 (16) - 0000000000871829 [19:51:10]1040 (4) - 67352 [19:51:10]1012 (4) - 15.05.2024 13:35 [19:51:10]1206 (1) - 0 [19:51:10]OFD Sender: Remove packet 67352 [19:51:10]ProducePacketName [19:51:10]name=ofd_packets/00067352 [19:51:10]NVStorageDeleteData [19:51:10]Write to MH i2c: 01 00 00 F8 28 20 [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 07 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: 01 07 00 F8 28 00 00 00 00 00 D5 0C 08 [19:51:10]RasterBufferAndPrint [19:51:10]line [19:51:10]line [19:51:10]line [19:51:10]line [19:51:10]line [19:51:10]written 0, free lines is 3292 [19:51:10]MH_Cut [19:51:10]Write to MH i2c: D1 01 00 FF 28 01 F9 [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: D1 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: D1 01 00 [19:51:10]MH_I2C_Read... [19:51:10]Read from MH i2c: D1 01 00 FF 28 00 F8 [19:51:10]Write to MH i2c: 01 00 00 00 29 29 [19:51:10]Write i2c OK [19:51:10]MH_I2C_Read... [19:51:11]OFD Sender: No OFD packet to send [19:51:11]*** Cut start [19:51:11]*** Purtial cut [19:51:11]*** CUTSNS_PIN = 0 [19:51:11]*** Stage 1: CUTSNS_PIN = 1 [19:51:13]Read from MH i2c: 01 [19:51:13]MH_I2C_Read... [19:51:13]*** Stop cut motor [19:51:13]*** Cut end [19:51:13]Read from MH i2c: 01 07 00 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: 01 07 00 00 29 00 00 00 00 00 FF 0F 3E [19:51:13]process_action close_receipt done [19:51:13]requested_data is exist [19:51:13]produce_requested_data [19:51:13]requested_item fm.sn is exist - process it [19:51:13]wFMCommunicate request_size=4 [19:51:13]MH_SAM_APDU [19:51:13]CAPDU: 80 11 00 00 [19:51:13]Write to MH i2c: E2 08 00 01 29 80 11 00 00 00 00 00 00 A4 [19:51:13]Write i2c OK [19:51:13]MH_I2C_Read... [19:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:13]Read from MH i2c: E2 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: E2 17 00 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: E2 17 00 01 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [19:51: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:51:13]wFMCommunicate OK [19:51:13]requested_item fd.num is exist - process it [19:51:13]SAM_PROTO_GetFieldsCounters [19:51:13]wFMCommunicate request_size=4 [19:51:13]MH_SAM_APDU [19:51:13]CAPDU: 80 13 00 00 [19:51:13]Write to MH i2c: E2 08 00 02 29 80 13 00 00 00 00 00 00 A7 [19:51:13]Write i2c OK [19:51:13]MH_I2C_Read... [19:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:13]Read from MH i2c: E2 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: E2 62 00 [19:51:13]MH_I2C_Read... [19:51:13]Read from MH i2c: E2 62 00 02 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 18 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [19:51: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 18 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:13]wFMCommunicate OK [19:51:13]SAM_PROTO_GetFieldsCounters done [19:51:13]requested_item shift.num is exist - process it [19:51:13]requested_item shift.opened is exist - process it [19:51:13]req_shift_opened [19:51:13]FM_GetShiftState [19:51:13]SAM_PROTO_GetShiftState [19:51:13]wFMCommunicate request_size=4 [19:51:13]MH_SAM_APDU [19:51:13]CAPDU: 80 13 01 00 [19:51:13]Write to MH i2c: E2 08 00 03 29 80 13 01 00 00 00 00 00 A9 [19:51:13]Write i2c OK [19:51:13]MH_I2C_Read... [19:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:14]Read from MH i2c: E2 [19:51:14]MH_I2C_Read... [19:51:14]Read from MH i2c: E2 0E 00 [19:51:14]MH_I2C_Read... [19:51:14]Read from MH i2c: E2 0E 00 03 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 54 [19:51:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [19:51:14]wFMCommunicate OK [19:51:14]SAM_PROTO_GetShiftState done [19:51:14]FM_GetShiftState done [19:51:14]req_shift_opened done [19:51:14]requested_item shift.open_date is exist - process it [19:51:14]req_shift_open_date [19:51:14]req_shift_open_date done [19:51:14]produce_requested_data done [19:51:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67352,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [19:51:14]process_action_free close_receipt [19:51:14]json_value_free [19:51:14]json_value_free done [19:51:14]process_json_proto returns [19:51:14]Send response to host [19:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67352,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [19:51:14]free response buf [19:51:14]execute_script done [19:51:14]execute_script returns [19:51:14]free content buf [19:51:14]Sock 9.Close socket [19:51:14]Sock 9.Thread stoped [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:37]accept exits with 7 [20:00:37]New connection [20:00:37]New thread 3067030884 created [20:00:37]Thread 3067174244 joined [20:00:37]Waiting for new connection... [20:00:37] Sock 7.Parse request [20:00:37]Sock 7.Check first char [20:00:37]Sock 7.First char is OK [20:00:37]request: POST /json_proto HTTP/1.0 [20:00:37]Method: POST [20:00:37]URL: /json_proto [20:00:37]Method is POST - this is cgi request [20:00:37]url: /json_proto [20:00:37]query_string will be loaded in cgi processing [20:00:37]execute_cgi json_proto POST (null) [20:00:37]execute_cgi path=json_proto method=POST [20:00:37]POST find Content-Length [20:00:37]Host: 172.17.41.195:8080 [20:00:37]Content-Length: 679 [20:00:37]Content-Type: application/json [20:00:37] [20:00:37]POST finish read [20:00:37]Found Content-Length = 679 [20:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507333", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:37]execute_script... [20:00: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)507333", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:37]POST & json_proto [20:00:37]process_json_proto [20:00:37]json parsed OK: [20:00:37]protocol is kg_v1.0 [20:00:37]action value=close_receipt [20:00:37]process_action close_receipt [20:00:37]cmd_close_receipt [20:00:37]MH_GetDate [20:00:37]Write to MH i2c: F0 00 00 04 29 1C [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: F0 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: F0 09 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: F0 09 00 04 29 00 67 14 45 66 FC 21 6F 64 3B [20:00:37]GetLastDocTimeStamp 1715802670 [20:00:37]current date 1715803239 [20:00:37]FM_GetShiftState [20:00:37]SAM_PROTO_GetShiftState [20:00:37]wFMCommunicate request_size=4 [20:00:37]MH_SAM_APDU [20:00:37]CAPDU: 80 13 01 00 [20:00:37]Write to MH i2c: E2 08 00 05 29 80 13 01 00 00 00 00 00 AB [20:00:37]Write i2c OK [20:00:37]MH_I2C_Read... [20:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:37]Read from MH i2c: E2 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 0E 00 [20:00:37]MH_I2C_Read... [20:00:37]Read from MH i2c: E2 0E 00 05 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 56 [20:00:37]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:00:37]wFMCommunicate OK [20:00:37]SAM_PROTO_GetShiftState done [20:00:37]FM_GetShiftState done [20:00:37]opened in 1715732471 [20:00:37]opened+sec_in_day 1715818871 [20:00:37]quantity*price = 150072 [20:00:37]sum+1 = 150073 [20:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 171 15.05.2024 20:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67353 ФПД: 128131418380080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200039&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67353&fm=128131418380080&tin=02508201610067®Number=0000000000091845&sum=150000 [20:00:38]StoreToDocumentArchive [20:00:38]shift 356 fd 67353 [20:00:38]save to /storage/0356/doc_00067353 [20:00:38]save last doc name /storage/0356/doc_00067353 to /storage/kkm_last_doc_name [20:00:38]save OK [20:00:38]Clear old archive folders... [20:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:00:38]tlvbuf is 00BA4EA0 [20:00:38]SAM_PROTO_ClearQueue [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 09 00 00 [20:00:38]Write to MH i2c: E2 08 00 12 29 80 09 00 00 00 00 00 00 AD [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 12 29 00 90 00 AF [20:00:38]RAPDU: 90 00 [20:00:38]wFMCommunicate OK [20:00:38]SAM_PROTO_ClearQueue done [20:00:38]KKMCreateOFDPacket [20:00:38]OFDProtocolAddRootSTLVToBuf [20:00:38]FM_MakeSignedData [20:00:38]FM_MakeSignedData [20:00:38]SAM_PROTO_SignData [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 0D 01 02 [20:00:38]Write to MH i2c: E2 08 00 13 29 80 0D 01 02 00 00 00 00 B5 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 13 29 00 90 00 B0 [20:00:38]RAPDU: 90 00 [20:00:38]wFMCommunicate OK [20:00:38]wFMCommunicate request_size=255 [20:00:38]MH_SAM_APDU [20:00: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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 67 14 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 74 88 EB AD [20:00:38]Write to MH i2c: E2 02 01 14 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 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 67 14 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 74 88 EB AD 00 00 C3 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 14 29 00 90 00 B1 [20:00:38]RAPDU: 90 00 [20:00:38]wFMCommunicate OK [20:00:38]wFMCommunicate request_size=7 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 0D 02 02 02 57 30 [20:00:38]Write to MH i2c: E2 0A 00 15 29 80 0D 02 02 02 00 57 30 00 00 43 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 03 00 15 29 00 90 00 B2 [20:00:38]RAPDU: 90 00 [20:00:38]wFMCommunicate OK [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 0D 03 02 [20:00:38]Write to MH i2c: E2 08 00 16 29 80 0D 03 02 00 00 00 00 BA [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0B 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 0B 00 16 29 00 6E 6F C6 8E 72 DC 6B 26 90 00 CB [20:00:38]RAPDU: 6E 6F C6 8E 72 DC 6B 26 90 00 [20:00:38]wFMCommunicate OK [20:00:38]SAM_PROTO_SignData done [20:00:38]FM_MakeSignedData done [20:00:38]CreateOFDProtocolMessage [20:00:38]wFMCommunicate request_size=4 [20:00:38]MH_SAM_APDU [20:00:38]CAPDU: 80 11 00 00 [20:00:38]Write to MH i2c: E2 08 00 17 29 80 11 00 00 00 00 00 00 BA [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:38]Read from MH i2c: E2 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: E2 17 00 17 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [20:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:00:38]wFMCommunicate OK [20:00:38]CreateOFDProtocolMessage done [20:00:38]OFDSenderStorePacket 67353 [20:00:38]StoreOFDPacket docnum=67353 [20:00: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 3E B1 04 01 57 AF 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 67 14 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 74 88 EB AD 57 30 6E 6F C6 8E 72 DC 6B 26 [20:00:38]CheckFolder [20:00:38]dirname=/storage/ofd_packets [20:00:38]CheckFolder done [20:00:38]ProducePacketName [20:00:38]name=ofd_packets/00067353 [20:00:38]NVStorageSaveData ofd_packets/00067353 [20:00:38]File name is /storage/ofd_packets/00067353 [20:00:38]Write 298 bytes [20:00:38]NVStorageSaveData done [20:00:38]OFDSenderStorePacket done [20:00:38]KKMCreateOFDPacket done [20:00:38]NVStorageSaveData kkm_last_timestamp [20:00:38]File name is /storage/kkm_last_timestamp [20:00:38]Write 4 bytes [20:00:38]NVStorageSaveData done [20:00:38]ExternCall_PrintAddStr [20:00:38]wPrintStart [20:00:38]Write to MH i2c: 01 00 00 18 29 41 [20:00:38]Write i2c OK [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 [20:00:38]MH_I2C_Read... [20:00:38]Read from MH i2c: 01 07 00 18 29 00 00 00 00 00 FF 0F 56 [20:00:38]RasterBufferAndPrint [20:00:38]line Счет N : (1)507333 [20:00:38]line ИНН: 02508201610067 [20:00:38]line Контрольно-Кассовый Чек [20:00:38]line ПРОДАЖА [20:00:38]line ТРК (МРК, ГНК) : 31 [20:00:38]line Товар: 2710194210 [20:00:38]line ДТ-К-5 [20:00:38]line 20.090 * 74.70 [20:00:38]line = 1500.72 [20:00:38]line НДС 12% НСП 1% [20:00:38]line > о реализуемом товаре [20:00:38]line ОКРУГЛЕНИЕ: -0.72 [20:00:38]line ИТОГО: 1500.00 [20:00:38]line Внесено: 1500.00 [20:00:38]line СДАЧА: 0.00 [20:00:38]line НСП 1% : 13.28 [20:00:38]line НДС 12% : 159.37 [20:00:38]line Наличными: 1500.00 [20:00:38]line Безнал.: 0.00 [20:00:38]line Место: АЗС № 91 "Партнер Нефть" [20:00:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:00:38]line СНО: Общий режим [20:00:38]line Чек 171 15.05.2024 20:00 [20:00:38]line Смена: 356 ФФД: 1.0 [20:00:38]line ЗНМ: 0300000119 [20:00:38]line РНМ: 0000000000091845 [20:00:38]line Версия ККМ: 001 [20:00:38]line ФМ: 0000000000871829 [20:00:38]line ФД: 67353 [20:00:38]line ФПД: 128131418380080 [20:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200039&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67353&fm=128131418380080&tin=02508201610067®Number=0000000000091845&sum=150000 [20:00:39]OFD Sender: Processing packet 67353 [packets to send 35, broken 34] [20:00:39]ProducePacketName [20:00:39]name=ofd_packets/00067353 [20:00:39]OFD Sender: To server: pG, [20:00:39]CommunicateWithHost lk.salyk.kg:30040 [20:00:39]ConnectInit lk.salyk.kg [20:00:39]written 0, free lines is 4095 [20:00:39]Connected sock=10 [20:00: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 3E B1 04 01 57 AF 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 67 14 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 74 88 EB AD 57 30 6E 6F C6 8E 72 DC 6B 26 [20:00: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 15 48 47 00 8A C7 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 07 01 00 F4 03 04 00 43 BC 44 66 B6 04 01 00 00 68 61 4C FA 1A 3D 9B A6 [20:00:39]CommunicateWithHost err = 0 [20:00:39]CheckOFDResponse [20:00:39]1017 (14) - 77093643461234 [20:00:39]1041 (16) - 0000000000871829 [20:00:39]1040 (4) - 67353 [20:00:39]1012 (4) - 15.05.2024 13:44 [20:00:39]1206 (1) - 0 [20:00:39]OFD Sender: Remove packet 67353 [20:00:39]ProducePacketName [20:00:39]name=ofd_packets/00067353 [20:00:39]NVStorageDeleteData [20:00:39]Write to MH i2c: 01 00 00 42 29 6B [20:00:39]Write i2c OK [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: 01 [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: 01 07 00 [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 C7 0C 45 [20:00:39]RasterBufferAndPrint [20:00:39]line [20:00:39]line [20:00:39]line [20:00:39]line [20:00:39]line [20:00:39]written 0, free lines is 3277 [20:00:39]MH_Cut [20:00:39]Write to MH i2c: D1 01 00 49 29 01 44 [20:00:39]Write i2c OK [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: D1 [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: D1 01 00 [20:00:39]MH_I2C_Read... [20:00:39]Read from MH i2c: D1 01 00 49 29 00 43 [20:00:39]Write to MH i2c: 01 00 00 4A 29 73 [20:00:39]Write i2c OK [20:00:39]MH_I2C_Read... [20:00:39]OFD Sender: No OFD packet to send [20:00:40]*** Cut start [20:00:40]*** Purtial cut [20:00:40]*** Stage 1: CUTSNS_PIN = 1 [20:00:40]Read from MH i2c: 01 [20:00:40]MH_I2C_Read... [20:00:40]*** Stop cut motor [20:00:40]*** Cut end [20:00:40]Read from MH i2c: 01 07 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: 01 07 00 4A 29 00 00 00 00 00 FF 0F 88 [20:00:40]process_action close_receipt done [20:00:40]requested_data is exist [20:00:40]produce_requested_data [20:00:40]requested_item fm.sn is exist - process it [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 11 00 00 [20:00:40]Write to MH i2c: E2 08 00 4B 29 80 11 00 00 00 00 00 00 EE [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 17 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 17 00 4B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [20:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:00:40]wFMCommunicate OK [20:00:40]requested_item fd.num is exist - process it [20:00:40]SAM_PROTO_GetFieldsCounters [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 13 00 00 [20:00:40]Write to MH i2c: E2 08 00 4C 29 80 13 00 00 00 00 00 00 F1 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 62 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 62 00 4C 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 19 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [20:00: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 19 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:40]wFMCommunicate OK [20:00:40]SAM_PROTO_GetFieldsCounters done [20:00:40]requested_item shift.num is exist - process it [20:00:40]requested_item shift.opened is exist - process it [20:00:40]req_shift_opened [20:00:40]FM_GetShiftState [20:00:40]SAM_PROTO_GetShiftState [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 13 01 00 [20:00:40]Write to MH i2c: E2 08 00 4D 29 80 13 01 00 00 00 00 00 F3 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 4D 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9E [20:00:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:00:40]wFMCommunicate OK [20:00:40]SAM_PROTO_GetShiftState done [20:00:40]FM_GetShiftState done [20:00:40]req_shift_opened done [20:00:40]requested_item shift.open_date is exist - process it [20:00:40]req_shift_open_date [20:00:40]req_shift_open_date done [20:00:40]produce_requested_data done [20:00:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67353,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:00:40]process_action_free close_receipt [20:00:40]json_value_free [20:00:40]json_value_free done [20:00:40]process_json_proto returns [20:00:40]Send response to host [20:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67353,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:00:40]free response buf [20:00:40]execute_script done [20:00:40]execute_script returns [20:00:40]free content buf [20:00:40]Sock 7.Close socket [20:00:40]Sock 7.Thread stoped [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:40]accept exits with 9 [20:05:40]New connection [20:05:40]New thread 3067174244 created [20:05:40]Thread 3067030884 joined [20:05:40]Waiting for new connection... [20:05:40] Sock 9.Parse request [20:05:40]Sock 9.Check first char [20:05:40]Sock 9.First char is OK [20:05:40]request: POST /json_proto HTTP/1.0 [20:05:40]Method: POST [20:05:40]URL: /json_proto [20:05:40]Method is POST - this is cgi request [20:05:40]url: /json_proto [20:05:40]query_string will be loaded in cgi processing [20:05:40]execute_cgi json_proto POST (null) [20:05:40]execute_cgi path=json_proto method=POST [20:05:40]POST find Content-Length [20:05:40]Host: 172.17.41.195:8080 [20:05:40]Content-Length: 677 [20:05:40]Content-Type: application/json [20:05:40] [20:05:40]POST finish read [20:05:40]Found Content-Length = 677 [20:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507334", "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" ] } } [20:05:40]execute_script... [20:05: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)507334", "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" ] } } [20:05:40]POST & json_proto [20:05:40]process_json_proto [20:05:40]json parsed OK: [20:05:40]protocol is kg_v1.0 [20:05:40]action value=close_receipt [20:05:40]process_action close_receipt [20:05:40]cmd_close_receipt [20:05:40]MH_GetDate [20:05:40]Write to MH i2c: F0 00 00 4E 29 66 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 09 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: F0 09 00 4E 29 00 97 15 45 66 FC 21 6F 64 B6 [20:05:40]GetLastDocTimeStamp 1715803239 [20:05:40]current date 1715803543 [20:05:40]FM_GetShiftState [20:05:40]SAM_PROTO_GetShiftState [20:05:40]wFMCommunicate request_size=4 [20:05:40]MH_SAM_APDU [20:05:40]CAPDU: 80 13 01 00 [20:05:40]Write to MH i2c: E2 08 00 4F 29 80 13 01 00 00 00 00 00 F5 [20:05:40]Write i2c OK [20:05:40]MH_I2C_Read... [20:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:40]Read from MH i2c: E2 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 0E 00 [20:05:40]MH_I2C_Read... [20:05:40]Read from MH i2c: E2 0E 00 4F 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A0 [20:05:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:05:40]wFMCommunicate OK [20:05:40]SAM_PROTO_GetShiftState done [20:05:40]FM_GetShiftState done [20:05:40]opened in 1715732471 [20:05:40]opened+sec_in_day 1715818871 [20:05:40]quantity*price = 50033 [20:05:40]sum+1 = 50034 [20:05:40]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 СНО: Общий режим Чек 172 15.05.2024 20:05 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67354 ФПД: 230056380406167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200543&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67354&fm=230056380406167&tin=02508201610067®Number=0000000000091845&sum=50000 [20:05:41]StoreToDocumentArchive [20:05:41]shift 356 fd 67354 [20:05:41]save to /storage/0356/doc_00067354 [20:05:41]save last doc name /storage/0356/doc_00067354 to /storage/kkm_last_doc_name [20:05:41]save OK [20:05:41]Clear old archive folders... [20:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:41]tlvbuf is 00B77820 [20:05:41]SAM_PROTO_ClearQueue [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 09 00 00 [20:05:41]Write to MH i2c: E2 08 00 5C 29 80 09 00 00 00 00 00 00 F7 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 5C 29 00 90 00 F9 [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_ClearQueue done [20:05:42]KKMCreateOFDPacket [20:05:42]OFDProtocolAddRootSTLVToBuf [20:05:42]FM_MakeSignedData [20:05:42]FM_MakeSignedData [20:05:42]SAM_PROTO_SignData [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 01 02 [20:05:42]Write to MH i2c: E2 08 00 5D 29 80 0D 01 02 00 00 00 00 FF [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 5D 29 00 90 00 FA [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=255 [20:05:42]MH_SAM_APDU [20:05:42]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 AC 00 00 00 F4 03 04 00 97 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D1 [20:05:42]Write to MH i2c: E2 02 01 5E 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 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 AC 00 00 00 F4 03 04 00 97 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D1 00 00 E5 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 5E 29 00 90 00 FB [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=10 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 02 02 05 3C 2C D5 19 97 [20:05:42]Write to MH i2c: E2 0D 00 5F 29 80 0D 02 02 05 00 3C 2C D5 19 97 00 00 F9 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 03 00 5F 29 00 90 00 FC [20:05:42]RAPDU: 90 00 [20:05:42]wFMCommunicate OK [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 0D 03 02 [20:05:42]Write to MH i2c: E2 08 00 60 29 80 0D 03 02 00 00 00 00 04 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0B 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0B 00 60 29 00 2B 2E 50 DD C6 86 21 C9 90 00 C1 [20:05:42]RAPDU: 2B 2E 50 DD C6 86 21 C9 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_SignData done [20:05:42]FM_MakeSignedData done [20:05:42]CreateOFDProtocolMessage [20:05:42]wFMCommunicate request_size=4 [20:05:42]MH_SAM_APDU [20:05:42]CAPDU: 80 11 00 00 [20:05:42]Write to MH i2c: E2 08 00 61 29 80 11 00 00 00 00 00 00 04 [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 17 00 61 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [20:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:05:42]wFMCommunicate OK [20:05:42]CreateOFDProtocolMessage done [20:05:42]OFDSenderStorePacket 67354 [20:05:42]StoreOFDPacket docnum=67354 [20:05: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 0F 01 00 00 E0 BD 07 01 4C 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 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 AC 00 00 00 F4 03 04 00 97 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D1 3C 2C D5 19 97 2B 2E 50 DD C6 86 21 C9 [20:05:42]CheckFolder [20:05:42]dirname=/storage/ofd_packets [20:05:42]CheckFolder done [20:05:42]ProducePacketName [20:05:42]name=ofd_packets/00067354 [20:05:42]NVStorageSaveData ofd_packets/00067354 [20:05:42]File name is /storage/ofd_packets/00067354 [20:05:42]Write 301 bytes [20:05:42]NVStorageSaveData done [20:05:42]OFDSenderStorePacket done [20:05:42]KKMCreateOFDPacket done [20:05:42]NVStorageSaveData kkm_last_timestamp [20:05:42]File name is /storage/kkm_last_timestamp [20:05:42]Write 4 bytes [20:05:42]NVStorageSaveData done [20:05:42]ExternCall_PrintAddStr [20:05:42]wPrintStart [20:05:42]Write to MH i2c: 01 00 00 62 29 8B [20:05:42]Write i2c OK [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 07 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: 01 07 00 62 29 00 00 00 00 00 FF 0F A0 [20:05:42]RasterBufferAndPrint [20:05:42]line Счет N : (1)507334 [20:05:42]line ИНН: 02508201610067 [20:05:42]line Контрольно-Кассовый Чек [20:05:42]line ПРОДАЖА [20:05:42]line ТРК (МРК, ГНК) : 43 [20:05:42]line Товар: 2710124130 [20:05:42]line Аи-92-К-5 [20:05:42]line 7.490 * 66.80 [20:05:42]line = 500.33 [20:05:42]line НДС 12% НСП 1% [20:05:42]line > о реализуемом товаре [20:05:42]line ОКРУГЛЕНИЕ: -0.33 [20:05:42]line ИТОГО: 500.00 [20:05:42]line Внесено: 500.00 [20:05:42]line СДАЧА: 0.00 [20:05:42]line НСП 1% : 4.43 [20:05:42]line НДС 12% : 53.13 [20:05:42]line Наличными: 500.00 [20:05:42]line Безнал.: 0.00 [20:05:42]line Место: АЗС № 91 "Партнер Нефть" [20:05:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:05:42]line СНО: Общий режим [20:05:42]line Чек 172 15.05.2024 20:05 [20:05:42]line Смена: 356 ФФД: 1.0 [20:05:42]line ЗНМ: 0300000119 [20:05:42]line РНМ: 0000000000091845 [20:05:42]line Версия ККМ: 001 [20:05:42]line ФМ: 0000000000871829 [20:05:42]line ФД: 67354 [20:05:42]line ФПД: 230056380406167 [20:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200543&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67354&fm=230056380406167&tin=02508201610067®Number=0000000000091845&sum=50000 [20:05:42]OFD Sender: Processing packet 67354 [packets to send 35, broken 34] [20:05:42]ProducePacketName [20:05:42]name=ofd_packets/00067354 [20:05:42]OFD Sender: To server: pG, [20:05:42]CommunicateWithHost lk.salyk.kg:30040 [20:05:42]ConnectInit lk.salyk.kg [20:05:42]written 0, free lines is 4095 [20:05:42]Connected sock=10 [20:05: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 0F 01 00 00 E0 BD 07 01 4C 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 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 AC 00 00 00 F4 03 04 00 97 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D1 3C 2C D5 19 97 2B 2E 50 DD C6 86 21 C9 [20:05: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 E3 27 47 00 F3 32 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 07 01 00 F4 03 04 00 73 BD 44 66 B6 04 01 00 00 CD 3B F6 52 04 2E 46 31 [20:05:43]CommunicateWithHost err = 0 [20:05:43]CheckOFDResponse [20:05:43]1017 (14) - 77093643461234 [20:05:43]1041 (16) - 0000000000871829 [20:05:43]1040 (4) - 67354 [20:05:43]1012 (4) - 15.05.2024 13:49 [20:05:43]1206 (1) - 0 [20:05:43]OFD Sender: Remove packet 67354 [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00067354 [20:05:43]NVStorageDeleteData [20:05:43]Write to MH i2c: 01 00 00 8C 29 B5 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 CD 0C 95 [20:05:43]RasterBufferAndPrint [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]line [20:05:43]written 0, free lines is 3283 [20:05:43]MH_Cut [20:05:43]Write to MH i2c: D1 01 00 93 29 01 8E [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: D1 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: D1 01 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: D1 01 00 93 29 00 8D [20:05:43]Write to MH i2c: 01 00 00 94 29 BD [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]OFD Sender: No OFD packet to send [20:05:44]*** Cut start [20:05:44]*** Purtial cut [20:05:44]*** CUTSNS_PIN = 0 [20:05:44]*** Stage 1: CUTSNS_PIN = 1 [20:05:46]Read from MH i2c: 01 [20:05:46]MH_I2C_Read... [20:05:46]*** Stop cut motor [20:05:46]*** Cut end [20:05:46]Read from MH i2c: 01 07 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: 01 07 00 94 29 00 00 00 00 00 FF 0F D2 [20:05:46]process_action close_receipt done [20:05:46]requested_data is exist [20:05:46]produce_requested_data [20:05:46]requested_item fm.sn is exist - process it [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 11 00 00 [20:05:46]Write to MH i2c: E2 08 00 95 29 80 11 00 00 00 00 00 00 38 [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 17 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 17 00 95 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [20:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:05:46]wFMCommunicate OK [20:05:46]requested_item fd.num is exist - process it [20:05:46]SAM_PROTO_GetFieldsCounters [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 13 00 00 [20:05:46]Write to MH i2c: E2 08 00 96 29 80 13 00 00 00 00 00 00 3B [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 96 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 1A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [20:05: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 1A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:46]wFMCommunicate OK [20:05:46]SAM_PROTO_GetFieldsCounters done [20:05:46]requested_item shift.num is exist - process it [20:05:46]requested_item shift.opened is exist - process it [20:05:46]req_shift_opened [20:05:46]FM_GetShiftState [20:05:46]SAM_PROTO_GetShiftState [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 13 01 00 [20:05:46]Write to MH i2c: E2 08 00 97 29 80 13 01 00 00 00 00 00 3D [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 0E 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 0E 00 97 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E8 [20:05:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:05:46]wFMCommunicate OK [20:05:46]SAM_PROTO_GetShiftState done [20:05:46]FM_GetShiftState done [20:05:46]req_shift_opened done [20:05:46]requested_item shift.open_date is exist - process it [20:05:46]req_shift_open_date [20:05:46]req_shift_open_date done [20:05:46]produce_requested_data done [20:05:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67354,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:05:46]process_action_free close_receipt [20:05:46]json_value_free [20:05:46]json_value_free done [20:05:46]process_json_proto returns [20:05:46]Send response to host [20:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67354,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:05:46]free response buf [20:05:46]execute_script done [20:05:46]execute_script returns [20:05:46]free content buf [20:05:46]Sock 9.Close socket [20:05:46]Sock 9.Thread stoped [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]accept exits with 7 [20:06:53]New connection [20:06:53]New thread 3067030884 created [20:06:53]Thread 3067174244 joined [20:06:53]Waiting for new connection... [20:06:53] Sock 7.Parse request [20:06:53]Sock 7.Check first char [20:06:53]Sock 7.First char is OK [20:06:53]request: POST /json_proto HTTP/1.0 [20:06:53]Method: POST [20:06:53]URL: /json_proto [20:06:53]Method is POST - this is cgi request [20:06:53]url: /json_proto [20:06:53]query_string will be loaded in cgi processing [20:06:53]execute_cgi json_proto POST (null) [20:06:53]execute_cgi path=json_proto method=POST [20:06:53]POST find Content-Length [20:06:53]Host: 172.17.41.195:8080 [20:06:53]Content-Length: 686 [20:06:53]Content-Type: application/json [20:06:53] [20:06:53]POST finish read [20:06:53]Found Content-Length = 686 [20:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12081", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 96.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:53]execute_script... [20:06:53]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)12081", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 96.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:53]POST & json_proto [20:06:53]process_json_proto [20:06:53]json parsed OK: [20:06:53]protocol is kg_v1.0 [20:06:53]action value=close_receipt [20:06:53]process_action close_receipt [20:06:53]cmd_close_receipt [20:06:53]MH_GetDate [20:06:53]Write to MH i2c: F0 00 00 98 29 B0 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: F0 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: F0 09 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: F0 09 00 98 29 00 DF 15 45 66 FC 21 6F 64 48 [20:06:53]GetLastDocTimeStamp 1715803543 [20:06:53]current date 1715803615 [20:06:53]FM_GetShiftState [20:06:53]SAM_PROTO_GetShiftState [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 13 01 00 [20:06:53]Write to MH i2c: E2 08 00 99 29 80 13 01 00 00 00 00 00 3F [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0E 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0E 00 99 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EA [20:06:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:06:53]wFMCommunicate OK [20:06:53]SAM_PROTO_GetShiftState done [20:06:53]FM_GetShiftState done [20:06:53]opened in 1715732471 [20:06:53]opened+sec_in_day 1715818871 [20:06:53]quantity*price = 9600 [20:06:53]sum+1 = 9601 [20:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 96.00 НСП 1% : 0.85 НДС 12% : 10.19 Наличными: 96.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 173 15.05.2024 20:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67355 ФПД: 70471957385872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200655&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67355&fm=70471957385872&tin=02508201610067®Number=0000000000091845&sum=9600 0 [20:06:54]StoreToDocumentArchive [20:06:54]shift 356 fd 67355 [20:06:54]save to /storage/0356/doc_00067355 [20:06:54]save last doc name /storage/0356/doc_00067355 to /storage/kkm_last_doc_name [20:06:54]save OK [20:06:54]Clear old archive folders... [20:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:06:54]tlvbuf is 00B3B470 [20:06:54]SAM_PROTO_ClearQueue [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 09 00 00 [20:06:54]Write to MH i2c: E2 08 00 A6 29 80 09 00 00 00 00 00 00 41 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 A6 29 00 90 00 43 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_ClearQueue done [20:06:54]KKMCreateOFDPacket [20:06:54]OFDProtocolAddRootSTLVToBuf [20:06:54]FM_MakeSignedData [20:06:54]FM_MakeSignedData [20:06:54]SAM_PROTO_SignData [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 01 02 [20:06:54]Write to MH i2c: E2 08 00 A7 29 80 0D 01 02 00 00 00 00 49 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 A7 29 00 90 00 44 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=255 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DF 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:06:54]Write to MH i2c: E2 02 01 A8 29 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DF 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 B1 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=53 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 40 18 07 FC 92 90 [20:06:54]Write to MH i2c: E2 38 00 A9 29 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 40 18 07 FC 92 90 00 00 E6 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 03 02 [20:06:54]Write to MH i2c: E2 08 00 AA 29 80 0D 03 02 00 00 00 00 4E [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0B 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0B 00 AA 29 00 19 6A E7 64 E1 5B 1C FB 90 00 70 [20:06:54]RAPDU: 19 6A E7 64 E1 5B 1C FB 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_SignData done [20:06:54]FM_MakeSignedData done [20:06:54]CreateOFDProtocolMessage [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 11 00 00 [20:06:54]Write to MH i2c: E2 08 00 AB 29 80 11 00 00 00 00 00 00 4E [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 AB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [20: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 [20:06:54]wFMCommunicate OK [20:06:54]CreateOFDProtocolMessage done [20:06:54]OFDSenderStorePacket 67355 [20:06:54]StoreOFDPacket docnum=67355 [20: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 3A 01 00 00 C2 56 32 01 44 D2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DF 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 40 18 07 FC 92 90 19 6A E7 64 E1 5B 1C FB [20:06:54]CheckFolder [20:06:54]dirname=/storage/ofd_packets [20:06:54]CheckFolder done [20:06:54]ProducePacketName [20:06:54]name=ofd_packets/00067355 [20:06:54]NVStorageSaveData ofd_packets/00067355 [20:06:54]File name is /storage/ofd_packets/00067355 [20:06:54]Write 344 bytes [20:06:54]NVStorageSaveData done [20:06:54]OFDSenderStorePacket done [20:06:54]KKMCreateOFDPacket done [20:06:54]NVStorageSaveData kkm_last_timestamp [20:06:54]File name is /storage/kkm_last_timestamp [20:06:54]Write 4 bytes [20:06:54]NVStorageSaveData done [20:06:54]ExternCall_PrintAddStr [20:06:54]wPrintStart [20:06:54]Write to MH i2c: 01 00 00 AC 29 D5 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 AC 29 00 00 00 00 00 FF 0F EA [20:06:54]RasterBufferAndPrint [20:06:54]line Счет N : (3)12081 [20:06:54]line ИНН: 02508201610067 [20:06:54]line Контрольно-Кассовый Чек [20:06:54]line ПРОДАЖА [20:06:54]line Товар: 4870202521247 [20:06:54]line Напиток MAXI чай 1,2 черн.персик [20:06:54]line 1.000 * 96.00 [20:06:54]line = 96.00 [20:06:54]line НДС 12% НСП 1% [20:06:54]line > о реализуемом товаре [20:06:54]line ИТОГО: 96.00 [20:06:54]line НСП 1% : 0.85 [20:06:54]line НДС 12% : 10.19 [20:06:54]line Наличными: 96.00 [20:06:54]line Безнал.: 0.00 [20:06:54]line Место: АЗС № 91 "Партнер Нефть" [20:06:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:06:54]line СНО: Общий режим [20:06:54]line Чек 173 15.05.2024 20:06 [20:06:54]line Смена: 356 ФФД: 1.0 [20:06:54]line ЗНМ: 0300000119 [20:06:54]line РНМ: 0000000000091845 [20:06:54]line Версия ККМ: 001 [20:06:54]line ФМ: 0000000000871829 [20:06:54]line ФД: 67355 [20:06:54]line ФПД: 70471957385872 [20:06:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200655&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67355&fm=70471957385872&tin=02508201610067®Number=0000000000091845&sum=9600 [20:06:55]line 0 [20:06:55]OFD Sender: Processing packet 67355 [packets to send 35, broken 34] [20:06:55]ProducePacketName [20:06:55]name=ofd_packets/00067355 [20:06:55]OFD Sender: To server: pG, [20:06:55]CommunicateWithHost lk.salyk.kg:30040 [20:06:55]ConnectInit lk.salyk.kg [20:06:55]written 0, free lines is 4095 [20:06:55]Connected sock=10 [20:06:55]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 3A 01 00 00 C2 56 32 01 44 D2 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 03 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 DF 15 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 40 18 07 FC 92 90 19 6A E7 64 E1 5B 1C FB [20:06:55]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 8F 24 47 00 2B 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 1B 07 01 00 F4 03 04 00 BB BD 44 66 B6 04 01 00 00 E5 48 0B B4 5C AD 2C F9 [20:06:55]CommunicateWithHost err = 0 [20:06:55]CheckOFDResponse [20:06:55]1017 (14) - 77093643461234 [20:06:55]1041 (16) - 0000000000871829 [20:06:55]1040 (4) - 67355 [20:06:55]1012 (4) - 15.05.2024 13:50 [20:06:55]1206 (1) - 0 [20:06:55]OFD Sender: Remove packet 67355 [20:06:55]ProducePacketName [20:06:55]name=ofd_packets/00067355 [20:06:55]NVStorageDeleteData [20:06:55]Write to MH i2c: 01 00 00 D4 29 FD [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 07 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 07 00 D4 29 00 00 00 00 00 E0 0C F0 [20:06:55]RasterBufferAndPrint [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]written 0, free lines is 3300 [20:06:55]MH_Cut [20:06:55]Write to MH i2c: D1 01 00 DB 29 01 D6 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: D1 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: D1 01 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: D1 01 00 DB 29 00 D5 [20:06:55]Write to MH i2c: 01 00 00 DC 29 05 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]OFD Sender: No OFD packet to send [20:06:56]*** Cut start [20:06:56]*** Purtial cut [20:06:56]*** Stage 1: CUTSNS_PIN = 1 [20:06:56]Read from MH i2c: 01 [20:06:56]MH_I2C_Read... [20:06:56]*** Stop cut motor [20:06:56]*** Cut end [20:06:56]Read from MH i2c: 01 07 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 07 00 DC 29 00 00 00 00 00 FF 0F 1A [20:06:56]process_action close_receipt done [20:06:56]requested_data is exist [20:06:56]produce_requested_data [20:06:56]requested_item fm.sn is exist - process it [20:06:56]wFMCommunicate request_size=4 [20:06:56]MH_SAM_APDU [20:06:56]CAPDU: 80 11 00 00 [20:06:56]Write to MH i2c: E2 08 00 DD 29 80 11 00 00 00 00 00 00 80 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:56]Read from MH i2c: E2 17 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 17 00 DD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [20: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 [20:06:56]wFMCommunicate OK [20:06:56]requested_item fd.num is exist - process it [20:06:56]SAM_PROTO_GetFieldsCounters [20:06:56]wFMCommunicate request_size=4 [20:06:56]MH_SAM_APDU [20:06:56]CAPDU: 80 13 00 00 [20:06:56]Write to MH i2c: E2 08 00 DE 29 80 13 00 00 00 00 00 00 83 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 62 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 62 00 DE 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 1B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [20: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 1B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:56]wFMCommunicate OK [20:06:56]SAM_PROTO_GetFieldsCounters done [20:06:56]requested_item shift.num is exist - process it [20:06:56]requested_item shift.opened is exist - process it [20:06:56]req_shift_opened [20:06:56]FM_GetShiftState [20:06:56]SAM_PROTO_GetShiftState [20:06:56]wFMCommunicate request_size=4 [20:06:56]MH_SAM_APDU [20:06:56]CAPDU: 80 13 01 00 [20:06:56]Write to MH i2c: E2 08 00 DF 29 80 13 01 00 00 00 00 00 85 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0E 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0E 00 DF 29 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 30 [20:06:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:06:56]wFMCommunicate OK [20:06:56]SAM_PROTO_GetShiftState done [20:06:56]FM_GetShiftState done [20:06:56]req_shift_opened done [20:06:56]requested_item shift.open_date is exist - process it [20:06:56]req_shift_open_date [20:06:56]req_shift_open_date done [20:06:56]produce_requested_data done [20:06:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67355,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:06:56]process_action_free close_receipt [20:06:56]json_value_free [20:06:56]json_value_free done [20:06:56]process_json_proto returns [20:06:56]Send response to host [20:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67355,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:06:56]free response buf [20:06:56]execute_script done [20:06:56]execute_script returns [20:06:56]free content buf [20:06:56]Sock 7.Close socket [20:06:56]Sock 7.Thread stoped [20:07:00]int [20:07:00]Write to MH i2c: 01 00 00 E0 29 09 [20:07:00]*** FLAG_PRN_KEY set [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 E0 29 00 08 00 00 00 FF 0F 26 [20:07:00]state=0 [20:07:00]Key pressed [20:07:00]Feed [20:07:00]Write to MH i2c: D8 00 00 E1 29 E1 [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D8 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D8 01 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: D8 01 00 E1 29 00 E2 [20:07:00]int [20:07:00]Write to MH i2c: 01 00 00 E2 29 0B [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 E2 29 00 48 00 00 00 3C 00 96 [20:07:00]state=2 [20:07:00]Key pressed [20:07:00]int [20:07:00]Write to MH i2c: 01 00 00 E3 29 0C [20:07:00]*** FLAG_PRN_KEY reset [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 F6 0F 18 [20:07:00]state=2 [20:07:00]Stop feed [20:07:00]OFD Sender: No OFD packet to send [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 E4 29 0D [20:07:01]*** FLAG_PRN_KEY set [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 E4 29 00 08 00 00 00 FF 0F 2A [20:07:01]state=0 [20:07:01]Key pressed [20:07:01]Feed [20:07:01]Write to MH i2c: D8 00 00 E5 29 E5 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 01 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 01 00 E5 29 00 E6 [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 E6 29 0F [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 E6 29 00 48 00 00 00 3C 00 9A [20:07:01]state=2 [20:07:01]Key pressed [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 E7 29 10 [20:07:01]*** FLAG_PRN_KEY reset [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 E7 29 00 00 00 00 00 F6 0F 1C [20:07:01]state=2 [20:07:01]Stop feed [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 E8 29 11 [20:07:01]*** FLAG_PRN_KEY set [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 E8 29 00 08 00 00 00 FF 0F 2E [20:07:01]state=0 [20:07:01]Key pressed [20:07:01]Feed [20:07:01]Write to MH i2c: D8 00 00 E9 29 E9 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 01 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: D8 01 00 E9 29 00 EA [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 EA 29 13 [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 EA 29 00 48 00 00 00 3C 00 9E [20:07:01]state=2 [20:07:01]Key pressed [20:07:01]int [20:07:01]Write to MH i2c: 01 00 00 EB 29 14 [20:07:01]*** FLAG_PRN_KEY reset [20:07:01]Write i2c OK [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 [20:07:01]MH_I2C_Read... [20:07:01]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 F5 0F 1F [20:07:01]state=2 [20:07:01]Stop feed [20:07:02]int [20:07:02]Write to MH i2c: 01 00 00 EC 29 15 [20:07:02]*** FLAG_PRN_KEY set [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 EC 29 00 08 00 00 00 FF 0F 32 [20:07:02]state=0 [20:07:02]Key pressed [20:07:02]Feed [20:07:02]Write to MH i2c: D8 00 00 ED 29 ED [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: D8 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: D8 01 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: D8 01 00 ED 29 00 EE [20:07:02]int [20:07:02]Write to MH i2c: 01 00 00 EE 29 17 [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 EE 29 00 48 00 00 00 3C 00 A2 [20:07:02]state=2 [20:07:02]Key pressed [20:07:02]int [20:07:02]Write to MH i2c: 01 00 00 EF 29 18 [20:07:02]*** FLAG_PRN_KEY reset [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: 01 07 00 EF 29 00 00 00 00 00 F5 0F 23 [20:07:02]state=2 [20:07:02]Stop feed [20:07:05]int [20:07:05]Write to MH i2c: 01 00 00 F0 29 19 [20:07:05]*** FLAG_PRN_KEY set [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 F0 29 00 08 00 00 00 FF 0F 36 [20:07:05]state=0 [20:07:05]Key pressed [20:07:05]Feed [20:07:05]Write to MH i2c: D8 00 00 F1 29 F1 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D8 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D8 01 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D8 01 00 F1 29 00 F2 [20:07:05]int [20:07:05]Write to MH i2c: 01 00 00 F2 29 1B [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 F2 29 00 48 00 00 00 3C 00 A6 [20:07:05]state=2 [20:07:05]Key pressed [20:07:05]OFD Sender: No OFD packet to send [20:07:06]int [20:07:06]Write to MH i2c: 01 00 00 F3 29 1C [20:07:06]*** FLAG_PRN_KEY reset [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 F3 29 00 00 00 00 00 F6 0F 28 [20:07:06]state=2 [20:07:06]Stop feed [20:07:06]int [20:07:06]Write to MH i2c: 01 00 00 F4 29 1D [20:07:06]*** FLAG_PRN_KEY set [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 F4 29 00 08 00 00 00 FF 0F 3A [20:07:06]state=0 [20:07:06]Key pressed [20:07:06]Feed [20:07:06]Write to MH i2c: D8 00 00 F5 29 F5 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: D8 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: D8 01 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: D8 01 00 F5 29 00 F6 [20:07:06]int [20:07:06]Write to MH i2c: 01 00 00 F6 29 1F [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 F6 29 00 48 00 00 00 3C 00 AA [20:07:06]state=2 [20:07:06]Key pressed [20:07:06]int [20:07:06]Write to MH i2c: 01 00 00 F7 29 20 [20:07:06]*** FLAG_PRN_KEY reset [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 F6 0F 2C [20:07:06]state=2 [20:07:06]Stop feed [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 F8 29 21 [20:07:07]*** FLAG_PRN_KEY set [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 F8 29 00 08 00 00 00 FF 0F 3E [20:07:07]state=0 [20:07:07]Key pressed [20:07:07]Feed [20:07:07]Write to MH i2c: D8 00 00 F9 29 F9 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 01 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 01 00 F9 29 00 FA [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 FA 29 23 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 FA 29 00 48 00 00 00 3C 00 AE [20:07:07]state=2 [20:07:07]Key pressed [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 FB 29 24 [20:07:07]*** FLAG_PRN_KEY reset [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 F6 0F 30 [20:07:07]state=2 [20:07:07]Stop feed [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 FC 29 25 [20:07:07]*** FLAG_PRN_KEY set [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 FC 29 00 08 00 00 00 FF 0F 42 [20:07:07]state=0 [20:07:07]Key pressed [20:07:07]Feed [20:07:07]Write to MH i2c: D8 00 00 FD 29 FD [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 01 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: D8 01 00 FD 29 00 FE [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 FE 29 27 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 FE 29 00 48 00 00 00 3C 00 B2 [20:07:07]state=2 [20:07:07]Key pressed [20:07:07]int [20:07:07]Write to MH i2c: 01 00 00 FF 29 28 [20:07:07]*** FLAG_PRN_KEY reset [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 F6 0F 34 [20:07:07]state=2 [20:07:07]Stop feed [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:20]accept exits with 9 [20:09:20]New connection [20:09:20]New thread 3067174244 created [20:09:20]Thread 3067030884 joined [20:09:20]Waiting for new connection... [20:09:20] Sock 9.Parse request [20:09:20]Sock 9.Check first char [20:09:20]Sock 9.First char is OK [20:09:20]request: POST /json_proto HTTP/1.0 [20:09:20]Method: POST [20:09:20]URL: /json_proto [20:09:20]Method is POST - this is cgi request [20:09:20]url: /json_proto [20:09:20]query_string will be loaded in cgi processing [20:09:20]execute_cgi json_proto POST (null) [20:09:20]execute_cgi path=json_proto method=POST [20:09:20]POST find Content-Length [20:09:20]Host: 172.17.41.195:8080 [20:09:20]Content-Length: 675 [20:09:20]Content-Type: application/json [20:09:20] [20:09:20]POST finish read [20:09:20]Found Content-Length = 675 [20:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [20:09:20]execute_script... [20:09:20]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)507336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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" ] } } [20:09:20]POST & json_proto [20:09:20]process_json_proto [20:09:20]json parsed OK: [20:09:20]protocol is kg_v1.0 [20:09:20]action value=close_receipt [20:09:20]process_action close_receipt [20:09:20]cmd_close_receipt [20:09:20]MH_GetDate [20:09:20]Write to MH i2c: F0 00 00 00 2A 19 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 09 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: F0 09 00 00 2A 00 73 16 45 66 FC 21 6F 64 46 [20:09:20]GetLastDocTimeStamp 1715803615 [20:09:20]current date 1715803763 [20:09:20]FM_GetShiftState [20:09:20]SAM_PROTO_GetShiftState [20:09:20]wFMCommunicate request_size=4 [20:09:20]MH_SAM_APDU [20:09:20]CAPDU: 80 13 01 00 [20:09:20]Write to MH i2c: E2 08 00 01 2A 80 13 01 00 00 00 00 00 A8 [20:09:20]Write i2c OK [20:09:20]MH_I2C_Read... [20:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:20]Read from MH i2c: E2 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0E 00 [20:09:20]MH_I2C_Read... [20:09:20]Read from MH i2c: E2 0E 00 01 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 53 [20:09:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:09:20]wFMCommunicate OK [20:09:20]SAM_PROTO_GetShiftState done [20:09:20]FM_GetShiftState done [20:09:20]opened in 1715732471 [20:09:20]opened+sec_in_day 1715818871 [20:09:20]quantity*price = 100005 [20:09:20]sum+1 = 100006 [20:09:20]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 СНО: Общий режим Чек 174 15.05.2024 20:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67356 ФПД: 4934372268842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200923&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67356&fm=4934372268842&tin=02508201610067®Number=0000000000091845&sum=100000 [20:09:21]StoreToDocumentArchive [20:09:21]shift 356 fd 67356 [20:09:21]save to /storage/0356/doc_00067356 [20:09:21]save last doc name /storage/0356/doc_00067356 to /storage/kkm_last_doc_name [20:09:21]save OK [20:09:21]Clear old archive folders... [20:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:09:21]tlvbuf is 00B75A70 [20:09:21]SAM_PROTO_ClearQueue [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 09 00 00 [20:09:21]Write to MH i2c: E2 08 00 0E 2A 80 09 00 00 00 00 00 00 AA [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:21]Read from MH i2c: E2 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 [20:09:21]MH_I2C_Read... [20:09:21]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [20:09:21]RAPDU: 90 00 [20:09:21]wFMCommunicate OK [20:09:21]SAM_PROTO_ClearQueue done [20:09:21]KKMCreateOFDPacket [20:09:21]OFDProtocolAddRootSTLVToBuf [20:09:21]FM_MakeSignedData [20:09:21]FM_MakeSignedData [20:09:21]SAM_PROTO_SignData [20:09:21]wFMCommunicate request_size=4 [20:09:21]MH_SAM_APDU [20:09:21]CAPDU: 80 0D 01 02 [20:09:21]Write to MH i2c: E2 08 00 0F 2A 80 0D 01 02 00 00 00 00 B2 [20:09:21]Write i2c OK [20:09:21]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=255 [20:09:22]MH_SAM_APDU [20:09:22]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 AE 00 00 00 F4 03 04 00 73 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [20:09:22]Write to MH i2c: E2 02 01 10 2A 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 AE 00 00 00 F4 03 04 00 73 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 5A [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=11 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 02 02 06 04 7C DF 81 9B 2A [20:09:22]Write to MH i2c: E2 0E 00 11 2A 80 0D 02 02 06 00 04 7C DF 81 9B 2A 00 00 66 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [20:09:22]RAPDU: 90 00 [20:09:22]wFMCommunicate OK [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 0D 03 02 [20:09:22]Write to MH i2c: E2 08 00 12 2A 80 0D 03 02 00 00 00 00 B7 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0B 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 0B 00 12 2A 00 5A 44 92 43 E3 5C 63 0E 90 00 DB [20:09:22]RAPDU: 5A 44 92 43 E3 5C 63 0E 90 00 [20:09:22]wFMCommunicate OK [20:09:22]SAM_PROTO_SignData done [20:09:22]FM_MakeSignedData done [20:09:22]CreateOFDProtocolMessage [20:09:22]wFMCommunicate request_size=4 [20:09:22]MH_SAM_APDU [20:09:22]CAPDU: 80 11 00 00 [20:09:22]Write to MH i2c: E2 08 00 13 2A 80 11 00 00 00 00 00 00 B7 [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:22]Read from MH i2c: E2 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 17 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: E2 17 00 13 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [20:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:09:22]wFMCommunicate OK [20:09:22]CreateOFDProtocolMessage done [20:09:22]OFDSenderStorePacket 67356 [20:09:22]StoreOFDPacket docnum=67356 [20:09:22]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 98 08 01 57 F4 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 AE 00 00 00 F4 03 04 00 73 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 04 7C DF 81 9B 2A 5A 44 92 43 E3 5C 63 0E [20:09:22]CheckFolder [20:09:22]dirname=/storage/ofd_packets [20:09:22]CheckFolder done [20:09:22]ProducePacketName [20:09:22]name=ofd_packets/00067356 [20:09:22]NVStorageSaveData ofd_packets/00067356 [20:09:22]File name is /storage/ofd_packets/00067356 [20:09:22]Write 302 bytes [20:09:22]NVStorageSaveData done [20:09:22]OFDSenderStorePacket done [20:09:22]KKMCreateOFDPacket done [20:09:22]NVStorageSaveData kkm_last_timestamp [20:09:22]File name is /storage/kkm_last_timestamp [20:09:22]Write 4 bytes [20:09:22]NVStorageSaveData done [20:09:22]ExternCall_PrintAddStr [20:09:22]wPrintStart [20:09:22]Write to MH i2c: 01 00 00 14 2A 3E [20:09:22]Write i2c OK [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 07 00 [20:09:22]MH_I2C_Read... [20:09:22]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 FF 0F 53 [20:09:22]RasterBufferAndPrint [20:09:22]line Счет N : (1)507336 [20:09:22]line ИНН: 02508201610067 [20:09:22]line Контрольно-Кассовый Чек [20:09:22]line ПРОДАЖА [20:09:22]line ТРК (МРК, ГНК) : 12 [20:09:22]line Товар: 2710124130 [20:09:22]line Super-92-К-5 [20:09:22]line 14.750 * 67.80 [20:09:22]line = 1000.05 [20:09:22]line НДС 12% НСП 1% [20:09:22]line > о реализуемом товаре [20:09:22]line ОКРУГЛЕНИЕ: -0.05 [20:09:22]line ИТОГО: 1000.00 [20:09:22]line Внесено: 1000.00 [20:09:22]line СДАЧА: 0.00 [20:09:22]line НСП 1% : 8.85 [20:09:22]line НДС 12% : 106.20 [20:09:22]line Наличными: 1000.00 [20:09:22]line Безнал.: 0.00 [20:09:22]line Место: АЗС № 91 "Партнер Нефть" [20:09:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:09:22]line СНО: Общий режим [20:09:22]line Чек 174 15.05.2024 20:09 [20:09:22]line Смена: 356 ФФД: 1.0 [20:09:22]line ЗНМ: 0300000119 [20:09:22]line РНМ: 0000000000091845 [20:09:22]line Версия ККМ: 001 [20:09:22]line ФМ: 0000000000871829 [20:09:22]line ФД: 67356 [20:09:22]line ФПД: 4934372268842 [20:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T200923&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67356&fm=4934372268842&tin=02508201610067®Number=0000000000091845&sum=100000 [20:09:22]written 0, free lines is 4095 [20:09:22]OFD Sender: Processing packet 67356 [packets to send 35, broken 34] [20:09:22]ProducePacketName [20:09:22]name=ofd_packets/00067356 [20:09:22]OFD Sender: To server: pG, [20:09:22]CommunicateWithHost lk.salyk.kg:30040 [20:09:22]ConnectInit lk.salyk.kg [20:09:22]Connected sock=10 [20:09:22]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 98 08 01 57 F4 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 AE 00 00 00 F4 03 04 00 73 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 04 7C DF 81 9B 2A 5A 44 92 43 E3 5C 63 0E [20:09: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 2A 5F 47 00 5D 05 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 07 01 00 F4 03 04 00 4F BE 44 66 B6 04 01 00 00 A4 8F 6F D5 B7 BA CA B8 [20:09:23]CommunicateWithHost err = 0 [20:09:23]CheckOFDResponse [20:09:23]1017 (14) - 77093643461234 [20:09:23]1041 (16) - 0000000000871829 [20:09:23]1040 (4) - 67356 [20:09:23]1012 (4) - 15.05.2024 13:53 [20:09:23]1206 (1) - 0 [20:09:23]OFD Sender: Remove packet 67356 [20:09:23]ProducePacketName [20:09:23]name=ofd_packets/00067356 [20:09:23]NVStorageDeleteData [20:09:23]Write to MH i2c: 01 00 00 3E 2A 68 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: 01 07 00 3E 2A 00 00 00 00 00 D0 0C 4B [20:09:23]RasterBufferAndPrint [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]line [20:09:23]written 0, free lines is 3286 [20:09:23]MH_Cut [20:09:23]Write to MH i2c: D1 01 00 45 2A 01 41 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 01 00 [20:09:23]MH_I2C_Read... [20:09:23]Read from MH i2c: D1 01 00 45 2A 00 40 [20:09:23]Write to MH i2c: 01 00 00 46 2A 70 [20:09:23]Write i2c OK [20:09:23]MH_I2C_Read... [20:09:23]OFD Sender: No OFD packet to send [20:09:24]*** Cut start [20:09:24]*** Purtial cut [20:09:24]*** CUTSNS_PIN = 0 [20:09:24]*** Stage 1: CUTSNS_PIN = 1 [20:09:26]Read from MH i2c: 01 [20:09:26]MH_I2C_Read... [20:09:26]*** Stop cut motor [20:09:26]*** Cut end [20:09:26]Read from MH i2c: 01 07 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 FF 0F 85 [20:09:26]process_action close_receipt done [20:09:26]requested_data is exist [20:09:26]produce_requested_data [20:09:26]requested_item fm.sn is exist - process it [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 11 00 00 [20:09:26]Write to MH i2c: E2 08 00 47 2A 80 11 00 00 00 00 00 00 EB [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 17 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 17 00 47 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 41 [20:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:09:26]wFMCommunicate OK [20:09:26]requested_item fd.num is exist - process it [20:09:26]SAM_PROTO_GetFieldsCounters [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 13 00 00 [20:09:26]Write to MH i2c: E2 08 00 48 2A 80 13 00 00 00 00 00 00 EE [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 62 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 62 00 48 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 1C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:09: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 1C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:26]wFMCommunicate OK [20:09:26]SAM_PROTO_GetFieldsCounters done [20:09:26]requested_item shift.num is exist - process it [20:09:26]requested_item shift.opened is exist - process it [20:09:26]req_shift_opened [20:09:26]FM_GetShiftState [20:09:26]SAM_PROTO_GetShiftState [20:09:26]wFMCommunicate request_size=4 [20:09:26]MH_SAM_APDU [20:09:26]CAPDU: 80 13 01 00 [20:09:26]Write to MH i2c: E2 08 00 49 2A 80 13 01 00 00 00 00 00 F0 [20:09:26]Write i2c OK [20:09:26]MH_I2C_Read... [20:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:26]Read from MH i2c: E2 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0E 00 [20:09:26]MH_I2C_Read... [20:09:26]Read from MH i2c: E2 0E 00 49 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9B [20:09:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:09:26]wFMCommunicate OK [20:09:26]SAM_PROTO_GetShiftState done [20:09:26]FM_GetShiftState done [20:09:26]req_shift_opened done [20:09:26]requested_item shift.open_date is exist - process it [20:09:26]req_shift_open_date [20:09:26]req_shift_open_date done [20:09:26]produce_requested_data done [20:09:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67356,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:09:26]process_action_free close_receipt [20:09:26]json_value_free [20:09:26]json_value_free done [20:09:26]process_json_proto returns [20:09:26]Send response to host [20:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67356,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:09:26]free response buf [20:09:26]execute_script done [20:09:26]execute_script returns [20:09:26]free content buf [20:09:26]Sock 9.Close socket [20:09:26]Sock 9.Thread stoped [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:09:58]accept exits with 7 [20:09:58]New connection [20:09:58]New thread 3067030884 created [20:09:58]Thread 3067174244 joined [20:09:58]Waiting for new connection... [20:09:58] Sock 7.Parse request [20:09:58]Sock 7.Check first char [20:09:58]Sock 7.First char is OK [20:09:58]request: POST /json_proto HTTP/1.0 [20:09:58]Method: POST [20:09:58]URL: /json_proto [20:09:58]Method is POST - this is cgi request [20:09:58]url: /json_proto [20:09:58]query_string will be loaded in cgi processing [20:09:58]execute_cgi json_proto POST (null) [20:09:58]execute_cgi path=json_proto method=POST [20:09:58]POST find Content-Length [20:09:58]Host: 172.17.41.195:8080 [20:09:58]Content-Length: 682 [20:09:58]Content-Type: application/json [20:09:58] [20:09:58]POST finish read [20:09:58]Found Content-Length = 682 [20:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507335", "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 }]} ], "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" ] } } [20:09:58]execute_script... [20:09: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)507335", "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 }]} ], "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" ] } } [20:09:58]POST & json_proto [20:09:58]process_json_proto [20:09:58]json parsed OK: [20:09:58]protocol is kg_v1.0 [20:09:58]action value=close_receipt [20:09:58]process_action close_receipt [20:09:58]cmd_close_receipt [20:09:58]MH_GetDate [20:09:58]Write to MH i2c: F0 00 00 4A 2A 63 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: F0 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: F0 09 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: F0 09 00 4A 2A 00 99 16 45 66 FC 21 6F 64 B6 [20:09:58]GetLastDocTimeStamp 1715803763 [20:09:58]current date 1715803801 [20:09:58]FM_GetShiftState [20:09:58]SAM_PROTO_GetShiftState [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 13 01 00 [20:09:58]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:59]Read from MH i2c: E2 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0E 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9D [20:09:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:09:59]wFMCommunicate OK [20:09:59]SAM_PROTO_GetShiftState done [20:09:59]FM_GetShiftState done [20:09:59]opened in 1715732471 [20:09:59]opened+sec_in_day 1715818871 [20:09:59]quantity*price = 100066 [20:09:59]sum+1 = 100067 [20:09:59]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 СНО: Общий режим Чек 175 15.05.2024 20:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67357 ФПД: 85945595703944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201001&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67357&fm=85945595703944&tin=02508201610067®Number=0000000000091845&sum=100000 [20:10:00]StoreToDocumentArchive [20:10:00]shift 356 fd 67357 [20:10:00]save to /storage/0356/doc_00067357 [20:10:00]save last doc name /storage/0356/doc_00067357 to /storage/kkm_last_doc_name [20:10:00]save OK [20:10:00]Clear old archive folders... [20:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:00]tlvbuf is 00B368C0 [20:10:00]SAM_PROTO_ClearQueue [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 09 00 00 [20:10:00]Write to MH i2c: E2 08 00 58 2A 80 09 00 00 00 00 00 00 F4 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]SAM_PROTO_ClearQueue done [20:10:00]KKMCreateOFDPacket [20:10:00]OFDProtocolAddRootSTLVToBuf [20:10:00]FM_MakeSignedData [20:10:00]FM_MakeSignedData [20:10:00]SAM_PROTO_SignData [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 01 02 [20:10:00]Write to MH i2c: E2 08 00 59 2A 80 0D 01 02 00 00 00 00 FC [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=255 [20:10:00]MH_SAM_APDU [20:10:00]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 AF 00 00 00 F4 03 04 00 99 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 4E [20:10:00]Write to MH i2c: E2 02 01 5A 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 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 AF 00 00 00 F4 03 04 00 99 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 4E 00 00 B6 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=10 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 02 02 05 2A C4 B3 B2 88 [20:10:00]Write to MH i2c: E2 0D 00 5B 2A 80 0D 02 02 05 00 2A C4 B3 B2 88 00 00 E4 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [20:10:00]RAPDU: 90 00 [20:10:00]wFMCommunicate OK [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 0D 03 02 [20:10:00]Write to MH i2c: E2 08 00 5C 2A 80 0D 03 02 00 00 00 00 01 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 0B 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 0B 00 5C 2A 00 2A 73 94 7A 1D 16 FA DD 90 00 B7 [20:10:00]RAPDU: 2A 73 94 7A 1D 16 FA DD 90 00 [20:10:00]wFMCommunicate OK [20:10:00]SAM_PROTO_SignData done [20:10:00]FM_MakeSignedData done [20:10:00]CreateOFDProtocolMessage [20:10:00]wFMCommunicate request_size=4 [20:10:00]MH_SAM_APDU [20:10:00]CAPDU: 80 11 00 00 [20:10:00]Write to MH i2c: E2 08 00 5D 2A 80 11 00 00 00 00 00 00 01 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:00]Read from MH i2c: E2 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 17 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: E2 17 00 5D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [20:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:10:00]wFMCommunicate OK [20:10:00]CreateOFDProtocolMessage done [20:10:00]OFDSenderStorePacket 67357 [20:10:00]StoreOFDPacket docnum=67357 [20:10: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 E3 7E 07 01 9C 2A 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 AF 00 00 00 F4 03 04 00 99 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 4E 2A C4 B3 B2 88 2A 73 94 7A 1D 16 FA DD [20:10:00]CheckFolder [20:10:00]dirname=/storage/ofd_packets [20:10:00]CheckFolder done [20:10:00]ProducePacketName [20:10:00]name=ofd_packets/00067357 [20:10:00]NVStorageSaveData ofd_packets/00067357 [20:10:00]File name is /storage/ofd_packets/00067357 [20:10:00]Write 301 bytes [20:10:00]NVStorageSaveData done [20:10:00]OFDSenderStorePacket done [20:10:00]KKMCreateOFDPacket done [20:10:00]NVStorageSaveData kkm_last_timestamp [20:10:00]File name is /storage/kkm_last_timestamp [20:10:00]Write 4 bytes [20:10:00]NVStorageSaveData done [20:10:00]ExternCall_PrintAddStr [20:10:00]wPrintStart [20:10:00]Write to MH i2c: 01 00 00 5E 2A 88 [20:10:00]Write i2c OK [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 [20:10:00]MH_I2C_Read... [20:10:00]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 FF 0F 9D [20:10:00]RasterBufferAndPrint [20:10:00]line Счет N : (1)507335 [20:10:00]line ИНН: 02508201610067 [20:10:00]line Контрольно-Кассовый Чек [20:10:00]line ПРОДАЖА [20:10:00]line ТРК (МРК, ГНК) : 33 [20:10:00]line Товар: 2710124130 [20:10:00]line Аи-92-К-5 [20:10:00]line 14.980 * 66.80 [20:10:00]line = 1000.66 [20:10:00]line НДС 12% НСП 1% [20:10:00]line > о реализуемом товаре [20:10:00]line ОКРУГЛЕНИЕ: -0.66 [20:10:00]line ИТОГО: 1000.00 [20:10:00]line Внесено: 1000.00 [20:10:00]line СДАЧА: 0.00 [20:10:00]line НСП 1% : 8.85 [20:10:00]line НДС 12% : 106.26 [20:10:00]line Наличными: 1000.00 [20:10:00]line Безнал.: 0.00 [20:10:00]line Место: АЗС № 91 "Партнер Нефть" [20:10:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:10:00]line СНО: Общий режим [20:10:00]line Чек 175 15.05.2024 20:10 [20:10:00]line Смена: 356 ФФД: 1.0 [20:10:00]line ЗНМ: 0300000119 [20:10:00]line РНМ: 0000000000091845 [20:10:00]line Версия ККМ: 001 [20:10:00]line ФМ: 0000000000871829 [20:10:00]line ФД: 67357 [20:10:00]line ФПД: 85945595703944 [20:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201001&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67357&fm=85945595703944&tin=02508201610067®Number=0000000000091845&sum=100000 [20:10:01]written 0, free lines is 4095 [20:10:01]OFD Sender: Processing packet 67357 [packets to send 35, broken 34] [20:10:01]ProducePacketName [20:10:01]name=ofd_packets/00067357 [20:10:01]OFD Sender: To server: pG, [20:10:01]CommunicateWithHost lk.salyk.kg:30040 [20:10:01]ConnectInit lk.salyk.kg [20:10:01]Connected sock=11 [20:10:01]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 E3 7E 07 01 9C 2A 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 AF 00 00 00 F4 03 04 00 99 16 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 4E 2A C4 B3 B2 88 2A 73 94 7A 1D 16 FA DD [20:10:01]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 24 40 47 00 A5 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 1D 07 01 00 F4 03 04 00 75 BE 44 66 B6 04 01 00 00 B1 61 27 FC D4 58 C9 5A [20:10:01]CommunicateWithHost err = 0 [20:10:01]CheckOFDResponse [20:10:01]1017 (14) - 77093643461234 [20:10:01]1041 (16) - 0000000000871829 [20:10:01]1040 (4) - 67357 [20:10:01]1012 (4) - 15.05.2024 13:53 [20:10:01]1206 (1) - 0 [20:10:01]OFD Sender: Remove packet 67357 [20:10:01]ProducePacketName [20:10:01]name=ofd_packets/00067357 [20:10:01]NVStorageDeleteData [20:10:01]Write to MH i2c: 01 00 00 88 2A B2 [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 07 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 07 00 88 2A 00 00 00 00 00 DC 0C A1 [20:10:01]RasterBufferAndPrint [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]line [20:10:01]written 0, free lines is 3297 [20:10:01]MH_Cut [20:10:01]Write to MH i2c: D1 01 00 8F 2A 01 8B [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 01 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: D1 01 00 8F 2A 00 8A [20:10:01]Write to MH i2c: 01 00 00 90 2A BA [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]OFD Sender: No OFD packet to send [20:10:02]*** Cut start [20:10:02]*** Purtial cut [20:10:02]*** Stage 1: CUTSNS_PIN = 1 [20:10:02]Read from MH i2c: 01 [20:10:02]MH_I2C_Read... [20:10:02]*** Stop cut motor [20:10:02]*** Cut end [20:10:02]Read from MH i2c: 01 07 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: 01 07 00 90 2A 00 00 00 00 00 FF 0F CF [20:10:02]process_action close_receipt done [20:10:02]requested_data is exist [20:10:02]produce_requested_data [20:10:02]requested_item fm.sn is exist - process it [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 11 00 00 [20:10:02]Write to MH i2c: E2 08 00 91 2A 80 11 00 00 00 00 00 00 35 [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 17 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 17 00 91 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [20:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:10:02]wFMCommunicate OK [20:10:02]requested_item fd.num is exist - process it [20:10:02]SAM_PROTO_GetFieldsCounters [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 13 00 00 [20:10:02]Write to MH i2c: E2 08 00 92 2A 80 13 00 00 00 00 00 00 38 [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 62 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 62 00 92 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 1D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [20:10: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 1D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:02]wFMCommunicate OK [20:10:02]SAM_PROTO_GetFieldsCounters done [20:10:02]requested_item shift.num is exist - process it [20:10:02]requested_item shift.opened is exist - process it [20:10:02]req_shift_opened [20:10:02]FM_GetShiftState [20:10:02]SAM_PROTO_GetShiftState [20:10:02]wFMCommunicate request_size=4 [20:10:02]MH_SAM_APDU [20:10:02]CAPDU: 80 13 01 00 [20:10:02]Write to MH i2c: E2 08 00 93 2A 80 13 01 00 00 00 00 00 3A [20:10:02]Write i2c OK [20:10:02]MH_I2C_Read... [20:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:02]Read from MH i2c: E2 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 [20:10:02]MH_I2C_Read... [20:10:02]Read from MH i2c: E2 0E 00 93 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E5 [20:10:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:10:02]wFMCommunicate OK [20:10:02]SAM_PROTO_GetShiftState done [20:10:02]FM_GetShiftState done [20:10:02]req_shift_opened done [20:10:02]requested_item shift.open_date is exist - process it [20:10:02]req_shift_open_date [20:10:02]req_shift_open_date done [20:10:02]produce_requested_data done [20:10:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67357,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:10:02]process_action_free close_receipt [20:10:02]json_value_free [20:10:02]json_value_free done [20:10:02]process_json_proto returns [20:10:02]Send response to host [20:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67357,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:10:02]free response buf [20:10:02]execute_script done [20:10:02]execute_script returns [20:10:02]free content buf [20:10:02]Sock 7.Close socket [20:10:02]Sock 7.Thread stoped [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:10]accept exits with 9 [20:15:10]New connection [20:15:10]New thread 3067174244 created [20:15:10]Thread 3067030884 joined [20:15:10]Waiting for new connection... [20:15:10] Sock 9.Parse request [20:15:10]Sock 9.Check first char [20:15:10]Sock 9.First char is OK [20:15:10]request: POST /json_proto HTTP/1.0 [20:15:10]Method: POST [20:15:10]URL: /json_proto [20:15:10]Method is POST - this is cgi request [20:15:10]url: /json_proto [20:15:10]query_string will be loaded in cgi processing [20:15:10]execute_cgi json_proto POST (null) [20:15:10]execute_cgi path=json_proto method=POST [20:15:10]POST find Content-Length [20:15:10]Host: 172.17.41.195:8080 [20:15:10]Content-Length: 679 [20:15:10]Content-Type: application/json [20:15:10] [20:15:10]POST finish read [20:15:10]Found Content-Length = 679 [20:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507337", "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" : 21.420, "sum" : 1600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:10]execute_script... [20:15: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)507337", "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" : 21.420, "sum" : 1600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:10]POST & json_proto [20:15:10]process_json_proto [20:15:10]json parsed OK: [20:15:10]protocol is kg_v1.0 [20:15:10]action value=close_receipt [20:15:10]process_action close_receipt [20:15:10]cmd_close_receipt [20:15:10]MH_GetDate [20:15:10]Write to MH i2c: F0 00 00 94 2A AD [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: F0 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: F0 09 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: F0 09 00 94 2A 00 D0 17 45 66 FC 21 6F 64 38 [20:15:10]GetLastDocTimeStamp 1715803801 [20:15:10]current date 1715804112 [20:15:10]FM_GetShiftState [20:15:10]SAM_PROTO_GetShiftState [20:15:10]wFMCommunicate request_size=4 [20:15:10]MH_SAM_APDU [20:15:10]CAPDU: 80 13 01 00 [20:15:10]Write to MH i2c: E2 08 00 95 2A 80 13 01 00 00 00 00 00 3C [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:10]Read from MH i2c: E2 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 0E 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 0E 00 95 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E7 [20:15:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:15:10]wFMCommunicate OK [20:15:10]SAM_PROTO_GetShiftState done [20:15:10]FM_GetShiftState done [20:15:10]opened in 1715732471 [20:15:10]opened+sec_in_day 1715818871 [20:15:10]quantity*price = 160007 [20:15:10]sum+1 = 160008 [20:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 176 15.05.2024 20:15 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67358 ФПД: 141908361525663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67358&fm=141908361525663&tin=02508201610067®Number=0000000000091845&sum=160000 [20:15:11]StoreToDocumentArchive [20:15:11]shift 356 fd 67358 [20:15:11]save to /storage/0356/doc_00067358 [20:15:11]save last doc name /storage/0356/doc_00067358 to /storage/kkm_last_doc_name [20:15:11]save OK [20:15:11]Clear old archive folders... [20:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:11]tlvbuf is 00B36F80 [20:15:11]SAM_PROTO_ClearQueue [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 09 00 00 [20:15:11]Write to MH i2c: E2 08 00 A2 2A 80 09 00 00 00 00 00 00 3E [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 03 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 03 00 A2 2A 00 90 00 40 [20:15:11]RAPDU: 90 00 [20:15:11]wFMCommunicate OK [20:15:11]SAM_PROTO_ClearQueue done [20:15:11]KKMCreateOFDPacket [20:15:11]OFDProtocolAddRootSTLVToBuf [20:15:11]FM_MakeSignedData [20:15:11]FM_MakeSignedData [20:15:11]SAM_PROTO_SignData [20:15:11]wFMCommunicate request_size=4 [20:15:11]MH_SAM_APDU [20:15:11]CAPDU: 80 0D 01 02 [20:15:11]Write to MH i2c: E2 08 00 A3 2A 80 0D 01 02 00 00 00 00 46 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:11]Read from MH i2c: E2 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 03 00 [20:15:11]MH_I2C_Read... [20:15:11]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [20:15:11]RAPDU: 90 00 [20:15:11]wFMCommunicate OK [20:15:11]wFMCommunicate request_size=255 [20:15:11]MH_SAM_APDU [20:15:11]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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 17 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 81 10 9D 7A [20:15:11]Write to MH i2c: E2 02 01 A4 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 17 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 81 10 9D 7A 00 00 F6 [20:15:11]Write i2c OK [20:15:11]MH_I2C_Read... [20:15:12]OFD Sender: No OFD packet to send [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=7 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 02 02 02 B9 9F [20:15:12]Write to MH i2c: E2 0A 00 A5 2A 80 0D 02 02 02 00 B9 9F 00 00 A5 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [20:15:12]RAPDU: 90 00 [20:15:12]wFMCommunicate OK [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 0D 03 02 [20:15:12]Write to MH i2c: E2 08 00 A6 2A 80 0D 03 02 00 00 00 00 4B [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 0B 00 A6 2A 00 17 B2 F0 E8 E1 D2 02 9D 90 00 3F [20:15:12]RAPDU: 17 B2 F0 E8 E1 D2 02 9D 90 00 [20:15:12]wFMCommunicate OK [20:15:12]SAM_PROTO_SignData done [20:15:12]FM_MakeSignedData done [20:15:12]CreateOFDProtocolMessage [20:15:12]wFMCommunicate request_size=4 [20:15:12]MH_SAM_APDU [20:15:12]CAPDU: 80 11 00 00 [20:15:12]Write to MH i2c: E2 08 00 A7 2A 80 11 00 00 00 00 00 00 4B [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:12]Read from MH i2c: E2 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: E2 17 00 A7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [20:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:15:12]wFMCommunicate OK [20:15:12]CreateOFDProtocolMessage done [20:15:12]OFDSenderStorePacket 67358 [20:15:12]StoreOFDPacket docnum=67358 [20:15: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 45 BB 04 01 A7 ED 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 17 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 81 10 9D 7A B9 9F 17 B2 F0 E8 E1 D2 02 9D [20:15:12]CheckFolder [20:15:12]dirname=/storage/ofd_packets [20:15:12]CheckFolder done [20:15:12]ProducePacketName [20:15:12]name=ofd_packets/00067358 [20:15:12]NVStorageSaveData ofd_packets/00067358 [20:15:12]File name is /storage/ofd_packets/00067358 [20:15:12]Write 298 bytes [20:15:12]NVStorageSaveData done [20:15:12]OFDSenderStorePacket done [20:15:12]KKMCreateOFDPacket done [20:15:12]NVStorageSaveData kkm_last_timestamp [20:15:12]File name is /storage/kkm_last_timestamp [20:15:12]Write 4 bytes [20:15:12]NVStorageSaveData done [20:15:12]ExternCall_PrintAddStr [20:15:12]wPrintStart [20:15:12]Write to MH i2c: 01 00 00 A8 2A D2 [20:15:12]Write i2c OK [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 [20:15:12]MH_I2C_Read... [20:15:12]Read from MH i2c: 01 07 00 A8 2A 00 00 00 00 00 FF 0F E7 [20:15:12]RasterBufferAndPrint [20:15:12]line Счет N : (1)507337 [20:15:12]line ИНН: 02508201610067 [20:15:12]line Контрольно-Кассовый Чек [20:15:12]line ПРОДАЖА [20:15:12]line ТРК (МРК, ГНК) : 31 [20:15:12]line Товар: 2710194210 [20:15:12]line ДТ-К-5 [20:15:12]line 21.420 * 74.70 [20:15:12]line = 1600.07 [20:15:12]line НДС 12% НСП 1% [20:15:12]line > о реализуемом товаре [20:15:12]line ОКРУГЛЕНИЕ: -0.07 [20:15:12]line ИТОГО: 1600.00 [20:15:12]line Внесено: 1600.00 [20:15:12]line СДАЧА: 0.00 [20:15:12]line НСП 1% : 14.16 [20:15:12]line НДС 12% : 169.92 [20:15:12]line Наличными: 1600.00 [20:15:12]line Безнал.: 0.00 [20:15:12]line Место: АЗС № 91 "Партнер Нефть" [20:15:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:15:12]line СНО: Общий режим [20:15:12]line Чек 176 15.05.2024 20:15 [20:15:12]line Смена: 356 ФФД: 1.0 [20:15:12]line ЗНМ: 0300000119 [20:15:12]line РНМ: 0000000000091845 [20:15:12]line Версия ККМ: 001 [20:15:12]line ФМ: 0000000000871829 [20:15:12]line ФД: 67358 [20:15:12]line ФПД: 141908361525663 [20:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67358&fm=141908361525663&tin=02508201610067®Number=0000000000091845&sum=160000 [20:15:12]written 0, free lines is 4095 [20:15:12]OFD Sender: Processing packet 67358 [packets to send 35, broken 34] [20:15:12]ProducePacketName [20:15:12]name=ofd_packets/00067358 [20:15:12]OFD Sender: To server: pG, [20:15:12]CommunicateWithHost lk.salyk.kg:30040 [20:15:12]ConnectInit lk.salyk.kg [20:15:12]Connected sock=10 [20:15: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 45 BB 04 01 A7 ED 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 17 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 81 10 9D 7A B9 9F 17 B2 F0 E8 E1 D2 02 9D [20:15: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 33 EF 47 00 FE 55 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 07 01 00 F4 03 04 00 AD BF 44 66 B6 04 01 00 00 BB F6 CC 4A 5C 00 2F 5F [20:15:12]CommunicateWithHost err = 0 [20:15:12]CheckOFDResponse [20:15:12]1017 (14) - 77093643461234 [20:15:12]1041 (16) - 0000000000871829 [20:15:12]1040 (4) - 67358 [20:15:12]1012 (4) - 15.05.2024 13:59 [20:15:12]1206 (1) - 0 [20:15:12]OFD Sender: Remove packet 67358 [20:15:12]ProducePacketName [20:15:12]name=ofd_packets/00067358 [20:15:12]NVStorageDeleteData [20:15:13]Write to MH i2c: 01 00 00 D2 2A FC [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: 01 07 00 D2 2A 00 00 00 00 00 C9 0C D8 [20:15:13]RasterBufferAndPrint [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]line [20:15:13]written 0, free lines is 3280 [20:15:13]MH_Cut [20:15:13]Write to MH i2c: D1 01 00 D9 2A 01 D5 [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 [20:15:13]MH_I2C_Read... [20:15:13]Read from MH i2c: D1 01 00 D9 2A 00 D4 [20:15:13]Write to MH i2c: 01 00 00 DA 2A 04 [20:15:13]Write i2c OK [20:15:13]MH_I2C_Read... [20:15:13]OFD Sender: No OFD packet to send [20:15:13]*** Cut start [20:15:13]*** Purtial cut [20:15:13]*** CUTSNS_PIN = 0 [20:15:14]*** Stage 1: CUTSNS_PIN = 1 [20:15:15]Read from MH i2c: 01 [20:15:15]MH_I2C_Read... [20:15:15]*** Stop cut motor [20:15:15]*** Cut end [20:15:15]Read from MH i2c: 01 07 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: 01 07 00 DA 2A 00 00 00 00 00 FF 0F 19 [20:15:15]process_action close_receipt done [20:15:15]requested_data is exist [20:15:15]produce_requested_data [20:15:15]requested_item fm.sn is exist - process it [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 11 00 00 [20:15:15]Write to MH i2c: E2 08 00 DB 2A 80 11 00 00 00 00 00 00 7F [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 17 00 DB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [20:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:15:15]wFMCommunicate OK [20:15:15]requested_item fd.num is exist - process it [20:15:15]SAM_PROTO_GetFieldsCounters [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 00 00 [20:15:15]Write to MH i2c: E2 08 00 DC 2A 80 13 00 00 00 00 00 00 82 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 62 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 62 00 DC 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 1E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20:15: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 1E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_GetFieldsCounters done [20:15:16]requested_item shift.num is exist - process it [20:15:16]requested_item shift.opened is exist - process it [20:15:16]req_shift_opened [20:15:16]FM_GetShiftState [20:15:16]SAM_PROTO_GetShiftState [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 13 01 00 [20:15:16]Write to MH i2c: E2 08 00 DD 2A 80 13 01 00 00 00 00 00 84 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0E 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 0E 00 DD 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2F [20:15:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_GetShiftState done [20:15:16]FM_GetShiftState done [20:15:16]req_shift_opened done [20:15:16]requested_item shift.open_date is exist - process it [20:15:16]req_shift_open_date [20:15:16]req_shift_open_date done [20:15:16]produce_requested_data done [20:15:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67358,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:15:16]process_action_free close_receipt [20:15:16]json_value_free [20:15:16]json_value_free done [20:15:16]process_json_proto returns [20:15:16]Send response to host [20:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67358,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:15:16]free response buf [20:15:16]execute_script done [20:15:16]execute_script returns [20:15:16]free content buf [20:15:16]Sock 9.Close socket [20:15:16]Sock 9.Thread stoped [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:26]int [20:15:26]Write to MH i2c: 01 00 00 DE 2A 08 [20:15:26]*** FLAG_PRN_PAP1 set [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 DE 2A 00 01 00 00 00 FF 0F 1E [20:15:26]state=0 [20:15:26]No paper [20:15:27]int [20:15:27]Write to MH i2c: 01 00 00 DF 2A 09 [20:15:27]*** FLAG_PRN_PAP2 set [20:15:27]Write i2c OK [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: 01 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: 01 07 00 [20:15:27]MH_I2C_Read... [20:15:27]Read from MH i2c: 01 07 00 DF 2A 00 03 00 00 00 FF 0F 21 [20:15:27]state=0 [20:15:27]No paper [20:15:27]Cover opened [20:15:28]OFD Sender: No OFD packet to send [20:15:28]int [20:15:28]Write to MH i2c: 01 00 00 E0 2A 0A [20:15:28]*** FLAG_PRN_PAP1 reset [20:15:28]*** FLAG_PRN_PAP2 reset [20:15:28]Write i2c OK [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 07 00 [20:15:28]MH_I2C_Read... [20:15:28]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 FF 0F 1F [20:15:28]state=3 [20:15:28]Cover closed [20:15:31]int [20:15:31]Write to MH i2c: 01 00 00 E1 2A 0B [20:15:31]*** FLAG_PRN_KEY set [20:15:31]Write i2c OK [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 E1 2A 00 08 00 00 00 FF 0F 28 [20:15:31]state=0 [20:15:31]Key pressed [20:15:31]Feed [20:15:31]Write to MH i2c: D8 00 00 E2 2A E3 [20:15:31]Write i2c OK [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: D8 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: D8 01 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: D8 01 00 E2 2A 00 E4 [20:15:31]int [20:15:31]Write to MH i2c: 01 00 00 E3 2A 0D [20:15:31]Write i2c OK [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 E3 2A 00 48 00 00 00 3C 00 98 [20:15:31]state=2 [20:15:31]Key pressed [20:15:31]int [20:15:31]Write to MH i2c: 01 00 00 E4 2A 0E [20:15:31]*** FLAG_PRN_KEY reset [20:15:31]Write i2c OK [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 [20:15:31]MH_I2C_Read... [20:15:31]Read from MH i2c: 01 07 00 E4 2A 00 00 00 00 00 F6 0F 1A [20:15:31]state=2 [20:15:31]Stop feed [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]accept exits with 7 [20:16:18]New connection [20:16:18]New thread 3067030884 created [20:16:18]Thread 3067174244 joined [20:16:18]Waiting for new connection... [20:16:18] Sock 7.Parse request [20:16:18]Sock 7.Check first char [20:16:18]Sock 7.First char is OK [20:16:18]request: POST /json_proto HTTP/1.0 [20:16:18]Method: POST [20:16:18]URL: /json_proto [20:16:18]Method is POST - this is cgi request [20:16:18]url: /json_proto [20:16:18]query_string will be loaded in cgi processing [20:16:18]execute_cgi json_proto POST (null) [20:16:18]execute_cgi path=json_proto method=POST [20:16:18]POST find Content-Length [20:16:18]Host: 172.17.41.195:8080 [20:16:18]Content-Length: 679 [20:16:18]Content-Type: application/json [20:16:18] [20:16:18]POST finish read [20:16:18]Found Content-Length = 679 [20:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507338", "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" ] } } [20:16:18]execute_script... [20:16: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)507338", "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" ] } } [20:16:18]POST & json_proto [20:16:18]process_json_proto [20:16:18]json parsed OK: [20:16:18]protocol is kg_v1.0 [20:16:18]action value=close_receipt [20:16:18]process_action close_receipt [20:16:18]cmd_close_receipt [20:16:18]MH_GetDate [20:16:18]Write to MH i2c: F0 00 00 E5 2A FE [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: F0 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: F0 09 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: F0 09 00 E5 2A 00 14 18 45 66 FC 21 6F 64 CE [20:16:18]GetLastDocTimeStamp 1715804112 [20:16:18]current date 1715804180 [20:16:18]FM_GetShiftState [20:16:18]SAM_PROTO_GetShiftState [20:16:18]wFMCommunicate request_size=4 [20:16:18]MH_SAM_APDU [20:16:18]CAPDU: 80 13 01 00 [20:16:18]Write to MH i2c: E2 08 00 E6 2A 80 13 01 00 00 00 00 00 8D [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:18]Read from MH i2c: E2 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: E2 0E 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: E2 0E 00 E6 2A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 38 [20:16:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:16:18]wFMCommunicate OK [20:16:18]SAM_PROTO_GetShiftState done [20:16:18]FM_GetShiftState done [20:16:18]opened in 1715732471 [20:16:18]opened+sec_in_day 1715818871 [20:16:18]quantity*price = 100023 [20:16:18]sum+1 = 100024 [20:16:18]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 СНО: Общий режим Чек 177 15.05.2024 20:16 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67359 ФПД: 255718263551452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67359&fm=255718263551452&tin=02508201610067®Number=0000000000091845&sum=100000 [20:16:19]StoreToDocumentArchive [20:16:19]shift 356 fd 67359 [20:16:19]save to /storage/0356/doc_00067359 [20:16:19]save last doc name /storage/0356/doc_00067359 to /storage/kkm_last_doc_name [20:16:19]save OK [20:16:19]Clear old archive folders... [20:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:16:19]tlvbuf is 00B27D40 [20:16:19]SAM_PROTO_ClearQueue [20:16:19]wFMCommunicate request_size=4 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 09 00 00 [20:16:19]Write to MH i2c: E2 08 00 F3 2A 80 09 00 00 00 00 00 00 8F [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:19]Read from MH i2c: E2 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [20:16:19]RAPDU: 90 00 [20:16:19]wFMCommunicate OK [20:16:19]SAM_PROTO_ClearQueue done [20:16:19]KKMCreateOFDPacket [20:16:19]OFDProtocolAddRootSTLVToBuf [20:16:19]FM_MakeSignedData [20:16:19]FM_MakeSignedData [20:16:19]SAM_PROTO_SignData [20:16:19]wFMCommunicate request_size=4 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 0D 01 02 [20:16:19]Write to MH i2c: E2 08 00 F4 2A 80 0D 01 02 00 00 00 00 97 [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:19]Read from MH i2c: E2 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [20:16:19]RAPDU: 90 00 [20:16:19]wFMCommunicate OK [20:16:19]wFMCommunicate request_size=255 [20:16:19]MH_SAM_APDU [20:16: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 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 B1 00 00 00 F4 03 04 00 14 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 E8 93 0C 42 [20:16:19]Write to MH i2c: E2 02 01 F5 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 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 B1 00 00 00 F4 03 04 00 14 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 E8 93 0C 42 00 00 4E [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:19]Read from MH i2c: E2 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [20:16:19]RAPDU: 90 00 [20:16:19]wFMCommunicate OK [20:16:19]wFMCommunicate request_size=7 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 0D 02 02 02 F5 DC [20:16:19]Write to MH i2c: E2 0A 00 F6 2A 80 0D 02 02 02 00 F5 DC 00 00 6F [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:19]Read from MH i2c: E2 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 [20:16:19]MH_I2C_Read... [20:16:19]Read from MH i2c: E2 03 00 F6 2A 00 90 00 94 [20:16:19]RAPDU: 90 00 [20:16:19]wFMCommunicate OK [20:16:19]wFMCommunicate request_size=4 [20:16:19]MH_SAM_APDU [20:16:19]CAPDU: 80 0D 03 02 [20:16:19]Write to MH i2c: E2 08 00 F7 2A 80 0D 03 02 00 00 00 00 9C [20:16:19]Write i2c OK [20:16:19]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0B 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0B 00 F7 2A 00 CB 4D 37 77 2D 05 5D 1E 90 00 10 [20:16:20]RAPDU: CB 4D 37 77 2D 05 5D 1E 90 00 [20:16:20]wFMCommunicate OK [20:16:20]SAM_PROTO_SignData done [20:16:20]FM_MakeSignedData done [20:16:20]CreateOFDProtocolMessage [20:16:20]wFMCommunicate request_size=4 [20:16:20]MH_SAM_APDU [20:16:20]CAPDU: 80 11 00 00 [20:16:20]Write to MH i2c: E2 08 00 F8 2A 80 11 00 00 00 00 00 00 9C [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 17 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 17 00 F8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [20:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:16:20]wFMCommunicate OK [20:16:20]CreateOFDProtocolMessage done [20:16:20]OFDSenderStorePacket 67359 [20:16:20]StoreOFDPacket docnum=67359 [20:16: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 8B 61 04 01 55 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 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 B1 00 00 00 F4 03 04 00 14 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 E8 93 0C 42 F5 DC CB 4D 37 77 2D 05 5D 1E [20:16:20]CheckFolder [20:16:20]dirname=/storage/ofd_packets [20:16:20]CheckFolder done [20:16:20]ProducePacketName [20:16:20]name=ofd_packets/00067359 [20:16:20]NVStorageSaveData ofd_packets/00067359 [20:16:20]File name is /storage/ofd_packets/00067359 [20:16:20]Write 298 bytes [20:16:20]NVStorageSaveData done [20:16:20]OFDSenderStorePacket done [20:16:20]KKMCreateOFDPacket done [20:16:20]NVStorageSaveData kkm_last_timestamp [20:16:20]File name is /storage/kkm_last_timestamp [20:16:20]Write 4 bytes [20:16:20]NVStorageSaveData done [20:16:20]ExternCall_PrintAddStr [20:16:20]wPrintStart [20:16:20]Write to MH i2c: 01 00 00 F9 2A 23 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 F9 2A 00 00 00 00 00 FF 0F 38 [20:16:20]RasterBufferAndPrint [20:16:20]line Счет N : (1)507338 [20:16:20]line ИНН: 02508201610067 [20:16:20]line Контрольно-Кассовый Чек [20:16:20]line ПРОДАЖА [20:16:20]line ТРК (МРК, ГНК) : 31 [20:16:20]line Товар: 2710194210 [20:16:20]line ДТ-К-5 [20:16:20]line 13.390 * 74.70 [20:16:20]line = 1000.23 [20:16:20]line НДС 12% НСП 1% [20:16:20]line > о реализуемом товаре [20:16:20]line ОКРУГЛЕНИЕ: -0.23 [20:16:20]line ИТОГО: 1000.00 [20:16:20]line Внесено: 1000.00 [20:16:20]line СДАЧА: 0.00 [20:16:20]line НСП 1% : 8.85 [20:16:20]line НДС 12% : 106.22 [20:16:20]line Наличными: 1000.00 [20:16:20]line Безнал.: 0.00 [20:16:20]line Место: АЗС № 91 "Партнер Нефть" [20:16:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:16:20]line СНО: Общий режим [20:16:20]line Чек 177 15.05.2024 20:16 [20:16:20]line Смена: 356 ФФД: 1.0 [20:16:20]line ЗНМ: 0300000119 [20:16:20]line РНМ: 0000000000091845 [20:16:20]line Версия ККМ: 001 [20:16:20]line ФМ: 0000000000871829 [20:16:20]line ФД: 67359 [20:16:20]line ФПД: 255718263551452 [20:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T201620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67359&fm=255718263551452&tin=02508201610067®Number=0000000000091845&sum=100000 [20:16:20]OFD Sender: Processing packet 67359 [packets to send 35, broken 34] [20:16:20]ProducePacketName [20:16:20]name=ofd_packets/00067359 [20:16:20]OFD Sender: To server: pG, [20:16:20]CommunicateWithHost lk.salyk.kg:30040 [20:16:20]ConnectInit lk.salyk.kg [20:16:20]written 0, free lines is 4095 [20:16:20]Connected sock=10 [20:16: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 8B 61 04 01 55 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 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 B1 00 00 00 F4 03 04 00 14 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 E8 93 0C 42 F5 DC CB 4D 37 77 2D 05 5D 1E [20:16: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 A4 69 47 00 A6 95 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 07 01 00 F4 03 04 00 F1 BF 44 66 B6 04 01 00 00 19 47 82 BF 31 3F 2B 61 [20:16:20]CommunicateWithHost err = 0 [20:16:20]CheckOFDResponse [20:16:20]1017 (14) - 77093643461234 [20:16:20]1041 (16) - 0000000000871829 [20:16:20]1040 (4) - 67359 [20:16:20]1012 (4) - 15.05.2024 14:00 [20:16:20]1206 (1) - 0 [20:16:20]OFD Sender: Remove packet 67359 [20:16:20]ProducePacketName [20:16:20]name=ofd_packets/00067359 [20:16:20]NVStorageDeleteData [20:16:20]Write to MH i2c: 01 00 00 23 2B 4E [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 23 2B 00 00 00 00 00 CE 0C 2F [20:16:20]RasterBufferAndPrint [20:16:20]line [20:16:20]line [20:16:20]line [20:16:20]line [20:16:20]line [20:16:20]written 0, free lines is 3284 [20:16:20]MH_Cut [20:16:20]Write to MH i2c: D1 01 00 2A 2B 01 27 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: D1 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: D1 01 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: D1 01 00 2A 2B 00 26 [20:16:20]Write to MH i2c: 01 00 00 2B 2B 56 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:21]OFD Sender: No OFD packet to send [20:16:21]*** Cut start [20:16:21]*** Purtial cut [20:16:21]*** Stage 1: CUTSNS_PIN = 1 [20:16:21]Read from MH i2c: 01 [20:16:21]MH_I2C_Read... [20:16:21]*** Stop cut motor [20:16:21]*** Cut end [20:16:21]Read from MH i2c: 01 07 00 [20:16:21]MH_I2C_Read... [20:16:21]Read from MH i2c: 01 07 00 2B 2B 00 00 00 00 00 FF 0F 6B [20:16:21]process_action close_receipt done [20:16:21]requested_data is exist [20:16:21]produce_requested_data [20:16:21]requested_item fm.sn is exist - process it [20:16:21]wFMCommunicate request_size=4 [20:16:21]MH_SAM_APDU [20:16:21]CAPDU: 80 11 00 00 [20:16:21]Write to MH i2c: E2 08 00 2C 2B 80 11 00 00 00 00 00 00 D1 [20:16:21]Write i2c OK [20:16:21]MH_I2C_Read... [20:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:22]Read from MH i2c: E2 [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 17 00 [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 17 00 2C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [20:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:16:22]wFMCommunicate OK [20:16:22]requested_item fd.num is exist - process it [20:16:22]SAM_PROTO_GetFieldsCounters [20:16:22]wFMCommunicate request_size=4 [20:16:22]MH_SAM_APDU [20:16:22]CAPDU: 80 13 00 00 [20:16:22]Write to MH i2c: E2 08 00 2D 2B 80 13 00 00 00 00 00 00 D4 [20:16:22]Write i2c OK [20:16:22]MH_I2C_Read... [20:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:22]Read from MH i2c: E2 [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 62 00 [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 62 00 2D 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 1F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:16: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 1F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:22]wFMCommunicate OK [20:16:22]SAM_PROTO_GetFieldsCounters done [20:16:22]requested_item shift.num is exist - process it [20:16:22]requested_item shift.opened is exist - process it [20:16:22]req_shift_opened [20:16:22]FM_GetShiftState [20:16:22]SAM_PROTO_GetShiftState [20:16:22]wFMCommunicate request_size=4 [20:16:22]MH_SAM_APDU [20:16:22]CAPDU: 80 13 01 00 [20:16:22]Write to MH i2c: E2 08 00 2E 2B 80 13 01 00 00 00 00 00 D6 [20:16:22]Write i2c OK [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 [20:16:22]MH_I2C_Read... [20:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:22]Read from MH i2c: E2 0E 00 [20:16:22]MH_I2C_Read... [20:16:22]Read from MH i2c: E2 0E 00 2E 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 81 [20:16:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:16:22]wFMCommunicate OK [20:16:22]SAM_PROTO_GetShiftState done [20:16:22]FM_GetShiftState done [20:16:22]req_shift_opened done [20:16:22]requested_item shift.open_date is exist - process it [20:16:22]req_shift_open_date [20:16:22]req_shift_open_date done [20:16:22]produce_requested_data done [20:16:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67359,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:16:22]process_action_free close_receipt [20:16:22]json_value_free [20:16:22]json_value_free done [20:16:22]process_json_proto returns [20:16:22]Send response to host [20:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67359,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:16:22]free response buf [20:16:22]execute_script done [20:16:22]execute_script returns [20:16:22]free content buf [20:16:22]Sock 7.Close socket [20:16:22]Sock 7.Thread stoped [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:08]accept exits with 9 [20:20:08]New connection [20:20:08]New thread 3067174244 created [20:20:08]Thread 3067030884 joined [20:20:08]Waiting for new connection... [20:20:08] Sock 9.Parse request [20:20:08]Sock 9.Check first char [20:20:08]Sock 9.First char is OK [20:20:08]request: POST /json_proto HTTP/1.0 [20:20:08]Method: POST [20:20:08]URL: /json_proto [20:20:08]Method is POST - this is cgi request [20:20:08]url: /json_proto [20:20:08]query_string will be loaded in cgi processing [20:20:08]execute_cgi json_proto POST (null) [20:20:08]execute_cgi path=json_proto method=POST [20:20:08]POST find Content-Length [20:20:08]Host: 172.17.41.195:8080 [20:20:08]Content-Length: 642 [20:20:08]Content-Type: application/json [20:20:08] [20:20:08]POST finish read [20:20:08]Found Content-Length = 642 [20:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507339", "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" : 15.000, "sum" : 1002.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]execute_script... [20:20:08]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)507339", "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" : 15.000, "sum" : 1002.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1002.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]POST & json_proto [20:20:08]process_json_proto [20:20:08]json parsed OK: [20:20:08]protocol is kg_v1.0 [20:20:08]action value=close_receipt [20:20:08]process_action close_receipt [20:20:08]cmd_close_receipt [20:20:08]MH_GetDate [20:20:08]Write to MH i2c: F0 00 00 2F 2B 49 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 2F 2B 00 FB 18 45 66 FC 21 6F 64 00 [20:20:08]GetLastDocTimeStamp 1715804180 [20:20:08]current date 1715804411 [20:20:08]FM_GetShiftState [20:20:08]SAM_PROTO_GetShiftState [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 13 01 00 [20:20:08]Write to MH i2c: E2 08 00 30 2B 80 13 01 00 00 00 00 00 D8 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0E 00 30 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 83 [20:20:09]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_GetShiftState done [20:20:09]FM_GetShiftState done [20:20:09]opened in 1715732471 [20:20:09]opened+sec_in_day 1715818871 [20:20:09]quantity*price = 100200 [20:20:09]sum+1 = 100201 [20:20:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1002.00 НСП 1% : 8.87 НДС 12% : 106.41 Наличными: 1002.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 178 15.05.2024 20:20 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67360 ФПД: 95121924790916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202011&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67360&fm=95121924790916&tin=02508201610067®Number=0000000000091845&sum=100200 [20:20:10]StoreToDocumentArchive [20:20:10]shift 356 fd 67360 [20:20:10]save to /storage/0356/doc_00067360 [20:20:10]save last doc name /storage/0356/doc_00067360 to /storage/kkm_last_doc_name [20:20:10]save OK [20:20:10]Clear old archive folders... [20:20:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:10]tlvbuf is 00B278F0 [20:20:10]SAM_PROTO_ClearQueue [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 09 00 00 [20:20:10]Write to MH i2c: E2 08 00 3D 2B 80 09 00 00 00 00 00 00 DA [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 3D 2B 00 90 00 DC [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_ClearQueue done [20:20:10]KKMCreateOFDPacket [20:20:10]OFDProtocolAddRootSTLVToBuf [20:20:10]FM_MakeSignedData [20:20:10]FM_MakeSignedData [20:20:10]SAM_PROTO_SignData [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 0D 01 02 [20:20:10]Write to MH i2c: E2 08 00 3E 2B 80 0D 01 02 00 00 00 00 E2 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=255 [20:20:10]MH_SAM_APDU [20:20:10]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 98 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 68 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FB 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 56 [20:20:10]Write to MH i2c: E2 02 01 3F 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 98 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 68 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FB 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 56 00 00 4C [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=10 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 0D 02 02 05 83 4C 89 9A 84 [20:20:10]Write to MH i2c: E2 0D 00 40 2B 80 0D 02 02 05 00 83 4C 89 9A 84 00 00 65 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [20:20:10]RAPDU: 90 00 [20:20:10]wFMCommunicate OK [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 0D 03 02 [20:20:10]Write to MH i2c: E2 08 00 41 2B 80 0D 03 02 00 00 00 00 E7 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0B 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 0B 00 41 2B 00 DB 34 26 04 3B 43 67 2E 90 00 34 [20:20:10]RAPDU: DB 34 26 04 3B 43 67 2E 90 00 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_SignData done [20:20:10]FM_MakeSignedData done [20:20:10]CreateOFDProtocolMessage [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 11 00 00 [20:20:10]Write to MH i2c: E2 08 00 42 2B 80 11 00 00 00 00 00 00 E7 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 42 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [20:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:20:10]wFMCommunicate OK [20:20:10]CreateOFDProtocolMessage done [20:20:10]OFDSenderStorePacket 67360 [20:20:10]StoreOFDPacket docnum=67360 [20:20: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 0F 01 00 00 2E B3 07 01 6B 8C 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 98 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 68 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FB 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 56 83 4C 89 9A 84 DB 34 26 04 3B 43 67 2E [20:20:10]CheckFolder [20:20:10]dirname=/storage/ofd_packets [20:20:10]CheckFolder done [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00067360 [20:20:10]NVStorageSaveData ofd_packets/00067360 [20:20:10]File name is /storage/ofd_packets/00067360 [20:20:10]Write 301 bytes [20:20:10]NVStorageSaveData done [20:20:10]OFDSenderStorePacket done [20:20:10]KKMCreateOFDPacket done [20:20:10]NVStorageSaveData kkm_last_timestamp [20:20:10]File name is /storage/kkm_last_timestamp [20:20:10]Write 4 bytes [20:20:10]NVStorageSaveData done [20:20:10]ExternCall_PrintAddStr [20:20:10]wPrintStart [20:20:10]Write to MH i2c: 01 00 00 43 2B 6E [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 43 2B 00 00 00 00 00 FF 0F 83 [20:20:10]RasterBufferAndPrint [20:20:10]line Счет N : (1)507339 [20:20:10]line ИНН: 02508201610067 [20:20:10]line Контрольно-Кассовый Чек [20:20:10]line ПРОДАЖА [20:20:10]line ТРК (МРК, ГНК) : 43 [20:20:10]line Товар: 2710124130 [20:20:10]line Аи-92-К-5 [20:20:10]line 15.000 * 66.80 [20:20:10]line = 1002.00 [20:20:10]line НДС 12% НСП 1% [20:20:10]line > о реализуемом товаре [20:20:10]line ИТОГО: 1002.00 [20:20:10]line НСП 1% : 8.87 [20:20:10]line НДС 12% : 106.41 [20:20:10]line Наличными: 1002.00 [20:20:10]line Безнал.: 0.00 [20:20:10]line Место: АЗС № 91 "Партнер Нефть" [20:20:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:20:10]line СНО: Общий режим [20:20:10]line Чек 178 15.05.2024 20:20 [20:20:10]line Смена: 356 ФФД: 1.0 [20:20:10]line ЗНМ: 0300000119 [20:20:10]line РНМ: 0000000000091845 [20:20:10]line Версия ККМ: 001 [20:20:10]line ФМ: 0000000000871829 [20:20:10]line ФД: 67360 [20:20:10]line ФПД: 95121924790916 [20:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202011&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67360&fm=95121924790916&tin=02508201610067®Number=0000000000091845&sum=100200 [20:20:10]OFD Sender: Processing packet 67360 [packets to send 35, broken 34] [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00067360 [20:20:10]OFD Sender: To server: pG, [20:20:10]CommunicateWithHost lk.salyk.kg:30040 [20:20:10]ConnectInit lk.salyk.kg [20:20:10]written 0, free lines is 4095 [20:20:11]Connected sock=10 [20:20: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 2E B3 07 01 6B 8C 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 98 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 68 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 29 00 00 00 00 07 04 06 00 68 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 FB 18 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 56 83 4C 89 9A 84 DB 34 26 04 3B 43 67 2E [20:20: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 66 2C 47 00 D0 05 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 07 01 00 F4 03 04 00 D7 C0 44 66 B6 04 01 00 00 EC 2C 2F 7C 9B 66 7E 3C [20:20:11]CommunicateWithHost err = 0 [20:20:11]CheckOFDResponse [20:20:11]1017 (14) - 77093643461234 [20:20:11]1041 (16) - 0000000000871829 [20:20:11]1040 (4) - 67360 [20:20:11]1012 (4) - 15.05.2024 14:04 [20:20:11]1206 (1) - 0 [20:20:11]OFD Sender: Remove packet 67360 [20:20:11]ProducePacketName [20:20:11]name=ofd_packets/00067360 [20:20:11]NVStorageDeleteData [20:20:11]Write to MH i2c: 01 00 00 6A 2B 95 [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 0C 0D B5 [20:20:11]RasterBufferAndPrint [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]line [20:20:11]written 0, free lines is 3345 [20:20:11]MH_Cut [20:20:11]Write to MH i2c: D1 01 00 71 2B 01 6E [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 01 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: D1 01 00 71 2B 00 6D [20:20:11]Write to MH i2c: 01 00 00 72 2B 9D [20:20:11]Write i2c OK [20:20:11]MH_I2C_Read... [20:20:11]OFD Sender: No OFD packet to send [20:20:12]*** Cut start [20:20:12]*** Purtial cut [20:20:12]*** CUTSNS_PIN = 0 [20:20:12]*** Stage 1: CUTSNS_PIN = 1 [20:20:14]Read from MH i2c: 01 [20:20:14]MH_I2C_Read... [20:20:14]*** Stop cut motor [20:20:14]*** Cut end [20:20:14]Read from MH i2c: 01 07 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [20:20:14]process_action close_receipt done [20:20:14]requested_data is exist [20:20:14]produce_requested_data [20:20:14]requested_item fm.sn is exist - process it [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 11 00 00 [20:20:14]Write to MH i2c: E2 08 00 73 2B 80 11 00 00 00 00 00 00 18 [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:14]Read from MH i2c: E2 17 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 17 00 73 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [20:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:20:14]wFMCommunicate OK [20:20:14]requested_item fd.num is exist - process it [20:20:14]SAM_PROTO_GetFieldsCounters [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 13 00 00 [20:20:14]Write to MH i2c: E2 08 00 74 2B 80 13 00 00 00 00 00 00 1B [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 62 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 62 00 74 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 20 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [20:20: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 20 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:14]wFMCommunicate OK [20:20:14]SAM_PROTO_GetFieldsCounters done [20:20:14]requested_item shift.num is exist - process it [20:20:14]requested_item shift.opened is exist - process it [20:20:14]req_shift_opened [20:20:14]FM_GetShiftState [20:20:14]SAM_PROTO_GetShiftState [20:20:14]wFMCommunicate request_size=4 [20:20:14]MH_SAM_APDU [20:20:14]CAPDU: 80 13 01 00 [20:20:14]Write to MH i2c: E2 08 00 75 2B 80 13 01 00 00 00 00 00 1D [20:20:14]Write i2c OK [20:20:14]MH_I2C_Read... [20:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:14]Read from MH i2c: E2 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 0E 00 [20:20:14]MH_I2C_Read... [20:20:14]Read from MH i2c: E2 0E 00 75 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C8 [20:20:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:20:14]wFMCommunicate OK [20:20:14]SAM_PROTO_GetShiftState done [20:20:14]FM_GetShiftState done [20:20:14]req_shift_opened done [20:20:14]requested_item shift.open_date is exist - process it [20:20:14]req_shift_open_date [20:20:14]req_shift_open_date done [20:20:14]produce_requested_data done [20:20:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67360,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:20:14]process_action_free close_receipt [20:20:14]json_value_free [20:20:14]json_value_free done [20:20:14]process_json_proto returns [20:20:14]Send response to host [20:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67360,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:20:14]free response buf [20:20:14]execute_script done [20:20:14]execute_script returns [20:20:14]free content buf [20:20:14]Sock 9.Close socket [20:20:14]Sock 9.Thread stoped [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:49]int [20:20:49]Write to MH i2c: 01 00 00 76 2B A1 [20:20:49]*** FLAG_PRN_KEY set [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 76 2B 00 08 00 00 00 FF 0F BE [20:20:49]state=0 [20:20:49]Key pressed [20:20:49]Feed [20:20:49]Write to MH i2c: D8 00 00 77 2B 79 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D8 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D8 01 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D8 01 00 77 2B 00 7A [20:20:49]int [20:20:49]Write to MH i2c: 01 00 00 78 2B A3 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 78 2B 00 48 00 00 00 3C 00 2E [20:20:49]state=2 [20:20:49]Key pressed [20:20:50]int [20:20:50]Write to MH i2c: 01 00 00 79 2B A4 [20:20:50]*** FLAG_PRN_KEY reset [20:20:50]Write i2c OK [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 [20:20:50]MH_I2C_Read... [20:20:50]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 F6 0F B0 [20:20:50]state=2 [20:20:50]Stop feed [20:20:51]OFD Sender: No OFD packet to send [20:20:53]int [20:20:53]Write to MH i2c: 01 00 00 7A 2B A5 [20:20:53]*** FLAG_PRN_PAP2 set [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 7A 2B 00 02 00 00 00 FF 0F BC [20:20:53]state=0 [20:20:53]Cover opened [20:20:54]int [20:20:54]Write to MH i2c: 01 00 00 7B 2B A6 [20:20:54]*** FLAG_PRN_PAP1 set [20:20:54]Write i2c OK [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 07 00 [20:20:54]MH_I2C_Read... [20:20:54]Read from MH i2c: 01 07 00 7B 2B 00 03 00 00 00 FF 0F BE [20:20:54]state=3 [20:20:54]No paper [20:20:54]Cover opened [20:20:56]OFD Sender: No OFD packet to send [20:20:59]Write to MH i2c: 01 00 00 7C 2B A7 [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 7C 2B 00 03 00 00 00 FF 0F BF [20:20:59]state=3 [20:20:59]No paper [20:20:59]Cover opened [20:20:59]int [20:20:59]Write to MH i2c: 01 00 00 7D 2B A8 [20:20:59]*** FLAG_PRN_PAP1 reset [20:20:59]*** FLAG_PRN_PAP2 reset [20:20:59]Write i2c OK [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 [20:20:59]MH_I2C_Read... [20:20:59]Read from MH i2c: 01 07 00 7D 2B 00 00 00 00 00 FF 0F BD [20:20:59]state=3 [20:20:59]Cover closed [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:35]accept exits with 7 [20:21:35]New connection [20:21:35]New thread 3067030884 created [20:21:35]Thread 3067174244 joined [20:21:35]Waiting for new connection... [20:21:35] Sock 7.Parse request [20:21:35]Sock 7.Check first char [20:21:35]Sock 7.First char is OK [20:21:35]request: POST /json_proto HTTP/1.0 [20:21:35]Method: POST [20:21:35]URL: /json_proto [20:21:35]Method is POST - this is cgi request [20:21:35]url: /json_proto [20:21:35]query_string will be loaded in cgi processing [20:21:35]execute_cgi json_proto POST (null) [20:21:35]execute_cgi path=json_proto method=POST [20:21:35]POST find Content-Length [20:21:35]Host: 172.17.41.195:8080 [20:21:35]Content-Length: 215 [20:21:35]Content-Type: application/json [20:21:35] [20:21:35]POST finish read [20:21:35]Found Content-Length = 215 [20:21:35]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" ] } } [20:21:35]execute_script... [20:21:35]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" ] } } [20:21:35]POST & json_proto [20:21:35]process_json_proto [20:21:35]json parsed OK: [20:21:35]protocol is kg_v1.0 [20:21:35]action value=get_value [20:21:35]process_action get_value [20:21:35]cmd_get_value [20:21:35]process_action get_value done [20:21:35]requested_data is exist [20:21:35]produce_requested_data [20:21:35]requested_item kkm.sn is exist - process it [20:21:35]requested_item kkm.ver is exist - process it [20:21:35]requested_item fm.sn is exist - process it [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 11 00 00 [20:21:35]Write to MH i2c: E2 08 00 7E 2B 80 11 00 00 00 00 00 00 23 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 17 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 17 00 7E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [20:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:21:35]wFMCommunicate OK [20:21:35]requested_item fd.num is exist - process it [20:21:35]SAM_PROTO_GetFieldsCounters [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 13 00 00 [20:21:35]Write to MH i2c: E2 08 00 7F 2B 80 13 00 00 00 00 00 00 26 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 62 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 62 00 7F 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 20 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:21: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 20 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:35]wFMCommunicate OK [20:21:35]SAM_PROTO_GetFieldsCounters done [20:21:35]requested_item shift.num is exist - process it [20:21:35]requested_item shift.opened is exist - process it [20:21:35]req_shift_opened [20:21:35]FM_GetShiftState [20:21:35]SAM_PROTO_GetShiftState [20:21:35]wFMCommunicate request_size=4 [20:21:35]MH_SAM_APDU [20:21:35]CAPDU: 80 13 01 00 [20:21:35]Write to MH i2c: E2 08 00 80 2B 80 13 01 00 00 00 00 00 28 [20:21:35]Write i2c OK [20:21:35]MH_I2C_Read... [20:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:35]Read from MH i2c: E2 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 0E 00 [20:21:35]MH_I2C_Read... [20:21:35]Read from MH i2c: E2 0E 00 80 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D3 [20:21:35]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:21:35]wFMCommunicate OK [20:21:35]SAM_PROTO_GetShiftState done [20:21:35]FM_GetShiftState done [20:21:35]req_shift_opened done [20:21:35]requested_item shift.open_date is exist - process it [20:21:35]req_shift_open_date [20:21:35]req_shift_open_date done [20:21:35]produce_requested_data done [20:21:35]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67360,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:21:35]process_action_free get_value [20:21:35]json_value_free [20:21:35]json_value_free done [20:21:35]process_json_proto returns [20:21:35]Send response to host [20:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67360,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:21:35]free response buf [20:21:35]execute_script done [20:21:35]execute_script returns [20:21:35]free content buf [20:21:35]Sock 7.Close socket [20:21:35]Sock 7.Thread stoped [20:21:35]accept exits with 9 [20:21:35]New connection [20:21:35]New thread 3067174244 created [20:21:35]Thread 3067030884 joined [20:21:35]Waiting for new connection... [20:21:35] Sock 9.Parse request [20:21:35]Sock 9.Check first char [20:21:35]Sock 9.First char is OK [20:21:35]request: POST /json_proto HTTP/1.0 [20:21:35]Method: POST [20:21:35]URL: /json_proto [20:21:35]Method is POST - this is cgi request [20:21:35]url: /json_proto [20:21:35]query_string will be loaded in cgi processing [20:21:35]execute_cgi json_proto POST (null) [20:21:35]execute_cgi path=json_proto method=POST [20:21:35]POST find Content-Length [20:21:35]Host: 172.17.41.195:8080 [20:21:35]Content-Length: 331 [20:21:35]Content-Type: application/json [20:21:35] [20:21:35]POST finish read [20:21:35]Found Content-Length = 331 [20:21:35]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" ] } } [20:21:35]execute_script... [20:21:36]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" ] } } [20:21:36]POST & json_proto [20:21:36]process_json_proto [20:21:36]json parsed OK: [20:21:36]protocol is kg_v1.0 [20:21:36]action value=get_value [20:21:36]process_action get_value [20:21:36]cmd_get_value [20:21:36]process_action get_value done [20:21:36]requested_data is exist [20:21:36]produce_requested_data [20:21:36]requested_item fm.sale.total is exist - process it [20:21:36]SAM_PROTO_GetFMData [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 13 03 00 [20:21:36]Write to MH i2c: E2 08 00 81 2B 80 13 03 00 00 00 00 00 2B [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:21:36]Read from MH i2c: E2 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 FD 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 FD 00 81 2B 00 C6 04 85 04 C2 04 6E 04 04 00 58 04 01 00 69 04 A3 00 6F 04 04 00 B0 03 01 00 B1 04 05 00 13 53 69 1A 03 70 04 05 00 84 0E 33 BF 02 72 04 04 00 8F 44 36 5B 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 15 B4 5F 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 31 E5 07 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 35 [20:21:36]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 58 04 01 00 69 04 A3 00 6F 04 04 00 B0 03 01 00 B1 04 05 00 13 53 69 1A 03 70 04 05 00 84 0E 33 BF 02 72 04 04 00 8F 44 36 5B 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 15 B4 5F 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 31 E5 07 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [20:21:36]wFMCommunicate OK [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 17 00 00 [20:21:36]Write to MH i2c: E2 08 00 82 2B 80 17 00 00 00 00 00 00 2D [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:36]OFD Sender: No OFD packet to send [20:21:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:36]Read from MH i2c: E2 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 FD 00 [20:21:36]MH_I2C_Read... [20:21:36]Read from MH i2c: E2 FD 00 82 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 51 [20:21:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [20:21:36]wFMCommunicate OK [20:21:36]wFMCommunicate request_size=4 [20:21:36]MH_SAM_APDU [20:21:36]CAPDU: 80 17 00 00 [20:21:36]Write to MH i2c: E2 08 00 83 2B 80 17 00 00 00 00 00 00 2E [20:21:36]Write i2c OK [20:21:36]MH_I2C_Read... [20:21:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:37]Read from MH i2c: E2 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 FD 00 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 FD 00 83 2B 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 55 [20:21:37]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 [20:21:37]wFMCommunicate OK [20:21:37]wFMCommunicate request_size=4 [20:21:37]MH_SAM_APDU [20:21:37]CAPDU: 80 17 00 00 [20:21:37]Write to MH i2c: E2 08 00 84 2B 80 17 00 00 00 00 00 00 2F [20:21:37]Write i2c OK [20:21:37]MH_I2C_Read... [20:21:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:37]Read from MH i2c: E2 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 FD 00 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 FD 00 84 2B 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [20:21:37]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 [20:21:37]wFMCommunicate OK [20:21:37]wFMCommunicate request_size=4 [20:21:37]MH_SAM_APDU [20:21:37]CAPDU: 80 17 00 00 [20:21:37]Write to MH i2c: E2 08 00 85 2B 80 17 00 00 00 00 00 00 30 [20:21:37]Write i2c OK [20:21:37]MH_I2C_Read... [20:21:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [20:21:37]Read from MH i2c: E2 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 E3 00 [20:21:37]MH_I2C_Read... [20:21:37]Read from MH i2c: E2 E3 00 85 2B 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [20:21:37]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 [20:21:37]wFMCommunicate OK [20:21:37]SAM_PROTO_GetFMData done [20:21:37]requested_item fm.sale_refund.total is exist - process it [20:21:37]requested_item fm.buy.total is exist - process it [20:21:37]requested_item shift.sale.total is exist - process it [20:21:37]SAM_PROTO_GetShiftData [20:21:37]wFMCommunicate request_size=4 [20:21:37]MH_SAM_APDU [20:21:37]CAPDU: 80 13 02 00 [20:21:37]Write to MH i2c: E2 08 00 86 2B 80 13 02 00 00 00 00 00 2F [20:21:37]Write i2c OK [20:21:37]MH_I2C_Read... [20:21:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:21:38]Read from MH i2c: E2 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 86 2B 00 BB 04 AA 04 B7 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 AF 00 00 00 B1 04 04 00 75 9A 59 01 70 04 03 00 A8 A8 6D 72 04 03 00 CD F1 EB 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 87 B4 24 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 FE 0E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C9 [20:21:38]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B2 00 00 00 69 04 9D 00 6F 04 04 00 AF 00 00 00 B1 04 04 00 75 9A 59 01 70 04 03 00 A8 A8 6D 72 04 03 00 CD F1 EB 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 87 B4 24 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 FE 0E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [20:21:38]wFMCommunicate OK [20:21:38]wFMCommunicate request_size=4 [20:21:38]MH_SAM_APDU [20:21:38]CAPDU: 80 17 00 00 [20:21:38]Write to MH i2c: E2 08 00 87 2B 80 17 00 00 00 00 00 00 32 [20:21:38]Write i2c OK [20:21:38]MH_I2C_Read... [20:21:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:38]Read from MH i2c: E2 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 87 2B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [20:21:38]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:21:38]wFMCommunicate OK [20:21:38]wFMCommunicate request_size=4 [20:21:38]MH_SAM_APDU [20:21:38]CAPDU: 80 17 00 00 [20:21:38]Write to MH i2c: E2 08 00 88 2B 80 17 00 00 00 00 00 00 33 [20:21:38]Write i2c OK [20:21:38]MH_I2C_Read... [20:21:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:38]Read from MH i2c: E2 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 [20:21:38]MH_I2C_Read... [20:21:38]Read from MH i2c: E2 FD 00 88 2B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [20:21:38]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:21:38]wFMCommunicate OK [20:21:38]wFMCommunicate request_size=4 [20:21:38]MH_SAM_APDU [20:21:38]CAPDU: 80 17 00 00 [20:21:38]Write to MH i2c: E2 08 00 89 2B 80 17 00 00 00 00 00 00 34 [20:21:38]Write i2c OK [20:21:38]MH_I2C_Read... [20:21:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:21:39]Read from MH i2c: E2 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 FD 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 FD 00 89 2B 00 00 00 EF 03 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 90 00 A9 [20:21:39]RAPDU: 00 00 EF 03 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 90 00 [20:21:39]wFMCommunicate OK [20:21:39]wFMCommunicate request_size=4 [20:21:39]MH_SAM_APDU [20:21:39]CAPDU: 80 17 00 00 [20:21:39]Write to MH i2c: E2 08 00 8A 2B 80 17 00 00 00 00 00 00 35 [20:21:39]Write i2c OK [20:21:39]MH_I2C_Read... [20:21:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [20:21:39]Read from MH i2c: E2 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 D8 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 D8 00 8A 2B 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 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 1C [20:21:39]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 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 [20:21:39]wFMCommunicate OK [20:21:39]SAM_PROTO_GetShiftData done [20:21:39]requested_item shift.sale.total_cash is exist - process it [20:21:39]requested_item shift.sale_refund.total is exist - process it [20:21:39]requested_item shift.sale_refund.total_cash is exist - process it [20:21:39]requested_item shift.buy.total is exist - process it [20:21:39]requested_item shift.buy.total_cash is exist - process it [20:21:39]produce_requested_data done [20:21:39]produce_requested_data return {"fm.sale.total":133280120.51,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":226494.61,"shift.sale.total_cash":71866.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:21:39]process_action_free get_value [20:21:39]json_value_free [20:21:39]json_value_free done [20:21:39]process_json_proto returns [20:21:39]Send response to host [20:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133280120.51,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":226494.61,"shift.sale.total_cash":71866.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:21:39]free response buf [20:21:39]execute_script done [20:21:39]execute_script returns [20:21:39]free content buf [20:21:39]Sock 9.Close socket [20:21:39]Sock 9.Thread stoped [20:21:39]accept exits with 7 [20:21:39]New connection [20:21:39]New thread 3067030884 created [20:21:39]Thread 3067174244 joined [20:21:39]Waiting for new connection... [20:21:39] Sock 7.Parse request [20:21:39]Sock 7.Check first char [20:21:39]Sock 7.First char is OK [20:21:39]request: POST /json_proto HTTP/1.0 [20:21:39]Method: POST [20:21:39]URL: /json_proto [20:21:39]Method is POST - this is cgi request [20:21:39]url: /json_proto [20:21:39]query_string will be loaded in cgi processing [20:21:39]execute_cgi json_proto POST (null) [20:21:39]execute_cgi path=json_proto method=POST [20:21:39]POST find Content-Length [20:21:39]Host: 172.17.41.195:8080 [20:21:39]Content-Length: 675 [20:21:39]Content-Type: application/json [20:21:39] [20:21:39]POST finish read [20:21:39]Found Content-Length = 675 [20:21:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507340", "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" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:39]execute_script... [20:21: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)507340", "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" : 19.180, "sum" : 1300.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:39]POST & json_proto [20:21:39]process_json_proto [20:21:39]json parsed OK: [20:21:39]protocol is kg_v1.0 [20:21:39]action value=close_receipt [20:21:39]process_action close_receipt [20:21:39]cmd_close_receipt [20:21:39]MH_GetDate [20:21:39]Write to MH i2c: F0 00 00 8B 2B A5 [20:21:39]Write i2c OK [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 09 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: F0 09 00 8B 2B 00 56 19 45 66 FC 21 6F 64 B8 [20:21:39]GetLastDocTimeStamp 1715804411 [20:21:39]current date 1715804502 [20:21:39]FM_GetShiftState [20:21:39]SAM_PROTO_GetShiftState [20:21:39]wFMCommunicate request_size=4 [20:21:39]MH_SAM_APDU [20:21:39]CAPDU: 80 13 01 00 [20:21:39]Write to MH i2c: E2 08 00 8C 2B 80 13 01 00 00 00 00 00 34 [20:21:39]Write i2c OK [20:21:39]MH_I2C_Read... [20:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:39]Read from MH i2c: E2 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 0E 00 [20:21:39]MH_I2C_Read... [20:21:39]Read from MH i2c: E2 0E 00 8C 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 DF [20:21:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:21:39]wFMCommunicate OK [20:21:39]SAM_PROTO_GetShiftState done [20:21:39]FM_GetShiftState done [20:21:39]opened in 1715732471 [20:21:39]opened+sec_in_day 1715818871 [20:21:39]quantity*price = 130040 [20:21:39]sum+1 = 130041 [20:21:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.10 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 179 15.05.2024 20:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67361 ФПД: 274087819245414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202142&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67361&fm=274087819245414&tin=02508201610067®Number=0000000000091845&sum=130000 [20:21:40]StoreToDocumentArchive [20:21:40]shift 356 fd 67361 [20:21:40]save to /storage/0356/doc_00067361 [20:21:40]save last doc name /storage/0356/doc_00067361 to /storage/kkm_last_doc_name [20:21:40]save OK [20:21:40]Clear old archive folders... [20:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:21:40]tlvbuf is 00B23C20 [20:21:40]SAM_PROTO_ClearQueue [20:21:40]wFMCommunicate request_size=4 [20:21:40]MH_SAM_APDU [20:21:40]CAPDU: 80 09 00 00 [20:21:40]Write to MH i2c: E2 08 00 99 2B 80 09 00 00 00 00 00 00 36 [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:40]Read from MH i2c: E2 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 99 2B 00 90 00 38 [20:21:40]RAPDU: 90 00 [20:21:40]wFMCommunicate OK [20:21:40]SAM_PROTO_ClearQueue done [20:21:40]KKMCreateOFDPacket [20:21:40]OFDProtocolAddRootSTLVToBuf [20:21:40]FM_MakeSignedData [20:21:40]FM_MakeSignedData [20:21:40]SAM_PROTO_SignData [20:21:40]wFMCommunicate request_size=4 [20:21:40]MH_SAM_APDU [20:21:40]CAPDU: 80 0D 01 02 [20:21:40]Write to MH i2c: E2 08 00 9A 2B 80 0D 01 02 00 00 00 00 3E [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:40]Read from MH i2c: E2 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 [20:21:40]MH_I2C_Read... [20:21:40]Read from MH i2c: E2 03 00 9A 2B 00 90 00 39 [20:21:40]RAPDU: 90 00 [20:21:40]wFMCommunicate OK [20:21:40]wFMCommunicate request_size=255 [20:21:40]MH_SAM_APDU [20:21:40]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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [20:21:40]Write to MH i2c: E2 02 01 9B 2B 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 D4 [20:21:40]Write i2c OK [20:21:40]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 9B 2B 00 90 00 3A [20:21:41]RAPDU: 90 00 [20:21:41]wFMCommunicate OK [20:21:41]wFMCommunicate request_size=11 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 0D 02 02 06 F9 48 0B 1A 77 66 [20:21:41]Write to MH i2c: E2 0E 00 9C 2B 80 0D 02 02 06 00 F9 48 0B 1A 77 66 00 00 90 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 03 00 9C 2B 00 90 00 3B [20:21:41]RAPDU: 90 00 [20:21:41]wFMCommunicate OK [20:21:41]wFMCommunicate request_size=4 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 0D 03 02 [20:21:41]Write to MH i2c: E2 08 00 9D 2B 80 0D 03 02 00 00 00 00 43 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 0B 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 0B 00 9D 2B 00 89 0C 19 AD 25 65 3A E2 90 00 45 [20:21:41]RAPDU: 89 0C 19 AD 25 65 3A E2 90 00 [20:21:41]wFMCommunicate OK [20:21:41]SAM_PROTO_SignData done [20:21:41]FM_MakeSignedData done [20:21:41]CreateOFDProtocolMessage [20:21:41]wFMCommunicate request_size=4 [20:21:41]MH_SAM_APDU [20:21:41]CAPDU: 80 11 00 00 [20:21:41]Write to MH i2c: E2 08 00 9E 2B 80 11 00 00 00 00 00 00 43 [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:41]Read from MH i2c: E2 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 17 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: E2 17 00 9E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [20:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:21:41]wFMCommunicate OK [20:21:41]CreateOFDProtocolMessage done [20:21:41]OFDSenderStorePacket 67361 [20:21:41]StoreOFDPacket docnum=67361 [20:21: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 10 01 00 00 DE D8 08 01 C8 BB 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F9 48 0B 1A 77 66 89 0C 19 AD 25 65 3A E2 [20:21:41]CheckFolder [20:21:41]dirname=/storage/ofd_packets [20:21:41]CheckFolder done [20:21:41]ProducePacketName [20:21:41]name=ofd_packets/00067361 [20:21:41]NVStorageSaveData ofd_packets/00067361 [20:21:41]File name is /storage/ofd_packets/00067361 [20:21:41]Write 302 bytes [20:21:41]NVStorageSaveData done [20:21:41]OFDSenderStorePacket done [20:21:41]KKMCreateOFDPacket done [20:21:41]NVStorageSaveData kkm_last_timestamp [20:21:41]File name is /storage/kkm_last_timestamp [20:21:41]Write 4 bytes [20:21:41]NVStorageSaveData done [20:21:41]ExternCall_PrintAddStr [20:21:41]wPrintStart [20:21:41]Write to MH i2c: 01 00 00 9F 2B CA [20:21:41]Write i2c OK [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 [20:21:41]MH_I2C_Read... [20:21:41]Read from MH i2c: 01 07 00 9F 2B 00 00 00 00 00 FF 0F DF [20:21:41]RasterBufferAndPrint [20:21:41]line Счет N : (1)507340 [20:21:41]line ИНН: 02508201610067 [20:21:41]line Контрольно-Кассовый Чек [20:21:41]line ПРОДАЖА [20:21:41]line ТРК (МРК, ГНК) : 22 [20:21:41]line Товар: 2710124130 [20:21:41]line Super-92-К-5 [20:21:41]line 19.180 * 67.80 [20:21:41]line = 1300.40 [20:21:41]line НДС 12% НСП 1% [20:21:41]line > о реализуемом товаре [20:21:41]line ОКРУГЛЕНИЕ: -0.40 [20:21:41]line ИТОГО: 1300.00 [20:21:41]line Внесено: 1300.00 [20:21:41]line СДАЧА: 0.00 [20:21:41]line НСП 1% : 11.51 [20:21:41]line НДС 12% : 138.10 [20:21:41]line Наличными: 1300.00 [20:21:41]line Безнал.: 0.00 [20:21:41]line Место: АЗС № 91 "Партнер Нефть" [20:21:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:21:41]line СНО: Общий режим [20:21:41]line Чек 179 15.05.2024 20:21 [20:21:41]line Смена: 356 ФФД: 1.0 [20:21:41]line ЗНМ: 0300000119 [20:21:41]line РНМ: 0000000000091845 [20:21:41]line Версия ККМ: 001 [20:21:41]line ФМ: 0000000000871829 [20:21:41]line ФД: 67361 [20:21:41]line ФПД: 274087819245414 [20:21:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202142&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67361&fm=274087819245414&tin=02508201610067®Number=0000000000091845&sum=130000 [20:21:41]OFD Sender: Processing packet 67361 [packets to send 35, broken 34] [20:21:41]ProducePacketName [20:21:41]name=ofd_packets/00067361 [20:21:41]OFD Sender: To server: pG, [20:21:41]CommunicateWithHost lk.salyk.kg:30040 [20:21:41]ConnectInit lk.salyk.kg [20:21:41]written 0, free lines is 4095 [20:21:41]Connected sock=10 [20:21: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 10 01 00 00 DE D8 08 01 C8 BB 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 56 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F9 48 0B 1A 77 66 89 0C 19 AD 25 65 3A E2 [20:21: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 62 ED 47 00 FA 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 21 07 01 00 F4 03 04 00 32 C1 44 66 B6 04 01 00 00 E5 15 FB 5E 71 12 ED 1B [20:21:42]CommunicateWithHost err = 0 [20:21:42]CheckOFDResponse [20:21:42]1017 (14) - 77093643461234 [20:21:42]1041 (16) - 0000000000871829 [20:21:42]1040 (4) - 67361 [20:21:42]1012 (4) - 15.05.2024 14:05 [20:21:42]1206 (1) - 0 [20:21:42]OFD Sender: Remove packet 67361 [20:21:42]ProducePacketName [20:21:42]name=ofd_packets/00067361 [20:21:42]NVStorageDeleteData [20:21:42]Write to MH i2c: 01 00 00 C9 2B F4 [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 07 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: 01 07 00 C9 2B 00 00 00 00 00 F6 0C FD [20:21:42]RasterBufferAndPrint [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]line [20:21:42]written 0, free lines is 3338 [20:21:42]MH_Cut [20:21:42]Write to MH i2c: D1 01 00 D0 2B 01 CD [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 01 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: D1 01 00 D0 2B 00 CC [20:21:42]Write to MH i2c: 01 00 00 D1 2B FC [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]OFD Sender: No OFD packet to send [20:21:43]*** Cut start [20:21:43]*** Purtial cut [20:21:43]*** Stage 1: CUTSNS_PIN = 1 [20:21:43]Read from MH i2c: 01 [20:21:43]MH_I2C_Read... [20:21:43]*** Stop cut motor [20:21:43]*** Cut end [20:21:43]Read from MH i2c: 01 07 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: 01 07 00 D1 2B 00 00 00 00 00 FF 0F 11 [20:21:43]process_action close_receipt done [20:21:43]requested_data is exist [20:21:43]produce_requested_data [20:21:43]requested_item fm.sn is exist - process it [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 11 00 00 [20:21:43]Write to MH i2c: E2 08 00 D2 2B 80 11 00 00 00 00 00 00 77 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 17 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 17 00 D2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [20:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:21:43]wFMCommunicate OK [20:21:43]requested_item fd.num is exist - process it [20:21:43]SAM_PROTO_GetFieldsCounters [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 13 00 00 [20:21:43]Write to MH i2c: E2 08 00 D3 2B 80 13 00 00 00 00 00 00 7A [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 62 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 62 00 D3 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 21 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [20:21: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 21 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:43]wFMCommunicate OK [20:21:43]SAM_PROTO_GetFieldsCounters done [20:21:43]requested_item shift.num is exist - process it [20:21:43]requested_item shift.opened is exist - process it [20:21:43]req_shift_opened [20:21:43]FM_GetShiftState [20:21:43]SAM_PROTO_GetShiftState [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 13 01 00 [20:21:43]Write to MH i2c: E2 08 00 D4 2B 80 13 01 00 00 00 00 00 7C [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 D4 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 27 [20:21:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:21:43]wFMCommunicate OK [20:21:43]SAM_PROTO_GetShiftState done [20:21:43]FM_GetShiftState done [20:21:43]req_shift_opened done [20:21:43]requested_item shift.open_date is exist - process it [20:21:43]req_shift_open_date [20:21:43]req_shift_open_date done [20:21:43]produce_requested_data done [20:21:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67361,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:21:43]process_action_free close_receipt [20:21:43]json_value_free [20:21:43]json_value_free done [20:21:43]process_json_proto returns [20:21:43]Send response to host [20:21:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67361,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:21:43]free response buf [20:21:43]execute_script done [20:21:43]execute_script returns [20:21:43]free content buf [20:21:43]Sock 7.Close socket [20:21:43]Sock 7.Thread stoped [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:10]accept exits with 9 [20:23:10]New connection [20:23:10]New thread 3067174244 created [20:23:10]Thread 3067030884 joined [20:23:10]Waiting for new connection... [20:23:10] Sock 9.Parse request [20:23:10]Sock 9.Check first char [20:23:10]Sock 9.First char is OK [20:23:10]request: POST /json_proto HTTP/1.0 [20:23:10]Method: POST [20:23:10]URL: /json_proto [20:23:10]Method is POST - this is cgi request [20:23:10]url: /json_proto [20:23:10]query_string will be loaded in cgi processing [20:23:10]execute_cgi json_proto POST (null) [20:23:10]execute_cgi path=json_proto method=POST [20:23:10]POST find Content-Length [20:23:10]Host: 172.17.41.195:8080 [20:23:10]Content-Length: 682 [20:23:10]Content-Type: application/json [20:23:10] [20:23:10]POST finish read [20:23:10]Found Content-Length = 682 [20:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507341", "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 }]} ], "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" ] } } [20:23:10]execute_script... [20:23: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)507341", "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 }]} ], "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" ] } } [20:23:10]POST & json_proto [20:23:10]process_json_proto [20:23:10]json parsed OK: [20:23:10]protocol is kg_v1.0 [20:23:10]action value=close_receipt [20:23:10]process_action close_receipt [20:23:10]cmd_close_receipt [20:23:10]MH_GetDate [20:23:10]Write to MH i2c: F0 00 00 D5 2B EF [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 09 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: F0 09 00 D5 2B 00 B0 19 45 66 FC 21 6F 64 5C [20:23:10]GetLastDocTimeStamp 1715804502 [20:23:10]current date 1715804592 [20:23:10]FM_GetShiftState [20:23:10]SAM_PROTO_GetShiftState [20:23:10]wFMCommunicate request_size=4 [20:23:10]MH_SAM_APDU [20:23:10]CAPDU: 80 13 01 00 [20:23:10]Write to MH i2c: E2 08 00 D6 2B 80 13 01 00 00 00 00 00 7E [20:23:10]Write i2c OK [20:23:10]MH_I2C_Read... [20:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:10]Read from MH i2c: E2 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0E 00 [20:23:10]MH_I2C_Read... [20:23:10]Read from MH i2c: E2 0E 00 D6 2B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 29 [20:23:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:23:10]wFMCommunicate OK [20:23:10]SAM_PROTO_GetShiftState done [20:23:10]FM_GetShiftState done [20:23:10]opened in 1715732471 [20:23:10]opened+sec_in_day 1715818871 [20:23:10]quantity*price = 100066 [20:23:10]sum+1 = 100067 [20:23:10]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 СНО: Общий режим Чек 180 15.05.2024 20:23 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67362 ФПД: 265271092356920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202313&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67362&fm=265271092356920&tin=02508201610067®Number=0000000000091845&sum=100000 [20:23:11]StoreToDocumentArchive [20:23:11]shift 356 fd 67362 [20:23:11]save to /storage/0356/doc_00067362 [20:23:11]save last doc name /storage/0356/doc_00067362 to /storage/kkm_last_doc_name [20:23:11]save OK [20:23:11]Clear old archive folders... [20:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:11]tlvbuf is 00B3B410 [20:23:11]SAM_PROTO_ClearQueue [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 09 00 00 [20:23:11]Write to MH i2c: E2 08 00 E3 2B 80 09 00 00 00 00 00 00 80 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 E3 2B 00 90 00 82 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]SAM_PROTO_ClearQueue done [20:23:11]KKMCreateOFDPacket [20:23:11]OFDProtocolAddRootSTLVToBuf [20:23:11]FM_MakeSignedData [20:23:11]FM_MakeSignedData [20:23:11]SAM_PROTO_SignData [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 0D 01 02 [20:23:11]Write to MH i2c: E2 08 00 E4 2B 80 0D 01 02 00 00 00 00 88 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 03 00 E4 2B 00 90 00 83 [20:23:11]RAPDU: 90 00 [20:23:11]wFMCommunicate OK [20:23:11]wFMCommunicate request_size=255 [20:23:11]MH_SAM_APDU [20:23: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 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 B4 00 00 00 F4 03 04 00 B1 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F1 [20:23:11]Write to MH i2c: E2 02 01 E5 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 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 B4 00 00 00 F4 03 04 00 B1 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F1 00 00 0A [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 E5 2B 00 90 00 84 [20:23:12]RAPDU: 90 00 [20:23:12]wFMCommunicate OK [20:23:12]wFMCommunicate request_size=10 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 0D 02 02 05 43 3D 3A A7 38 [20:23:12]Write to MH i2c: E2 0D 00 E6 2B 80 0D 02 02 05 00 43 3D 3A A7 38 00 00 2E [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 E6 2B 00 90 00 85 [20:23:12]RAPDU: 90 00 [20:23:12]wFMCommunicate OK [20:23:12]wFMCommunicate request_size=4 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 0D 03 02 [20:23:12]Write to MH i2c: E2 08 00 E7 2B 80 0D 03 02 00 00 00 00 8D [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 0B 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 0B 00 E7 2B 00 9E BC 4A 5F 15 C1 B0 CB 90 00 E2 [20:23:12]RAPDU: 9E BC 4A 5F 15 C1 B0 CB 90 00 [20:23:12]wFMCommunicate OK [20:23:12]SAM_PROTO_SignData done [20:23:12]FM_MakeSignedData done [20:23:12]CreateOFDProtocolMessage [20:23:12]wFMCommunicate request_size=4 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 11 00 00 [20:23:12]Write to MH i2c: E2 08 00 E8 2B 80 11 00 00 00 00 00 00 8D [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 17 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 17 00 E8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [20:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:23:12]wFMCommunicate OK [20:23:12]CreateOFDProtocolMessage done [20:23:12]OFDSenderStorePacket 67362 [20:23:12]StoreOFDPacket docnum=67362 [20:23: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 0F 01 00 00 A8 6A 07 01 01 BE 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 B4 00 00 00 F4 03 04 00 B1 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F1 43 3D 3A A7 38 9E BC 4A 5F 15 C1 B0 CB [20:23:12]CheckFolder [20:23:12]dirname=/storage/ofd_packets [20:23:12]CheckFolder done [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00067362 [20:23:12]NVStorageSaveData ofd_packets/00067362 [20:23:12]File name is /storage/ofd_packets/00067362 [20:23:12]Write 301 bytes [20:23:12]NVStorageSaveData done [20:23:12]OFDSenderStorePacket done [20:23:12]KKMCreateOFDPacket done [20:23:12]NVStorageSaveData kkm_last_timestamp [20:23:12]File name is /storage/kkm_last_timestamp [20:23:12]Write 4 bytes [20:23:12]NVStorageSaveData done [20:23:12]ExternCall_PrintAddStr [20:23:12]wPrintStart [20:23:12]Write to MH i2c: 01 00 00 E9 2B 14 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: 01 07 00 E9 2B 00 00 00 00 00 FF 0F 29 [20:23:12]RasterBufferAndPrint [20:23:12]line Счет N : (1)507341 [20:23:12]line ИНН: 02508201610067 [20:23:12]line Контрольно-Кассовый Чек [20:23:12]line ПРОДАЖА [20:23:12]line ТРК (МРК, ГНК) : 43 [20:23:12]line Товар: 2710124130 [20:23:12]line Аи-92-К-5 [20:23:12]line 14.980 * 66.80 [20:23:12]line = 1000.66 [20:23:12]line НДС 12% НСП 1% [20:23:12]line > о реализуемом товаре [20:23:12]line ОКРУГЛЕНИЕ: -0.66 [20:23:12]line ИТОГО: 1000.00 [20:23:12]line Внесено: 1000.00 [20:23:12]line СДАЧА: 0.00 [20:23:12]line НСП 1% : 8.85 [20:23:12]line НДС 12% : 106.26 [20:23:12]line Наличными: 1000.00 [20:23:12]line Безнал.: 0.00 [20:23:12]line Место: АЗС № 91 "Партнер Нефть" [20:23:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:23:12]line СНО: Общий режим [20:23:12]line Чек 180 15.05.2024 20:23 [20:23:12]line Смена: 356 ФФД: 1.0 [20:23:12]line ЗНМ: 0300000119 [20:23:12]line РНМ: 0000000000091845 [20:23:12]line Версия ККМ: 001 [20:23:12]line ФМ: 0000000000871829 [20:23:12]line ФД: 67362 [20:23:12]line ФПД: 265271092356920 [20:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T202313&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67362&fm=265271092356920&tin=02508201610067®Number=0000000000091845&sum=100000 [20:23:12]written 0, free lines is 4095 [20:23:12]OFD Sender: Processing packet 67362 [packets to send 35, broken 34] [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00067362 [20:23:12]OFD Sender: To server: pG, [20:23:12]CommunicateWithHost lk.salyk.kg:30040 [20:23:12]ConnectInit lk.salyk.kg [20:23:12]Connected sock=7 [20:23: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 0F 01 00 00 A8 6A 07 01 01 BE 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 B4 00 00 00 F4 03 04 00 B1 19 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 F1 43 3D 3A A7 38 9E BC 4A 5F 15 C1 B0 CB [20:23: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 4E 0E 47 00 88 A7 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 07 01 00 F4 03 04 00 8D C1 44 66 B6 04 01 00 00 08 B2 BD 38 ED DD F2 F6 [20:23:12]CommunicateWithHost err = 0 [20:23:12]CheckOFDResponse [20:23:12]1017 (14) - 77093643461234 [20:23:12]1041 (16) - 0000000000871829 [20:23:12]1040 (4) - 67362 [20:23:12]1012 (4) - 15.05.2024 14:07 [20:23:12]1206 (1) - 0 [20:23:12]OFD Sender: Remove packet 67362 [20:23:12]ProducePacketName [20:23:12]name=ofd_packets/00067362 [20:23:12]NVStorageDeleteData [20:23:13]Write to MH i2c: 01 00 00 13 2C 3F [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 13 2C 00 00 00 00 00 E1 0C 33 [20:23:13]RasterBufferAndPrint [20:23:13]line [20:23:13]line [20:23:13]line [20:23:13]line [20:23:13]line [20:23:13]written 0, free lines is 3303 [20:23:13]MH_Cut [20:23:13]Write to MH i2c: D1 01 00 1A 2C 01 18 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: D1 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: D1 01 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: D1 01 00 1A 2C 00 17 [20:23:13]Write to MH i2c: 01 00 00 1B 2C 47 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]OFD Sender: No OFD packet to send [20:23:13]*** Cut start [20:23:13]*** Purtial cut [20:23:13]*** CUTSNS_PIN = 0 [20:23:14]*** Stage 1: CUTSNS_PIN = 1 [20:23:15]Read from MH i2c: 01 [20:23:15]MH_I2C_Read... [20:23:15]*** Stop cut motor [20:23:15]*** Cut end [20:23:15]Read from MH i2c: 01 07 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 1B 2C 00 00 00 00 00 FF 0F 5C [20:23:15]process_action close_receipt done [20:23:15]requested_data is exist [20:23:15]produce_requested_data [20:23:15]requested_item fm.sn is exist - process it [20:23:15]wFMCommunicate request_size=4 [20:23:15]MH_SAM_APDU [20:23:15]CAPDU: 80 11 00 00 [20:23:15]Write to MH i2c: E2 08 00 1C 2C 80 11 00 00 00 00 00 00 C2 [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:15]Read from MH i2c: E2 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 17 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 17 00 1C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [20:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:23:15]wFMCommunicate OK [20:23:15]requested_item fd.num is exist - process it [20:23:15]SAM_PROTO_GetFieldsCounters [20:23:15]wFMCommunicate request_size=4 [20:23:15]MH_SAM_APDU [20:23:15]CAPDU: 80 13 00 00 [20:23:15]Write to MH i2c: E2 08 00 1D 2C 80 13 00 00 00 00 00 00 C5 [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:16]Read from MH i2c: E2 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: E2 62 00 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: E2 62 00 1D 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 22 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [20:23: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 22 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:16]wFMCommunicate OK [20:23:16]SAM_PROTO_GetFieldsCounters done [20:23:16]requested_item shift.num is exist - process it [20:23:16]requested_item shift.opened is exist - process it [20:23:16]req_shift_opened [20:23:16]FM_GetShiftState [20:23:16]SAM_PROTO_GetShiftState [20:23:16]wFMCommunicate request_size=4 [20:23:16]MH_SAM_APDU [20:23:16]CAPDU: 80 13 01 00 [20:23:16]Write to MH i2c: E2 08 00 1E 2C 80 13 01 00 00 00 00 00 C7 [20:23:16]Write i2c OK [20:23:16]MH_I2C_Read... [20:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:16]Read from MH i2c: E2 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: E2 0E 00 [20:23:16]MH_I2C_Read... [20:23:16]Read from MH i2c: E2 0E 00 1E 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 72 [20:23:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:23:16]wFMCommunicate OK [20:23:16]SAM_PROTO_GetShiftState done [20:23:16]FM_GetShiftState done [20:23:16]req_shift_opened done [20:23:16]requested_item shift.open_date is exist - process it [20:23:16]req_shift_open_date [20:23:16]req_shift_open_date done [20:23:16]produce_requested_data done [20:23:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67362,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:23:16]process_action_free close_receipt [20:23:16]json_value_free [20:23:16]json_value_free done [20:23:16]process_json_proto returns [20:23:16]Send response to host [20:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67362,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:23:16]free response buf [20:23:16]execute_script done [20:23:16]execute_script returns [20:23:16]free content buf [20:23:16]Sock 9.Close socket [20:23:16]Sock 9.Thread stoped [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:25]int [20:23:25]Write to MH i2c: 01 00 00 1F 2C 4B [20:23:25]*** FLAG_PRN_PAP1 set [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 1F 2C 00 01 00 00 00 FF 0F 61 [20:23:25]state=0 [20:23:25]No paper [20:23:26]int [20:23:26]Write to MH i2c: 01 00 00 20 2C 4C [20:23:26]*** FLAG_PRN_PAP2 set [20:23:26]Write i2c OK [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 07 00 [20:23:26]MH_I2C_Read... [20:23:26]Read from MH i2c: 01 07 00 20 2C 00 03 00 00 00 FF 0F 64 [20:23:26]state=0 [20:23:26]No paper [20:23:26]Cover opened [20:23:28]OFD Sender: No OFD packet to send [20:23:31]Write to MH i2c: 01 00 00 21 2C 4D [20:23:31]Write i2c OK [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 [20:23:31]MH_I2C_Read... [20:23:31]Read from MH i2c: 01 07 00 21 2C 00 03 00 00 00 FF 0F 65 [20:23:31]state=3 [20:23:31]No paper [20:23:31]Cover opened [20:23:33]OFD Sender: No OFD packet to send [20:23:36]Write to MH i2c: 01 00 00 22 2C 4E [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 22 2C 00 03 00 00 00 FF 0F 66 [20:23:36]state=3 [20:23:36]No paper [20:23:36]Cover opened [20:23:38]OFD Sender: No OFD packet to send [20:23:41]Write to MH i2c: 01 00 00 23 2C 4F [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 23 2C 00 03 00 00 00 FF 0F 67 [20:23:41]state=3 [20:23:41]No paper [20:23:41]Cover opened [20:23:43]OFD Sender: No OFD packet to send [20:23:46]Write to MH i2c: 01 00 00 24 2C 50 [20:23:46]Write i2c OK [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 [20:23:46]MH_I2C_Read... [20:23:46]Read from MH i2c: 01 07 00 24 2C 00 03 00 00 00 FF 0F 68 [20:23:46]state=3 [20:23:46]No paper [20:23:46]Cover opened [20:23:47]int [20:23:47]Write to MH i2c: 01 00 00 25 2C 51 [20:23:47]Write i2c OK [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: 01 [20:23:47]MH_I2C_Read... [20:23:47]Read from MH i2c: 01 07 00 [20:23:47]MH_I2C_Read... [20:23:47]*** FLAG_PRN_PAP2 reset [20:23:47]*** FLAG_PRN_PAP1 reset [20:23:47]Read from MH i2c: 01 07 00 25 2C 00 00 00 00 00 FF 0F 66 [20:23:47]state=3 [20:23:47]Cover closed [20:23:48]int [20:23:48]Write to MH i2c: 01 00 00 26 2C 52 [20:23:48]*** FLAG_PRN_KEY set [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 26 2C 00 08 00 00 00 FF 0F 6F [20:23:48]state=0 [20:23:48]Key pressed [20:23:48]Feed [20:23:48]Write to MH i2c: D8 00 00 27 2C 2A [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: D8 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: D8 01 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: D8 01 00 27 2C 00 2B [20:23:48]int [20:23:48]Write to MH i2c: 01 00 00 28 2C 54 [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 28 2C 00 48 00 00 00 3C 00 DF [20:23:48]state=2 [20:23:48]Key pressed [20:23:48]OFD Sender: No OFD packet to send [20:23:48]int [20:23:48]Write to MH i2c: 01 00 00 29 2C 55 [20:23:48]*** FLAG_PRN_KEY reset [20:23:48]Write i2c OK [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 [20:23:48]MH_I2C_Read... [20:23:48]Read from MH i2c: 01 07 00 29 2C 00 00 00 00 00 FA 0F 65 [20:23:48]state=2 [20:23:48]Stop feed [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:55]accept exits with 10 [20:30:55]New connection [20:30:55]New thread 3067030884 created [20:30:55]Thread 3067174244 joined [20:30:55]Waiting for new connection... [20:30:55] Sock 10.Parse request [20:30:55]Sock 10.Check first char [20:30:55]Sock 10.First char is OK [20:30:55]request: POST /json_proto HTTP/1.0 [20:30:55]Method: POST [20:30:55]URL: /json_proto [20:30:55]Method is POST - this is cgi request [20:30:55]url: /json_proto [20:30:55]query_string will be loaded in cgi processing [20:30:55]execute_cgi json_proto POST (null) [20:30:55]execute_cgi path=json_proto method=POST [20:30:55]POST find Content-Length [20:30:55]Host: 172.17.41.195:8080 [20:30:55]Content-Length: 677 [20:30:55]Content-Type: application/json [20:30:55] [20:30:55]POST finish read [20:30:55]Found Content-Length = 677 [20:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507343", "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" ] } } [20:30:55]execute_script... [20:30: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)507343", "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" ] } } [20:30:55]POST & json_proto [20:30:55]process_json_proto [20:30:55]json parsed OK: [20:30:55]protocol is kg_v1.0 [20:30:55]action value=close_receipt [20:30:55]process_action close_receipt [20:30:55]cmd_close_receipt [20:30:55]MH_GetDate [20:30:55]Write to MH i2c: F0 00 00 2A 2C 45 [20:30:55]Write i2c OK [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 09 00 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: F0 09 00 2A 2C 00 82 1B 45 66 FC 21 6F 64 86 [20:30:55]GetLastDocTimeStamp 1715804593 [20:30:55]current date 1715805058 [20:30:55]FM_GetShiftState [20:30:55]SAM_PROTO_GetShiftState [20:30:55]wFMCommunicate request_size=4 [20:30:55]MH_SAM_APDU [20:30:55]CAPDU: 80 13 01 00 [20:30:55]Write to MH i2c: E2 08 00 2B 2C 80 13 01 00 00 00 00 00 D4 [20:30:55]Write i2c OK [20:30:55]MH_I2C_Read... [20:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:55]Read from MH i2c: E2 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: E2 0E 00 [20:30:55]MH_I2C_Read... [20:30:55]Read from MH i2c: E2 0E 00 2B 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 7F [20:30:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:30:55]wFMCommunicate OK [20:30:55]SAM_PROTO_GetShiftState done [20:30:55]FM_GetShiftState done [20:30:55]opened in 1715732471 [20:30:55]opened+sec_in_day 1715818871 [20:30:55]quantity*price = 40013 [20:30:55]sum+1 = 40014 [20:30:55]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 СНО: Общий режим Чек 181 15.05.2024 20:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67363 ФПД: 110180754968861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203058&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67363&fm=110180754968861&tin=02508201610067®Number=0000000000091845&sum=40000 [20:30:56]StoreToDocumentArchive [20:30:56]shift 356 fd 67363 [20:30:56]save to /storage/0356/doc_00067363 [20:30:56]save last doc name /storage/0356/doc_00067363 to /storage/kkm_last_doc_name [20:30:56]save OK [20:30:56]Clear old archive folders... [20:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:56]tlvbuf is 00B1A930 [20:30:56]SAM_PROTO_ClearQueue [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 09 00 00 [20:30:56]Write to MH i2c: E2 08 00 38 2C 80 09 00 00 00 00 00 00 D6 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_ClearQueue done [20:30:56]KKMCreateOFDPacket [20:30:56]OFDProtocolAddRootSTLVToBuf [20:30:56]FM_MakeSignedData [20:30:56]FM_MakeSignedData [20:30:56]SAM_PROTO_SignData [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 0D 01 02 [20:30:56]Write to MH i2c: E2 08 00 39 2C 80 0D 01 02 00 00 00 00 DE [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 03 00 39 2C 00 90 00 D9 [20:30:56]RAPDU: 90 00 [20:30:56]wFMCommunicate OK [20:30:56]wFMCommunicate request_size=255 [20:30:56]MH_SAM_APDU [20:30:56]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 B5 00 00 00 F4 03 04 00 82 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 64 [20:30:56]Write to MH i2c: E2 02 01 3A 2C 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 B5 00 00 00 F4 03 04 00 82 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 64 00 00 3A [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:57]Read from MH i2c: E2 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 03 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 03 00 3A 2C 00 90 00 DA [20:30:57]RAPDU: 90 00 [20:30:57]wFMCommunicate OK [20:30:57]wFMCommunicate request_size=10 [20:30:57]MH_SAM_APDU [20:30:57]CAPDU: 80 0D 02 02 05 35 74 C2 D1 1D [20:30:57]Write to MH i2c: E2 0D 00 3B 2C 80 0D 02 02 05 00 35 74 C2 D1 1D 00 00 44 [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:57]Read from MH i2c: E2 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 03 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 03 00 3B 2C 00 90 00 DB [20:30:57]RAPDU: 90 00 [20:30:57]wFMCommunicate OK [20:30:57]wFMCommunicate request_size=4 [20:30:57]MH_SAM_APDU [20:30:57]CAPDU: 80 0D 03 02 [20:30:57]Write to MH i2c: E2 08 00 3C 2C 80 0D 03 02 00 00 00 00 E3 [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:57]Read from MH i2c: E2 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 0B 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 0B 00 3C 2C 00 01 66 DE 1B E5 59 95 DD 90 00 F4 [20:30:57]RAPDU: 01 66 DE 1B E5 59 95 DD 90 00 [20:30:57]wFMCommunicate OK [20:30:57]SAM_PROTO_SignData done [20:30:57]FM_MakeSignedData done [20:30:57]CreateOFDProtocolMessage [20:30:57]wFMCommunicate request_size=4 [20:30:57]MH_SAM_APDU [20:30:57]CAPDU: 80 11 00 00 [20:30:57]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:57]Read from MH i2c: E2 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 17 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 39 [20:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:30:57]wFMCommunicate OK [20:30:57]CreateOFDProtocolMessage done [20:30:57]OFDSenderStorePacket 67363 [20:30:57]StoreOFDPacket docnum=67363 [20:30: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 0F 01 00 00 78 83 07 01 0E 8D 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 B5 00 00 00 F4 03 04 00 82 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 64 35 74 C2 D1 1D 01 66 DE 1B E5 59 95 DD [20:30:57]CheckFolder [20:30:57]dirname=/storage/ofd_packets [20:30:57]CheckFolder done [20:30:57]ProducePacketName [20:30:57]name=ofd_packets/00067363 [20:30:57]NVStorageSaveData ofd_packets/00067363 [20:30:57]File name is /storage/ofd_packets/00067363 [20:30:57]Write 301 bytes [20:30:57]NVStorageSaveData done [20:30:57]OFDSenderStorePacket done [20:30:57]KKMCreateOFDPacket done [20:30:57]NVStorageSaveData kkm_last_timestamp [20:30:57]File name is /storage/kkm_last_timestamp [20:30:57]Write 4 bytes [20:30:57]NVStorageSaveData done [20:30:57]ExternCall_PrintAddStr [20:30:57]wPrintStart [20:30:57]Write to MH i2c: 01 00 00 3E 2C 6A [20:30:57]Write i2c OK [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 07 00 [20:30:57]MH_I2C_Read... [20:30:57]Read from MH i2c: 01 07 00 3E 2C 00 00 00 00 00 FF 0F 7F [20:30:57]RasterBufferAndPrint [20:30:57]line Счет N : (1)507343 [20:30:57]line ИНН: 02508201610067 [20:30:57]line Контрольно-Кассовый Чек [20:30:57]line ПРОДАЖА [20:30:57]line ТРК (МРК, ГНК) : 13 [20:30:57]line Товар: 2710124130 [20:30:57]line Аи-92-К-5 [20:30:57]line 5.990 * 66.80 [20:30:57]line = 400.13 [20:30:57]line НДС 12% НСП 1% [20:30:57]line > о реализуемом товаре [20:30:57]line ОКРУГЛЕНИЕ: -0.13 [20:30:57]line ИТОГО: 400.00 [20:30:57]line Внесено: 400.00 [20:30:57]line СДАЧА: 0.00 [20:30:57]line НСП 1% : 3.54 [20:30:57]line НДС 12% : 42.49 [20:30:57]line Наличными: 400.00 [20:30:57]line Безнал.: 0.00 [20:30:57]line Место: АЗС № 91 "Партнер Нефть" [20:30:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:30:57]line СНО: Общий режим [20:30:57]line Чек 181 15.05.2024 20:30 [20:30:57]line Смена: 356 ФФД: 1.0 [20:30:57]line ЗНМ: 0300000119 [20:30:57]line РНМ: 0000000000091845 [20:30:57]line Версия ККМ: 001 [20:30:57]line ФМ: 0000000000871829 [20:30:57]line ФД: 67363 [20:30:57]line ФПД: 110180754968861 [20:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203058&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67363&fm=110180754968861&tin=02508201610067®Number=0000000000091845&sum=40000 [20:30:57]OFD Sender: Processing packet 67363 [packets to send 35, broken 34] [20:30:57]ProducePacketName [20:30:57]name=ofd_packets/00067363 [20:30:57]OFD Sender: To server: pG, [20:30:57]CommunicateWithHost lk.salyk.kg:30040 [20:30:57]ConnectInit lk.salyk.kg [20:30:57]written 0, free lines is 4095 [20:30:57]Connected sock=9 [20:30:57]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 78 83 07 01 0E 8D 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 B5 00 00 00 F4 03 04 00 82 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 64 35 74 C2 D1 1D 01 66 DE 1B E5 59 95 DD [20:30: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 6D EB 47 00 42 35 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 07 01 00 F4 03 04 00 5E C3 44 66 B6 04 01 00 00 02 58 BB 62 58 1E B8 D0 [20:30:58]CommunicateWithHost err = 0 [20:30:58]CheckOFDResponse [20:30:58]1017 (14) - 77093643461234 [20:30:58]1041 (16) - 0000000000871829 [20:30:58]1040 (4) - 67363 [20:30:58]1012 (4) - 15.05.2024 14:14 [20:30:58]1206 (1) - 0 [20:30:58]OFD Sender: Remove packet 67363 [20:30:58]ProducePacketName [20:30:58]name=ofd_packets/00067363 [20:30:58]NVStorageDeleteData [20:30:58]Write to MH i2c: 01 00 00 68 2C 94 [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 07 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 07 00 68 2C 00 00 00 00 00 E0 0C 87 [20:30:58]RasterBufferAndPrint [20:30:58]line [20:30:58]line [20:30:58]line [20:30:58]line [20:30:58]line [20:30:58]written 0, free lines is 3302 [20:30:58]MH_Cut [20:30:58]Write to MH i2c: D1 01 00 6F 2C 01 6D [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: D1 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: D1 01 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: D1 01 00 6F 2C 00 6C [20:30:58]Write to MH i2c: 01 00 00 70 2C 9C [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]OFD Sender: No OFD packet to send [20:30:58]*** Cut start [20:30:58]*** Purtial cut [20:30:58]*** Stage 1: CUTSNS_PIN = 1 [20:30:59]Read from MH i2c: 01 [20:30:59]MH_I2C_Read... [20:30:59]*** Stop cut motor [20:30:59]*** Cut end [20:30:59]Read from MH i2c: 01 07 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: 01 07 00 70 2C 00 00 00 00 00 FF 0F B1 [20:30:59]process_action close_receipt done [20:30:59]requested_data is exist [20:30:59]produce_requested_data [20:30:59]requested_item fm.sn is exist - process it [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 11 00 00 [20:30:59]Write to MH i2c: E2 08 00 71 2C 80 11 00 00 00 00 00 00 17 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 17 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 17 00 71 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [20:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:30:59]wFMCommunicate OK [20:30:59]requested_item fd.num is exist - process it [20:30:59]SAM_PROTO_GetFieldsCounters [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 00 00 [20:30:59]Write to MH i2c: E2 08 00 72 2C 80 13 00 00 00 00 00 00 1A [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 62 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 62 00 72 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 23 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [20:30: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 23 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetFieldsCounters done [20:30:59]requested_item shift.num is exist - process it [20:30:59]requested_item shift.opened is exist - process it [20:30:59]req_shift_opened [20:30:59]FM_GetShiftState [20:30:59]SAM_PROTO_GetShiftState [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 01 00 [20:30:59]Write to MH i2c: E2 08 00 73 2C 80 13 01 00 00 00 00 00 1C [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 73 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C7 [20:30:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetShiftState done [20:30:59]FM_GetShiftState done [20:30:59]req_shift_opened done [20:30:59]requested_item shift.open_date is exist - process it [20:30:59]req_shift_open_date [20:30:59]req_shift_open_date done [20:30:59]produce_requested_data done [20:30:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67363,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:30:59]process_action_free close_receipt [20:30:59]json_value_free [20:30:59]json_value_free done [20:30:59]process_json_proto returns [20:30:59]Send response to host [20:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67363,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:30:59]free response buf [20:30:59]execute_script done [20:30:59]execute_script returns [20:30:59]free content buf [20:30:59]Sock 10.Close socket [20:30:59]Sock 10.Thread stoped [20:30:59]accept exits with 7 [20:30:59]New connection [20:30:59]New thread 3067174244 created [20:30:59]Thread 3067030884 joined [20:30:59]Waiting for new connection... [20:30:59] Sock 7.Parse request [20:30:59]Sock 7.Check first char [20:30:59]Sock 7.First char is OK [20:30:59]request: POST /json_proto HTTP/1.0 [20:30:59]Method: POST [20:30:59]URL: /json_proto [20:30:59]Method is POST - this is cgi request [20:30:59]url: /json_proto [20:30:59]query_string will be loaded in cgi processing [20:30:59]execute_cgi json_proto POST (null) [20:30:59]execute_cgi path=json_proto method=POST [20:30:59]POST find Content-Length [20:30:59]Host: 172.17.41.195:8080 [20:30:59]Content-Length: 800 [20:30:59]Content-Type: application/json [20:30:59] [20:30:59]POST finish read [20:30:59]Found Content-Length = 800 [20:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507342", "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" ] } } [20:30:59]execute_script... [20:30:59]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)507342", "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" ] } } [20:30:59]POST & json_proto [20:30:59]process_json_proto [20:30:59]json parsed OK: [20:30:59]protocol is kg_v1.0 [20:30:59]action value=close_receipt [20:30:59]process_action close_receipt [20:30:59]cmd_close_receipt [20:30:59]MH_GetDate [20:30:59]Write to MH i2c: F0 00 00 74 2C 8F [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 09 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: F0 09 00 74 2C 00 86 1B 45 66 FC 21 6F 64 D4 [20:30:59]GetLastDocTimeStamp 1715805058 [20:30:59]current date 1715805062 [20:30:59]FM_GetShiftState [20:30:59]SAM_PROTO_GetShiftState [20:30:59]wFMCommunicate request_size=4 [20:30:59]MH_SAM_APDU [20:30:59]CAPDU: 80 13 01 00 [20:30:59]Write to MH i2c: E2 08 00 75 2C 80 13 01 00 00 00 00 00 1E [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:59]Read from MH i2c: E2 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: E2 0E 00 75 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C9 [20:30:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:30:59]wFMCommunicate OK [20:30:59]SAM_PROTO_GetShiftState done [20:30:59]FM_GetShiftState done [20:30:59]opened in 1715732471 [20:30:59]opened+sec_in_day 1715818871 [20:30:59]quantity*price = 100023 [20:30:59]sum+1 = 100024 [20:30:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 182 15.05.2024 20:31 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67364 ФПД: 11421001922392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67364&fm=11421001922392&tin=02508201610067®Number=0000000000091845&sum=100023 [20:31:01]StoreToDocumentArchive [20:31:01]shift 356 fd 67364 [20:31:01]save to /storage/0356/doc_00067364 [20:31:01]save last doc name /storage/0356/doc_00067364 to /storage/kkm_last_doc_name [20:31:01]save OK [20:31:01]Clear old archive folders... [20:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:31:01]tlvbuf is 00B120F0 [20:31:01]SAM_PROTO_ClearQueue [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 09 00 00 [20:31:01]Write to MH i2c: E2 08 00 82 2C 80 09 00 00 00 00 00 00 20 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 82 2C 00 90 00 22 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_ClearQueue done [20:31:01]KKMCreateOFDPacket [20:31:01]OFDProtocolAddRootSTLVToBuf [20:31:01]FM_MakeSignedData [20:31:01]FM_MakeSignedData [20:31:01]SAM_PROTO_SignData [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 01 02 [20:31:01]Write to MH i2c: E2 08 00 83 2C 80 0D 01 02 00 00 00 00 28 [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 83 2C 00 90 00 23 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=255 [20:31:01]MH_SAM_APDU [20:31: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 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 B6 00 00 00 F4 03 04 00 86 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A 63 28 C3 [20:31:01]Write to MH i2c: E2 02 01 84 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 B6 00 00 00 F4 03 04 00 86 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A 63 28 C3 00 00 1B [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 84 2C 00 90 00 24 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=7 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 02 02 02 37 58 [20:31:01]Write to MH i2c: E2 0A 00 85 2C 80 0D 02 02 02 00 37 58 00 00 BE [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 03 00 85 2C 00 90 00 25 [20:31:01]RAPDU: 90 00 [20:31:01]wFMCommunicate OK [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 0D 03 02 [20:31:01]Write to MH i2c: E2 08 00 86 2C 80 0D 03 02 00 00 00 00 2D [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0B 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0B 00 86 2C 00 A8 73 E3 BB 4F 65 EB 90 90 00 16 [20:31:01]RAPDU: A8 73 E3 BB 4F 65 EB 90 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_SignData done [20:31:01]FM_MakeSignedData done [20:31:01]CreateOFDProtocolMessage [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 11 00 00 [20:31:01]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:02]Read from MH i2c: E2 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [20:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:31:02]wFMCommunicate OK [20:31:02]CreateOFDProtocolMessage done [20:31:02]OFDSenderStorePacket 67364 [20:31:02]StoreOFDPacket docnum=67364 [20:31: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 0C 01 00 00 C1 CA 04 01 CF D4 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 B6 00 00 00 F4 03 04 00 86 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A 63 28 C3 37 58 A8 73 E3 BB 4F 65 EB 90 [20:31:02]CheckFolder [20:31:02]dirname=/storage/ofd_packets [20:31:02]CheckFolder done [20:31:02]ProducePacketName [20:31:02]name=ofd_packets/00067364 [20:31:02]NVStorageSaveData ofd_packets/00067364 [20:31:02]File name is /storage/ofd_packets/00067364 [20:31:02]Write 298 bytes [20:31:02]NVStorageSaveData done [20:31:02]OFDSenderStorePacket done [20:31:02]KKMCreateOFDPacket done [20:31:02]NVStorageSaveData kkm_last_timestamp [20:31:02]File name is /storage/kkm_last_timestamp [20:31:02]Write 4 bytes [20:31:02]NVStorageSaveData done [20:31:02]ExternCall_PrintAddStr [20:31:02]wPrintStart [20:31:02]Write to MH i2c: 01 00 00 88 2C B4 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 88 2C 00 00 00 00 00 FF 0F C9 [20:31:02]RasterBufferAndPrint [20:31:02]line Счет N : (1)507342 [20:31:02]line ИНН: 02508201610067 [20:31:02]line Контрольно-Кассовый Чек [20:31:02]line ПРОДАЖА [20:31:02]line ТРК (МРК, ГНК) : 31 [20:31:02]line Товар: 2710194210 [20:31:02]line ДТ-К-5 [20:31:02]line 13.390 * 74.70 [20:31:02]line = 1000.23 [20:31:02]line НДС 12% НСП 1% [20:31:02]line > о реализуемом товаре [20:31:02]line ИТОГО: 1000.23 [20:31:02]line НСП 1% : 8.85 [20:31:02]line НДС 12% : 106.22 [20:31:02]line Наличными: 0.00 [20:31:02]line Безнал.: 1000.23 [20:31:02]line Место: АЗС № 91 "Партнер Нефть" [20:31:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:31:02]line СНО: Общий режим [20:31:02]line Чек 182 15.05.2024 20:31 [20:31:02]line Смена: 356 ФФД: 1.0 [20:31:02]line ЗНМ: 0300000119 [20:31:02]line РНМ: 0000000000091845 [20:31:02]line Версия ККМ: 001 [20:31:02]line Платежная система: O! деньги [20:31:02]line ФМ: 0000000000871829 [20:31:02]line ФД: 67364 [20:31:02]line ФПД: 11421001922392 [20:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67364&fm=11421001922392&tin=02508201610067®Number=0000000000091845&sum=100023 [20:31:02]written 0, free lines is 4095 [20:31:02]OFD Sender: Processing packet 67364 [packets to send 35, broken 34] [20:31:02]ProducePacketName [20:31:02]name=ofd_packets/00067364 [20:31:02]OFD Sender: To server: pG, [20:31:02]CommunicateWithHost lk.salyk.kg:30040 [20:31:02]ConnectInit lk.salyk.kg [20:31:02]Connected sock=11 [20:31: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 C1 CA 04 01 CF D4 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 B6 00 00 00 F4 03 04 00 86 1B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 0A 63 28 C3 37 58 A8 73 E3 BB 4F 65 EB 90 [20:31: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 24 57 47 00 3A 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 24 07 01 00 F4 03 04 00 62 C3 44 66 B6 04 01 00 00 99 CD 80 C1 22 78 C1 44 [20:31:02]CommunicateWithHost err = 0 [20:31:02]CheckOFDResponse [20:31:02]1017 (14) - 77093643461234 [20:31:02]1041 (16) - 0000000000871829 [20:31:02]1040 (4) - 67364 [20:31:02]1012 (4) - 15.05.2024 14:14 [20:31:02]1206 (1) - 0 [20:31:02]OFD Sender: Remove packet 67364 [20:31:02]ProducePacketName [20:31:02]name=ofd_packets/00067364 [20:31:02]NVStorageDeleteData [20:31:02]Write to MH i2c: 01 00 00 B1 2C DD [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: 01 07 00 B1 2C 00 00 00 00 00 FF 0C EF [20:31:02]RasterBufferAndPrint [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]line [20:31:02]written 0, free lines is 3336 [20:31:02]MH_Cut [20:31:02]Write to MH i2c: D1 01 00 B8 2C 01 B6 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: D1 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: D1 01 00 [20:31:02]MH_I2C_Read... [20:31:02]Read from MH i2c: D1 01 00 B8 2C 00 B5 [20:31:02]Write to MH i2c: 01 00 00 B9 2C E5 [20:31:02]Write i2c OK [20:31:02]MH_I2C_Read... [20:31:02]OFD Sender: No OFD packet to send [20:31:03]*** Cut start [20:31:03]*** Purtial cut [20:31:03]*** CUTSNS_PIN = 0 [20:31:03]*** Stage 1: CUTSNS_PIN = 1 [20:31:05]Read from MH i2c: 01 [20:31:05]MH_I2C_Read... [20:31:05]*** Stop cut motor [20:31:05]*** Cut end [20:31:05]Read from MH i2c: 01 07 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: 01 07 00 B9 2C 00 00 00 00 00 FF 0F FA [20:31:05]process_action close_receipt done [20:31:05]requested_data is exist [20:31:05]produce_requested_data [20:31:05]requested_item fm.sn is exist - process it [20:31:05]wFMCommunicate request_size=4 [20:31:05]MH_SAM_APDU [20:31:05]CAPDU: 80 11 00 00 [20:31:05]Write to MH i2c: E2 08 00 BA 2C 80 11 00 00 00 00 00 00 60 [20:31:05]Write i2c OK [20:31:05]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 17 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 17 00 BA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B6 [20:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:31:05]wFMCommunicate OK [20:31:05]requested_item fd.num is exist - process it [20:31:05]SAM_PROTO_GetFieldsCounters [20:31:05]wFMCommunicate request_size=4 [20:31:05]MH_SAM_APDU [20:31:05]CAPDU: 80 13 00 00 [20:31:05]Write to MH i2c: E2 08 00 BB 2C 80 13 00 00 00 00 00 00 63 [20:31:05]Write i2c OK [20:31:05]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 62 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 62 00 BB 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 24 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [20:31: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 24 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:05]wFMCommunicate OK [20:31:05]SAM_PROTO_GetFieldsCounters done [20:31:05]requested_item shift.num is exist - process it [20:31:05]requested_item shift.opened is exist - process it [20:31:05]req_shift_opened [20:31:05]FM_GetShiftState [20:31:05]SAM_PROTO_GetShiftState [20:31:05]wFMCommunicate request_size=4 [20:31:05]MH_SAM_APDU [20:31:05]CAPDU: 80 13 01 00 [20:31:05]Write to MH i2c: E2 08 00 BC 2C 80 13 01 00 00 00 00 00 65 [20:31:05]Write i2c OK [20:31:05]MH_I2C_Read... [20:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:05]Read from MH i2c: E2 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 0E 00 [20:31:05]MH_I2C_Read... [20:31:05]Read from MH i2c: E2 0E 00 BC 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 10 [20:31:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:31:05]wFMCommunicate OK [20:31:05]SAM_PROTO_GetShiftState done [20:31:05]FM_GetShiftState done [20:31:05]req_shift_opened done [20:31:05]requested_item shift.open_date is exist - process it [20:31:05]req_shift_open_date [20:31:05]req_shift_open_date done [20:31:05]produce_requested_data done [20:31:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67364,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:31:05]process_action_free close_receipt [20:31:05]json_value_free [20:31:05]json_value_free done [20:31:05]process_json_proto returns [20:31:05]Send response to host [20:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67364,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:31:05]free response buf [20:31:05]execute_script done [20:31:05]execute_script returns [20:31:05]free content buf [20:31:05]Sock 7.Close socket [20:31:05]Sock 7.Thread stoped [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:11]accept exits with 9 [20:33:11]New connection [20:33:11]New thread 3067030884 created [20:33:11]Thread 3067174244 joined [20:33:11]Waiting for new connection... [20:33:11] Sock 9.Parse request [20:33:11]Sock 9.Check first char [20:33:11]Sock 9.First char is OK [20:33:11]request: POST /json_proto HTTP/1.0 [20:33:11]Method: POST [20:33:11]URL: /json_proto [20:33:11]Method is POST - this is cgi request [20:33:11]url: /json_proto [20:33:11]query_string will be loaded in cgi processing [20:33:11]execute_cgi json_proto POST (null) [20:33:11]execute_cgi path=json_proto method=POST [20:33:11]POST find Content-Length [20:33:11]Host: 172.17.41.195:8080 [20:33:11]Content-Length: 816 [20:33:11]Content-Type: application/json [20:33:11] [20:33:11]POST finish read [20:33:11]Found Content-Length = 816 [20:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507344", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:11]execute_script... [20:33: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)507344", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:11]POST & json_proto [20:33:11]process_json_proto [20:33:11]json parsed OK: [20:33:11]protocol is kg_v1.0 [20:33:11]action value=close_receipt [20:33:11]process_action close_receipt [20:33:11]cmd_close_receipt [20:33:11]MH_GetDate [20:33:11]Write to MH i2c: F0 00 00 BD 2C D8 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: F0 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: F0 09 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: F0 09 00 BD 2C 00 0A 1C 45 66 FC 21 6F 64 A2 [20:33:11]GetLastDocTimeStamp 1715805062 [20:33:11]current date 1715805194 [20:33:11]FM_GetShiftState [20:33:11]SAM_PROTO_GetShiftState [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 13 01 00 [20:33:11]Write to MH i2c: E2 08 00 BE 2C 80 13 01 00 00 00 00 00 67 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:12]Read from MH i2c: E2 [20:33:12]MH_I2C_Read... [20:33:12]Read from MH i2c: E2 0E 00 [20:33:12]MH_I2C_Read... [20:33:12]Read from MH i2c: E2 0E 00 BE 2C 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 12 [20:33:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:33:12]wFMCommunicate OK [20:33:12]SAM_PROTO_GetShiftState done [20:33:12]FM_GetShiftState done [20:33:12]opened in 1715732471 [20:33:12]opened+sec_in_day 1715818871 [20:33:12]quantity*price = 200046 [20:33:12]sum+1 = 200048 [20:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 183 15.05.2024 20:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67365 ФПД: 158788926589594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203314&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67365&fm=158788926589594&tin=02508201610067®Number=0000000000091845&sum=200047 [20:33:13]StoreToDocumentArchive [20:33:13]shift 356 fd 67365 [20:33:13]save to /storage/0356/doc_00067365 [20:33:13]save last doc name /storage/0356/doc_00067365 to /storage/kkm_last_doc_name [20:33:13]save OK [20:33:13]Clear old archive folders... [20:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:33:13]tlvbuf is 00BF67E0 [20:33:13]SAM_PROTO_ClearQueue [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 09 00 00 [20:33:13]Write to MH i2c: E2 08 00 CB 2C 80 09 00 00 00 00 00 00 69 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 CB 2C 00 90 00 6B [20:33:13]RAPDU: 90 00 [20:33:13]wFMCommunicate OK [20:33:13]SAM_PROTO_ClearQueue done [20:33:13]KKMCreateOFDPacket [20:33:13]OFDProtocolAddRootSTLVToBuf [20:33:13]FM_MakeSignedData [20:33:13]FM_MakeSignedData [20:33:13]SAM_PROTO_SignData [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 0D 01 02 [20:33:13]Write to MH i2c: E2 08 00 CC 2C 80 0D 01 02 00 00 00 00 71 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 CC 2C 00 90 00 6C [20:33:13]RAPDU: 90 00 [20:33:13]wFMCommunicate OK [20:33:13]wFMCommunicate request_size=255 [20:33:13]MH_SAM_APDU [20:33: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 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 B7 00 00 00 F4 03 04 00 0A 1C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 90 6A ED 90 [20:33:13]Write to MH i2c: E2 02 01 CD 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 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 B7 00 00 00 F4 03 04 00 0A 1C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 90 6A ED 90 00 00 6E [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 CD 2C 00 90 00 6D [20:33:13]RAPDU: 90 00 [20:33:13]wFMCommunicate OK [20:33:13]wFMCommunicate request_size=7 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 0D 02 02 02 4A 9A [20:33:13]Write to MH i2c: E2 0A 00 CE 2C 80 0D 02 02 02 00 4A 9A 00 00 5C [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 03 00 CE 2C 00 90 00 6E [20:33:13]RAPDU: 90 00 [20:33:13]wFMCommunicate OK [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 0D 03 02 [20:33:13]Write to MH i2c: E2 08 00 CF 2C 80 0D 03 02 00 00 00 00 76 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0B 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 0B 00 CF 2C 00 3E 9D DA D8 AB CE 69 16 90 00 FC [20:33:13]RAPDU: 3E 9D DA D8 AB CE 69 16 90 00 [20:33:13]wFMCommunicate OK [20:33:13]SAM_PROTO_SignData done [20:33:13]FM_MakeSignedData done [20:33:13]CreateOFDProtocolMessage [20:33:13]wFMCommunicate request_size=4 [20:33:13]MH_SAM_APDU [20:33:13]CAPDU: 80 11 00 00 [20:33:13]Write to MH i2c: E2 08 00 D0 2C 80 11 00 00 00 00 00 00 76 [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:13]Read from MH i2c: E2 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 17 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: E2 17 00 D0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [20:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:33:13]wFMCommunicate OK [20:33:13]CreateOFDProtocolMessage done [20:33:13]OFDSenderStorePacket 67365 [20:33:13]StoreOFDPacket docnum=67365 [20:33: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 04 AC 04 01 CC 47 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 B7 00 00 00 F4 03 04 00 0A 1C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 90 6A ED 90 4A 9A 3E 9D DA D8 AB CE 69 16 [20:33:13]CheckFolder [20:33:13]dirname=/storage/ofd_packets [20:33:13]CheckFolder done [20:33:13]ProducePacketName [20:33:13]name=ofd_packets/00067365 [20:33:13]NVStorageSaveData ofd_packets/00067365 [20:33:13]File name is /storage/ofd_packets/00067365 [20:33:13]Write 298 bytes [20:33:13]NVStorageSaveData done [20:33:13]OFDSenderStorePacket done [20:33:13]KKMCreateOFDPacket done [20:33:13]NVStorageSaveData kkm_last_timestamp [20:33:13]File name is /storage/kkm_last_timestamp [20:33:13]Write 4 bytes [20:33:13]NVStorageSaveData done [20:33:13]ExternCall_PrintAddStr [20:33:13]wPrintStart [20:33:13]Write to MH i2c: 01 00 00 D1 2C FD [20:33:13]Write i2c OK [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: 01 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: 01 07 00 [20:33:13]MH_I2C_Read... [20:33:13]Read from MH i2c: 01 07 00 D1 2C 00 00 00 00 00 FF 0F 12 [20:33:13]RasterBufferAndPrint [20:33:13]line Счет N : (1)507344 [20:33:13]line ИНН: 02508201610067 [20:33:13]line Контрольно-Кассовый Чек [20:33:13]line ПРОДАЖА [20:33:13]line ТРК (МРК, ГНК) : 41 [20:33:13]line Товар: 2710194210 [20:33:13]line ДТ-К-5 [20:33:13]line 26.780 * 74.70 [20:33:13]line = 2000.47 [20:33:13]line НДС 12% НСП 1% [20:33:13]line > о реализуемом товаре [20:33:13]line ИТОГО: 2000.47 [20:33:13]line НСП 1% : 17.70 [20:33:13]line НДС 12% : 212.44 [20:33:13]line Наличными: 0.00 [20:33:13]line Безнал.: 2000.47 [20:33:13]line Место: АЗС № 91 "Партнер Нефть" [20:33:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:33:13]line СНО: Общий режим [20:33:13]line Чек 183 15.05.2024 20:33 [20:33:13]line Смена: 356 ФФД: 1.0 [20:33:13]line ЗНМ: 0300000119 [20:33:13]line РНМ: 0000000000091845 [20:33:13]line Версия ККМ: 001 [20:33:13]line Платежная система: Бакай Банк [20:33:13]line ФМ: 0000000000871829 [20:33:13]line ФД: 67365 [20:33:13]line ФПД: 158788926589594 [20:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203314&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67365&fm=158788926589594&tin=02508201610067®Number=0000000000091845&sum=200047 [20:33:14]OFD Sender: Processing packet 67365 [packets to send 35, broken 34] [20:33:14]ProducePacketName [20:33:14]name=ofd_packets/00067365 [20:33:14]OFD Sender: To server: pG, [20:33:14]CommunicateWithHost lk.salyk.kg:30040 [20:33:14]ConnectInit lk.salyk.kg [20:33:14]written 0, free lines is 4095 [20:33:14]Connected sock=10 [20:33: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 04 AC 04 01 CC 47 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 B7 00 00 00 F4 03 04 00 0A 1C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 90 6A ED 90 4A 9A 3E 9D DA D8 AB CE 69 16 [20:33: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 E3 2B 47 00 AE 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 25 07 01 00 F4 03 04 00 E6 C3 44 66 B6 04 01 00 00 E0 BE EE 38 6D AE 8F 57 [20:33:14]CommunicateWithHost err = 0 [20:33:14]CheckOFDResponse [20:33:14]1017 (14) - 77093643461234 [20:33:14]1041 (16) - 0000000000871829 [20:33:14]1040 (4) - 67365 [20:33:14]1012 (4) - 15.05.2024 14:17 [20:33:14]1206 (1) - 0 [20:33:14]OFD Sender: Remove packet 67365 [20:33:14]ProducePacketName [20:33:14]name=ofd_packets/00067365 [20:33:14]NVStorageDeleteData [20:33:14]Write to MH i2c: 01 00 00 FA 2C 26 [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: 01 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: 01 07 00 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 EE 0C 27 [20:33:14]RasterBufferAndPrint [20:33:14]line [20:33:14]line [20:33:14]line [20:33:14]line [20:33:14]line [20:33:14]written 0, free lines is 3316 [20:33:14]MH_Cut [20:33:14]Write to MH i2c: D1 01 00 01 2D 01 00 [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: D1 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: D1 01 00 [20:33:14]MH_I2C_Read... [20:33:14]Read from MH i2c: D1 01 00 01 2D 00 FF [20:33:14]Write to MH i2c: 01 00 00 02 2D 2F [20:33:14]Write i2c OK [20:33:14]MH_I2C_Read... [20:33:14]OFD Sender: No OFD packet to send [20:33:15]*** Cut start [20:33:15]*** Purtial cut [20:33:15]*** Stage 1: CUTSNS_PIN = 1 [20:33:15]Read from MH i2c: 01 [20:33:15]MH_I2C_Read... [20:33:15]*** Stop cut motor [20:33:15]*** Cut end [20:33:15]Read from MH i2c: 01 07 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: 01 07 00 02 2D 00 00 00 00 00 FF 0F 44 [20:33:15]process_action close_receipt done [20:33:15]requested_data is exist [20:33:15]produce_requested_data [20:33:15]requested_item fm.sn is exist - process it [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 11 00 00 [20:33:15]Write to MH i2c: E2 08 00 03 2D 80 11 00 00 00 00 00 00 AA [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 17 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 17 00 03 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [20: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 [20:33:15]wFMCommunicate OK [20:33:15]requested_item fd.num is exist - process it [20:33:15]SAM_PROTO_GetFieldsCounters [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 13 00 00 [20:33:15]Write to MH i2c: E2 08 00 04 2D 80 13 00 00 00 00 00 00 AD [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 62 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 62 00 04 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 25 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [20: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 25 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:15]wFMCommunicate OK [20:33:15]SAM_PROTO_GetFieldsCounters done [20:33:15]requested_item shift.num is exist - process it [20:33:15]requested_item shift.opened is exist - process it [20:33:15]req_shift_opened [20:33:15]FM_GetShiftState [20:33:15]SAM_PROTO_GetShiftState [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 13 01 00 [20:33:15]Write to MH i2c: E2 08 00 05 2D 80 13 01 00 00 00 00 00 AF [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0E 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0E 00 05 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5A [20:33:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:33:15]wFMCommunicate OK [20:33:15]SAM_PROTO_GetShiftState done [20:33:15]FM_GetShiftState done [20:33:15]req_shift_opened done [20:33:15]requested_item shift.open_date is exist - process it [20:33:15]req_shift_open_date [20:33:15]req_shift_open_date done [20:33:15]produce_requested_data done [20:33:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67365,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:33:15]process_action_free close_receipt [20:33:15]json_value_free [20:33:15]json_value_free done [20:33:15]process_json_proto returns [20:33:15]Send response to host [20:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67365,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:33:15]free response buf [20:33:15]execute_script done [20:33:15]execute_script returns [20:33:15]free content buf [20:33:15]Sock 9.Close socket [20:33:15]Sock 9.Thread stoped [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:03]accept exits with 7 [20:38:03]New connection [20:38:03]New thread 3067174244 created [20:38:03]Thread 3067030884 joined [20:38:03]Waiting for new connection... [20:38:03] Sock 7.Parse request [20:38:03]Sock 7.Check first char [20:38:03]Sock 7.First char is OK [20:38:03]request: POST /json_proto HTTP/1.0 [20:38:03]Method: POST [20:38:03]URL: /json_proto [20:38:03]Method is POST - this is cgi request [20:38:03]url: /json_proto [20:38:03]query_string will be loaded in cgi processing [20:38:03]execute_cgi json_proto POST (null) [20:38:03]execute_cgi path=json_proto method=POST [20:38:03]POST find Content-Length [20:38:03]Host: 172.17.41.195:8080 [20:38:03]Content-Length: 679 [20:38:03]Content-Type: application/json [20:38:03] [20:38:03]POST finish read [20:38:03]Found Content-Length = 679 [20:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507345", "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" : 16.000, "sum" : 1195.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1195.00, "total" : 1195.00, "payments": [ { "type": 0, "sum" : 1195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:03]execute_script... [20: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)507345", "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" : 16.000, "sum" : 1195.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1195.00, "total" : 1195.00, "payments": [ { "type": 0, "sum" : 1195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:03]POST & json_proto [20:38:03]process_json_proto [20:38:03]json parsed OK: [20:38:03]protocol is kg_v1.0 [20:38:03]action value=close_receipt [20:38:03]process_action close_receipt [20:38:03]cmd_close_receipt [20:38:03]MH_GetDate [20:38:03]Write to MH i2c: F0 00 00 06 2D 22 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: F0 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: F0 09 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: F0 09 00 06 2D 00 2D 1D 45 66 FC 21 6F 64 10 [20:38:03]GetLastDocTimeStamp 1715805194 [20:38:03]current date 1715805485 [20:38:03]FM_GetShiftState [20:38:03]SAM_PROTO_GetShiftState [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 13 01 00 [20:38:03]Write to MH i2c: E2 08 00 07 2D 80 13 01 00 00 00 00 00 B1 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0E 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0E 00 07 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 5C [20:38:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:38:03]wFMCommunicate OK [20:38:03]SAM_PROTO_GetShiftState done [20:38:03]FM_GetShiftState done [20:38:03]opened in 1715732471 [20:38:03]opened+sec_in_day 1715818871 [20:38:03]quantity*price = 119520 [20:38:03]sum+1 = 119521 [20:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1195.00 Внесено: 1195.00 СДАЧА: 0.00 НСП 1% : 10.58 НДС 12% : 126.92 Наличными: 1195.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 184 15.05.2024 20:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67366 ФПД: 241963813093835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67366&fm=241963813093835&tin=02508201610067®Number=0000000000091845&sum=119500 [20:38:04]StoreToDocumentArchive [20:38:04]shift 356 fd 67366 [20:38:04]save to /storage/0356/doc_00067366 [20:38:04]save last doc name /storage/0356/doc_00067366 to /storage/kkm_last_doc_name [20:38:04]save OK [20:38:04]Clear old archive folders... [20:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:04]tlvbuf is 00B36620 [20:38:04]SAM_PROTO_ClearQueue [20:38:04]wFMCommunicate request_size=4 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 09 00 00 [20:38:04]Write to MH i2c: E2 08 00 14 2D 80 09 00 00 00 00 00 00 B3 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 14 2D 00 90 00 B5 [20:38:04]RAPDU: 90 00 [20:38:04]wFMCommunicate OK [20:38:04]SAM_PROTO_ClearQueue done [20:38:04]KKMCreateOFDPacket [20:38:04]OFDProtocolAddRootSTLVToBuf [20:38:04]FM_MakeSignedData [20:38:04]FM_MakeSignedData [20:38:04]SAM_PROTO_SignData [20:38:04]wFMCommunicate request_size=4 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 0D 01 02 [20:38:04]Write to MH i2c: E2 08 00 15 2D 80 0D 01 02 00 00 00 00 BB [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 15 2D 00 90 00 B6 [20:38:04]RAPDU: 90 00 [20:38:04]wFMCommunicate OK [20:38:04]wFMCommunicate request_size=255 [20:38:04]MH_SAM_APDU [20: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 80 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E0 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 2D 1D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 10 97 20 [20:38:04]Write to MH i2c: E2 02 01 16 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 80 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E0 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 2D 1D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 10 97 20 00 00 E5 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 16 2D 00 90 00 B7 [20:38:04]RAPDU: 90 00 [20:38:04]wFMCommunicate OK [20:38:04]wFMCommunicate request_size=7 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 0D 02 02 02 C1 CB [20:38:04]Write to MH i2c: E2 0A 00 17 2D 80 0D 02 02 02 00 C1 CB 00 00 4E [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 03 00 17 2D 00 90 00 B8 [20:38:04]RAPDU: 90 00 [20:38:04]wFMCommunicate OK [20:38:04]wFMCommunicate request_size=4 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 0D 03 02 [20:38:04]Write to MH i2c: E2 08 00 18 2D 80 0D 03 02 00 00 00 00 C0 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 0B 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 0B 00 18 2D 00 F1 88 06 01 A3 05 DC B7 90 00 7C [20:38:04]RAPDU: F1 88 06 01 A3 05 DC B7 90 00 [20:38:04]wFMCommunicate OK [20:38:04]SAM_PROTO_SignData done [20:38:04]FM_MakeSignedData done [20:38:04]CreateOFDProtocolMessage [20:38:04]wFMCommunicate request_size=4 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 11 00 00 [20:38:04]Write to MH i2c: E2 08 00 19 2D 80 11 00 00 00 00 00 00 C0 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:05]Read from MH i2c: E2 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 17 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 17 00 19 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [20:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:38:05]wFMCommunicate OK [20:38:05]CreateOFDProtocolMessage done [20:38:05]OFDSenderStorePacket 67366 [20:38:05]StoreOFDPacket docnum=67366 [20:38: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 6F CB 04 01 7F 64 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 80 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E0 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 2D 1D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 10 97 20 C1 CB F1 88 06 01 A3 05 DC B7 [20:38:05]CheckFolder [20:38:05]dirname=/storage/ofd_packets [20:38:05]CheckFolder done [20:38:05]ProducePacketName [20:38:05]name=ofd_packets/00067366 [20:38:05]NVStorageSaveData ofd_packets/00067366 [20:38:05]File name is /storage/ofd_packets/00067366 [20:38:05]Write 298 bytes [20:38:05]NVStorageSaveData done [20:38:05]OFDSenderStorePacket done [20:38:05]KKMCreateOFDPacket done [20:38:05]NVStorageSaveData kkm_last_timestamp [20:38:05]File name is /storage/kkm_last_timestamp [20:38:05]Write 4 bytes [20:38:05]NVStorageSaveData done [20:38:05]ExternCall_PrintAddStr [20:38:05]wPrintStart [20:38:05]Write to MH i2c: 01 00 00 1A 2D 47 [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 07 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 FF 0F 5C [20:38:05]RasterBufferAndPrint [20:38:05]line Счет N : (1)507345 [20:38:05]line ИНН: 02508201610067 [20:38:05]line Контрольно-Кассовый Чек [20:38:05]line ПРОДАЖА [20:38:05]line ТРК (МРК, ГНК) : 11 [20:38:05]line Товар: 2710194210 [20:38:05]line ДТ-К-5 [20:38:05]line 16.000 * 74.70 [20:38:05]line = 1195.20 [20:38:05]line НДС 12% НСП 1% [20:38:05]line > о реализуемом товаре [20:38:05]line ОКРУГЛЕНИЕ: -0.20 [20:38:05]line ИТОГО: 1195.00 [20:38:05]line Внесено: 1195.00 [20:38:05]line СДАЧА: 0.00 [20:38:05]line НСП 1% : 10.58 [20:38:05]line НДС 12% : 126.92 [20:38:05]line Наличными: 1195.00 [20:38:05]line Безнал.: 0.00 [20:38:05]line Место: АЗС № 91 "Партнер Нефть" [20:38:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:38:05]line СНО: Общий режим [20:38:05]line Чек 184 15.05.2024 20:38 [20:38:05]line Смена: 356 ФФД: 1.0 [20:38:05]line ЗНМ: 0300000119 [20:38:05]line РНМ: 0000000000091845 [20:38:05]line Версия ККМ: 001 [20:38:05]line ФМ: 0000000000871829 [20:38:05]line ФД: 67366 [20:38:05]line ФПД: 241963813093835 [20:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T203805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67366&fm=241963813093835&tin=02508201610067®Number=0000000000091845&sum=119500 [20:38:05]OFD Sender: Processing packet 67366 [packets to send 35, broken 34] [20:38:05]ProducePacketName [20:38:05]name=ofd_packets/00067366 [20:38:05]OFD Sender: To server: pG, [20:38:05]CommunicateWithHost lk.salyk.kg:30040 [20:38:05]ConnectInit lk.salyk.kg [20:38:05]written 0, free lines is 4095 [20:38:05]Connected sock=10 [20: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 6F CB 04 01 7F 64 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 80 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E0 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 2D 1D 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 10 97 20 C1 CB F1 88 06 01 A3 05 DC B7 [20: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 7B DC 47 00 4F 06 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 07 01 00 F4 03 04 00 0A C5 44 66 B6 04 01 00 00 83 E4 03 EB 0C 93 FF 53 [20:38:05]CommunicateWithHost err = 0 [20:38:05]CheckOFDResponse [20:38:05]1017 (14) - 77093643461234 [20:38:05]1041 (16) - 0000000000871829 [20:38:05]1040 (4) - 67366 [20:38:05]1012 (4) - 15.05.2024 14:22 [20:38:05]1206 (1) - 0 [20:38:05]OFD Sender: Remove packet 67366 [20:38:05]ProducePacketName [20:38:05]name=ofd_packets/00067366 [20:38:05]NVStorageDeleteData [20:38:05]Write to MH i2c: 01 00 00 44 2D 71 [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 07 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 DD 0C 61 [20:38:05]RasterBufferAndPrint [20:38:05]line [20:38:05]line [20:38:05]line [20:38:05]line [20:38:05]line [20:38:05]written 0, free lines is 3299 [20:38:05]MH_Cut [20:38:05]Write to MH i2c: D1 01 00 4B 2D 01 4A [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: D1 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: D1 01 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: D1 01 00 4B 2D 00 49 [20:38:05]Write to MH i2c: 01 00 00 4C 2D 79 [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:06]OFD Sender: No OFD packet to send [20:38:06]*** Cut start [20:38:06]*** Purtial cut [20:38:06]*** CUTSNS_PIN = 0 [20:38:06]*** Stage 1: CUTSNS_PIN = 1 [20:38:08]Read from MH i2c: 01 [20:38:08]MH_I2C_Read... [20:38:08]*** Stop cut motor [20:38:08]*** Cut end [20:38:08]Read from MH i2c: 01 07 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: 01 07 00 4C 2D 00 00 00 00 00 FF 0F 8E [20:38:08]process_action close_receipt done [20:38:08]requested_data is exist [20:38:08]produce_requested_data [20:38:08]requested_item fm.sn is exist - process it [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 11 00 00 [20:38:08]Write to MH i2c: E2 08 00 4D 2D 80 11 00 00 00 00 00 00 F4 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 4D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [20:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:38:08]wFMCommunicate OK [20:38:08]requested_item fd.num is exist - process it [20:38:08]SAM_PROTO_GetFieldsCounters [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 13 00 00 [20:38:08]Write to MH i2c: E2 08 00 4E 2D 80 13 00 00 00 00 00 00 F7 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 62 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 62 00 4E 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 26 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:38: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 26 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:08]wFMCommunicate OK [20:38:08]SAM_PROTO_GetFieldsCounters done [20:38:08]requested_item shift.num is exist - process it [20:38:08]requested_item shift.opened is exist - process it [20:38:08]req_shift_opened [20:38:08]FM_GetShiftState [20:38:08]SAM_PROTO_GetShiftState [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 13 01 00 [20:38:08]Write to MH i2c: E2 08 00 4F 2D 80 13 01 00 00 00 00 00 F9 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 0E 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 0E 00 4F 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A4 [20:38:08]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:38:08]wFMCommunicate OK [20:38:08]SAM_PROTO_GetShiftState done [20:38:08]FM_GetShiftState done [20:38:08]req_shift_opened done [20:38:08]requested_item shift.open_date is exist - process it [20:38:08]req_shift_open_date [20:38:08]req_shift_open_date done [20:38:08]produce_requested_data done [20:38:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67366,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:38:08]process_action_free close_receipt [20:38:08]json_value_free [20:38:08]json_value_free done [20:38:08]process_json_proto returns [20:38:08]Send response to host [20:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67366,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:38:08]free response buf [20:38:08]execute_script done [20:38:08]execute_script returns [20:38:08]free content buf [20:38:08]Sock 7.Close socket [20:38:08]Sock 7.Thread stoped [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:30]accept exits with 9 [20:46:30]New connection [20:46:30]New thread 3067030884 created [20:46:30]Thread 3067174244 joined [20:46:30]Waiting for new connection... [20:46:30] Sock 9.Parse request [20:46:30]Sock 9.Check first char [20:46:30]Sock 9.First char is OK [20:46:30]request: POST /json_proto HTTP/1.0 [20:46:30]Method: POST [20:46:30]URL: /json_proto [20:46:30]Method is POST - this is cgi request [20:46:30]url: /json_proto [20:46:30]query_string will be loaded in cgi processing [20:46:30]execute_cgi json_proto POST (null) [20:46:30]execute_cgi path=json_proto method=POST [20:46:30]POST find Content-Length [20:46:30]Host: 172.17.41.195:8080 [20:46:30]Content-Length: 679 [20:46:30]Content-Type: application/json [20:46:30] [20:46:30]POST finish read [20:46:30]Found Content-Length = 679 [20:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507346", "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" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:30]execute_script... [20:46: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)507346", "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" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:30]POST & json_proto [20:46:30]process_json_proto [20:46:30]json parsed OK: [20:46:30]protocol is kg_v1.0 [20:46:30]action value=close_receipt [20:46:30]process_action close_receipt [20:46:30]cmd_close_receipt [20:46:30]MH_GetDate [20:46:30]Write to MH i2c: F0 00 00 50 2D 6C [20:46:30]Write i2c OK [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 09 00 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 09 00 50 2D 00 28 1F 45 66 FC 21 6F 64 57 [20:46:30]GetLastDocTimeStamp 1715805485 [20:46:30]current date 1715805992 [20:46:30]FM_GetShiftState [20:46:30]SAM_PROTO_GetShiftState [20:46:30]wFMCommunicate request_size=4 [20:46:30]MH_SAM_APDU [20:46:30]CAPDU: 80 13 01 00 [20:46:30]Write to MH i2c: E2 08 00 51 2D 80 13 01 00 00 00 00 00 FB [20:46:30]Write i2c OK [20:46:30]MH_I2C_Read... [20:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:30]Read from MH i2c: E2 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: E2 0E 00 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: E2 0E 00 51 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A6 [20:46:30]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:46:30]wFMCommunicate OK [20:46:30]SAM_PROTO_GetShiftState done [20:46:30]FM_GetShiftState done [20:46:30]opened in 1715732471 [20:46:30]opened+sec_in_day 1715818871 [20:46:30]quantity*price = 400018 [20:46:30]sum+1 = 400020 [20:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 185 15.05.2024 20:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67367 ФПД: 228524581509216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T204632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67367&fm=228524581509216&tin=02508201610067®Number=0000000000091845&sum=400000 [20:46:31]StoreToDocumentArchive [20:46:31]shift 356 fd 67367 [20:46:31]save to /storage/0356/doc_00067367 [20:46:31]save last doc name /storage/0356/doc_00067367 to /storage/kkm_last_doc_name [20:46:31]save OK [20:46:31]Clear old archive folders... [20:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:46:31]tlvbuf is 00BF6340 [20:46:31]SAM_PROTO_ClearQueue [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 09 00 00 [20:46:31]Write to MH i2c: E2 08 00 5E 2D 80 09 00 00 00 00 00 00 FD [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:31]OFD Sender: No OFD packet to send [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 5E 2D 00 90 00 FF [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]SAM_PROTO_ClearQueue done [20:46:31]KKMCreateOFDPacket [20:46:31]OFDProtocolAddRootSTLVToBuf [20:46:31]FM_MakeSignedData [20:46:31]FM_MakeSignedData [20:46:31]SAM_PROTO_SignData [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 0D 01 02 [20:46:31]Write to MH i2c: E2 08 00 5F 2D 80 0D 01 02 00 00 00 00 05 [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 5F 2D 00 90 00 00 [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]wFMCommunicate request_size=255 [20:46:31]MH_SAM_APDU [20:46:31]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 80 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 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 28 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CF D7 86 80 [20:46:31]Write to MH i2c: E2 02 01 60 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 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 80 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 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 28 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CF D7 86 80 00 00 05 [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 03 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 03 00 60 2D 00 90 00 01 [20:46:32]RAPDU: 90 00 [20:46:32]wFMCommunicate OK [20:46:32]wFMCommunicate request_size=7 [20:46:32]MH_SAM_APDU [20:46:32]CAPDU: 80 0D 02 02 02 D8 60 [20:46:32]Write to MH i2c: E2 0A 00 61 2D 80 0D 02 02 02 00 D8 60 00 00 44 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 03 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 03 00 61 2D 00 90 00 02 [20:46:32]RAPDU: 90 00 [20:46:32]wFMCommunicate OK [20:46:32]wFMCommunicate request_size=4 [20:46:32]MH_SAM_APDU [20:46:32]CAPDU: 80 0D 03 02 [20:46:32]Write to MH i2c: E2 08 00 62 2D 80 0D 03 02 00 00 00 00 0A [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0B 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 0B 00 62 2D 00 A7 B1 80 F7 F5 18 B7 05 90 00 A3 [20:46:32]RAPDU: A7 B1 80 F7 F5 18 B7 05 90 00 [20:46:32]wFMCommunicate OK [20:46:32]SAM_PROTO_SignData done [20:46:32]FM_MakeSignedData done [20:46:32]CreateOFDProtocolMessage [20:46:32]wFMCommunicate request_size=4 [20:46:32]MH_SAM_APDU [20:46:32]CAPDU: 80 11 00 00 [20:46:32]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:32]Read from MH i2c: E2 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 17 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [20:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:46:32]wFMCommunicate OK [20:46:32]CreateOFDProtocolMessage done [20:46:32]OFDSenderStorePacket 67367 [20:46:32]StoreOFDPacket docnum=67367 [20:46: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 E9 5C 04 01 81 78 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 80 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 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 28 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CF D7 86 80 D8 60 A7 B1 80 F7 F5 18 B7 05 [20:46:32]CheckFolder [20:46:32]dirname=/storage/ofd_packets [20:46:32]CheckFolder done [20:46:32]ProducePacketName [20:46:32]name=ofd_packets/00067367 [20:46:32]NVStorageSaveData ofd_packets/00067367 [20:46:32]File name is /storage/ofd_packets/00067367 [20:46:32]Write 298 bytes [20:46:32]NVStorageSaveData done [20:46:32]OFDSenderStorePacket done [20:46:32]KKMCreateOFDPacket done [20:46:32]NVStorageSaveData kkm_last_timestamp [20:46:32]File name is /storage/kkm_last_timestamp [20:46:32]Write 4 bytes [20:46:32]NVStorageSaveData done [20:46:32]ExternCall_PrintAddStr [20:46:32]wPrintStart [20:46:32]Write to MH i2c: 01 00 00 64 2D 91 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 64 2D 00 00 00 00 00 FF 0F A6 [20:46:32]RasterBufferAndPrint [20:46:32]line Счет N : (1)507346 [20:46:32]line ИНН: 02508201610067 [20:46:32]line Контрольно-Кассовый Чек [20:46:32]line ПРОДАЖА [20:46:32]line ТРК (МРК, ГНК) : 21 [20:46:32]line Товар: 2710194210 [20:46:32]line ДТ-К-5 [20:46:32]line 53.550 * 74.70 [20:46:32]line = 4000.19 [20:46:32]line НДС 12% НСП 1% [20:46:32]line > о реализуемом товаре [20:46:32]line ОКРУГЛЕНИЕ: -0.19 [20:46:32]line ИТОГО: 4000.00 [20:46:32]line Внесено: 4000.00 [20:46:32]line СДАЧА: 0.00 [20:46:32]line НСП 1% : 35.40 [20:46:32]line НДС 12% : 424.80 [20:46:32]line Наличными: 4000.00 [20:46:32]line Безнал.: 0.00 [20:46:32]line Место: АЗС № 91 "Партнер Нефть" [20:46:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:46:32]line СНО: Общий режим [20:46:32]line Чек 185 15.05.2024 20:46 [20:46:32]line Смена: 356 ФФД: 1.0 [20:46:32]line ЗНМ: 0300000119 [20:46:32]line РНМ: 0000000000091845 [20:46:32]line Версия ККМ: 001 [20:46:32]line ФМ: 0000000000871829 [20:46:32]line ФД: 67367 [20:46:32]line ФПД: 228524581509216 [20:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T204632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67367&fm=228524581509216&tin=02508201610067®Number=0000000000091845&sum=400000 [20:46:32]OFD Sender: Processing packet 67367 [packets to send 35, broken 34] [20:46:32]ProducePacketName [20:46:32]name=ofd_packets/00067367 [20:46:32]OFD Sender: To server: pG, [20:46:32]CommunicateWithHost lk.salyk.kg:30040 [20:46:32]ConnectInit lk.salyk.kg [20:46:32]written 0, free lines is 4095 [20:46:32]Connected sock=10 [20:46: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 E9 5C 04 01 81 78 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 80 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 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 28 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CF D7 86 80 D8 60 A7 B1 80 F7 F5 18 B7 05 [20:46: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 81 04 47 00 73 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 27 07 01 00 F4 03 04 00 05 C7 44 66 B6 04 01 00 00 08 C1 71 43 8D 46 22 BB [20:46:32]CommunicateWithHost err = 0 [20:46:32]CheckOFDResponse [20:46:32]1017 (14) - 77093643461234 [20:46:32]1041 (16) - 0000000000871829 [20:46:32]1040 (4) - 67367 [20:46:32]1012 (4) - 15.05.2024 14:30 [20:46:32]1206 (1) - 0 [20:46:32]OFD Sender: Remove packet 67367 [20:46:32]ProducePacketName [20:46:32]name=ofd_packets/00067367 [20:46:32]NVStorageDeleteData [20:46:32]Write to MH i2c: 01 00 00 8E 2D BB [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 D6 0C A4 [20:46:32]RasterBufferAndPrint [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]written 0, free lines is 3293 [20:46:32]MH_Cut [20:46:32]Write to MH i2c: D1 01 00 95 2D 01 94 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 01 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 01 00 95 2D 00 93 [20:46:32]Write to MH i2c: 01 00 00 96 2D C3 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:33]OFD Sender: No OFD packet to send [20:46:33]*** Cut start [20:46:33]*** Purtial cut [20:46:33]*** Stage 1: CUTSNS_PIN = 1 [20:46:34]Read from MH i2c: 01 [20:46:34]MH_I2C_Read... [20:46:34]*** Stop cut motor [20:46:34]*** Cut end [20:46:34]Read from MH i2c: 01 07 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: 01 07 00 96 2D 00 00 00 00 00 FF 0F D8 [20:46:34]process_action close_receipt done [20:46:34]requested_data is exist [20:46:34]produce_requested_data [20:46:34]requested_item fm.sn is exist - process it [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 11 00 00 [20:46:34]Write to MH i2c: E2 08 00 97 2D 80 11 00 00 00 00 00 00 3E [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 17 00 97 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [20:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:46:34]wFMCommunicate OK [20:46:34]requested_item fd.num is exist - process it [20:46:34]SAM_PROTO_GetFieldsCounters [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 13 00 00 [20:46:34]Write to MH i2c: E2 08 00 98 2D 80 13 00 00 00 00 00 00 41 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 62 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 62 00 98 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 27 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [20:46: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 27 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_GetFieldsCounters done [20:46:34]requested_item shift.num is exist - process it [20:46:34]requested_item shift.opened is exist - process it [20:46:34]req_shift_opened [20:46:34]FM_GetShiftState [20:46:34]SAM_PROTO_GetShiftState [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 13 01 00 [20:46:34]Write to MH i2c: E2 08 00 99 2D 80 13 01 00 00 00 00 00 43 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:34]Read from MH i2c: E2 0E 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0E 00 99 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 EE [20:46:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_GetShiftState done [20:46:34]FM_GetShiftState done [20:46:34]req_shift_opened done [20:46:34]requested_item shift.open_date is exist - process it [20:46:34]req_shift_open_date [20:46:34]req_shift_open_date done [20:46:34]produce_requested_data done [20:46:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67367,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:46:34]process_action_free close_receipt [20:46:34]json_value_free [20:46:34]json_value_free done [20:46:34]process_json_proto returns [20:46:34]Send response to host [20:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67367,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:46:34]free response buf [20:46:34]execute_script done [20:46:34]execute_script returns [20:46:34]free content buf [20:46:34]Sock 9.Close socket [20:46:34]Sock 9.Thread stoped [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:36]accept exits with 7 [20:48:36]New connection [20:48:36]New thread 3067174244 created [20:48:36]Thread 3067030884 joined [20:48:36]Waiting for new connection... [20:48:36] Sock 7.Parse request [20:48:36]Sock 7.Check first char [20:48:36]Sock 7.First char is OK [20:48:36]request: POST /json_proto HTTP/1.0 [20:48:36]Method: POST [20:48:36]URL: /json_proto [20:48:36]Method is POST - this is cgi request [20:48:36]url: /json_proto [20:48:36]query_string will be loaded in cgi processing [20:48:36]execute_cgi json_proto POST (null) [20:48:36]execute_cgi path=json_proto method=POST [20:48:36]POST find Content-Length [20:48:36]Host: 172.17.41.195:8080 [20:48:36]Content-Length: 677 [20:48:36]Content-Type: application/json [20:48:36] [20:48:36]POST finish read [20:48:36]Found Content-Length = 677 [20:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507347", "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" ] } } [20:48:36]execute_script... [20:48: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)507347", "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" ] } } [20:48:36]POST & json_proto [20:48:36]process_json_proto [20:48:36]json parsed OK: [20:48:36]protocol is kg_v1.0 [20:48:36]action value=close_receipt [20:48:36]process_action close_receipt [20:48:36]cmd_close_receipt [20:48:36]MH_GetDate [20:48:36]Write to MH i2c: F0 00 00 9A 2D B6 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: F0 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: F0 09 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: F0 09 00 9A 2D 00 A6 1F 45 66 FC 21 6F 64 1F [20:48:36]GetLastDocTimeStamp 1715805992 [20:48:36]current date 1715806118 [20:48:36]FM_GetShiftState [20:48:36]SAM_PROTO_GetShiftState [20:48:36]wFMCommunicate request_size=4 [20:48:36]MH_SAM_APDU [20:48:36]CAPDU: 80 13 01 00 [20:48:36]Write to MH i2c: E2 08 00 9B 2D 80 13 01 00 00 00 00 00 45 [20:48:36]Write i2c OK [20:48:36]MH_I2C_Read... [20:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:36]Read from MH i2c: E2 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 [20:48:36]MH_I2C_Read... [20:48:36]Read from MH i2c: E2 0E 00 9B 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F0 [20:48:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:48:36]wFMCommunicate OK [20:48:36]SAM_PROTO_GetShiftState done [20:48:36]FM_GetShiftState done [20:48:36]opened in 1715732471 [20:48:36]opened+sec_in_day 1715818871 [20:48:36]quantity*price = 50033 [20:48:36]sum+1 = 50034 [20:48:36]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 СНО: Общий режим Чек 186 15.05.2024 20:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67368 ФПД: 195078210950197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T204838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67368&fm=195078210950197&tin=02508201610067®Number=0000000000091845&sum=50000 [20:48:37]StoreToDocumentArchive [20:48:37]shift 356 fd 67368 [20:48:37]save to /storage/0356/doc_00067368 [20:48:37]save last doc name /storage/0356/doc_00067368 to /storage/kkm_last_doc_name [20:48:37]save OK [20:48:37]Clear old archive folders... [20:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:37]tlvbuf is 00BB2690 [20:48:37]SAM_PROTO_ClearQueue [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 09 00 00 [20:48:37]Write to MH i2c: E2 08 00 A8 2D 80 09 00 00 00 00 00 00 47 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 A8 2D 00 90 00 49 [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]SAM_PROTO_ClearQueue done [20:48:37]KKMCreateOFDPacket [20:48:37]OFDProtocolAddRootSTLVToBuf [20:48:37]FM_MakeSignedData [20:48:37]FM_MakeSignedData [20:48:37]SAM_PROTO_SignData [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 01 02 [20:48:37]Write to MH i2c: E2 08 00 A9 2D 80 0D 01 02 00 00 00 00 4F [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 A9 2D 00 90 00 4A [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=255 [20:48:37]MH_SAM_APDU [20:48: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 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 BA 00 00 00 F4 03 04 00 A6 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 B1 [20:48:37]Write to MH i2c: E2 02 01 AA 2D 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 BA 00 00 00 F4 03 04 00 A6 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 B1 00 00 4A [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 AA 2D 00 90 00 4B [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=10 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 02 02 05 6C 2F 77 94 35 [20:48:37]Write to MH i2c: E2 0D 00 AB 2D 80 0D 02 02 05 00 6C 2F 77 94 35 00 00 37 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 03 00 AB 2D 00 90 00 4C [20:48:37]RAPDU: 90 00 [20:48:37]wFMCommunicate OK [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 0D 03 02 [20:48:37]Write to MH i2c: E2 08 00 AC 2D 80 0D 03 02 00 00 00 00 54 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 0B 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 0B 00 AC 2D 00 26 C5 22 1F 6B 9F 08 31 90 00 C4 [20:48:37]RAPDU: 26 C5 22 1F 6B 9F 08 31 90 00 [20:48:37]wFMCommunicate OK [20:48:37]SAM_PROTO_SignData done [20:48:37]FM_MakeSignedData done [20:48:37]CreateOFDProtocolMessage [20:48:37]wFMCommunicate request_size=4 [20:48:37]MH_SAM_APDU [20:48:37]CAPDU: 80 11 00 00 [20:48:37]Write to MH i2c: E2 08 00 AD 2D 80 11 00 00 00 00 00 00 54 [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:37]Read from MH i2c: E2 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 17 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: E2 17 00 AD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [20:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:48:37]wFMCommunicate OK [20:48:37]CreateOFDProtocolMessage done [20:48:37]OFDSenderStorePacket 67368 [20:48:37]StoreOFDPacket docnum=67368 [20:48: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 EB 7F 07 01 DC F3 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 BA 00 00 00 F4 03 04 00 A6 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 B1 6C 2F 77 94 35 26 C5 22 1F 6B 9F 08 31 [20:48:37]CheckFolder [20:48:37]dirname=/storage/ofd_packets [20:48:37]CheckFolder done [20:48:37]ProducePacketName [20:48:37]name=ofd_packets/00067368 [20:48:37]NVStorageSaveData ofd_packets/00067368 [20:48:37]File name is /storage/ofd_packets/00067368 [20:48:37]Write 301 bytes [20:48:37]NVStorageSaveData done [20:48:37]OFDSenderStorePacket done [20:48:37]KKMCreateOFDPacket done [20:48:37]NVStorageSaveData kkm_last_timestamp [20:48:37]File name is /storage/kkm_last_timestamp [20:48:37]Write 4 bytes [20:48:37]NVStorageSaveData done [20:48:37]ExternCall_PrintAddStr [20:48:37]wPrintStart [20:48:37]Write to MH i2c: 01 00 00 AE 2D DB [20:48:37]Write i2c OK [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 [20:48:37]MH_I2C_Read... [20:48:37]Read from MH i2c: 01 07 00 AE 2D 00 00 00 00 00 FF 0F F0 [20:48:37]RasterBufferAndPrint [20:48:37]line Счет N : (1)507347 [20:48:37]line ИНН: 02508201610067 [20:48:37]line Контрольно-Кассовый Чек [20:48:37]line ПРОДАЖА [20:48:37]line ТРК (МРК, ГНК) : 43 [20:48:37]line Товар: 2710124130 [20:48:37]line Аи-92-К-5 [20:48:37]line 7.490 * 66.80 [20:48:37]line = 500.33 [20:48:37]line НДС 12% НСП 1% [20:48:37]line > о реализуемом товаре [20:48:37]line ОКРУГЛЕНИЕ: -0.33 [20:48:37]line ИТОГО: 500.00 [20:48:37]line Внесено: 500.00 [20:48:37]line СДАЧА: 0.00 [20:48:37]line НСП 1% : 4.43 [20:48:37]line НДС 12% : 53.13 [20:48:37]line Наличными: 500.00 [20:48:37]line Безнал.: 0.00 [20:48:37]line Место: АЗС № 91 "Партнер Нефть" [20:48:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:48:37]line СНО: Общий режим [20:48:37]line Чек 186 15.05.2024 20:48 [20:48:37]line Смена: 356 ФФД: 1.0 [20:48:37]line ЗНМ: 0300000119 [20:48:37]line РНМ: 0000000000091845 [20:48:37]line Версия ККМ: 001 [20:48:37]line ФМ: 0000000000871829 [20:48:37]line ФД: 67368 [20:48:37]line ФПД: 195078210950197 [20:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T204838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67368&fm=195078210950197&tin=02508201610067®Number=0000000000091845&sum=50000 [20:48:38]OFD Sender: Processing packet 67368 [packets to send 35, broken 34] [20:48:38]ProducePacketName [20:48:38]name=ofd_packets/00067368 [20:48:38]OFD Sender: To server: pG, [20:48:38]CommunicateWithHost lk.salyk.kg:30040 [20:48:38]ConnectInit lk.salyk.kg [20:48:38]written 0, free lines is 4095 [20:48:38]Connected sock=10 [20:48: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 0F 01 00 00 EB 7F 07 01 DC F3 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 BA 00 00 00 F4 03 04 00 A6 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 B1 6C 2F 77 94 35 26 C5 22 1F 6B 9F 08 31 [20:48:38]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 32 A9 47 00 80 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 28 07 01 00 F4 03 04 00 83 C7 44 66 B6 04 01 00 00 68 81 C0 45 DF 08 C2 5D [20:48:38]CommunicateWithHost err = 0 [20:48:38]CheckOFDResponse [20:48:38]1017 (14) - 77093643461234 [20:48:38]1041 (16) - 0000000000871829 [20:48:38]1040 (4) - 67368 [20:48:38]1012 (4) - 15.05.2024 14:32 [20:48:38]1206 (1) - 0 [20:48:38]OFD Sender: Remove packet 67368 [20:48:38]ProducePacketName [20:48:38]name=ofd_packets/00067368 [20:48:38]NVStorageDeleteData [20:48:38]Write to MH i2c: 01 00 00 D8 2D 05 [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 07 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 DC 0C F4 [20:48:38]RasterBufferAndPrint [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]line [20:48:38]written 0, free lines is 3298 [20:48:38]MH_Cut [20:48:38]Write to MH i2c: D1 01 00 DF 2D 01 DE [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 01 00 [20:48:38]MH_I2C_Read... [20:48:38]Read from MH i2c: D1 01 00 DF 2D 00 DD [20:48:38]Write to MH i2c: 01 00 00 E0 2D 0D [20:48:38]Write i2c OK [20:48:38]MH_I2C_Read... [20:48:39]OFD Sender: No OFD packet to send [20:48:39]*** Cut start [20:48:39]*** Purtial cut [20:48:39]*** CUTSNS_PIN = 0 [20:48:39]*** Stage 1: CUTSNS_PIN = 1 [20:48:41]Read from MH i2c: 01 [20:48:41]MH_I2C_Read... [20:48:41]*** Stop cut motor [20:48:41]*** Cut end [20:48:41]Read from MH i2c: 01 07 00 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: 01 07 00 E0 2D 00 00 00 00 00 FF 0F 22 [20:48:41]process_action close_receipt done [20:48:41]requested_data is exist [20:48:41]produce_requested_data [20:48:41]requested_item fm.sn is exist - process it [20:48:41]wFMCommunicate request_size=4 [20:48:41]MH_SAM_APDU [20:48:41]CAPDU: 80 11 00 00 [20:48:41]Write to MH i2c: E2 08 00 E1 2D 80 11 00 00 00 00 00 00 88 [20:48:41]Write i2c OK [20:48:41]MH_I2C_Read... [20:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:41]Read from MH i2c: E2 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 17 00 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 17 00 E1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [20:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:48:41]wFMCommunicate OK [20:48:41]requested_item fd.num is exist - process it [20:48:41]SAM_PROTO_GetFieldsCounters [20:48:41]wFMCommunicate request_size=4 [20:48:41]MH_SAM_APDU [20:48:41]CAPDU: 80 13 00 00 [20:48:41]Write to MH i2c: E2 08 00 E2 2D 80 13 00 00 00 00 00 00 8B [20:48:41]Write i2c OK [20:48:41]MH_I2C_Read... [20:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:41]Read from MH i2c: E2 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 62 00 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 62 00 E2 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 28 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [20:48: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 28 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:41]wFMCommunicate OK [20:48:41]SAM_PROTO_GetFieldsCounters done [20:48:41]requested_item shift.num is exist - process it [20:48:41]requested_item shift.opened is exist - process it [20:48:41]req_shift_opened [20:48:41]FM_GetShiftState [20:48:41]SAM_PROTO_GetShiftState [20:48:41]wFMCommunicate request_size=4 [20:48:41]MH_SAM_APDU [20:48:41]CAPDU: 80 13 01 00 [20:48:41]Write to MH i2c: E2 08 00 E3 2D 80 13 01 00 00 00 00 00 8D [20:48:41]Write i2c OK [20:48:41]MH_I2C_Read... [20:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:41]Read from MH i2c: E2 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 0E 00 [20:48:41]MH_I2C_Read... [20:48:41]Read from MH i2c: E2 0E 00 E3 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 38 [20:48:41]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:48:41]wFMCommunicate OK [20:48:41]SAM_PROTO_GetShiftState done [20:48:41]FM_GetShiftState done [20:48:41]req_shift_opened done [20:48:41]requested_item shift.open_date is exist - process it [20:48:41]req_shift_open_date [20:48:41]req_shift_open_date done [20:48:41]produce_requested_data done [20:48:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67368,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:48:41]process_action_free close_receipt [20:48:41]json_value_free [20:48:41]json_value_free done [20:48:41]process_json_proto returns [20:48:41]Send response to host [20:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67368,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:48:41]free response buf [20:48:41]execute_script done [20:48:41]execute_script returns [20:48:41]free content buf [20:48:41]Sock 7.Close socket [20:48:41]Sock 7.Thread stoped [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:00]accept exits with 9 [20:50:00]New connection [20:50:00]New thread 3067030884 created [20:50:00]Thread 3067174244 joined [20:50:00]Waiting for new connection... [20:50:00] Sock 9.Parse request [20:50:00]Sock 9.Check first char [20:50:00]Sock 9.First char is OK [20:50:00]request: POST /json_proto HTTP/1.0 [20:50:00]Method: POST [20:50:00]URL: /json_proto [20:50:00]Method is POST - this is cgi request [20:50:00]url: /json_proto [20:50:00]query_string will be loaded in cgi processing [20:50:00]execute_cgi json_proto POST (null) [20:50:00]execute_cgi path=json_proto method=POST [20:50:00]POST find Content-Length [20:50:00]Host: 172.17.41.195:8080 [20:50:00]Content-Length: 674 [20:50:00]Content-Type: application/json [20:50:00] [20:50:00]POST finish read [20:50:00]Found Content-Length = 674 [20:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507348", "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" ] } } [20:50:00]execute_script... [20:50: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)507348", "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" ] } } [20:50:00]POST & json_proto [20:50:00]process_json_proto [20:50:00]json parsed OK: [20:50:00]protocol is kg_v1.0 [20:50:00]action value=close_receipt [20:50:00]process_action close_receipt [20:50:00]cmd_close_receipt [20:50:00]MH_GetDate [20:50:00]Write to MH i2c: F0 00 00 E4 2D 00 [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 09 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: F0 09 00 E4 2D 00 FB 1F 45 66 FC 21 6F 64 BE [20:50:00]GetLastDocTimeStamp 1715806118 [20:50:00]current date 1715806203 [20:50:00]FM_GetShiftState [20:50:00]SAM_PROTO_GetShiftState [20:50:00]wFMCommunicate request_size=4 [20:50:00]MH_SAM_APDU [20:50:00]CAPDU: 80 13 01 00 [20:50:00]Write to MH i2c: E2 08 00 E5 2D 80 13 01 00 00 00 00 00 8F [20:50:00]Write i2c OK [20:50:00]MH_I2C_Read... [20:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:00]Read from MH i2c: E2 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 [20:50:00]MH_I2C_Read... [20:50:00]Read from MH i2c: E2 0E 00 E5 2D 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3A [20:50:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:50:00]wFMCommunicate OK [20:50:00]SAM_PROTO_GetShiftState done [20:50:00]FM_GetShiftState done [20:50:00]opened in 1715732471 [20:50:00]opened+sec_in_day 1715818871 [20:50:00]quantity*price = 50049 [20:50:00]sum+1 = 50050 [20:50:00]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 СНО: Общий режим Чек 187 15.05.2024 20:50 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67369 ФПД: 120192595258318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205003&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67369&fm=120192595258318&tin=02508201610067®Number=0000000000091845&sum=50000 [20:50:02]StoreToDocumentArchive [20:50:02]shift 356 fd 67369 [20:50:02]save to /storage/0356/doc_00067369 [20:50:02]save last doc name /storage/0356/doc_00067369 to /storage/kkm_last_doc_name [20:50:02]save OK [20:50:02]Clear old archive folders... [20:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:50:02]tlvbuf is 00BA5110 [20:50:02]SAM_PROTO_ClearQueue [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 09 00 00 [20:50:02]Write to MH i2c: E2 08 00 F2 2D 80 09 00 00 00 00 00 00 91 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 F2 2D 00 90 00 93 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_ClearQueue done [20:50:02]KKMCreateOFDPacket [20:50:02]OFDProtocolAddRootSTLVToBuf [20:50:02]FM_MakeSignedData [20:50:02]FM_MakeSignedData [20:50:02]SAM_PROTO_SignData [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 01 02 [20:50:02]Write to MH i2c: E2 08 00 F3 2D 80 0D 01 02 00 00 00 00 99 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 F3 2D 00 90 00 94 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=255 [20:50:02]MH_SAM_APDU [20:50:02]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 BB 00 00 00 F4 03 04 00 FB 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 6D 50 84 F1 [20:50:02]Write to MH i2c: E2 02 01 F4 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 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 BB 00 00 00 F4 03 04 00 FB 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 6D 50 84 F1 00 00 D1 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 F4 2D 00 90 00 95 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=7 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 02 02 02 EB CE [20:50:02]Write to MH i2c: E2 0A 00 F5 2D 80 0D 02 02 02 00 EB CE 00 00 59 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 03 00 F5 2D 00 90 00 96 [20:50:02]RAPDU: 90 00 [20:50:02]wFMCommunicate OK [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 0D 03 02 [20:50:02]Write to MH i2c: E2 08 00 F6 2D 80 0D 03 02 00 00 00 00 9E [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0B 00 F6 2D 00 CD 76 66 CE 2E B9 04 69 90 00 6A [20:50:02]RAPDU: CD 76 66 CE 2E B9 04 69 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_SignData done [20:50:02]FM_MakeSignedData done [20:50:02]CreateOFDProtocolMessage [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 11 00 00 [20:50:02]Write to MH i2c: E2 08 00 F7 2D 80 11 00 00 00 00 00 00 9E [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 17 00 F7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [20:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:50:02]wFMCommunicate OK [20:50:02]CreateOFDProtocolMessage done [20:50:02]OFDSenderStorePacket 67369 [20:50:02]StoreOFDPacket docnum=67369 [20:50: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 0C 01 00 00 42 57 04 01 E5 72 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 BB 00 00 00 F4 03 04 00 FB 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 6D 50 84 F1 EB CE CD 76 66 CE 2E B9 04 69 [20:50:02]CheckFolder [20:50:02]dirname=/storage/ofd_packets [20:50:02]CheckFolder done [20:50:02]ProducePacketName [20:50:02]name=ofd_packets/00067369 [20:50:02]NVStorageSaveData ofd_packets/00067369 [20:50:02]File name is /storage/ofd_packets/00067369 [20:50:02]Write 298 bytes [20:50:02]NVStorageSaveData done [20:50:02]OFDSenderStorePacket done [20:50:02]KKMCreateOFDPacket done [20:50:02]NVStorageSaveData kkm_last_timestamp [20:50:02]File name is /storage/kkm_last_timestamp [20:50:02]Write 4 bytes [20:50:02]NVStorageSaveData done [20:50:02]ExternCall_PrintAddStr [20:50:02]wPrintStart [20:50:02]Write to MH i2c: 01 00 00 F8 2D 25 [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 FF 0F 3A [20:50:02]RasterBufferAndPrint [20:50:02]line Счет N : (1)507348 [20:50:02]line ИНН: 02508201610067 [20:50:02]line Контрольно-Кассовый Чек [20:50:02]line ПРОДАЖА [20:50:02]line ТРК (МРК, ГНК) : 11 [20:50:02]line Товар: 2710194210 [20:50:02]line ДТ-К-5 [20:50:02]line 6.700 * 74.70 [20:50:02]line = 500.49 [20:50:02]line НДС 12% НСП 1% [20:50:02]line > о реализуемом товаре [20:50:02]line ОКРУГЛЕНИЕ: -0.49 [20:50:02]line ИТОГО: 500.00 [20:50:02]line Внесено: 500.00 [20:50:02]line СДАЧА: 0.00 [20:50:02]line НСП 1% : 4.43 [20:50:02]line НДС 12% : 53.15 [20:50:02]line Наличными: 500.00 [20:50:02]line Безнал.: 0.00 [20:50:02]line Место: АЗС № 91 "Партнер Нефть" [20:50:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:50:02]line СНО: Общий режим [20:50:02]line Чек 187 15.05.2024 20:50 [20:50:02]line Смена: 356 ФФД: 1.0 [20:50:02]line ЗНМ: 0300000119 [20:50:02]line РНМ: 0000000000091845 [20:50:02]line Версия ККМ: 001 [20:50:02]line ФМ: 0000000000871829 [20:50:02]line ФД: 67369 [20:50:02]line ФПД: 120192595258318 [20:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205003&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67369&fm=120192595258318&tin=02508201610067®Number=0000000000091845&sum=50000 [20:50:02]OFD Sender: Processing packet 67369 [packets to send 35, broken 34] [20:50:02]ProducePacketName [20:50:02]name=ofd_packets/00067369 [20:50:02]OFD Sender: To server: pG, [20:50:02]CommunicateWithHost lk.salyk.kg:30040 [20:50:02]ConnectInit lk.salyk.kg [20:50:02]written 0, free lines is 4095 [20:50:02]Connected sock=10 [20:50: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 42 57 04 01 E5 72 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 BB 00 00 00 F4 03 04 00 FB 1F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 6D 50 84 F1 EB CE CD 76 66 CE 2E B9 04 69 [20:50: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 F5 43 47 00 BE 61 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 07 01 00 F4 03 04 00 D7 C7 44 66 B6 04 01 00 00 3E 53 02 FD 90 7B 83 E7 [20:50:03]CommunicateWithHost err = 0 [20:50:03]CheckOFDResponse [20:50:03]1017 (14) - 77093643461234 [20:50:03]1041 (16) - 0000000000871829 [20:50:03]1040 (4) - 67369 [20:50:03]1012 (4) - 15.05.2024 14:33 [20:50:03]1206 (1) - 0 [20:50:03]OFD Sender: Remove packet 67369 [20:50:03]ProducePacketName [20:50:03]name=ofd_packets/00067369 [20:50:03]NVStorageDeleteData [20:50:03]Write to MH i2c: 01 00 00 22 2E 50 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 07 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 07 00 22 2E 00 00 00 00 00 C2 0C 25 [20:50:03]RasterBufferAndPrint [20:50:03]line [20:50:03]line [20:50:03]line [20:50:03]line [20:50:03]line [20:50:03]written 0, free lines is 3272 [20:50:03]MH_Cut [20:50:03]Write to MH i2c: D1 01 00 29 2E 01 29 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: D1 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: D1 01 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: D1 01 00 29 2E 00 28 [20:50:03]Write to MH i2c: 01 00 00 2A 2E 58 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]OFD Sender: No OFD packet to send [20:50:04]*** Cut start [20:50:04]*** Purtial cut [20:50:04]*** Stage 1: CUTSNS_PIN = 1 [20:50:04]Read from MH i2c: 01 [20:50:04]MH_I2C_Read... [20:50:04]*** Stop cut motor [20:50:04]*** Cut end [20:50:04]Read from MH i2c: 01 07 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: 01 07 00 2A 2E 00 00 00 00 00 FF 0F 6D [20:50:04]process_action close_receipt done [20:50:04]requested_data is exist [20:50:04]produce_requested_data [20:50:04]requested_item fm.sn is exist - process it [20:50:04]wFMCommunicate request_size=4 [20:50:04]MH_SAM_APDU [20:50:04]CAPDU: 80 11 00 00 [20:50:04]Write to MH i2c: E2 08 00 2B 2E 80 11 00 00 00 00 00 00 D3 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:04]Read from MH i2c: E2 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 17 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 17 00 2B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [20:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:50:04]wFMCommunicate OK [20:50:04]requested_item fd.num is exist - process it [20:50:04]SAM_PROTO_GetFieldsCounters [20:50:04]wFMCommunicate request_size=4 [20:50:04]MH_SAM_APDU [20:50:04]CAPDU: 80 13 00 00 [20:50:04]Write to MH i2c: E2 08 00 2C 2E 80 13 00 00 00 00 00 00 D6 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:04]Read from MH i2c: E2 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 62 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 62 00 2C 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 29 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [20:50: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 29 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:04]wFMCommunicate OK [20:50:04]SAM_PROTO_GetFieldsCounters done [20:50:04]requested_item shift.num is exist - process it [20:50:04]requested_item shift.opened is exist - process it [20:50:04]req_shift_opened [20:50:04]FM_GetShiftState [20:50:04]SAM_PROTO_GetShiftState [20:50:04]wFMCommunicate request_size=4 [20:50:04]MH_SAM_APDU [20:50:04]CAPDU: 80 13 01 00 [20:50:04]Write to MH i2c: E2 08 00 2D 2E 80 13 01 00 00 00 00 00 D8 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:04]Read from MH i2c: E2 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 0E 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: E2 0E 00 2D 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 83 [20:50:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:50:04]wFMCommunicate OK [20:50:04]SAM_PROTO_GetShiftState done [20:50:04]FM_GetShiftState done [20:50:04]req_shift_opened done [20:50:04]requested_item shift.open_date is exist - process it [20:50:04]req_shift_open_date [20:50:04]req_shift_open_date done [20:50:04]produce_requested_data done [20:50:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67369,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:50:04]process_action_free close_receipt [20:50:04]json_value_free [20:50:04]json_value_free done [20:50:04]process_json_proto returns [20:50:04]Send response to host [20:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67369,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:50:04]free response buf [20:50:04]execute_script done [20:50:04]execute_script returns [20:50:04]free content buf [20:50:04]Sock 9.Close socket [20:50:04]Sock 9.Thread stoped [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:06]accept exits with 7 [20:56:06]New connection [20:56:06]New thread 3067174244 created [20:56:06]Thread 3067030884 joined [20:56:06]Waiting for new connection... [20:56:06] Sock 7.Parse request [20:56:06]Sock 7.Check first char [20:56:06]Sock 7.First char is OK [20:56:06]request: POST /json_proto HTTP/1.0 [20:56:06]Method: POST [20:56:06]URL: /json_proto [20:56:06]Method is POST - this is cgi request [20:56:06]url: /json_proto [20:56:06]query_string will be loaded in cgi processing [20:56:06]execute_cgi json_proto POST (null) [20:56:06]execute_cgi path=json_proto method=POST [20:56:06]POST find Content-Length [20:56:06]Host: 172.17.41.195:8080 [20:56:06]Content-Length: 800 [20:56:06]Content-Type: application/json [20:56:06] [20:56:06]POST finish read [20:56:06]Found Content-Length = 800 [20:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507349", "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 }]} ], "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.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:06]execute_script... [20:56: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)507349", "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 }]} ], "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.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:06]POST & json_proto [20:56:06]process_json_proto [20:56:06]json parsed OK: [20:56:06]protocol is kg_v1.0 [20:56:06]action value=close_receipt [20:56:06]process_action close_receipt [20:56:06]cmd_close_receipt [20:56:06]MH_GetDate [20:56:06]Write to MH i2c: F0 00 00 2E 2E 4B [20:56:06]Write i2c OK [20:56:06]MH_I2C_Read... [20:56:06]Read from MH i2c: F0 [20:56:06]MH_I2C_Read... [20:56:06]Read from MH i2c: F0 09 00 [20:56:06]MH_I2C_Read... [20:56:06]Read from MH i2c: F0 09 00 2E 2E 00 68 21 45 66 FC 21 6F 64 78 [20:56:06]GetLastDocTimeStamp 1715806203 [20:56:06]current date 1715806568 [20:56:06]FM_GetShiftState [20:56:06]SAM_PROTO_GetShiftState [20:56:06]wFMCommunicate request_size=4 [20:56:06]MH_SAM_APDU [20:56:06]CAPDU: 80 13 01 00 [20:56:06]Write to MH i2c: E2 08 00 2F 2E 80 13 01 00 00 00 00 00 DA [20:56:06]Write i2c OK [20:56:06]MH_I2C_Read... [20:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:06]Read from MH i2c: E2 [20:56:06]MH_I2C_Read... [20:56:06]Read from MH i2c: E2 0E 00 [20:56:06]MH_I2C_Read... [20:56:06]Read from MH i2c: E2 0E 00 2F 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 85 [20:56:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:56:06]wFMCommunicate OK [20:56:06]SAM_PROTO_GetShiftState done [20:56:06]FM_GetShiftState done [20:56:06]opened in 1715732471 [20:56:06]opened+sec_in_day 1715818871 [20:56:06]quantity*price = 40013 [20:56:06]sum+1 = 40014 [20:56:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.13 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.13 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 188 15.05.2024 20:56 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67370 ФПД: 93197644668833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205608&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67370&fm=93197644668833&tin=02508201610067®Number=0000000000091845&sum=40013 [20:56:07]StoreToDocumentArchive [20:56:07]shift 356 fd 67370 [20:56:07]save to /storage/0356/doc_00067370 [20:56:07]save last doc name /storage/0356/doc_00067370 to /storage/kkm_last_doc_name [20:56:07]save OK [20:56:07]Clear old archive folders... [20:56:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:07]tlvbuf is 00BF6540 [20:56:07]SAM_PROTO_ClearQueue [20:56:07]wFMCommunicate request_size=4 [20:56:07]MH_SAM_APDU [20:56:07]CAPDU: 80 09 00 00 [20:56:07]Write to MH i2c: E2 08 00 3C 2E 80 09 00 00 00 00 00 00 DC [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 3C 2E 00 90 00 DE [20:56:07]RAPDU: 90 00 [20:56:07]wFMCommunicate OK [20:56:07]SAM_PROTO_ClearQueue done [20:56:07]KKMCreateOFDPacket [20:56:07]OFDProtocolAddRootSTLVToBuf [20:56:07]FM_MakeSignedData [20:56:07]FM_MakeSignedData [20:56:07]SAM_PROTO_SignData [20:56:07]wFMCommunicate request_size=4 [20:56:07]MH_SAM_APDU [20:56:07]CAPDU: 80 0D 01 02 [20:56:07]Write to MH i2c: E2 08 00 3D 2E 80 0D 01 02 00 00 00 00 E4 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 3D 2E 00 90 00 DF [20:56:07]RAPDU: 90 00 [20:56:07]wFMCommunicate OK [20:56:07]wFMCommunicate request_size=255 [20:56:07]MH_SAM_APDU [20:56: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 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 4D 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 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 21 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 54 [20:56:07]Write to MH i2c: E2 02 01 3E 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 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 4D 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 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 21 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 54 00 00 44 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 3E 2E 00 90 00 E0 [20:56:07]RAPDU: 90 00 [20:56:07]wFMCommunicate OK [20:56:07]wFMCommunicate request_size=10 [20:56:07]MH_SAM_APDU [20:56:07]CAPDU: 80 0D 02 02 05 C3 44 81 1F A1 [20:56:07]Write to MH i2c: E2 0D 00 3F 2E 80 0D 02 02 05 00 C3 44 81 1F A1 00 00 39 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 03 00 3F 2E 00 90 00 E1 [20:56:07]RAPDU: 90 00 [20:56:07]wFMCommunicate OK [20:56:07]wFMCommunicate request_size=4 [20:56:07]MH_SAM_APDU [20:56:07]CAPDU: 80 0D 03 02 [20:56:07]Write to MH i2c: E2 08 00 40 2E 80 0D 03 02 00 00 00 00 E9 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 0B 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 0B 00 40 2E 00 8A FF 38 32 5F 2A 00 97 90 00 FD [20:56:07]RAPDU: 8A FF 38 32 5F 2A 00 97 90 00 [20:56:07]wFMCommunicate OK [20:56:07]SAM_PROTO_SignData done [20:56:07]FM_MakeSignedData done [20:56:07]CreateOFDProtocolMessage [20:56:07]wFMCommunicate request_size=4 [20:56:07]MH_SAM_APDU [20:56:07]CAPDU: 80 11 00 00 [20:56:07]Write to MH i2c: E2 08 00 41 2E 80 11 00 00 00 00 00 00 E9 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:07]Read from MH i2c: E2 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 17 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: E2 17 00 41 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [20:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:56:07]wFMCommunicate OK [20:56:07]CreateOFDProtocolMessage done [20:56:07]OFDSenderStorePacket 67370 [20:56:07]StoreOFDPacket docnum=67370 [20:56: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 0F 01 00 00 8D AE 07 01 E6 40 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 4D 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 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 21 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 54 C3 44 81 1F A1 8A FF 38 32 5F 2A 00 97 [20:56:07]CheckFolder [20:56:07]dirname=/storage/ofd_packets [20:56:07]CheckFolder done [20:56:07]ProducePacketName [20:56:07]name=ofd_packets/00067370 [20:56:07]NVStorageSaveData ofd_packets/00067370 [20:56:07]File name is /storage/ofd_packets/00067370 [20:56:07]Write 301 bytes [20:56:07]NVStorageSaveData done [20:56:07]OFDSenderStorePacket done [20:56:07]KKMCreateOFDPacket done [20:56:07]NVStorageSaveData kkm_last_timestamp [20:56:07]File name is /storage/kkm_last_timestamp [20:56:07]Write 4 bytes [20:56:07]NVStorageSaveData done [20:56:07]ExternCall_PrintAddStr [20:56:07]wPrintStart [20:56:07]Write to MH i2c: 01 00 00 42 2E 70 [20:56:07]Write i2c OK [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: 01 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: 01 07 00 [20:56:07]MH_I2C_Read... [20:56:07]Read from MH i2c: 01 07 00 42 2E 00 00 00 00 00 FF 0F 85 [20:56:07]RasterBufferAndPrint [20:56:07]line Счет N : (1)507349 [20:56:07]line ИНН: 02508201610067 [20:56:07]line Контрольно-Кассовый Чек [20:56:07]line ПРОДАЖА [20:56:07]line ТРК (МРК, ГНК) : 43 [20:56:07]line Товар: 2710124130 [20:56:07]line Аи-92-К-5 [20:56:07]line 5.990 * 66.80 [20:56:07]line = 400.13 [20:56:07]line НДС 12% НСП 1% [20:56:07]line > о реализуемом товаре [20:56:07]line ИТОГО: 400.13 [20:56:07]line НСП 1% : 3.54 [20:56:07]line НДС 12% : 42.49 [20:56:07]line Наличными: 0.00 [20:56:07]line Безнал.: 400.13 [20:56:07]line Место: АЗС № 91 "Партнер Нефть" [20:56:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:56:07]line СНО: Общий режим [20:56:07]line Чек 188 15.05.2024 20:56 [20:56:07]line Смена: 356 ФФД: 1.0 [20:56:07]line ЗНМ: 0300000119 [20:56:07]line РНМ: 0000000000091845 [20:56:07]line Версия ККМ: 001 [20:56:07]line Платежная система: O! деньги [20:56:07]line ФМ: 0000000000871829 [20:56:07]line ФД: 67370 [20:56:07]line ФПД: 93197644668833 [20:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205608&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67370&fm=93197644668833&tin=02508201610067®Number=0000000000091845&sum=40013 [20:56:08]OFD Sender: Processing packet 67370 [packets to send 35, broken 34] [20:56:08]ProducePacketName [20:56:08]name=ofd_packets/00067370 [20:56:08]OFD Sender: To server: pG, [20:56:08]CommunicateWithHost lk.salyk.kg:30040 [20:56:08]ConnectInit lk.salyk.kg [20:56:08]written 0, free lines is 4095 [20:56:08]Connected sock=10 [20:56: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 8D AE 07 01 E6 40 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 4D 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 00 00 00 00 00 00 39 04 06 00 4D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 68 21 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 54 C3 44 81 1F A1 8A FF 38 32 5F 2A 00 97 [20:56: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 27 38 47 00 8A 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 2A 07 01 00 F4 03 04 00 44 C9 44 66 B6 04 01 00 00 F2 0F F8 F7 BB 22 2D EB [20:56:08]CommunicateWithHost err = 0 [20:56:08]CheckOFDResponse [20:56:08]1017 (14) - 77093643461234 [20:56:08]1041 (16) - 0000000000871829 [20:56:08]1040 (4) - 67370 [20:56:08]1012 (4) - 15.05.2024 14:40 [20:56:08]1206 (1) - 0 [20:56:08]OFD Sender: Remove packet 67370 [20:56:08]ProducePacketName [20:56:08]name=ofd_packets/00067370 [20:56:08]NVStorageDeleteData [20:56:08]Write to MH i2c: 01 00 00 6B 2E 99 [20:56:08]Write i2c OK [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 07 00 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: 01 07 00 6B 2E 00 00 00 00 00 E7 0C 93 [20:56:08]RasterBufferAndPrint [20:56:08]line [20:56:08]line [20:56:08]line [20:56:08]line [20:56:08]line [20:56:08]written 0, free lines is 3309 [20:56:08]MH_Cut [20:56:08]Write to MH i2c: D1 01 00 72 2E 01 72 [20:56:08]Write i2c OK [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: D1 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: D1 01 00 [20:56:08]MH_I2C_Read... [20:56:08]Read from MH i2c: D1 01 00 72 2E 00 71 [20:56:08]Write to MH i2c: 01 00 00 73 2E A1 [20:56:08]Write i2c OK [20:56:08]MH_I2C_Read... [20:56:08]OFD Sender: No OFD packet to send [20:56:09]*** Cut start [20:56:09]*** Purtial cut [20:56:09]*** CUTSNS_PIN = 0 [20:56:09]*** Stage 1: CUTSNS_PIN = 1 [20:56:11]Read from MH i2c: 01 [20:56:11]MH_I2C_Read... [20:56:11]*** Stop cut motor [20:56:11]*** Cut end [20:56:11]Read from MH i2c: 01 07 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: 01 07 00 73 2E 00 00 00 00 00 FF 0F B6 [20:56:11]process_action close_receipt done [20:56:11]requested_data is exist [20:56:11]produce_requested_data [20:56:11]requested_item fm.sn is exist - process it [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 11 00 00 [20:56:11]Write to MH i2c: E2 08 00 74 2E 80 11 00 00 00 00 00 00 1C [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 17 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 17 00 74 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [20:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:56:11]wFMCommunicate OK [20:56:11]requested_item fd.num is exist - process it [20:56:11]SAM_PROTO_GetFieldsCounters [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 13 00 00 [20:56:11]Write to MH i2c: E2 08 00 75 2E 80 13 00 00 00 00 00 00 1F [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 62 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 62 00 75 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 2A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [20:56: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 2A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_GetFieldsCounters done [20:56:11]requested_item shift.num is exist - process it [20:56:11]requested_item shift.opened is exist - process it [20:56:11]req_shift_opened [20:56:11]FM_GetShiftState [20:56:11]SAM_PROTO_GetShiftState [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 13 01 00 [20:56:11]Write to MH i2c: E2 08 00 76 2E 80 13 01 00 00 00 00 00 21 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0E 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0E 00 76 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CC [20:56:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_GetShiftState done [20:56:11]FM_GetShiftState done [20:56:11]req_shift_opened done [20:56:11]requested_item shift.open_date is exist - process it [20:56:11]req_shift_open_date [20:56:11]req_shift_open_date done [20:56:11]produce_requested_data done [20:56:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67370,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:56:11]process_action_free close_receipt [20:56:11]json_value_free [20:56:11]json_value_free done [20:56:11]process_json_proto returns [20:56:11]Send response to host [20:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67370,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:56:11]free response buf [20:56:11]execute_script done [20:56:11]execute_script returns [20:56:11]free content buf [20:56:11]Sock 7.Close socket [20:56:11]Sock 7.Thread stoped [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:36]accept exits with 9 [20:59:36]New connection [20:59:36]New thread 3067030884 created [20:59:36]Thread 3067174244 joined [20:59:36]Waiting for new connection... [20:59:36] Sock 9.Parse request [20:59:36]Sock 9.Check first char [20:59:36]Sock 9.First char is OK [20:59:36]request: POST /json_proto HTTP/1.0 [20:59:36]Method: POST [20:59:36]URL: /json_proto [20:59:36]Method is POST - this is cgi request [20:59:36]url: /json_proto [20:59:36]query_string will be loaded in cgi processing [20:59:36]execute_cgi json_proto POST (null) [20:59:36]execute_cgi path=json_proto method=POST [20:59:36]POST find Content-Length [20:59:36]Host: 172.17.41.195:8080 [20:59:36]Content-Length: 674 [20:59:36]Content-Type: application/json [20:59:36] [20:59:36]POST finish read [20:59:36]Found Content-Length = 674 [20:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507351", "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" : 8.040, "sum" : 600.59, "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" ] } } [20:59:36]execute_script... [20:59: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)507351", "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" : 8.040, "sum" : 600.59, "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" ] } } [20:59:36]POST & json_proto [20:59:36]process_json_proto [20:59:36]json parsed OK: [20:59:36]protocol is kg_v1.0 [20:59:36]action value=close_receipt [20:59:36]process_action close_receipt [20:59:36]cmd_close_receipt [20:59:36]MH_GetDate [20:59:36]Write to MH i2c: F0 00 00 77 2E 94 [20:59:36]Write i2c OK [20:59:36]MH_I2C_Read... [20:59:36]Read from MH i2c: F0 [20:59:36]MH_I2C_Read... [20:59:36]Read from MH i2c: F0 09 00 [20:59:36]MH_I2C_Read... [20:59:36]Read from MH i2c: F0 09 00 77 2E 00 3A 22 45 66 FC 21 6F 64 94 [20:59:36]GetLastDocTimeStamp 1715806568 [20:59:36]current date 1715806778 [20:59:36]FM_GetShiftState [20:59:36]SAM_PROTO_GetShiftState [20:59:36]wFMCommunicate request_size=4 [20:59:36]MH_SAM_APDU [20:59:36]CAPDU: 80 13 01 00 [20:59:36]Write to MH i2c: E2 08 00 78 2E 80 13 01 00 00 00 00 00 23 [20:59:36]Write i2c OK [20:59:36]MH_I2C_Read... [20:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:36]Read from MH i2c: E2 [20:59:36]MH_I2C_Read... [20:59:36]Read from MH i2c: E2 0E 00 [20:59:36]MH_I2C_Read... [20:59:36]Read from MH i2c: E2 0E 00 78 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 CE [20:59:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:59:36]wFMCommunicate OK [20:59:36]SAM_PROTO_GetShiftState done [20:59:36]FM_GetShiftState done [20:59:36]opened in 1715732471 [20:59:36]opened+sec_in_day 1715818871 [20:59:36]quantity*price = 60058 [20:59:36]sum+1 = 60060 [20:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 189 15.05.2024 20:59 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67371 ФПД: 152518398884350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205938&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67371&fm=152518398884350&tin=02508201610067®Number=0000000000091845&sum=60000 [20:59:37]StoreToDocumentArchive [20:59:37]shift 356 fd 67371 [20:59:37]save to /storage/0356/doc_00067371 [20:59:37]save last doc name /storage/0356/doc_00067371 to /storage/kkm_last_doc_name [20:59:37]save OK [20:59:37]Clear old archive folders... [20:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:59:37]tlvbuf is 00B3AC60 [20:59:37]SAM_PROTO_ClearQueue [20:59:37]wFMCommunicate request_size=4 [20:59:37]MH_SAM_APDU [20:59:37]CAPDU: 80 09 00 00 [20:59:37]Write to MH i2c: E2 08 00 85 2E 80 09 00 00 00 00 00 00 25 [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:37]Read from MH i2c: E2 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 85 2E 00 90 00 27 [20:59:37]RAPDU: 90 00 [20:59:37]wFMCommunicate OK [20:59:37]SAM_PROTO_ClearQueue done [20:59:37]KKMCreateOFDPacket [20:59:37]OFDProtocolAddRootSTLVToBuf [20:59:37]FM_MakeSignedData [20:59:37]FM_MakeSignedData [20:59:37]SAM_PROTO_SignData [20:59:37]wFMCommunicate request_size=4 [20:59:37]MH_SAM_APDU [20:59:37]CAPDU: 80 0D 01 02 [20:59:37]Write to MH i2c: E2 08 00 86 2E 80 0D 01 02 00 00 00 00 2D [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:37]Read from MH i2c: E2 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 86 2E 00 90 00 28 [20:59:37]RAPDU: 90 00 [20:59:37]wFMCommunicate OK [20:59:37]wFMCommunicate request_size=255 [20:59:37]MH_SAM_APDU [20:59:37]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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 BD 00 00 00 F4 03 04 00 3A 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8A B6 F4 FC [20:59:37]Write to MH i2c: E2 02 01 87 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 BD 00 00 00 F4 03 04 00 3A 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8A B6 F4 FC 00 00 1D [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:37]Read from MH i2c: E2 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 [20:59:37]MH_I2C_Read... [20:59:37]Read from MH i2c: E2 03 00 87 2E 00 90 00 29 [20:59:37]RAPDU: 90 00 [20:59:37]wFMCommunicate OK [20:59:37]wFMCommunicate request_size=7 [20:59:37]MH_SAM_APDU [20:59:37]CAPDU: 80 0D 02 02 02 B9 FE [20:59:37]Write to MH i2c: E2 0A 00 88 2E 80 0D 02 02 02 00 B9 FE 00 00 EB [20:59:37]Write i2c OK [20:59:37]MH_I2C_Read... [20:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:38]Read from MH i2c: E2 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 03 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 03 00 88 2E 00 90 00 2A [20:59:38]RAPDU: 90 00 [20:59:38]wFMCommunicate OK [20:59:38]wFMCommunicate request_size=4 [20:59:38]MH_SAM_APDU [20:59:38]CAPDU: 80 0D 03 02 [20:59:38]Write to MH i2c: E2 08 00 89 2E 80 0D 03 02 00 00 00 00 32 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:38]Read from MH i2c: E2 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 0B 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 0B 00 89 2E 00 F5 AF A2 64 D0 F6 51 34 90 00 28 [20:59:38]RAPDU: F5 AF A2 64 D0 F6 51 34 90 00 [20:59:38]wFMCommunicate OK [20:59:38]SAM_PROTO_SignData done [20:59:38]FM_MakeSignedData done [20:59:38]CreateOFDProtocolMessage [20:59:38]wFMCommunicate request_size=4 [20:59:38]MH_SAM_APDU [20:59:38]CAPDU: 80 11 00 00 [20:59:38]Write to MH i2c: E2 08 00 8A 2E 80 11 00 00 00 00 00 00 32 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:38]Read from MH i2c: E2 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 17 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: E2 17 00 8A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [20:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:59:38]wFMCommunicate OK [20:59:38]CreateOFDProtocolMessage done [20:59:38]OFDSenderStorePacket 67371 [20:59:38]StoreOFDPacket docnum=67371 [20:59: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 E5 4D 04 01 99 0F 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 BD 00 00 00 F4 03 04 00 3A 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8A B6 F4 FC B9 FE F5 AF A2 64 D0 F6 51 34 [20:59:38]CheckFolder [20:59:38]dirname=/storage/ofd_packets [20:59:38]CheckFolder done [20:59:38]ProducePacketName [20:59:38]name=ofd_packets/00067371 [20:59:38]NVStorageSaveData ofd_packets/00067371 [20:59:38]File name is /storage/ofd_packets/00067371 [20:59:38]Write 298 bytes [20:59:38]NVStorageSaveData done [20:59:38]OFDSenderStorePacket done [20:59:38]KKMCreateOFDPacket done [20:59:38]NVStorageSaveData kkm_last_timestamp [20:59:38]File name is /storage/kkm_last_timestamp [20:59:38]Write 4 bytes [20:59:38]NVStorageSaveData done [20:59:38]ExternCall_PrintAddStr [20:59:38]wPrintStart [20:59:38]Write to MH i2c: 01 00 00 8B 2E B9 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 8B 2E 00 00 00 00 00 FF 0F CE [20:59:38]RasterBufferAndPrint [20:59:38]line Счет N : (1)507351 [20:59:38]line ИНН: 02508201610067 [20:59:38]line Контрольно-Кассовый Чек [20:59:38]line ПРОДАЖА [20:59:38]line ТРК (МРК, ГНК) : 11 [20:59:38]line Товар: 2710194210 [20:59:38]line ДТ-К-5 [20:59:38]line 8.040 * 74.70 [20:59:38]line = 600.59 [20:59:38]line НДС 12% НСП 1% [20:59:38]line > о реализуемом товаре [20:59:38]line ОКРУГЛЕНИЕ: -0.59 [20:59:38]line ИТОГО: 600.00 [20:59:38]line Внесено: 600.00 [20:59:38]line СДАЧА: 0.00 [20:59:38]line НСП 1% : 5.31 [20:59:38]line НДС 12% : 63.78 [20:59:38]line Наличными: 600.00 [20:59:38]line Безнал.: 0.00 [20:59:38]line Место: АЗС № 91 "Партнер Нефть" [20:59:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:59:38]line СНО: Общий режим [20:59:38]line Чек 189 15.05.2024 20:59 [20:59:38]line Смена: 356 ФФД: 1.0 [20:59:38]line ЗНМ: 0300000119 [20:59:38]line РНМ: 0000000000091845 [20:59:38]line Версия ККМ: 001 [20:59:38]line ФМ: 0000000000871829 [20:59:38]line ФД: 67371 [20:59:38]line ФПД: 152518398884350 [20:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T205938&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67371&fm=152518398884350&tin=02508201610067®Number=0000000000091845&sum=60000 [20:59:38]OFD Sender: Processing packet 67371 [packets to send 35, broken 34] [20:59:38]ProducePacketName [20:59:38]name=ofd_packets/00067371 [20:59:38]OFD Sender: To server: pG, [20:59:38]CommunicateWithHost lk.salyk.kg:30040 [20:59:38]ConnectInit lk.salyk.kg [20:59:38]written 0, free lines is 4095 [20:59:38]Connected sock=10 [20:59: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 0C 01 00 00 E5 4D 04 01 99 0F 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 68 1F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 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 EA 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 BD 00 00 00 F4 03 04 00 3A 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 8A B6 F4 FC B9 FE F5 AF A2 64 D0 F6 51 34 [20:59:38]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 C3 91 47 00 9B 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 2B 07 01 00 F4 03 04 00 17 CA 44 66 B6 04 01 00 00 EC DA 0C A1 9B 20 EB 15 [20:59:38]CommunicateWithHost err = 0 [20:59:38]CheckOFDResponse [20:59:38]1017 (14) - 77093643461234 [20:59:38]1041 (16) - 0000000000871829 [20:59:38]1040 (4) - 67371 [20:59:38]1012 (4) - 15.05.2024 14:43 [20:59:38]1206 (1) - 0 [20:59:38]OFD Sender: Remove packet 67371 [20:59:38]ProducePacketName [20:59:38]name=ofd_packets/00067371 [20:59:38]NVStorageDeleteData [20:59:38]Write to MH i2c: 01 00 00 B5 2E E3 [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: 01 07 00 B5 2E 00 00 00 00 00 C2 0C B8 [20:59:38]RasterBufferAndPrint [20:59:38]line [20:59:38]line [20:59:38]line [20:59:38]line [20:59:38]line [20:59:38]written 0, free lines is 3272 [20:59:38]MH_Cut [20:59:38]Write to MH i2c: D1 01 00 BC 2E 01 BC [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: D1 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: D1 01 00 [20:59:38]MH_I2C_Read... [20:59:38]Read from MH i2c: D1 01 00 BC 2E 00 BB [20:59:38]Write to MH i2c: 01 00 00 BD 2E EB [20:59:38]Write i2c OK [20:59:38]MH_I2C_Read... [20:59:39]OFD Sender: No OFD packet to send [20:59:39]*** Cut start [20:59:39]*** Purtial cut [20:59:39]*** Stage 1: CUTSNS_PIN = 1 [20:59:39]Read from MH i2c: 01 [20:59:39]MH_I2C_Read... [20:59:40]*** Stop cut motor [20:59:40]*** Cut end [20:59:40]Read from MH i2c: 01 07 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: 01 07 00 BD 2E 00 00 00 00 00 FF 0F 00 [20:59:40]process_action close_receipt done [20:59:40]requested_data is exist [20:59:40]produce_requested_data [20:59:40]requested_item fm.sn is exist - process it [20:59:40]wFMCommunicate request_size=4 [20:59:40]MH_SAM_APDU [20:59:40]CAPDU: 80 11 00 00 [20:59:40]Write to MH i2c: E2 08 00 BE 2E 80 11 00 00 00 00 00 00 66 [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:40]Read from MH i2c: E2 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 17 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 17 00 BE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [20:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:59:40]wFMCommunicate OK [20:59:40]requested_item fd.num is exist - process it [20:59:40]SAM_PROTO_GetFieldsCounters [20:59:40]wFMCommunicate request_size=4 [20:59:40]MH_SAM_APDU [20:59:40]CAPDU: 80 13 00 00 [20:59:40]Write to MH i2c: E2 08 00 BF 2E 80 13 00 00 00 00 00 00 69 [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:40]Read from MH i2c: E2 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 62 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 62 00 BF 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 2B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [20:59: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 2B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:40]wFMCommunicate OK [20:59:40]SAM_PROTO_GetFieldsCounters done [20:59:40]requested_item shift.num is exist - process it [20:59:40]requested_item shift.opened is exist - process it [20:59:40]req_shift_opened [20:59:40]FM_GetShiftState [20:59:40]SAM_PROTO_GetShiftState [20:59:40]wFMCommunicate request_size=4 [20:59:40]MH_SAM_APDU [20:59:40]CAPDU: 80 13 01 00 [20:59:40]Write to MH i2c: E2 08 00 C0 2E 80 13 01 00 00 00 00 00 6B [20:59:40]Write i2c OK [20:59:40]MH_I2C_Read... [20:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:40]Read from MH i2c: E2 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 0E 00 [20:59:40]MH_I2C_Read... [20:59:40]Read from MH i2c: E2 0E 00 C0 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 16 [20:59:40]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:59:40]wFMCommunicate OK [20:59:40]SAM_PROTO_GetShiftState done [20:59:40]FM_GetShiftState done [20:59:40]req_shift_opened done [20:59:40]requested_item shift.open_date is exist - process it [20:59:40]req_shift_open_date [20:59:40]req_shift_open_date done [20:59:40]produce_requested_data done [20:59:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67371,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:59:40]process_action_free close_receipt [20:59:40]json_value_free [20:59:40]json_value_free done [20:59:40]process_json_proto returns [20:59:40]Send response to host [20:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67371,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:59:40]free response buf [20:59:40]execute_script done [20:59:40]execute_script returns [20:59:40]free content buf [20:59:40]Sock 9.Close socket [20:59:40]Sock 9.Thread stoped [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]accept exits with 7 [20:59:59]New connection [20:59:59]New thread 3067174244 created [20:59:59]Thread 3067030884 joined [20:59:59]Waiting for new connection... [20:59:59] Sock 7.Parse request [20:59:59]Sock 7.Check first char [20:59:59]Sock 7.First char is OK [20:59:59]request: POST /json_proto HTTP/1.0 [20:59:59]Method: POST [20:59:59]URL: /json_proto [20:59:59]Method is POST - this is cgi request [20:59:59]url: /json_proto [20:59:59]query_string will be loaded in cgi processing [20:59:59]execute_cgi json_proto POST (null) [20:59:59]execute_cgi path=json_proto method=POST [20:59:59]POST find Content-Length [20:59:59]Host: 172.17.41.195:8080 [20:59:59]Content-Length: 215 [20:59:59]Content-Type: application/json [20:59:59] [20:59:59]POST finish read [20:59:59]Found Content-Length = 215 [20:59:59]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" ] } } [20:59:59]execute_script... [20:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:59]POST & json_proto [20:59:59]process_json_proto [20:59:59]json parsed OK: [20:59:59]protocol is kg_v1.0 [20:59:59]action value=get_value [20:59:59]process_action get_value [20:59:59]cmd_get_value [20:59:59]process_action get_value done [20:59:59]requested_data is exist [20:59:59]produce_requested_data [20:59:59]requested_item kkm.sn is exist - process it [20:59:59]requested_item kkm.ver is exist - process it [20:59:59]requested_item fm.sn is exist - process it [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 11 00 00 [20:59:59]Write to MH i2c: E2 08 00 C1 2E 80 11 00 00 00 00 00 00 69 [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]OFD Sender: No OFD packet to send [20:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 17 00 [20:59:59]MH_I2C_Read... [20:59:59]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 [20:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:59:59]wFMCommunicate OK [20:59:59]requested_item fd.num is exist - process it [20:59:59]SAM_PROTO_GetFieldsCounters [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 13 00 00 [20:59:59]Write to MH i2c: E2 08 00 C2 2E 80 13 00 00 00 00 00 00 6C [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 62 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 62 00 C2 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 2B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [20:59: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 2B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:59]wFMCommunicate OK [20:59:59]SAM_PROTO_GetFieldsCounters done [20:59:59]requested_item shift.num is exist - process it [20:59:59]requested_item shift.opened is exist - process it [20:59:59]req_shift_opened [20:59:59]FM_GetShiftState [20:59:59]SAM_PROTO_GetShiftState [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 13 01 00 [20:59:59]Write to MH i2c: E2 08 00 C3 2E 80 13 01 00 00 00 00 00 6E [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [20:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:59]Read from MH i2c: E2 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 0E 00 [20:59:59]MH_I2C_Read... [20:59:59]Read from MH i2c: E2 0E 00 C3 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 19 [20:59:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [20:59:59]wFMCommunicate OK [20:59:59]SAM_PROTO_GetShiftState done [20:59:59]FM_GetShiftState done [20:59:59]req_shift_opened done [20:59:59]requested_item shift.open_date is exist - process it [20:59:59]req_shift_open_date [20:59:59]req_shift_open_date done [20:59:59]produce_requested_data done [20:59:59]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67371,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [20:59:59]process_action_free get_value [20:59:59]json_value_free [20:59:59]json_value_free done [20:59:59]process_json_proto returns [20:59:59]Send response to host [20:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67371,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [20:59:59]free response buf [20:59:59]execute_script done [20:59:59]execute_script returns [20:59:59]free content buf [20:59:59]Sock 7.Close socket [20:59:59]Sock 7.Thread stoped [20:59:59]accept exits with 9 [20:59:59]New connection [20:59:59]New thread 3067030884 created [20:59:59]Thread 3067174244 joined [20:59:59]Waiting for new connection... [20:59:59] Sock 9.Parse request [20:59:59]Sock 9.Check first char [20:59:59]Sock 9.First char is OK [20:59:59]request: POST /json_proto HTTP/1.0 [20:59:59]Method: POST [20:59:59]URL: /json_proto [20:59:59]Method is POST - this is cgi request [20:59:59]url: /json_proto [20:59:59]query_string will be loaded in cgi processing [20:59:59]execute_cgi json_proto POST (null) [20:59:59]execute_cgi path=json_proto method=POST [20:59:59]POST find Content-Length [20:59:59]Host: 172.17.41.195:8080 [20:59:59]Content-Length: 331 [20:59:59]Content-Type: application/json [20:59:59] [20:59:59]POST finish read [20:59:59]Found Content-Length = 331 [20:59:59]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" ] } } [20:59:59]execute_script... [20:59:59]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" ] } } [20:59:59]POST & json_proto [20:59:59]process_json_proto [20:59:59]json parsed OK: [20:59:59]protocol is kg_v1.0 [20:59:59]action value=get_value [20:59:59]process_action get_value [20:59:59]cmd_get_value [20:59:59]process_action get_value done [20:59:59]requested_data is exist [20:59:59]produce_requested_data [20:59:59]requested_item fm.sale.total is exist - process it [20:59:59]SAM_PROTO_GetFMData [20:59:59]wFMCommunicate request_size=4 [20:59:59]MH_SAM_APDU [20:59:59]CAPDU: 80 13 03 00 [20:59:59]Write to MH i2c: E2 08 00 C4 2E 80 13 03 00 00 00 00 00 71 [20:59:59]Write i2c OK [20:59:59]MH_I2C_Read... [21:00:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:00:00]Read from MH i2c: E2 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 C4 2E 00 C6 04 85 04 C2 04 6E 04 04 00 63 04 01 00 69 04 A3 00 6F 04 04 00 BB 03 01 00 B1 04 05 00 82 00 7D 1A 03 70 04 05 00 80 8B 41 BF 02 72 04 04 00 02 75 3B 5B 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 27 CB 61 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 11 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 DF [21:00:00]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 04 01 00 69 04 A3 00 6F 04 04 00 BB 03 01 00 B1 04 05 00 82 00 7D 1A 03 70 04 05 00 80 8B 41 BF 02 72 04 04 00 02 75 3B 5B 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 27 CB 61 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 11 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [21:00:00]wFMCommunicate OK [21:00:00]wFMCommunicate request_size=4 [21:00:00]MH_SAM_APDU [21:00:00]CAPDU: 80 17 00 00 [21:00:00]Write to MH i2c: E2 08 00 C5 2E 80 17 00 00 00 00 00 00 73 [21:00:00]Write i2c OK [21:00:00]MH_I2C_Read... [21:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:00]Read from MH i2c: E2 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 C5 2E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 97 [21:00:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [21:00:00]wFMCommunicate OK [21:00:00]wFMCommunicate request_size=4 [21:00:00]MH_SAM_APDU [21:00:00]CAPDU: 80 17 00 00 [21:00:00]Write to MH i2c: E2 08 00 C6 2E 80 17 00 00 00 00 00 00 74 [21:00:00]Write i2c OK [21:00:00]MH_I2C_Read... [21:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:00]Read from MH i2c: E2 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 [21:00:00]MH_I2C_Read... [21:00:00]Read from MH i2c: E2 FD 00 C6 2E 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 9B [21:00:00]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 [21:00:00]wFMCommunicate OK [21:00:00]wFMCommunicate request_size=4 [21:00:00]MH_SAM_APDU [21:00:00]CAPDU: 80 17 00 00 [21:00:00]Write to MH i2c: E2 08 00 C7 2E 80 17 00 00 00 00 00 00 75 [21:00:00]Write i2c OK [21:00:00]MH_I2C_Read... [21:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:01]Read from MH i2c: E2 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 FD 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 FD 00 C7 2E 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F0 [21:00:01]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 [21:00:01]wFMCommunicate OK [21:00:01]wFMCommunicate request_size=4 [21:00:01]MH_SAM_APDU [21:00:01]CAPDU: 80 17 00 00 [21:00:01]Write to MH i2c: E2 08 00 C8 2E 80 17 00 00 00 00 00 00 76 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:00:01]Read from MH i2c: E2 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 E3 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 E3 00 C8 2E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 55 [21:00:01]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 [21:00:01]wFMCommunicate OK [21:00:01]SAM_PROTO_GetFMData done [21:00:01]requested_item fm.sale_refund.total is exist - process it [21:00:01]requested_item fm.buy.total is exist - process it [21:00:01]requested_item shift.sale.total is exist - process it [21:00:01]SAM_PROTO_GetShiftData [21:00:01]wFMCommunicate request_size=4 [21:00:01]MH_SAM_APDU [21:00:01]CAPDU: 80 13 02 00 [21:00:01]Write to MH i2c: E2 08 00 C9 2E 80 13 02 00 00 00 00 00 75 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:00:01]Read from MH i2c: E2 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 FD 00 [21:00:01]MH_I2C_Read... [21:00:01]Read from MH i2c: E2 FD 00 C9 2E 00 BB 04 AA 04 B7 04 6E 04 04 00 BD 00 00 00 69 04 9D 00 6F 04 04 00 BA 00 00 00 B1 04 04 00 E4 47 6D 01 70 04 03 00 A4 25 7C 72 04 03 00 40 22 F1 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 99 CB 26 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 94 3B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 75 [21:00:01]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 BD 00 00 00 69 04 9D 00 6F 04 04 00 BA 00 00 00 B1 04 04 00 E4 47 6D 01 70 04 03 00 A4 25 7C 72 04 03 00 40 22 F1 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 99 CB 26 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 94 3B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [21:00:01]wFMCommunicate OK [21:00:01]wFMCommunicate request_size=4 [21:00:01]MH_SAM_APDU [21:00:01]CAPDU: 80 17 00 00 [21:00:01]Write to MH i2c: E2 08 00 CA 2E 80 17 00 00 00 00 00 00 78 [21:00:01]Write i2c OK [21:00:01]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 CA 2E 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [21:00:02]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:00:02]wFMCommunicate OK [21:00:02]wFMCommunicate request_size=4 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 17 00 00 [21:00:02]Write to MH i2c: E2 08 00 CB 2E 80 17 00 00 00 00 00 00 79 [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 CB 2E 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [21:00:02]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:00:02]wFMCommunicate OK [21:00:02]wFMCommunicate request_size=4 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 17 00 00 [21:00:02]Write to MH i2c: E2 08 00 CC 2E 80 17 00 00 00 00 00 00 7A [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 FD 00 CC 2E 00 00 00 EF 03 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 90 00 EF [21:00:02]RAPDU: 00 00 EF 03 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 90 00 [21:00:02]wFMCommunicate OK [21:00:02]wFMCommunicate request_size=4 [21:00:02]MH_SAM_APDU [21:00:02]CAPDU: 80 17 00 00 [21:00:02]Write to MH i2c: E2 08 00 CD 2E 80 17 00 00 00 00 00 00 7B [21:00:02]Write i2c OK [21:00:02]MH_I2C_Read... [21:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [21:00:02]Read from MH i2c: E2 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 D8 00 [21:00:02]MH_I2C_Read... [21:00:02]Read from MH i2c: E2 D8 00 CD 2E 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 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 62 [21:00:02]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 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 [21:00:02]wFMCommunicate OK [21:00:02]SAM_PROTO_GetShiftData done [21:00:02]requested_item shift.sale.total_cash is exist - process it [21:00:02]requested_item shift.sale_refund.total is exist - process it [21:00:02]requested_item shift.sale_refund.total_cash is exist - process it [21:00:02]requested_item shift.buy.total is exist - process it [21:00:02]requested_item shift.buy.total_cash is exist - process it [21:00:02]produce_requested_data done [21:00:02]produce_requested_data return {"fm.sale.total":133293016.34,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":239390.44,"shift.sale.total_cash":81361.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:00:02]process_action_free get_value [21:00:02]json_value_free [21:00:02]json_value_free done [21:00:02]process_json_proto returns [21:00:02]Send response to host [21:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133293016.34,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":239390.44,"shift.sale.total_cash":81361.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:00:02]free response buf [21:00:02]execute_script done [21:00:02]execute_script returns [21:00:02]free content buf [21:00:02]Sock 9.Close socket [21:00:02]Sock 9.Thread stoped [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:51]accept exits with 7 [21:00:51]New connection [21:00:51]New thread 3067174244 created [21:00:51]Thread 3067030884 joined [21:00:51]Waiting for new connection... [21:00:51] Sock 7.Parse request [21:00:51]Sock 7.Check first char [21:00:51]Sock 7.First char is OK [21:00:51]request: POST /json_proto HTTP/1.0 [21:00:51]Method: POST [21:00:51]URL: /json_proto [21:00:51]Method is POST - this is cgi request [21:00:51]url: /json_proto [21:00:51]query_string will be loaded in cgi processing [21:00:51]execute_cgi json_proto POST (null) [21:00:51]execute_cgi path=json_proto method=POST [21:00:51]POST find Content-Length [21:00:51]Host: 172.17.41.195:8080 [21:00:51]Content-Length: 671 [21:00:51]Content-Type: application/json [21:00:51] [21:00:51]POST finish read [21:00:51]Found Content-Length = 671 [21:00:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507352", "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" ] } } [21:00:51]execute_script... [21:00: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)507352", "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" ] } } [21:00:51]POST & json_proto [21:00:51]process_json_proto [21:00:51]json parsed OK: [21:00:51]protocol is kg_v1.0 [21:00:51]action value=close_receipt [21:00:51]process_action close_receipt [21:00:51]cmd_close_receipt [21:00:51]MH_GetDate [21:00:51]Write to MH i2c: F0 00 00 CE 2E EB [21:00:51]Write i2c OK [21:00:51]MH_I2C_Read... [21:00:51]Read from MH i2c: F0 [21:00:51]MH_I2C_Read... [21:00:51]Read from MH i2c: F0 09 00 [21:00:51]MH_I2C_Read... [21:00:51]Read from MH i2c: F0 09 00 CE 2E 00 85 22 45 66 FC 21 6F 64 36 [21:00:51]GetLastDocTimeStamp 1715806778 [21:00:51]current date 1715806853 [21:00:51]FM_GetShiftState [21:00:51]SAM_PROTO_GetShiftState [21:00:51]wFMCommunicate request_size=4 [21:00:51]MH_SAM_APDU [21:00:51]CAPDU: 80 13 01 00 [21:00:51]Write to MH i2c: E2 08 00 CF 2E 80 13 01 00 00 00 00 00 7A [21:00:51]Write i2c OK [21:00:51]MH_I2C_Read... [21:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:51]Read from MH i2c: E2 [21:00:51]MH_I2C_Read... [21:00:51]Read from MH i2c: E2 0E 00 [21:00:51]MH_I2C_Read... [21:00:51]Read from MH i2c: E2 0E 00 CF 2E 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 25 [21:00:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:00:51]wFMCommunicate OK [21:00:51]SAM_PROTO_GetShiftState done [21:00:51]FM_GetShiftState done [21:00:51]opened in 1715732471 [21:00:51]opened+sec_in_day 1715818871 [21:00:51]quantity*price = 70037 [21:00:51]sum+1 = 70038 [21:00:51]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 СНО: Общий режим Чек 190 15.05.2024 21:00 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67372 ФПД: 242209397092604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210053&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67372&fm=242209397092604&tin=02508201610067®Number=0000000000091845&sum=70000 [21:00:52]StoreToDocumentArchive [21:00:52]shift 356 fd 67372 [21:00:52]save to /storage/0356/doc_00067372 [21:00:52]save last doc name /storage/0356/doc_00067372 to /storage/kkm_last_doc_name [21:00:52]save OK [21:00:52]Clear old archive folders... [21:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:00:52]tlvbuf is 00BA4C70 [21:00:52]SAM_PROTO_ClearQueue [21:00:52]wFMCommunicate request_size=4 [21:00:52]MH_SAM_APDU [21:00:52]CAPDU: 80 09 00 00 [21:00:52]Write to MH i2c: E2 08 00 DC 2E 80 09 00 00 00 00 00 00 7C [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:52]Read from MH i2c: E2 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 DC 2E 00 90 00 7E [21:00:52]RAPDU: 90 00 [21:00:52]wFMCommunicate OK [21:00:52]SAM_PROTO_ClearQueue done [21:00:52]KKMCreateOFDPacket [21:00:52]OFDProtocolAddRootSTLVToBuf [21:00:52]FM_MakeSignedData [21:00:52]FM_MakeSignedData [21:00:52]SAM_PROTO_SignData [21:00:52]wFMCommunicate request_size=4 [21:00:52]MH_SAM_APDU [21:00:52]CAPDU: 80 0D 01 02 [21:00:52]Write to MH i2c: E2 08 00 DD 2E 80 0D 01 02 00 00 00 00 84 [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:52]Read from MH i2c: E2 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 DD 2E 00 90 00 7F [21:00:52]RAPDU: 90 00 [21:00:52]wFMCommunicate OK [21:00:52]wFMCommunicate request_size=255 [21:00:52]MH_SAM_APDU [21:00:52]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 BE 00 00 00 F4 03 04 00 85 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [21:00:52]Write to MH i2c: E2 02 01 DE 2E 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 BE 00 00 00 F4 03 04 00 85 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 C2 [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:52]Read from MH i2c: E2 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 DE 2E 00 90 00 80 [21:00:52]RAPDU: 90 00 [21:00:52]wFMCommunicate OK [21:00:52]wFMCommunicate request_size=11 [21:00:52]MH_SAM_APDU [21:00:52]CAPDU: 80 0D 02 02 06 DC 49 C5 13 30 FC [21:00:52]Write to MH i2c: E2 0E 00 DF 2E 80 0D 02 02 06 00 DC 49 C5 13 30 FC 00 00 BC [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:52]Read from MH i2c: E2 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 [21:00:52]MH_I2C_Read... [21:00:52]Read from MH i2c: E2 03 00 DF 2E 00 90 00 81 [21:00:52]RAPDU: 90 00 [21:00:52]wFMCommunicate OK [21:00:52]wFMCommunicate request_size=4 [21:00:52]MH_SAM_APDU [21:00:52]CAPDU: 80 0D 03 02 [21:00:52]Write to MH i2c: E2 08 00 E0 2E 80 0D 03 02 00 00 00 00 89 [21:00:52]Write i2c OK [21:00:52]MH_I2C_Read... [21:00:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:53]Read from MH i2c: E2 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 0B 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 0B 00 E0 2E 00 CF D3 DE 63 2A 7C 28 12 90 00 4D [21:00:53]RAPDU: CF D3 DE 63 2A 7C 28 12 90 00 [21:00:53]wFMCommunicate OK [21:00:53]SAM_PROTO_SignData done [21:00:53]FM_MakeSignedData done [21:00:53]CreateOFDProtocolMessage [21:00:53]wFMCommunicate request_size=4 [21:00:53]MH_SAM_APDU [21:00:53]CAPDU: 80 11 00 00 [21:00:53]Write to MH i2c: E2 08 00 E1 2E 80 11 00 00 00 00 00 00 89 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:53]Read from MH i2c: E2 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 17 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: E2 17 00 E1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [21:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:00:53]wFMCommunicate OK [21:00:53]CreateOFDProtocolMessage done [21:00:53]OFDSenderStorePacket 67372 [21:00:53]StoreOFDPacket docnum=67372 [21:00: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 10 01 00 00 09 B7 08 01 0B 52 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 BE 00 00 00 F4 03 04 00 85 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 49 C5 13 30 FC CF D3 DE 63 2A 7C 28 12 [21:00:53]CheckFolder [21:00:53]dirname=/storage/ofd_packets [21:00:53]CheckFolder done [21:00:53]ProducePacketName [21:00:53]name=ofd_packets/00067372 [21:00:53]NVStorageSaveData ofd_packets/00067372 [21:00:53]File name is /storage/ofd_packets/00067372 [21:00:53]Write 302 bytes [21:00:53]NVStorageSaveData done [21:00:53]OFDSenderStorePacket done [21:00:53]KKMCreateOFDPacket done [21:00:53]NVStorageSaveData kkm_last_timestamp [21:00:53]File name is /storage/kkm_last_timestamp [21:00:53]Write 4 bytes [21:00:53]NVStorageSaveData done [21:00:53]ExternCall_PrintAddStr [21:00:53]wPrintStart [21:00:53]Write to MH i2c: 01 00 00 E2 2E 10 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 E2 2E 00 00 00 00 00 FF 0F 25 [21:00:53]RasterBufferAndPrint [21:00:53]line Счет N : (1)507352 [21:00:53]line ИНН: 02508201610067 [21:00:53]line Контрольно-Кассовый Чек [21:00:53]line ПРОДАЖА [21:00:53]line ТРК (МРК, ГНК) : 42 [21:00:53]line Товар: 2710124130 [21:00:53]line Super-92-К-5 [21:00:53]line 10.330 * 67.80 [21:00:53]line = 700.37 [21:00:53]line НДС 12% НСП 1% [21:00:53]line > о реализуемом товаре [21:00:53]line ОКРУГЛЕНИЕ: -0.37 [21:00:53]line ИТОГО: 700.00 [21:00:53]line Внесено: 700.00 [21:00:53]line СДАЧА: 0.00 [21:00:53]line НСП 1% : 6.20 [21:00:53]line НДС 12% : 74.38 [21:00:53]line Наличными: 700.00 [21:00:53]line Безнал.: 0.00 [21:00:53]line Место: АЗС № 91 "Партнер Нефть" [21:00:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:00:53]line СНО: Общий режим [21:00:53]line Чек 190 15.05.2024 21:00 [21:00:53]line Смена: 356 ФФД: 1.0 [21:00:53]line ЗНМ: 0300000119 [21:00:53]line РНМ: 0000000000091845 [21:00:53]line Версия ККМ: 001 [21:00:53]line ФМ: 0000000000871829 [21:00:53]line ФД: 67372 [21:00:53]line ФПД: 242209397092604 [21:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210053&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67372&fm=242209397092604&tin=02508201610067®Number=0000000000091845&sum=70000 [21:00:53]written 0, free lines is 4095 [21:00:53]OFD Sender: Processing packet 67372 [packets to send 35, broken 34] [21:00:53]ProducePacketName [21:00:53]name=ofd_packets/00067372 [21:00:53]OFD Sender: To server: pG, [21:00:53]CommunicateWithHost lk.salyk.kg:30040 [21:00:53]ConnectInit lk.salyk.kg [21:00:53]Connected sock=10 [21:00: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 10 01 00 00 09 B7 08 01 0B 52 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 BE 00 00 00 F4 03 04 00 85 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 DC 49 C5 13 30 FC CF D3 DE 63 2A 7C 28 12 [21:00: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 C5 F7 47 00 A5 CD 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 07 01 00 F4 03 04 00 62 CA 44 66 B6 04 01 00 00 00 B3 3B 37 F8 7A F1 E7 [21:00:53]CommunicateWithHost err = 0 [21:00:53]CheckOFDResponse [21:00:53]1017 (14) - 77093643461234 [21:00:53]1041 (16) - 0000000000871829 [21:00:53]1040 (4) - 67372 [21:00:53]1012 (4) - 15.05.2024 14:44 [21:00:53]1206 (1) - 0 [21:00:53]OFD Sender: Remove packet 67372 [21:00:53]ProducePacketName [21:00:53]name=ofd_packets/00067372 [21:00:53]NVStorageDeleteData [21:00:53]Write to MH i2c: 01 00 00 0C 2F 3B [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 0C 2F 00 00 00 00 00 CE 0C 1C [21:00:53]RasterBufferAndPrint [21:00:53]line [21:00:53]line [21:00:53]line [21:00:53]line [21:00:53]line [21:00:53]written 0, free lines is 3285 [21:00:53]MH_Cut [21:00:53]Write to MH i2c: D1 01 00 13 2F 01 14 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D1 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D1 01 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D1 01 00 13 2F 00 13 [21:00:53]Write to MH i2c: 01 00 00 14 2F 43 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]OFD Sender: No OFD packet to send [21:00:54]*** Cut start [21:00:54]*** Purtial cut [21:00:54]*** CUTSNS_PIN = 0 [21:00:54]*** Stage 1: CUTSNS_PIN = 1 [21:00:56]Read from MH i2c: 01 [21:00:56]*** Stop cut motor [21:00:56]*** Cut end [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: 01 07 00 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: 01 07 00 14 2F 00 00 00 00 00 FF 0F 58 [21:00:56]process_action close_receipt done [21:00:56]requested_data is exist [21:00:56]produce_requested_data [21:00:56]requested_item fm.sn is exist - process it [21:00:56]wFMCommunicate request_size=4 [21:00:56]MH_SAM_APDU [21:00:56]CAPDU: 80 11 00 00 [21:00:56]Write to MH i2c: E2 08 00 15 2F 80 11 00 00 00 00 00 00 BE [21:00:56]Write i2c OK [21:00:56]MH_I2C_Read... [21:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:56]Read from MH i2c: E2 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 17 00 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 17 00 15 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [21:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:00:56]wFMCommunicate OK [21:00:56]requested_item fd.num is exist - process it [21:00:56]SAM_PROTO_GetFieldsCounters [21:00:56]wFMCommunicate request_size=4 [21:00:56]MH_SAM_APDU [21:00:56]CAPDU: 80 13 00 00 [21:00:56]Write to MH i2c: E2 08 00 16 2F 80 13 00 00 00 00 00 00 C1 [21:00:56]Write i2c OK [21:00:56]MH_I2C_Read... [21:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:56]Read from MH i2c: E2 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 62 00 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 62 00 16 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 2C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [21:00: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 2C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:56]wFMCommunicate OK [21:00:56]SAM_PROTO_GetFieldsCounters done [21:00:56]requested_item shift.num is exist - process it [21:00:56]requested_item shift.opened is exist - process it [21:00:56]req_shift_opened [21:00:56]FM_GetShiftState [21:00:56]SAM_PROTO_GetShiftState [21:00:56]wFMCommunicate request_size=4 [21:00:56]MH_SAM_APDU [21:00:56]CAPDU: 80 13 01 00 [21:00:56]Write to MH i2c: E2 08 00 17 2F 80 13 01 00 00 00 00 00 C3 [21:00:56]Write i2c OK [21:00:56]MH_I2C_Read... [21:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:56]Read from MH i2c: E2 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 0E 00 [21:00:56]MH_I2C_Read... [21:00:56]Read from MH i2c: E2 0E 00 17 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6E [21:00:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:00:56]wFMCommunicate OK [21:00:56]SAM_PROTO_GetShiftState done [21:00:56]FM_GetShiftState done [21:00:56]req_shift_opened done [21:00:56]requested_item shift.open_date is exist - process it [21:00:56]req_shift_open_date [21:00:56]req_shift_open_date done [21:00:56]produce_requested_data done [21:00:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67372,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:00:56]process_action_free close_receipt [21:00:56]json_value_free [21:00:56]json_value_free done [21:00:56]process_json_proto returns [21:00:56]Send response to host [21:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67372,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:00:56]free response buf [21:00:56]execute_script done [21:00:56]execute_script returns [21:00:56]free content buf [21:00:56]Sock 7.Close socket [21:00:56]Sock 7.Thread stoped [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:44]accept exits with 9 [21:01:44]New connection [21:01:44]New thread 3067030884 created [21:01:44]Thread 3067174244 joined [21:01:44]Waiting for new connection... [21:01:44] Sock 9.Parse request [21:01:44]Sock 9.Check first char [21:01:44]Sock 9.First char is OK [21:01:44]request: POST /json_proto HTTP/1.0 [21:01:44]Method: POST [21:01:44]URL: /json_proto [21:01:44]Method is POST - this is cgi request [21:01:44]url: /json_proto [21:01:44]query_string will be loaded in cgi processing [21:01:44]execute_cgi json_proto POST (null) [21:01:44]execute_cgi path=json_proto method=POST [21:01:44]POST find Content-Length [21:01:44]Host: 172.17.41.195:8080 [21:01:44]Content-Length: 680 [21:01:44]Content-Type: application/json [21:01:44] [21:01:44]POST finish read [21:01:44]Found Content-Length = 680 [21:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507350", "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" : 127.180, "sum" : 9500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:44]execute_script... [21:01: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)507350", "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" : 127.180, "sum" : 9500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:44]POST & json_proto [21:01:44]process_json_proto [21:01:44]json parsed OK: [21:01:44]protocol is kg_v1.0 [21:01:44]action value=close_receipt [21:01:44]process_action close_receipt [21:01:44]cmd_close_receipt [21:01:44]MH_GetDate [21:01:44]Write to MH i2c: F0 00 00 18 2F 36 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: F0 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: F0 09 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: F0 09 00 18 2F 00 BA 22 45 66 FC 21 6F 64 B6 [21:01:44]GetLastDocTimeStamp 1715806853 [21:01:44]current date 1715806906 [21:01:44]FM_GetShiftState [21:01:44]SAM_PROTO_GetShiftState [21:01:44]wFMCommunicate request_size=4 [21:01:44]MH_SAM_APDU [21:01:44]CAPDU: 80 13 01 00 [21:01:44]Write to MH i2c: E2 08 00 19 2F 80 13 01 00 00 00 00 00 C5 [21:01:44]Write i2c OK [21:01:44]MH_I2C_Read... [21:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:44]Read from MH i2c: E2 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 [21:01:44]MH_I2C_Read... [21:01:44]Read from MH i2c: E2 0E 00 19 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 70 [21:01:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:01:44]wFMCommunicate OK [21:01:44]SAM_PROTO_GetShiftState done [21:01:44]FM_GetShiftState done [21:01:44]opened in 1715732471 [21:01:44]opened+sec_in_day 1715818871 [21:01:44]quantity*price = 950034 [21:01:44]sum+1 = 950036 [21:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 191 15.05.2024 21:01 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67373 ФПД: 213272431857474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67373&fm=213272431857474&tin=02508201610067®Number=0000000000091845&sum=950000 [21:01:45]StoreToDocumentArchive [21:01:45]shift 356 fd 67373 [21:01:45]save to /storage/0356/doc_00067373 [21:01:45]save last doc name /storage/0356/doc_00067373 to /storage/kkm_last_doc_name [21:01:45]save OK [21:01:45]Clear old archive folders... [21:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:01:45]tlvbuf is 00BA48F0 [21:01:45]SAM_PROTO_ClearQueue [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 09 00 00 [21:01:45]Write to MH i2c: E2 08 00 26 2F 80 09 00 00 00 00 00 00 C7 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 26 2F 00 90 00 C9 [21:01:45]RAPDU: 90 00 [21:01:45]wFMCommunicate OK [21:01:45]SAM_PROTO_ClearQueue done [21:01:45]KKMCreateOFDPacket [21:01:45]OFDProtocolAddRootSTLVToBuf [21:01:45]FM_MakeSignedData [21:01:45]FM_MakeSignedData [21:01:45]SAM_PROTO_SignData [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 0D 01 02 [21:01:45]Write to MH i2c: E2 08 00 27 2F 80 0D 01 02 00 00 00 00 CF [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 27 2F 00 90 00 CA [21:01:45]RAPDU: 90 00 [21:01:45]wFMCommunicate OK [21:01:45]wFMCommunicate request_size=255 [21:01:45]MH_SAM_APDU [21:01: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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BA 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 C1 F8 5B 8A [21:01:45]Write to MH i2c: E2 02 01 28 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BA 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 C1 F8 5B 8A 00 00 EA [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 28 2F 00 90 00 CB [21:01:45]RAPDU: 90 00 [21:01:45]wFMCommunicate OK [21:01:45]wFMCommunicate request_size=7 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 0D 02 02 02 8F 42 [21:01:45]Write to MH i2c: E2 0A 00 29 2F 80 0D 02 02 02 00 8F 42 00 00 A7 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 03 00 29 2F 00 90 00 CC [21:01:45]RAPDU: 90 00 [21:01:45]wFMCommunicate OK [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 0D 03 02 [21:01:45]Write to MH i2c: E2 08 00 2A 2F 80 0D 03 02 00 00 00 00 D4 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0B 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 0B 00 2A 2F 00 B9 15 3C 8D 65 0F 49 F8 90 00 21 [21:01:45]RAPDU: B9 15 3C 8D 65 0F 49 F8 90 00 [21:01:45]wFMCommunicate OK [21:01:45]SAM_PROTO_SignData done [21:01:45]FM_MakeSignedData done [21:01:45]CreateOFDProtocolMessage [21:01:45]wFMCommunicate request_size=4 [21:01:45]MH_SAM_APDU [21:01:45]CAPDU: 80 11 00 00 [21:01:45]Write to MH i2c: E2 08 00 2B 2F 80 11 00 00 00 00 00 00 D4 [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:45]Read from MH i2c: E2 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 17 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: E2 17 00 2B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [21:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:01:45]wFMCommunicate OK [21:01:45]CreateOFDProtocolMessage done [21:01:45]OFDSenderStorePacket 67373 [21:01:45]StoreOFDPacket docnum=67373 [21:01: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 DA 9F 04 01 5D 97 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BA 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 C1 F8 5B 8A 8F 42 B9 15 3C 8D 65 0F 49 F8 [21:01:45]CheckFolder [21:01:45]dirname=/storage/ofd_packets [21:01:45]CheckFolder done [21:01:45]ProducePacketName [21:01:45]name=ofd_packets/00067373 [21:01:45]NVStorageSaveData ofd_packets/00067373 [21:01:45]File name is /storage/ofd_packets/00067373 [21:01:45]Write 298 bytes [21:01:45]NVStorageSaveData done [21:01:45]OFDSenderStorePacket done [21:01:45]KKMCreateOFDPacket done [21:01:45]NVStorageSaveData kkm_last_timestamp [21:01:45]File name is /storage/kkm_last_timestamp [21:01:45]Write 4 bytes [21:01:45]NVStorageSaveData done [21:01:45]ExternCall_PrintAddStr [21:01:45]wPrintStart [21:01:45]Write to MH i2c: 01 00 00 2C 2F 5B [21:01:45]Write i2c OK [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 07 00 [21:01:45]MH_I2C_Read... [21:01:45]Read from MH i2c: 01 07 00 2C 2F 00 00 00 00 00 FF 0F 70 [21:01:45]RasterBufferAndPrint [21:01:45]line Счет N : (1)507350 [21:01:45]line ИНН: 02508201610067 [21:01:45]line Контрольно-Кассовый Чек [21:01:45]line ПРОДАЖА [21:01:45]line ТРК (МРК, ГНК) : 21 [21:01:45]line Товар: 2710194210 [21:01:45]line ДТ-К-5 [21:01:45]line 127.180 * 74.70 [21:01:45]line = 9500.35 [21:01:45]line НДС 12% НСП 1% [21:01:45]line > о реализуемом товаре [21:01:45]line ОКРУГЛЕНИЕ: -0.35 [21:01:45]line ИТОГО: 9500.00 [21:01:45]line Внесено: 9500.00 [21:01:45]line СДАЧА: 0.00 [21:01:45]line НСП 1% : 84.07 [21:01:45]line НДС 12% : 1008.89 [21:01:45]line Наличными: 9500.00 [21:01:45]line Безнал.: 0.00 [21:01:45]line Место: АЗС № 91 "Партнер Нефть" [21:01:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:01:45]line СНО: Общий режим [21:01:45]line Чек 191 15.05.2024 21:01 [21:01:45]line Смена: 356 ФФД: 1.0 [21:01:45]line ЗНМ: 0300000119 [21:01:45]line РНМ: 0000000000091845 [21:01:45]line Версия ККМ: 001 [21:01:45]line ФМ: 0000000000871829 [21:01:45]line ФД: 67373 [21:01:45]line ФПД: 213272431857474 [21:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67373&fm=213272431857474&tin=02508201610067®Number=0000000000091845&sum=950000 [21:01:46]OFD Sender: Processing packet 67373 [packets to send 35, broken 34] [21:01:46]ProducePacketName [21:01:46]name=ofd_packets/00067373 [21:01:46]OFD Sender: To server: pG, [21:01:46]CommunicateWithHost lk.salyk.kg:30040 [21:01:46]ConnectInit lk.salyk.kg [21:01:46]written 0, free lines is 4095 [21:01:46]Connected sock=10 [21:01: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 DA 9F 04 01 5D 97 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 BA 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 C1 F8 5B 8A 8F 42 B9 15 3C 8D 65 0F 49 F8 [21:01: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 61 30 47 00 A1 C7 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 07 01 00 F4 03 04 00 97 CA 44 66 B6 04 01 00 00 01 A4 A0 FB 3C 92 1C 86 [21:01:46]CommunicateWithHost err = 0 [21:01:46]CheckOFDResponse [21:01:46]1017 (14) - 77093643461234 [21:01:46]1041 (16) - 0000000000871829 [21:01:46]1040 (4) - 67373 [21:01:46]1012 (4) - 15.05.2024 14:45 [21:01:46]1206 (1) - 0 [21:01:46]OFD Sender: Remove packet 67373 [21:01:46]ProducePacketName [21:01:46]name=ofd_packets/00067373 [21:01:46]NVStorageDeleteData [21:01:46]Write to MH i2c: 01 00 00 56 2F 85 [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 07 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: 01 07 00 56 2F 00 00 00 00 00 D6 0C 6E [21:01:46]RasterBufferAndPrint [21:01:46]line [21:01:46]line [21:01:46]line [21:01:46]line [21:01:46]line [21:01:46]written 0, free lines is 3292 [21:01:46]MH_Cut [21:01:46]Write to MH i2c: D1 01 00 5D 2F 01 5E [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: D1 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: D1 01 00 [21:01:46]MH_I2C_Read... [21:01:46]Read from MH i2c: D1 01 00 5D 2F 00 5D [21:01:46]Write to MH i2c: 01 00 00 5E 2F 8D [21:01:46]Write i2c OK [21:01:46]MH_I2C_Read... [21:01:46]OFD Sender: No OFD packet to send [21:01:47]*** Cut start [21:01:47]*** Purtial cut [21:01:47]*** Stage 1: CUTSNS_PIN = 1 [21:01:47]Read from MH i2c: 01 [21:01:47]MH_I2C_Read... [21:01:47]*** Stop cut motor [21:01:47]*** Cut end [21:01:47]Read from MH i2c: 01 07 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 FF 0F A2 [21:01:47]process_action close_receipt done [21:01:47]requested_data is exist [21:01:47]produce_requested_data [21:01:47]requested_item fm.sn is exist - process it [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 11 00 00 [21:01:47]Write to MH i2c: E2 08 00 5F 2F 80 11 00 00 00 00 00 00 08 [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 17 00 [21:01:47]MH_I2C_Read... [21:01:47]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 [21: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 [21:01:47]wFMCommunicate OK [21:01:47]requested_item fd.num is exist - process it [21:01:47]SAM_PROTO_GetFieldsCounters [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 13 00 00 [21:01:47]Write to MH i2c: E2 08 00 60 2F 80 13 00 00 00 00 00 00 0B [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 62 00 [21:01:47]MH_I2C_Read... [21:01:47]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 2D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [21:01: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 2D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:47]wFMCommunicate OK [21:01:47]SAM_PROTO_GetFieldsCounters done [21:01:47]requested_item shift.num is exist - process it [21:01:47]requested_item shift.opened is exist - process it [21:01:47]req_shift_opened [21:01:47]FM_GetShiftState [21:01:47]SAM_PROTO_GetShiftState [21:01:47]wFMCommunicate request_size=4 [21:01:47]MH_SAM_APDU [21:01:47]CAPDU: 80 13 01 00 [21:01:47]Write to MH i2c: E2 08 00 61 2F 80 13 01 00 00 00 00 00 0D [21:01:47]Write i2c OK [21:01:47]MH_I2C_Read... [21:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:47]Read from MH i2c: E2 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 0E 00 [21:01:47]MH_I2C_Read... [21:01:47]Read from MH i2c: E2 0E 00 61 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B8 [21:01:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:01:47]wFMCommunicate OK [21:01:47]SAM_PROTO_GetShiftState done [21:01:47]FM_GetShiftState done [21:01:47]req_shift_opened done [21:01:47]requested_item shift.open_date is exist - process it [21:01:47]req_shift_open_date [21:01:47]req_shift_open_date done [21:01:47]produce_requested_data done [21:01:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67373,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:01:47]process_action_free close_receipt [21:01:47]json_value_free [21:01:47]json_value_free done [21:01:47]process_json_proto returns [21:01:47]Send response to host [21:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67373,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:01:47]free response buf [21:01:47]execute_script done [21:01:47]execute_script returns [21:01:47]free content buf [21:01:47]Sock 9.Close socket [21:01:47]Sock 9.Thread stoped [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:50]accept exits with 7 [21:02:50]New connection [21:02:50]New thread 3067174244 created [21:02:50]Thread 3067030884 joined [21:02:50]Waiting for new connection... [21:02:50] Sock 7.Parse request [21:02:50]Sock 7.Check first char [21:02:50]Sock 7.First char is OK [21:02:50]request: POST /json_proto HTTP/1.0 [21:02:50]Method: POST [21:02:50]URL: /json_proto [21:02:50]Method is POST - this is cgi request [21:02:50]url: /json_proto [21:02:50]query_string will be loaded in cgi processing [21:02:50]execute_cgi json_proto POST (null) [21:02:50]execute_cgi path=json_proto method=POST [21:02:50]POST find Content-Length [21:02:50]Host: 172.17.41.195:8080 [21:02:50]Content-Length: 671 [21:02:50]Content-Type: application/json [21:02:50] [21:02:50]POST finish read [21:02:50]Found Content-Length = 671 [21:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507354", "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" ] } } [21:02:50]execute_script... [21:02: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)507354", "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" ] } } [21:02:50]POST & json_proto [21:02:50]process_json_proto [21:02:50]json parsed OK: [21:02:50]protocol is kg_v1.0 [21:02:50]action value=close_receipt [21:02:50]process_action close_receipt [21:02:50]cmd_close_receipt [21:02:50]MH_GetDate [21:02:50]Write to MH i2c: F0 00 00 62 2F 80 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 09 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 09 00 62 2F 00 FC 22 45 66 FC 21 6F 64 42 [21:02:50]GetLastDocTimeStamp 1715806906 [21:02:50]current date 1715806972 [21:02:50]FM_GetShiftState [21:02:50]SAM_PROTO_GetShiftState [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 13 01 00 [21:02:50]Write to MH i2c: E2 08 00 63 2F 80 13 01 00 00 00 00 00 0F [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0E 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0E 00 63 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BA [21:02:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:02:50]wFMCommunicate OK [21:02:50]SAM_PROTO_GetShiftState done [21:02:50]FM_GetShiftState done [21:02:50]opened in 1715732471 [21:02:50]opened+sec_in_day 1715818871 [21:02:50]quantity*price = 70037 [21:02:50]sum+1 = 70038 [21:02:50]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 СНО: Общий режим Чек 192 15.05.2024 21:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67374 ФПД: 280602577312781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67374&fm=280602577312781&tin=02508201610067®Number=0000000000091845&sum=70000 [21:02:51]StoreToDocumentArchive [21:02:51]shift 356 fd 67374 [21:02:51]save to /storage/0356/doc_00067374 [21:02:51]save last doc name /storage/0356/doc_00067374 to /storage/kkm_last_doc_name [21:02:51]save OK [21:02:51]Clear old archive folders... [21:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:02:51]tlvbuf is 00BA4C40 [21:02:51]SAM_PROTO_ClearQueue [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 09 00 00 [21:02:51]Write to MH i2c: E2 08 00 70 2F 80 09 00 00 00 00 00 00 11 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 70 2F 00 90 00 13 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]SAM_PROTO_ClearQueue done [21:02:51]KKMCreateOFDPacket [21:02:51]OFDProtocolAddRootSTLVToBuf [21:02:51]FM_MakeSignedData [21:02:51]FM_MakeSignedData [21:02:51]SAM_PROTO_SignData [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 0D 01 02 [21:02:51]Write to MH i2c: E2 08 00 71 2F 80 0D 01 02 00 00 00 00 19 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 71 2F 00 90 00 14 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]wFMCommunicate request_size=255 [21:02:51]MH_SAM_APDU [21:02:51]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 C0 00 00 00 F4 03 04 00 FD 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 [21:02:51]Write to MH i2c: E2 02 01 72 2F 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 C0 00 00 00 F4 03 04 00 FD 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 00 00 D3 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 72 2F 00 90 00 15 [21:02:52]RAPDU: 90 00 [21:02:52]wFMCommunicate OK [21:02:52]wFMCommunicate request_size=11 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 0D 02 02 06 FF 34 E0 F1 9C 0D [21:02:52]Write to MH i2c: E2 0E 00 73 2F 80 0D 02 02 06 00 FF 34 E0 F1 9C 0D 00 00 D5 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]OFD Sender: No OFD packet to send [21:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [21:02:52]RAPDU: 90 00 [21:02:52]wFMCommunicate OK [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 0D 03 02 [21:02:52]Write to MH i2c: E2 08 00 74 2F 80 0D 03 02 00 00 00 00 1E [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0B 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0B 00 74 2F 00 83 F1 B1 2B 69 95 2D 51 90 00 EB [21:02:52]RAPDU: 83 F1 B1 2B 69 95 2D 51 90 00 [21:02:52]wFMCommunicate OK [21:02:52]SAM_PROTO_SignData done [21:02:52]FM_MakeSignedData done [21:02:52]CreateOFDProtocolMessage [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 11 00 00 [21:02:52]Write to MH i2c: E2 08 00 75 2F 80 11 00 00 00 00 00 00 1E [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 75 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [21:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:02:52]wFMCommunicate OK [21:02:52]CreateOFDProtocolMessage done [21:02:52]OFDSenderStorePacket 67374 [21:02:52]StoreOFDPacket docnum=67374 [21:02: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 10 01 00 00 D5 7A 08 01 9E 97 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 C0 00 00 00 F4 03 04 00 FD 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FF 34 E0 F1 9C 0D 83 F1 B1 2B 69 95 2D 51 [21:02:52]CheckFolder [21:02:52]dirname=/storage/ofd_packets [21:02:52]CheckFolder done [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00067374 [21:02:52]NVStorageSaveData ofd_packets/00067374 [21:02:52]File name is /storage/ofd_packets/00067374 [21:02:52]Write 302 bytes [21:02:52]NVStorageSaveData done [21:02:52]OFDSenderStorePacket done [21:02:52]KKMCreateOFDPacket done [21:02:52]NVStorageSaveData kkm_last_timestamp [21:02:52]File name is /storage/kkm_last_timestamp [21:02:52]Write 4 bytes [21:02:52]NVStorageSaveData done [21:02:52]ExternCall_PrintAddStr [21:02:52]wPrintStart [21:02:52]Write to MH i2c: 01 00 00 76 2F A5 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 76 2F 00 00 00 00 00 FF 0F BA [21:02:52]RasterBufferAndPrint [21:02:52]line Счет N : (1)507354 [21:02:52]line ИНН: 02508201610067 [21:02:52]line Контрольно-Кассовый Чек [21:02:52]line ПРОДАЖА [21:02:52]line ТРК (МРК, ГНК) : 42 [21:02:52]line Товар: 2710124130 [21:02:52]line Super-92-К-5 [21:02:52]line 10.330 * 67.80 [21:02:52]line = 700.37 [21:02:52]line НДС 12% НСП 1% [21:02:52]line > о реализуемом товаре [21:02:52]line ОКРУГЛЕНИЕ: -0.37 [21:02:52]line ИТОГО: 700.00 [21:02:52]line Внесено: 700.00 [21:02:52]line СДАЧА: 0.00 [21:02:52]line НСП 1% : 6.20 [21:02:52]line НДС 12% : 74.38 [21:02:52]line Наличными: 700.00 [21:02:52]line Безнал.: 0.00 [21:02:52]line Место: АЗС № 91 "Партнер Нефть" [21:02:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:02:52]line СНО: Общий режим [21:02:52]line Чек 192 15.05.2024 21:02 [21:02:52]line Смена: 356 ФФД: 1.0 [21:02:52]line ЗНМ: 0300000119 [21:02:52]line РНМ: 0000000000091845 [21:02:52]line Версия ККМ: 001 [21:02:52]line ФМ: 0000000000871829 [21:02:52]line ФД: 67374 [21:02:52]line ФПД: 280602577312781 [21:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67374&fm=280602577312781&tin=02508201610067®Number=0000000000091845&sum=70000 [21:02:52]OFD Sender: Processing packet 67374 [packets to send 35, broken 34] [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00067374 [21:02:52]OFD Sender: To server: pG, [21:02:52]CommunicateWithHost lk.salyk.kg:30040 [21:02:52]ConnectInit lk.salyk.kg [21:02:52]written 0, free lines is 4095 [21:02:52]Connected sock=10 [21:02: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 10 01 00 00 D5 7A 08 01 9E 97 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 C0 00 00 00 F4 03 04 00 FD 22 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 FF 34 E0 F1 9C 0D 83 F1 B1 2B 69 95 2D 51 [21:02: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 C9 B5 47 00 03 F5 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 07 01 00 F4 03 04 00 D9 CA 44 66 B6 04 01 00 00 FD 62 9E CE 70 AF C1 72 [21:02:52]CommunicateWithHost err = 0 [21:02:52]CheckOFDResponse [21:02:52]1017 (14) - 77093643461234 [21:02:52]1041 (16) - 0000000000871829 [21:02:52]1040 (4) - 67374 [21:02:52]1012 (4) - 15.05.2024 14:46 [21:02:52]1206 (1) - 0 [21:02:52]OFD Sender: Remove packet 67374 [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00067374 [21:02:52]NVStorageDeleteData [21:02:52]Write to MH i2c: 01 00 00 A0 2F CF [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 A0 2F 00 00 00 00 00 C3 0C A5 [21:02:52]RasterBufferAndPrint [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]written 0, free lines is 3272 [21:02:52]MH_Cut [21:02:52]Write to MH i2c: D1 01 00 A7 2F 01 A8 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 A7 2F 00 A7 [21:02:52]Write to MH i2c: 01 00 00 A8 2F D7 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:53]OFD Sender: No OFD packet to send [21:02:53]*** Cut start [21:02:53]*** Purtial cut [21:02:53]*** CUTSNS_PIN = 0 [21:02:53]*** Stage 1: CUTSNS_PIN = 1 [21:02:55]Read from MH i2c: 01 [21:02:55]MH_I2C_Read... [21:02:55]*** Stop cut motor [21:02:55]*** Cut end [21:02:55]Read from MH i2c: 01 07 00 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: 01 07 00 A8 2F 00 00 00 00 00 FF 0F EC [21:02:55]process_action close_receipt done [21:02:55]requested_data is exist [21:02:55]produce_requested_data [21:02:55]requested_item fm.sn is exist - process it [21:02:55]wFMCommunicate request_size=4 [21:02:55]MH_SAM_APDU [21:02:55]CAPDU: 80 11 00 00 [21:02:55]Write to MH i2c: E2 08 00 A9 2F 80 11 00 00 00 00 00 00 52 [21:02:55]Write i2c OK [21:02:55]MH_I2C_Read... [21:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:55]Read from MH i2c: E2 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: E2 17 00 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: E2 17 00 A9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [21:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:02:55]wFMCommunicate OK [21:02:55]requested_item fd.num is exist - process it [21:02:55]SAM_PROTO_GetFieldsCounters [21:02:55]wFMCommunicate request_size=4 [21:02:55]MH_SAM_APDU [21:02:55]CAPDU: 80 13 00 00 [21:02:55]Write to MH i2c: E2 08 00 AA 2F 80 13 00 00 00 00 00 00 55 [21:02:55]Write i2c OK [21:02:55]MH_I2C_Read... [21:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:55]Read from MH i2c: E2 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: E2 62 00 [21:02:55]MH_I2C_Read... [21:02:55]Read from MH i2c: E2 62 00 AA 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 2E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [21:02: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 2E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:55]wFMCommunicate OK [21:02:55]SAM_PROTO_GetFieldsCounters done [21:02:55]requested_item shift.num is exist - process it [21:02:55]requested_item shift.opened is exist - process it [21:02:55]req_shift_opened [21:02:55]FM_GetShiftState [21:02:55]SAM_PROTO_GetShiftState [21:02:55]wFMCommunicate request_size=4 [21:02:55]MH_SAM_APDU [21:02:55]CAPDU: 80 13 01 00 [21:02:55]Write to MH i2c: E2 08 00 AB 2F 80 13 01 00 00 00 00 00 57 [21:02:55]Write i2c OK [21:02:55]MH_I2C_Read... [21:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:56]Read from MH i2c: E2 [21:02:56]MH_I2C_Read... [21:02:56]Read from MH i2c: E2 0E 00 [21:02:56]MH_I2C_Read... [21:02:56]Read from MH i2c: E2 0E 00 AB 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 02 [21:02:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:02:56]wFMCommunicate OK [21:02:56]SAM_PROTO_GetShiftState done [21:02:56]FM_GetShiftState done [21:02:56]req_shift_opened done [21:02:56]requested_item shift.open_date is exist - process it [21:02:56]req_shift_open_date [21:02:56]req_shift_open_date done [21:02:56]produce_requested_data done [21:02:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67374,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:02:56]process_action_free close_receipt [21:02:56]json_value_free [21:02:56]json_value_free done [21:02:56]process_json_proto returns [21:02:56]Send response to host [21:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67374,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:02:56]free response buf [21:02:56]execute_script done [21:02:56]execute_script returns [21:02:56]free content buf [21:02:56]Sock 7.Close socket [21:02:56]Sock 7.Thread stoped [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:51]accept exits with 9 [21:06:51]New connection [21:06:51]New thread 3067030884 created [21:06:51]Thread 3067174244 joined [21:06:51]Waiting for new connection... [21:06:51] Sock 9.Parse request [21:06:51]Sock 9.Check first char [21:06:51]Sock 9.First char is OK [21:06:51]request: POST /json_proto HTTP/1.0 [21:06:51]Method: POST [21:06:51]URL: /json_proto [21:06:51]Method is POST - this is cgi request [21:06:51]url: /json_proto [21:06:51]query_string will be loaded in cgi processing [21:06:51]execute_cgi json_proto POST (null) [21:06:51]execute_cgi path=json_proto method=POST [21:06:51]POST find Content-Length [21:06:51]Host: 172.17.41.195:8080 [21:06:51]Content-Length: 680 [21:06:51]Content-Type: application/json [21:06:51] [21:06:51]POST finish read [21:06:51]Found Content-Length = 680 [21:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507353", "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" : 127.180, "sum" : 9500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:51]execute_script... [21:06: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)507353", "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" : 127.180, "sum" : 9500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:51]POST & json_proto [21:06:51]process_json_proto [21:06:51]json parsed OK: [21:06:51]protocol is kg_v1.0 [21:06:51]action value=close_receipt [21:06:51]process_action close_receipt [21:06:51]cmd_close_receipt [21:06:51]MH_GetDate [21:06:51]Write to MH i2c: F0 00 00 AC 2F CA [21:06:51]Write i2c OK [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 09 00 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: F0 09 00 AC 2F 00 ED 23 45 66 FC 21 6F 64 7E [21:06:51]GetLastDocTimeStamp 1715806973 [21:06:51]current date 1715807213 [21:06:51]FM_GetShiftState [21:06:51]SAM_PROTO_GetShiftState [21:06:51]wFMCommunicate request_size=4 [21:06:51]MH_SAM_APDU [21:06:51]CAPDU: 80 13 01 00 [21:06:51]Write to MH i2c: E2 08 00 AD 2F 80 13 01 00 00 00 00 00 59 [21:06:51]Write i2c OK [21:06:51]MH_I2C_Read... [21:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:51]Read from MH i2c: E2 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: E2 0E 00 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: E2 0E 00 AD 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 04 [21:06:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:06:51]wFMCommunicate OK [21:06:51]SAM_PROTO_GetShiftState done [21:06:51]FM_GetShiftState done [21:06:51]opened in 1715732471 [21:06:51]opened+sec_in_day 1715818871 [21:06:51]quantity*price = 950034 [21:06:51]sum+1 = 950036 [21:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.07 НДС 12% : 1008.89 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 193 15.05.2024 21:06 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67375 ФПД: 185833071069072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210653&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67375&fm=185833071069072&tin=02508201610067®Number=0000000000091845&sum=950000 [21:06:52]StoreToDocumentArchive [21:06:52]shift 356 fd 67375 [21:06:52]save to /storage/0356/doc_00067375 [21:06:52]save last doc name /storage/0356/doc_00067375 to /storage/kkm_last_doc_name [21:06:52]save OK [21:06:52]Clear old archive folders... [21:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:06:52]tlvbuf is 00B368E0 [21:06:52]SAM_PROTO_ClearQueue [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 09 00 00 [21:06:52]Write to MH i2c: E2 08 00 BA 2F 80 09 00 00 00 00 00 00 5B [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 BA 2F 00 90 00 5D [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_ClearQueue done [21:06:52]KKMCreateOFDPacket [21:06:52]OFDProtocolAddRootSTLVToBuf [21:06:52]FM_MakeSignedData [21:06:52]FM_MakeSignedData [21:06:52]SAM_PROTO_SignData [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 01 02 [21:06:52]Write to MH i2c: E2 08 00 BB 2F 80 0D 01 02 00 00 00 00 63 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 BB 2F 00 90 00 5E [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=255 [21:06:52]MH_SAM_APDU [21:06: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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 ED 23 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A9 03 A2 30 [21:06:52]Write to MH i2c: E2 02 01 BC 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 ED 23 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A9 03 A2 30 00 00 96 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 BC 2F 00 90 00 5F [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=7 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 02 02 02 47 90 [21:06:52]Write to MH i2c: E2 0A 00 BD 2F 80 0D 02 02 02 00 47 90 00 00 41 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [21:06:52]RAPDU: 90 00 [21:06:52]wFMCommunicate OK [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 0D 03 02 [21:06:52]Write to MH i2c: E2 08 00 BE 2F 80 0D 03 02 00 00 00 00 68 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0B 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0B 00 BE 2F 00 33 BB EA 48 D9 F4 06 ED 90 00 49 [21:06:52]RAPDU: 33 BB EA 48 D9 F4 06 ED 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_SignData done [21:06:52]FM_MakeSignedData done [21:06:52]CreateOFDProtocolMessage [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 11 00 00 [21:06:52]Write to MH i2c: E2 08 00 BF 2F 80 11 00 00 00 00 00 00 68 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 17 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 17 00 BF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [21:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:06:52]wFMCommunicate OK [21:06:52]CreateOFDProtocolMessage done [21:06:52]OFDSenderStorePacket 67375 [21:06:52]StoreOFDPacket docnum=67375 [21:06: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 CF 68 04 01 8A 3B 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 ED 23 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A9 03 A2 30 47 90 33 BB EA 48 D9 F4 06 ED [21:06:52]CheckFolder [21:06:52]dirname=/storage/ofd_packets [21:06:52]CheckFolder done [21:06:52]ProducePacketName [21:06:52]name=ofd_packets/00067375 [21:06:52]NVStorageSaveData ofd_packets/00067375 [21:06:52]File name is /storage/ofd_packets/00067375 [21:06:52]Write 298 bytes [21:06:52]NVStorageSaveData done [21:06:52]OFDSenderStorePacket done [21:06:52]KKMCreateOFDPacket done [21:06:52]NVStorageSaveData kkm_last_timestamp [21:06:52]File name is /storage/kkm_last_timestamp [21:06:52]Write 4 bytes [21:06:52]NVStorageSaveData done [21:06:52]ExternCall_PrintAddStr [21:06:52]wPrintStart [21:06:52]Write to MH i2c: 01 00 00 C0 2F EF [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 07 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: 01 07 00 C0 2F 00 00 00 00 00 FF 0F 04 [21:06:52]RasterBufferAndPrint [21:06:52]line Счет N : (1)507353 [21:06:52]line ИНН: 02508201610067 [21:06:52]line Контрольно-Кассовый Чек [21:06:52]line ПРОДАЖА [21:06:52]line ТРК (МРК, ГНК) : 21 [21:06:52]line Товар: 2710194210 [21:06:52]line ДТ-К-5 [21:06:52]line 127.180 * 74.70 [21:06:52]line = 9500.35 [21:06:52]line НДС 12% НСП 1% [21:06:52]line > о реализуемом товаре [21:06:52]line ОКРУГЛЕНИЕ: -0.35 [21:06:52]line ИТОГО: 9500.00 [21:06:52]line Внесено: 9500.00 [21:06:52]line СДАЧА: 0.00 [21:06:52]line НСП 1% : 84.07 [21:06:52]line НДС 12% : 1008.89 [21:06:52]line Наличными: 9500.00 [21:06:52]line Безнал.: 0.00 [21:06:52]line Место: АЗС № 91 "Партнер Нефть" [21:06:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:06:52]line СНО: Общий режим [21:06:52]line Чек 193 15.05.2024 21:06 [21:06:52]line Смена: 356 ФФД: 1.0 [21:06:52]line ЗНМ: 0300000119 [21:06:52]line РНМ: 0000000000091845 [21:06:52]line Версия ККМ: 001 [21:06:52]line ФМ: 0000000000871829 [21:06:52]line ФД: 67375 [21:06:52]line ФПД: 185833071069072 [21:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210653&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67375&fm=185833071069072&tin=02508201610067®Number=0000000000091845&sum=950000 [21:06:53]OFD Sender: Processing packet 67375 [packets to send 35, broken 34] [21:06:53]ProducePacketName [21:06:53]name=ofd_packets/00067375 [21:06:53]OFD Sender: To server: pG, [21:06:53]CommunicateWithHost lk.salyk.kg:30040 [21:06:53]ConnectInit lk.salyk.kg [21:06:53]written 0, free lines is 4095 [21:06:53]Connected sock=11 [21:06: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 CF 68 04 01 8A 3B 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 CC F0 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 13 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 ED 23 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 A9 03 A2 30 47 90 33 BB EA 48 D9 F4 06 ED [21:06: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 D2 04 47 00 51 90 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 07 01 00 F4 03 04 00 CA CB 44 66 B6 04 01 00 00 31 FA B8 5E DD D6 A2 C6 [21:06:53]CommunicateWithHost err = 0 [21:06:53]CheckOFDResponse [21:06:53]1017 (14) - 77093643461234 [21:06:53]1041 (16) - 0000000000871829 [21:06:53]1040 (4) - 67375 [21:06:53]1012 (4) - 15.05.2024 14:50 [21:06:53]1206 (1) - 0 [21:06:53]OFD Sender: Remove packet 67375 [21:06:53]ProducePacketName [21:06:53]name=ofd_packets/00067375 [21:06:53]NVStorageDeleteData [21:06:53]Write to MH i2c: 01 00 00 EA 2F 19 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 CD 0C F9 [21:06:53]RasterBufferAndPrint [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]line [21:06:53]written 0, free lines is 3283 [21:06:53]MH_Cut [21:06:53]Write to MH i2c: D1 01 00 F1 2F 01 F2 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 01 00 [21:06:53]MH_I2C_Read... [21:06:53]Read from MH i2c: D1 01 00 F1 2F 00 F1 [21:06:53]Write to MH i2c: 01 00 00 F2 2F 21 [21:06:53]Write i2c OK [21:06:53]MH_I2C_Read... [21:06:54]OFD Sender: No OFD packet to send [21:06:54]*** Cut start [21:06:54]*** Purtial cut [21:06:54]*** Stage 1: CUTSNS_PIN = 1 [21:06:54]Read from MH i2c: 01 [21:06:54]MH_I2C_Read... [21:06:54]*** Stop cut motor [21:06:54]*** Cut end [21:06:54]Read from MH i2c: 01 07 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [21:06:54]process_action close_receipt done [21:06:54]requested_data is exist [21:06:54]produce_requested_data [21:06:54]requested_item fm.sn is exist - process it [21:06:54]wFMCommunicate request_size=4 [21:06:54]MH_SAM_APDU [21:06:54]CAPDU: 80 11 00 00 [21:06:54]Write to MH i2c: E2 08 00 F3 2F 80 11 00 00 00 00 00 00 9C [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:54]Read from MH i2c: E2 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 17 00 [21:06:54]MH_I2C_Read... [21:06:54]Read from MH i2c: E2 17 00 F3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [21: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 [21:06:54]wFMCommunicate OK [21:06:54]requested_item fd.num is exist - process it [21:06:54]SAM_PROTO_GetFieldsCounters [21:06:54]wFMCommunicate request_size=4 [21:06:54]MH_SAM_APDU [21:06:54]CAPDU: 80 13 00 00 [21:06:54]Write to MH i2c: E2 08 00 F4 2F 80 13 00 00 00 00 00 00 9F [21:06:54]Write i2c OK [21:06:54]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 62 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 62 00 F4 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 2F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [21:06: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 2F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetFieldsCounters done [21:06:55]requested_item shift.num is exist - process it [21:06:55]requested_item shift.opened is exist - process it [21:06:55]req_shift_opened [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 F5 2F 80 13 01 00 00 00 00 00 A1 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 F5 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4C [21:06:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]req_shift_opened done [21:06:55]requested_item shift.open_date is exist - process it [21:06:55]req_shift_open_date [21:06:55]req_shift_open_date done [21:06:55]produce_requested_data done [21:06:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67375,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:06:55]process_action_free close_receipt [21:06:55]json_value_free [21:06:55]json_value_free done [21:06:55]process_json_proto returns [21:06:55]Send response to host [21:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67375,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:06:55]free response buf [21:06:55]execute_script done [21:06:55]execute_script returns [21:06:55]free content buf [21:06:55]Sock 9.Close socket [21:06:55]Sock 9.Thread stoped [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:06]accept exits with 7 [21:09:06]New connection [21:09:06]New thread 3067174244 created [21:09:06]Thread 3067030884 joined [21:09:06]Waiting for new connection... [21:09:06] Sock 7.Parse request [21:09:06]Sock 7.Check first char [21:09:06]Sock 7.First char is OK [21:09:06]request: POST /json_proto HTTP/1.0 [21:09:06]Method: POST [21:09:06]URL: /json_proto [21:09:06]Method is POST - this is cgi request [21:09:06]url: /json_proto [21:09:06]query_string will be loaded in cgi processing [21:09:06]execute_cgi json_proto POST (null) [21:09:06]execute_cgi path=json_proto method=POST [21:09:06]POST find Content-Length [21:09:06]Host: 172.17.41.195:8080 [21:09:06]Content-Length: 677 [21:09:06]Content-Type: application/json [21:09:06] [21:09:06]POST finish read [21:09:06]Found Content-Length = 677 [21:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507356", "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" : 3.750, "sum" : 250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:06]execute_script... [21:09: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)507356", "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" : 3.750, "sum" : 250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:06]POST & json_proto [21:09:06]process_json_proto [21:09:06]json parsed OK: [21:09:06]protocol is kg_v1.0 [21:09:06]action value=close_receipt [21:09:06]process_action close_receipt [21:09:06]cmd_close_receipt [21:09:06]MH_GetDate [21:09:06]Write to MH i2c: F0 00 00 F6 2F 14 [21:09:06]Write i2c OK [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: F0 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: F0 09 00 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: F0 09 00 F6 2F 00 74 24 45 66 FC 21 6F 64 50 [21:09:06]GetLastDocTimeStamp 1715807213 [21:09:06]current date 1715807348 [21:09:06]FM_GetShiftState [21:09:06]SAM_PROTO_GetShiftState [21:09:06]wFMCommunicate request_size=4 [21:09:06]MH_SAM_APDU [21:09:06]CAPDU: 80 13 01 00 [21:09:06]Write to MH i2c: E2 08 00 F7 2F 80 13 01 00 00 00 00 00 A3 [21:09:06]Write i2c OK [21:09:06]MH_I2C_Read... [21:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:06]Read from MH i2c: E2 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: E2 0E 00 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: E2 0E 00 F7 2F 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4E [21:09:06]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:09:06]wFMCommunicate OK [21:09:06]SAM_PROTO_GetShiftState done [21:09:06]FM_GetShiftState done [21:09:06]opened in 1715732471 [21:09:06]opened+sec_in_day 1715818871 [21:09:06]quantity*price = 25050 [21:09:06]sum+1 = 25051 [21:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.60 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 194 15.05.2024 21:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67376 ФПД: 225440472018291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210908&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67376&fm=225440472018291&tin=02508201610067®Number=0000000000091845&sum=25000 [21:09:07]StoreToDocumentArchive [21:09:07]shift 356 fd 67376 [21:09:07]save to /storage/0356/doc_00067376 [21:09:07]save last doc name /storage/0356/doc_00067376 to /storage/kkm_last_doc_name [21:09:07]save OK [21:09:07]Clear old archive folders... [21:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:07]tlvbuf is 00B3B020 [21:09:07]SAM_PROTO_ClearQueue [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 09 00 00 [21:09:07]Write to MH i2c: E2 08 00 04 30 80 09 00 00 00 00 00 00 A6 [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 04 30 00 90 00 A8 [21:09:07]RAPDU: 90 00 [21:09:07]wFMCommunicate OK [21:09:07]SAM_PROTO_ClearQueue done [21:09:07]KKMCreateOFDPacket [21:09:07]OFDProtocolAddRootSTLVToBuf [21:09:07]FM_MakeSignedData [21:09:07]FM_MakeSignedData [21:09:07]SAM_PROTO_SignData [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 0D 01 02 [21:09:07]Write to MH i2c: E2 08 00 05 30 80 0D 01 02 00 00 00 00 AE [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 05 30 00 90 00 A9 [21:09:07]RAPDU: 90 00 [21:09:07]wFMCommunicate OK [21:09:07]wFMCommunicate request_size=255 [21:09:07]MH_SAM_APDU [21:09: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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 74 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CD [21:09:07]Write to MH i2c: E2 02 01 06 30 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 74 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CD 00 00 AB [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [21:09:07]RAPDU: 90 00 [21:09:07]wFMCommunicate OK [21:09:07]wFMCommunicate request_size=10 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 0D 02 02 05 09 73 40 AD 73 [21:09:07]Write to MH i2c: E2 0D 00 07 30 80 0D 02 02 05 00 09 73 40 AD 73 00 00 97 [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [21:09:07]RAPDU: 90 00 [21:09:07]wFMCommunicate OK [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 0D 03 02 [21:09:07]Write to MH i2c: E2 08 00 08 30 80 0D 03 02 00 00 00 00 B3 [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 0B 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 0B 00 08 30 00 FD 3F 10 82 69 8A B4 3D 90 00 66 [21:09:07]RAPDU: FD 3F 10 82 69 8A B4 3D 90 00 [21:09:07]wFMCommunicate OK [21:09:07]SAM_PROTO_SignData done [21:09:07]FM_MakeSignedData done [21:09:07]CreateOFDProtocolMessage [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 11 00 00 [21:09:07]Write to MH i2c: E2 08 00 09 30 80 11 00 00 00 00 00 00 B3 [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 17 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 17 00 09 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [21:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:09:07]wFMCommunicate OK [21:09:07]CreateOFDProtocolMessage done [21:09:07]OFDSenderStorePacket 67376 [21:09:07]StoreOFDPacket docnum=67376 [21:09: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 0F 01 00 00 C8 B2 07 01 B5 98 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 74 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CD 09 73 40 AD 73 FD 3F 10 82 69 8A B4 3D [21:09:07]CheckFolder [21:09:07]dirname=/storage/ofd_packets [21:09:07]CheckFolder done [21:09:07]ProducePacketName [21:09:07]name=ofd_packets/00067376 [21:09:07]NVStorageSaveData ofd_packets/00067376 [21:09:07]File name is /storage/ofd_packets/00067376 [21:09:07]Write 301 bytes [21:09:07]NVStorageSaveData done [21:09:07]OFDSenderStorePacket done [21:09:07]KKMCreateOFDPacket done [21:09:07]NVStorageSaveData kkm_last_timestamp [21:09:07]File name is /storage/kkm_last_timestamp [21:09:07]Write 4 bytes [21:09:07]NVStorageSaveData done [21:09:07]ExternCall_PrintAddStr [21:09:07]wPrintStart [21:09:07]Write to MH i2c: 01 00 00 0A 30 3A [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: 01 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: 01 07 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: 01 07 00 0A 30 00 00 00 00 00 FF 0F 4F [21:09:07]RasterBufferAndPrint [21:09:07]line Счет N : (1)507356 [21:09:07]line ИНН: 02508201610067 [21:09:07]line Контрольно-Кассовый Чек [21:09:07]line ПРОДАЖА [21:09:07]line ТРК (МРК, ГНК) : 13 [21:09:07]line Товар: 2710124130 [21:09:07]line Аи-92-К-5 [21:09:07]line 3.750 * 66.80 [21:09:07]line = 250.50 [21:09:07]line НДС 12% НСП 1% [21:09:07]line > о реализуемом товаре [21:09:07]line ОКРУГЛЕНИЕ: -0.50 [21:09:07]line ИТОГО: 250.00 [21:09:07]line Внесено: 250.00 [21:09:07]line СДАЧА: 0.00 [21:09:07]line НСП 1% : 2.22 [21:09:07]line НДС 12% : 26.60 [21:09:07]line Наличными: 250.00 [21:09:07]line Безнал.: 0.00 [21:09:07]line Место: АЗС № 91 "Партнер Нефть" [21:09:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:09:07]line СНО: Общий режим [21:09:07]line Чек 194 15.05.2024 21:09 [21:09:07]line Смена: 356 ФФД: 1.0 [21:09:07]line ЗНМ: 0300000119 [21:09:07]line РНМ: 0000000000091845 [21:09:07]line Версия ККМ: 001 [21:09:07]line ФМ: 0000000000871829 [21:09:07]line ФД: 67376 [21:09:07]line ФПД: 225440472018291 [21:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T210908&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67376&fm=225440472018291&tin=02508201610067®Number=0000000000091845&sum=25000 [21:09:08]written 0, free lines is 4095 [21:09:08]OFD Sender: Processing packet 67376 [packets to send 35, broken 34] [21:09:08]ProducePacketName [21:09:08]name=ofd_packets/00067376 [21:09:08]OFD Sender: To server: pG, [21:09:08]CommunicateWithHost lk.salyk.kg:30040 [21:09:08]ConnectInit lk.salyk.kg [21:09:08]Connected sock=10 [21:09: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 C8 B2 07 01 B5 98 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 A6 0E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 DA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 74 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 CD 09 73 40 AD 73 FD 3F 10 82 69 8A B4 3D [21:09: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 70 8D 47 00 31 B6 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 07 01 00 F4 03 04 00 51 CC 44 66 B6 04 01 00 00 1B 2C 52 35 E5 3D 6D 61 [21:09:08]CommunicateWithHost err = 0 [21:09:08]CheckOFDResponse [21:09:08]1017 (14) - 77093643461234 [21:09:08]1041 (16) - 0000000000871829 [21:09:08]1040 (4) - 67376 [21:09:08]1012 (4) - 15.05.2024 14:53 [21:09:08]1206 (1) - 0 [21:09:08]OFD Sender: Remove packet 67376 [21:09:08]ProducePacketName [21:09:08]name=ofd_packets/00067376 [21:09:08]NVStorageDeleteData [21:09:08]Write to MH i2c: 01 00 00 34 30 64 [21:09:08]Write i2c OK [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: 01 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: 01 07 00 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: 01 07 00 34 30 00 00 00 00 00 D1 0C 48 [21:09:08]RasterBufferAndPrint [21:09:08]line [21:09:08]line [21:09:08]line [21:09:08]line [21:09:08]line [21:09:08]written 0, free lines is 3287 [21:09:08]MH_Cut [21:09:08]Write to MH i2c: D1 01 00 3B 30 01 3D [21:09:08]Write i2c OK [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: D1 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: D1 01 00 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: D1 01 00 3B 30 00 3C [21:09:08]Write to MH i2c: 01 00 00 3C 30 6C [21:09:08]Write i2c OK [21:09:08]MH_I2C_Read... [21:09:09]OFD Sender: No OFD packet to send [21:09:09]*** Cut start [21:09:09]*** Purtial cut [21:09:09]*** CUTSNS_PIN = 0 [21:09:09]*** Stage 1: CUTSNS_PIN = 1 [21:09:11]Read from MH i2c: 01 [21:09:11]MH_I2C_Read... [21:09:11]*** Stop cut motor [21:09:11]*** Cut end [21:09:11]Read from MH i2c: 01 07 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: 01 07 00 3C 30 00 00 00 00 00 FF 0F 81 [21:09:11]process_action close_receipt done [21:09:11]requested_data is exist [21:09:11]produce_requested_data [21:09:11]requested_item fm.sn is exist - process it [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 11 00 00 [21:09:11]Write to MH i2c: E2 08 00 3D 30 80 11 00 00 00 00 00 00 E7 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 17 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 17 00 3D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [21:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:09:11]wFMCommunicate OK [21:09:11]requested_item fd.num is exist - process it [21:09:11]SAM_PROTO_GetFieldsCounters [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 13 00 00 [21:09:11]Write to MH i2c: E2 08 00 3E 30 80 13 00 00 00 00 00 00 EA [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 62 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 62 00 3E 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 30 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [21:09: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 30 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:11]wFMCommunicate OK [21:09:11]SAM_PROTO_GetFieldsCounters done [21:09:11]requested_item shift.num is exist - process it [21:09:11]requested_item shift.opened is exist - process it [21:09:11]req_shift_opened [21:09:11]FM_GetShiftState [21:09:11]SAM_PROTO_GetShiftState [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 13 01 00 [21:09:11]Write to MH i2c: E2 08 00 3F 30 80 13 01 00 00 00 00 00 EC [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 0E 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 0E 00 3F 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 97 [21:09:11]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:09:11]wFMCommunicate OK [21:09:11]SAM_PROTO_GetShiftState done [21:09:11]FM_GetShiftState done [21:09:11]req_shift_opened done [21:09:11]requested_item shift.open_date is exist - process it [21:09:11]req_shift_open_date [21:09:11]req_shift_open_date done [21:09:11]produce_requested_data done [21:09:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67376,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:09:11]process_action_free close_receipt [21:09:11]json_value_free [21:09:11]json_value_free done [21:09:11]process_json_proto returns [21:09:11]Send response to host [21:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67376,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:09:11]free response buf [21:09:11]execute_script done [21:09:11]execute_script returns [21:09:11]free content buf [21:09:11]Sock 7.Close socket [21:09:11]Sock 7.Thread stoped [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:22]accept exits with 9 [21:10:22]New connection [21:10:22]New thread 3067030884 created [21:10:22]Thread 3067174244 joined [21:10:22]Waiting for new connection... [21:10:22] Sock 9.Parse request [21:10:22]Sock 9.Check first char [21:10:22]Sock 9.First char is OK [21:10:22]request: POST /json_proto HTTP/1.0 [21:10:22]Method: POST [21:10:22]URL: /json_proto [21:10:22]Method is POST - this is cgi request [21:10:22]url: /json_proto [21:10:22]query_string will be loaded in cgi processing [21:10:22]execute_cgi json_proto POST (null) [21:10:22]execute_cgi path=json_proto method=POST [21:10:22]POST find Content-Length [21:10:22]Host: 172.17.41.195:8080 [21:10:22]Content-Length: 679 [21:10:22]Content-Type: application/json [21:10:22] [21:10:22]POST finish read [21:10:22]Found Content-Length = 679 [21:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507355", "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" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:22]execute_script... [21:10: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)507355", "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" : 80.330, "sum" : 6000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:22]POST & json_proto [21:10:22]process_json_proto [21:10:22]json parsed OK: [21:10:22]protocol is kg_v1.0 [21:10:22]action value=close_receipt [21:10:22]process_action close_receipt [21:10:22]cmd_close_receipt [21:10:22]MH_GetDate [21:10:22]Write to MH i2c: F0 00 00 40 30 5F [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 09 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: F0 09 00 40 30 00 C0 24 45 66 FC 21 6F 64 E7 [21:10:22]GetLastDocTimeStamp 1715807348 [21:10:22]current date 1715807424 [21:10:22]FM_GetShiftState [21:10:22]SAM_PROTO_GetShiftState [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 13 01 00 [21:10:22]Write to MH i2c: E2 08 00 41 30 80 13 01 00 00 00 00 00 EE [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0E 00 41 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 99 [21:10:22]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_GetShiftState done [21:10:22]FM_GetShiftState done [21:10:22]opened in 1715732471 [21:10:22]opened+sec_in_day 1715818871 [21:10:22]quantity*price = 600065 [21:10:22]sum+1 = 600066 [21:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.24 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 195 15.05.2024 21:10 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67377 ФПД: 233715295015239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211024&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67377&fm=233715295015239&tin=02508201610067®Number=0000000000091845&sum=600000 [21:10:23]StoreToDocumentArchive [21:10:23]shift 356 fd 67377 [21:10:23]save to /storage/0356/doc_00067377 [21:10:23]save last doc name /storage/0356/doc_00067377 to /storage/kkm_last_doc_name [21:10:23]save OK [21:10:23]Clear old archive folders... [21:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:10:23]tlvbuf is 00C39370 [21:10:23]SAM_PROTO_ClearQueue [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 09 00 00 [21:10:23]Write to MH i2c: E2 08 00 4E 30 80 09 00 00 00 00 00 00 F0 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 4E 30 00 90 00 F2 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_ClearQueue done [21:10:23]KKMCreateOFDPacket [21:10:23]OFDProtocolAddRootSTLVToBuf [21:10:23]FM_MakeSignedData [21:10:23]FM_MakeSignedData [21:10:23]SAM_PROTO_SignData [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 01 02 [21:10:23]Write to MH i2c: E2 08 00 4F 30 80 0D 01 02 00 00 00 00 F8 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 4F 30 00 90 00 F3 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=255 [21:10:23]MH_SAM_APDU [21:10:23]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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C0 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D4 90 15 23 [21:10:23]Write to MH i2c: E2 02 01 50 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C0 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D4 90 15 23 00 00 FD [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 50 30 00 90 00 F4 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=7 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 02 02 02 51 47 [21:10:23]Write to MH i2c: E2 0A 00 51 30 80 0D 02 02 02 00 51 47 00 00 97 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [21:10:23]RAPDU: 90 00 [21:10:23]wFMCommunicate OK [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 0D 03 02 [21:10:23]Write to MH i2c: E2 08 00 52 30 80 0D 03 02 00 00 00 00 FD [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0B 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0B 00 52 30 00 3A F2 7A EC 09 00 C0 81 90 00 DA [21:10:23]RAPDU: 3A F2 7A EC 09 00 C0 81 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_SignData done [21:10:23]FM_MakeSignedData done [21:10:23]CreateOFDProtocolMessage [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 11 00 00 [21:10:23]Write to MH i2c: E2 08 00 53 30 80 11 00 00 00 00 00 00 FD [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 53 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [21:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:10:23]wFMCommunicate OK [21:10:23]CreateOFDProtocolMessage done [21:10:23]OFDSenderStorePacket 67377 [21:10:23]StoreOFDPacket docnum=67377 [21:10: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 0C 01 00 00 B9 71 04 01 2B 9A 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C0 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D4 90 15 23 51 47 3A F2 7A EC 09 00 C0 81 [21:10:23]CheckFolder [21:10:23]dirname=/storage/ofd_packets [21:10:23]CheckFolder done [21:10:23]ProducePacketName [21:10:23]name=ofd_packets/00067377 [21:10:23]NVStorageSaveData ofd_packets/00067377 [21:10:23]File name is /storage/ofd_packets/00067377 [21:10:23]Write 298 bytes [21:10:23]NVStorageSaveData done [21:10:23]OFDSenderStorePacket done [21:10:23]KKMCreateOFDPacket done [21:10:23]NVStorageSaveData kkm_last_timestamp [21:10:23]File name is /storage/kkm_last_timestamp [21:10:23]Write 4 bytes [21:10:23]NVStorageSaveData done [21:10:23]ExternCall_PrintAddStr [21:10:23]wPrintStart [21:10:23]Write to MH i2c: 01 00 00 54 30 84 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 FF 0F 99 [21:10:23]RasterBufferAndPrint [21:10:23]line Счет N : (1)507355 [21:10:23]line ИНН: 02508201610067 [21:10:23]line Контрольно-Кассовый Чек [21:10:23]line ПРОДАЖА [21:10:23]line ТРК (МРК, ГНК) : 21 [21:10:23]line Товар: 2710194210 [21:10:23]line ДТ-К-5 [21:10:23]line 80.330 * 74.70 [21:10:23]line = 6000.65 [21:10:23]line НДС 12% НСП 1% [21:10:23]line > о реализуемом товаре [21:10:23]line ОКРУГЛЕНИЕ: -0.65 [21:10:23]line ИТОГО: 6000.00 [21:10:23]line Внесено: 6000.00 [21:10:23]line СДАЧА: 0.00 [21:10:23]line НСП 1% : 53.10 [21:10:23]line НДС 12% : 637.24 [21:10:23]line Наличными: 6000.00 [21:10:23]line Безнал.: 0.00 [21:10:23]line Место: АЗС № 91 "Партнер Нефть" [21:10:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:10:23]line СНО: Общий режим [21:10:23]line Чек 195 15.05.2024 21:10 [21:10:23]line Смена: 356 ФФД: 1.0 [21:10:23]line ЗНМ: 0300000119 [21:10:23]line РНМ: 0000000000091845 [21:10:23]line Версия ККМ: 001 [21:10:23]line ФМ: 0000000000871829 [21:10:23]line ФД: 67377 [21:10:23]line ФПД: 233715295015239 [21:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211024&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67377&fm=233715295015239&tin=02508201610067®Number=0000000000091845&sum=600000 [21:10:24]OFD Sender: Processing packet 67377 [packets to send 35, broken 34] [21:10:24]ProducePacketName [21:10:24]name=ofd_packets/00067377 [21:10:24]OFD Sender: To server: pG, [21:10:24]CommunicateWithHost lk.salyk.kg:30040 [21:10:24]ConnectInit lk.salyk.kg [21:10:24]written 0, free lines is 4095 [21:10:24]Connected sock=10 [21:10:24]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 B9 71 04 01 2B 9A 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 CA 39 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 01 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 C0 24 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 07 01 00 35 04 06 00 D4 90 15 23 51 47 3A F2 7A EC 09 00 C0 81 [21:10: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 E2 FB 47 00 7A 86 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 07 01 00 F4 03 04 00 9D CC 44 66 B6 04 01 00 00 66 DE 0B F0 00 1F 3D DD [21:10:24]CommunicateWithHost err = 0 [21:10:24]CheckOFDResponse [21:10:24]1017 (14) - 77093643461234 [21:10:24]1041 (16) - 0000000000871829 [21:10:24]1040 (4) - 67377 [21:10:24]1012 (4) - 15.05.2024 14:54 [21:10:24]1206 (1) - 0 [21:10:24]OFD Sender: Remove packet 67377 [21:10:24]ProducePacketName [21:10:24]name=ofd_packets/00067377 [21:10:24]NVStorageDeleteData [21:10:24]Write to MH i2c: 01 00 00 7E 30 AE [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 07 00 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: 01 07 00 7E 30 00 00 00 00 00 C7 0C 88 [21:10:24]RasterBufferAndPrint [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]line [21:10:24]written 0, free lines is 3276 [21:10:24]MH_Cut [21:10:24]Write to MH i2c: D1 01 00 85 30 01 87 [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 01 00 [21:10:24]MH_I2C_Read... [21:10:24]Read from MH i2c: D1 01 00 85 30 00 86 [21:10:24]Write to MH i2c: 01 00 00 86 30 B6 [21:10:24]Write i2c OK [21:10:24]MH_I2C_Read... [21:10:25]OFD Sender: No OFD packet to send [21:10:25]*** Cut start [21:10:25]*** Purtial cut [21:10:25]*** Stage 1: CUTSNS_PIN = 1 [21:10:25]Read from MH i2c: 01 [21:10:25]MH_I2C_Read... [21:10:25]*** Stop cut motor [21:10:25]*** Cut end [21:10:25]Read from MH i2c: 01 07 00 [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: 01 07 00 86 30 00 00 00 00 00 FF 0F CB [21:10:25]process_action close_receipt done [21:10:25]requested_data is exist [21:10:25]produce_requested_data [21:10:25]requested_item fm.sn is exist - process it [21:10:25]wFMCommunicate request_size=4 [21:10:25]MH_SAM_APDU [21:10:25]CAPDU: 80 11 00 00 [21:10:25]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [21:10:25]Write i2c OK [21:10:25]MH_I2C_Read... [21:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:25]Read from MH i2c: E2 [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: E2 17 00 [21:10:25]MH_I2C_Read... [21:10:25]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [21:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:10:25]wFMCommunicate OK [21:10:25]requested_item fd.num is exist - process it [21:10:25]SAM_PROTO_GetFieldsCounters [21:10:25]wFMCommunicate request_size=4 [21:10:25]MH_SAM_APDU [21:10:25]CAPDU: 80 13 00 00 [21:10:25]Write to MH i2c: E2 08 00 88 30 80 13 00 00 00 00 00 00 34 [21:10:25]Write i2c OK [21:10:25]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 62 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 62 00 88 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 31 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [21:10: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 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_GetFieldsCounters done [21:10:26]requested_item shift.num is exist - process it [21:10:26]requested_item shift.opened is exist - process it [21:10:26]req_shift_opened [21:10:26]FM_GetShiftState [21:10:26]SAM_PROTO_GetShiftState [21:10:26]wFMCommunicate request_size=4 [21:10:26]MH_SAM_APDU [21:10:26]CAPDU: 80 13 01 00 [21:10:26]Write to MH i2c: E2 08 00 89 30 80 13 01 00 00 00 00 00 36 [21:10:26]Write i2c OK [21:10:26]MH_I2C_Read... [21:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:26]Read from MH i2c: E2 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0E 00 [21:10:26]MH_I2C_Read... [21:10:26]Read from MH i2c: E2 0E 00 89 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E1 [21:10:26]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:10:26]wFMCommunicate OK [21:10:26]SAM_PROTO_GetShiftState done [21:10:26]FM_GetShiftState done [21:10:26]req_shift_opened done [21:10:26]requested_item shift.open_date is exist - process it [21:10:26]req_shift_open_date [21:10:26]req_shift_open_date done [21:10:26]produce_requested_data done [21:10:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67377,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:10:26]process_action_free close_receipt [21:10:26]json_value_free [21:10:26]json_value_free done [21:10:26]process_json_proto returns [21:10:26]Send response to host [21:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67377,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:10:26]free response buf [21:10:26]execute_script done [21:10:26]execute_script returns [21:10:26]free content buf [21:10:26]Sock 9.Close socket [21:10:26]Sock 9.Thread stoped [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:42]accept exits with 7 [21:17:42]New connection [21:17:42]New thread 3067174244 created [21:17:42]Thread 3067030884 joined [21:17:42]Waiting for new connection... [21:17:42] Sock 7.Parse request [21:17:42]Sock 7.Check first char [21:17:42]Sock 7.First char is OK [21:17:42]request: POST /json_proto HTTP/1.0 [21:17:42]Method: POST [21:17:42]URL: /json_proto [21:17:42]Method is POST - this is cgi request [21:17:42]url: /json_proto [21:17:42]query_string will be loaded in cgi processing [21:17:42]execute_cgi json_proto POST (null) [21:17:42]execute_cgi path=json_proto method=POST [21:17:42]POST find Content-Length [21:17:42]Host: 172.17.41.195:8080 [21:17:42]Content-Length: 796 [21:17:42]Content-Type: application/json [21:17:42] [21:17:42]POST finish read [21:17:42]Found Content-Length = 796 [21:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507357", "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" ] } } [21:17:42]execute_script... [21:17: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)507357", "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" ] } } [21:17:42]POST & json_proto [21:17:42]process_json_proto [21:17:42]json parsed OK: [21:17:42]protocol is kg_v1.0 [21:17:42]action value=close_receipt [21:17:42]process_action close_receipt [21:17:42]cmd_close_receipt [21:17:42]MH_GetDate [21:17:42]Write to MH i2c: F0 00 00 8A 30 A9 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: F0 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: F0 09 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: F0 09 00 8A 30 00 78 26 45 66 FC 21 6F 64 EB [21:17:42]GetLastDocTimeStamp 1715807424 [21:17:42]current date 1715807864 [21:17:42]FM_GetShiftState [21:17:42]SAM_PROTO_GetShiftState [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 13 01 00 [21:17:42]Write to MH i2c: E2 08 00 8B 30 80 13 01 00 00 00 00 00 38 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 0E 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 0E 00 8B 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E3 [21:17:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:17:42]wFMCommunicate OK [21:17:42]SAM_PROTO_GetShiftState done [21:17:42]FM_GetShiftState done [21:17:42]opened in 1715732471 [21:17:42]opened+sec_in_day 1715818871 [21:17:42]quantity*price = 100005 [21:17:42]sum+1 = 100006 [21:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 196 15.05.2024 21:17 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67378 ФПД: 127186361734451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211745&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67378&fm=127186361734451&tin=02508201610067®Number=0000000000091845&sum=100005 [21:17:43]StoreToDocumentArchive [21:17:43]shift 356 fd 67378 [21:17:43]save to /storage/0356/doc_00067378 [21:17:43]save last doc name /storage/0356/doc_00067378 to /storage/kkm_last_doc_name [21:17:43]save OK [21:17:43]Clear old archive folders... [21:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:17:43]tlvbuf is 00BA4C00 [21:17:43]SAM_PROTO_ClearQueue [21:17:43]wFMCommunicate request_size=4 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 09 00 00 [21:17:43]Write to MH i2c: E2 08 00 98 30 80 09 00 00 00 00 00 00 3A [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:43]Read from MH i2c: E2 03 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 98 30 00 90 00 3C [21:17:43]RAPDU: 90 00 [21:17:43]wFMCommunicate OK [21:17:43]SAM_PROTO_ClearQueue done [21:17:43]KKMCreateOFDPacket [21:17:43]OFDProtocolAddRootSTLVToBuf [21:17:43]FM_MakeSignedData [21:17:43]FM_MakeSignedData [21:17:43]SAM_PROTO_SignData [21:17:43]wFMCommunicate request_size=4 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 0D 01 02 [21:17:43]Write to MH i2c: E2 08 00 99 30 80 0D 01 02 00 00 00 00 42 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 99 30 00 90 00 3D [21:17:43]RAPDU: 90 00 [21:17:43]wFMCommunicate OK [21:17:43]wFMCommunicate request_size=255 [21:17:43]MH_SAM_APDU [21:17:43]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 C4 00 00 00 F4 03 04 00 79 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 32 07 01 00 35 04 06 00 [21:17:43]Write to MH i2c: E2 02 01 9A 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 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 C4 00 00 00 F4 03 04 00 79 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 32 07 01 00 35 04 06 00 00 00 36 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 9A 30 00 90 00 3E [21:17:43]RAPDU: 90 00 [21:17:43]wFMCommunicate OK [21:17:43]wFMCommunicate request_size=11 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 0D 02 02 06 73 AC E1 E9 55 33 [21:17:43]Write to MH i2c: E2 0E 00 9B 30 80 0D 02 02 06 00 73 AC E1 E9 55 33 00 00 C2 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [21:17:43]RAPDU: 90 00 [21:17:43]wFMCommunicate OK [21:17:43]wFMCommunicate request_size=4 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 0D 03 02 [21:17:43]Write to MH i2c: E2 08 00 9C 30 80 0D 03 02 00 00 00 00 47 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:44]Read from MH i2c: E2 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 0B 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 0B 00 9C 30 00 F7 59 B8 6D 42 BF 45 21 90 00 24 [21:17:44]RAPDU: F7 59 B8 6D 42 BF 45 21 90 00 [21:17:44]wFMCommunicate OK [21:17:44]SAM_PROTO_SignData done [21:17:44]FM_MakeSignedData done [21:17:44]CreateOFDProtocolMessage [21:17:44]wFMCommunicate request_size=4 [21:17:44]MH_SAM_APDU [21:17:44]CAPDU: 80 11 00 00 [21:17:44]Write to MH i2c: E2 08 00 9D 30 80 11 00 00 00 00 00 00 47 [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:44]Read from MH i2c: E2 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 17 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: E2 17 00 9D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [21:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:17:44]wFMCommunicate OK [21:17:44]CreateOFDProtocolMessage done [21:17:44]OFDSenderStorePacket 67378 [21:17:44]StoreOFDPacket docnum=67378 [21:17: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 10 01 00 00 DE 90 08 01 DC AF 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 C4 00 00 00 F4 03 04 00 79 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 32 07 01 00 35 04 06 00 73 AC E1 E9 55 33 F7 59 B8 6D 42 BF 45 21 [21:17:44]CheckFolder [21:17:44]dirname=/storage/ofd_packets [21:17:44]CheckFolder done [21:17:44]ProducePacketName [21:17:44]name=ofd_packets/00067378 [21:17:44]NVStorageSaveData ofd_packets/00067378 [21:17:44]File name is /storage/ofd_packets/00067378 [21:17:44]Write 302 bytes [21:17:44]NVStorageSaveData done [21:17:44]OFDSenderStorePacket done [21:17:44]KKMCreateOFDPacket done [21:17:44]NVStorageSaveData kkm_last_timestamp [21:17:44]File name is /storage/kkm_last_timestamp [21:17:44]Write 4 bytes [21:17:44]NVStorageSaveData done [21:17:44]OFD Sender: Processing packet 67378 [packets to send 35, broken 34] [21:17:44]ProducePacketName [21:17:44]name=ofd_packets/00067378 [21:17:44]OFD Sender: To server: pG, [21:17:44]CommunicateWithHost lk.salyk.kg:30040 [21:17:44]ConnectInit lk.salyk.kg [21:17:44]ExternCall_PrintAddStr [21:17:44]wPrintStart [21:17:44]Write to MH i2c: 01 00 00 9E 30 CE [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 07 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 07 00 9E 30 00 00 00 00 00 FF 0F E3 [21:17:44]RasterBufferAndPrint [21:17:44]line Счет N : (1)507357 [21:17:44]line ИНН: 02508201610067 [21:17:44]line Контрольно-Кассовый Чек [21:17:44]line ПРОДАЖА [21:17:44]line ТРК (МРК, ГНК) : 42 [21:17:44]line Товар: 2710124130 [21:17:44]line Super-92-К-5 [21:17:44]line 14.750 * 67.80 [21:17:44]line = 1000.05 [21:17:44]line НДС 12% НСП 1% [21:17:44]line > о реализуемом товаре [21:17:44]line ИТОГО: 1000.05 [21:17:44]line НСП 1% : 8.85 [21:17:44]line НДС 12% : 106.20 [21:17:44]line Наличными: 0.00 [21:17:44]line Безнал.: 1000.05 [21:17:44]line Место: АЗС № 91 "Партнер Нефть" [21:17:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:17:44]line СНО: Общий режим [21:17:44]line Чек 196 15.05.2024 21:17 [21:17:44]line Смена: 356 ФФД: 1.0 [21:17:44]line ЗНМ: 0300000119 [21:17:44]line РНМ: 0000000000091845 [21:17:44]line Версия ККМ: 001 [21:17:44]line Платежная система: O! деньги [21:17:44]line ФМ: 0000000000871829 [21:17:44]line ФД: 67378 [21:17:44]line ФПД: 127186361734451 [21:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211745&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67378&fm=127186361734451&tin=02508201610067®Number=0000000000091845&sum=100005 [21:17:44]Connected sock=11 [21:17: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 10 01 00 00 DE 90 08 01 DC AF 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 C4 00 00 00 F4 03 04 00 79 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 32 07 01 00 35 04 06 00 73 AC E1 E9 55 33 F7 59 B8 6D 42 BF 45 21 [21:17:44]written 0, free lines is 4095 [21:17:44]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 82 07 47 00 46 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 32 07 01 00 F4 03 04 00 55 CE 44 66 B6 04 01 00 00 D2 48 36 E2 3F 7A 8A 8A [21:17:44]CommunicateWithHost err = 0 [21:17:44]CheckOFDResponse [21:17:44]1017 (14) - 77093643461234 [21:17:44]1041 (16) - 0000000000871829 [21:17:44]1040 (4) - 67378 [21:17:44]1012 (4) - 15.05.2024 15:01 [21:17:44]1206 (1) - 0 [21:17:44]OFD Sender: Remove packet 67378 [21:17:44]ProducePacketName [21:17:44]name=ofd_packets/00067378 [21:17:44]NVStorageDeleteData [21:17:44]Write to MH i2c: 01 00 00 C7 30 F7 [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 07 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: 01 07 00 C7 30 00 00 00 00 00 DE 0C E8 [21:17:44]RasterBufferAndPrint [21:17:44]line [21:17:44]line [21:17:44]line [21:17:44]line [21:17:44]line [21:17:44]written 0, free lines is 3300 [21:17:44]MH_Cut [21:17:44]Write to MH i2c: D1 01 00 CE 30 01 D0 [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: D1 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: D1 01 00 [21:17:44]MH_I2C_Read... [21:17:44]Read from MH i2c: D1 01 00 CE 30 00 CF [21:17:44]Write to MH i2c: 01 00 00 CF 30 FF [21:17:44]Write i2c OK [21:17:44]MH_I2C_Read... [21:17:45]OFD Sender: No OFD packet to send [21:17:45]*** Cut start [21:17:45]*** Purtial cut [21:17:45]*** CUTSNS_PIN = 0 [21:17:45]*** Stage 1: CUTSNS_PIN = 1 [21:17:47]Read from MH i2c: 01 [21:17:47]MH_I2C_Read... [21:17:47]*** Stop cut motor [21:17:47]*** Cut end [21:17:47]Read from MH i2c: 01 07 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: 01 07 00 CF 30 00 00 00 00 00 FF 0F 14 [21:17:47]process_action close_receipt done [21:17:47]requested_data is exist [21:17:47]produce_requested_data [21:17:47]requested_item fm.sn is exist - process it [21:17:47]wFMCommunicate request_size=4 [21:17:47]MH_SAM_APDU [21:17:47]CAPDU: 80 11 00 00 [21:17:47]Write to MH i2c: E2 08 00 D0 30 80 11 00 00 00 00 00 00 7A [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:47]Read from MH i2c: E2 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 17 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 17 00 D0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [21: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 [21:17:47]wFMCommunicate OK [21:17:47]requested_item fd.num is exist - process it [21:17:47]SAM_PROTO_GetFieldsCounters [21:17:47]wFMCommunicate request_size=4 [21:17:47]MH_SAM_APDU [21:17:47]CAPDU: 80 13 00 00 [21:17:47]Write to MH i2c: E2 08 00 D1 30 80 13 00 00 00 00 00 00 7D [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:47]Read from MH i2c: E2 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 62 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 62 00 D1 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 32 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [21:17: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 32 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:47]wFMCommunicate OK [21:17:47]SAM_PROTO_GetFieldsCounters done [21:17:47]requested_item shift.num is exist - process it [21:17:47]requested_item shift.opened is exist - process it [21:17:47]req_shift_opened [21:17:47]FM_GetShiftState [21:17:47]SAM_PROTO_GetShiftState [21:17:47]wFMCommunicate request_size=4 [21:17:47]MH_SAM_APDU [21:17:47]CAPDU: 80 13 01 00 [21:17:47]Write to MH i2c: E2 08 00 D2 30 80 13 01 00 00 00 00 00 7F [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:47]Read from MH i2c: E2 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 0E 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 0E 00 D2 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2A [21:17:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:17:47]wFMCommunicate OK [21:17:47]SAM_PROTO_GetShiftState done [21:17:47]FM_GetShiftState done [21:17:47]req_shift_opened done [21:17:47]requested_item shift.open_date is exist - process it [21:17:47]req_shift_open_date [21:17:47]req_shift_open_date done [21:17:47]produce_requested_data done [21:17:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67378,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:17:47]process_action_free close_receipt [21:17:47]json_value_free [21:17:47]json_value_free done [21:17:47]process_json_proto returns [21:17:47]Send response to host [21:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67378,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:17:47]free response buf [21:17:47]execute_script done [21:17:47]execute_script returns [21:17:47]free content buf [21:17:47]Sock 7.Close socket [21:17:47]Sock 7.Thread stoped [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:06]accept exits with 9 [21:18:06]New connection [21:18:06]New thread 3067030884 created [21:18:06]Thread 3067174244 joined [21:18:06]Waiting for new connection... [21:18:06] Sock 9.Parse request [21:18:06]Sock 9.Check first char [21:18:06]Sock 9.First char is OK [21:18:06]request: POST /json_proto HTTP/1.0 [21:18:06]Method: POST [21:18:06]URL: /json_proto [21:18:06]Method is POST - this is cgi request [21:18:06]url: /json_proto [21:18:06]query_string will be loaded in cgi processing [21:18:06]execute_cgi json_proto POST (null) [21:18:06]execute_cgi path=json_proto method=POST [21:18:06]POST find Content-Length [21:18:06]Host: 172.17.41.195:8080 [21:18:06]Content-Length: 670 [21:18:06]Content-Type: application/json [21:18:06] [21:18:06]POST finish read [21:18:06]Found Content-Length = 670 [21:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507358", "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" : 7.380, "sum" : 500.36, "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" ] } } [21:18:06]execute_script... [21:18: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)507358", "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" : 7.380, "sum" : 500.36, "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" ] } } [21:18:06]POST & json_proto [21:18:06]process_json_proto [21:18:06]json parsed OK: [21:18:06]protocol is kg_v1.0 [21:18:06]action value=close_receipt [21:18:06]process_action close_receipt [21:18:06]cmd_close_receipt [21:18:06]MH_GetDate [21:18:06]Write to MH i2c: F0 00 00 D3 30 F2 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: F0 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: F0 09 00 [21:18:06]MH_I2C_Read... [21:18:06]Read from MH i2c: F0 09 00 D3 30 00 91 26 45 66 FC 21 6F 64 4D [21:18:06]GetLastDocTimeStamp 1715807865 [21:18:06]current date 1715807889 [21:18:06]FM_GetShiftState [21:18:06]SAM_PROTO_GetShiftState [21:18:06]wFMCommunicate request_size=4 [21:18:06]MH_SAM_APDU [21:18:06]CAPDU: 80 13 01 00 [21:18:06]Write to MH i2c: E2 08 00 D4 30 80 13 01 00 00 00 00 00 81 [21:18:06]Write i2c OK [21:18:06]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 D4 30 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 2C [21:18:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_GetShiftState done [21:18:07]FM_GetShiftState done [21:18:07]opened in 1715732471 [21:18:07]opened+sec_in_day 1715818871 [21:18:07]quantity*price = 50036 [21:18:07]sum+1 = 50037 [21:18:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 197 15.05.2024 21:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67379 ФПД: 183004231994178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211809&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67379&fm=183004231994178&tin=02508201610067®Number=0000000000091845&sum=50000 [21:18:08]StoreToDocumentArchive [21:18:08]shift 356 fd 67379 [21:18:08]save to /storage/0356/doc_00067379 [21:18:08]save last doc name /storage/0356/doc_00067379 to /storage/kkm_last_doc_name [21:18:08]save OK [21:18:08]Clear old archive folders... [21:18:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:18:08]tlvbuf is 00BF69D0 [21:18:08]SAM_PROTO_ClearQueue [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 09 00 00 [21:18:08]Write to MH i2c: E2 08 00 E1 30 80 09 00 00 00 00 00 00 83 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 E1 30 00 90 00 85 [21:18:08]RAPDU: 90 00 [21:18:08]wFMCommunicate OK [21:18:08]SAM_PROTO_ClearQueue done [21:18:08]KKMCreateOFDPacket [21:18:08]OFDProtocolAddRootSTLVToBuf [21:18:08]FM_MakeSignedData [21:18:08]FM_MakeSignedData [21:18:08]SAM_PROTO_SignData [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 0D 01 02 [21:18:08]Write to MH i2c: E2 08 00 E2 30 80 0D 01 02 00 00 00 00 8B [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 E2 30 00 90 00 86 [21:18:08]RAPDU: 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=255 [21:18:08]MH_SAM_APDU [21:18:08]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 C5 00 00 00 F4 03 04 00 91 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 33 07 01 00 35 04 06 00 [21:18:08]Write to MH i2c: E2 02 01 E3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 C5 00 00 00 F4 03 04 00 91 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 33 07 01 00 35 04 06 00 00 00 00 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 E3 30 00 90 00 87 [21:18:08]RAPDU: 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=11 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 0D 02 02 06 A6 70 FE 3D 8B 42 [21:18:08]Write to MH i2c: E2 0E 00 E4 30 80 0D 02 02 06 00 A6 70 FE 3D 8B 42 00 00 B8 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 03 00 E4 30 00 90 00 88 [21:18:08]RAPDU: 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 0D 03 02 [21:18:08]Write to MH i2c: E2 08 00 E5 30 80 0D 03 02 00 00 00 00 90 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 0B 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 0B 00 E5 30 00 7D 3B EB E7 7B A5 AC F2 90 00 D9 [21:18:08]RAPDU: 7D 3B EB E7 7B A5 AC F2 90 00 [21:18:08]wFMCommunicate OK [21:18:08]SAM_PROTO_SignData done [21:18:08]FM_MakeSignedData done [21:18:08]CreateOFDProtocolMessage [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 11 00 00 [21:18:08]Write to MH i2c: E2 08 00 E6 30 80 11 00 00 00 00 00 00 90 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 17 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 17 00 E6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [21:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:18:08]wFMCommunicate OK [21:18:08]CreateOFDProtocolMessage done [21:18:08]OFDSenderStorePacket 67379 [21:18:08]StoreOFDPacket docnum=67379 [21:18: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 10 01 00 00 16 BF 08 01 15 E2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 C5 00 00 00 F4 03 04 00 91 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 33 07 01 00 35 04 06 00 A6 70 FE 3D 8B 42 7D 3B EB E7 7B A5 AC F2 [21:18:08]CheckFolder [21:18:08]dirname=/storage/ofd_packets [21:18:08]CheckFolder done [21:18:08]ProducePacketName [21:18:08]name=ofd_packets/00067379 [21:18:08]NVStorageSaveData ofd_packets/00067379 [21:18:08]File name is /storage/ofd_packets/00067379 [21:18:08]Write 302 bytes [21:18:08]NVStorageSaveData done [21:18:08]OFDSenderStorePacket done [21:18:08]KKMCreateOFDPacket done [21:18:08]NVStorageSaveData kkm_last_timestamp [21:18:08]File name is /storage/kkm_last_timestamp [21:18:08]Write 4 bytes [21:18:08]NVStorageSaveData done [21:18:08]ExternCall_PrintAddStr [21:18:08]wPrintStart [21:18:08]Write to MH i2c: 01 00 00 E7 30 17 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 E7 30 00 00 00 00 00 FF 0F 2C [21:18:08]RasterBufferAndPrint [21:18:08]line Счет N : (1)507358 [21:18:08]line ИНН: 02508201610067 [21:18:08]line Контрольно-Кассовый Чек [21:18:08]line ПРОДАЖА [21:18:08]line ТРК (МРК, ГНК) : 22 [21:18:08]line Товар: 2710124130 [21:18:08]line Super-92-К-5 [21:18:08]line 7.380 * 67.80 [21:18:08]line = 500.36 [21:18:08]line НДС 12% НСП 1% [21:18:08]line > о реализуемом товаре [21:18:08]line ОКРУГЛЕНИЕ: -0.36 [21:18:08]line ИТОГО: 500.00 [21:18:08]line Внесено: 500.00 [21:18:08]line СДАЧА: 0.00 [21:18:08]line НСП 1% : 4.43 [21:18:08]line НДС 12% : 53.14 [21:18:08]line Наличными: 500.00 [21:18:08]line Безнал.: 0.00 [21:18:08]line Место: АЗС № 91 "Партнер Нефть" [21:18:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:18:08]line СНО: Общий режим [21:18:08]line Чек 197 15.05.2024 21:18 [21:18:08]line Смена: 356 ФФД: 1.0 [21:18:08]line ЗНМ: 0300000119 [21:18:08]line РНМ: 0000000000091845 [21:18:08]line Версия ККМ: 001 [21:18:08]line ФМ: 0000000000871829 [21:18:08]line ФД: 67379 [21:18:08]line ФПД: 183004231994178 [21:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T211809&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67379&fm=183004231994178&tin=02508201610067®Number=0000000000091845&sum=50000 [21:18:09]written 0, free lines is 4095 [21:18:09]OFD Sender: Processing packet 67379 [packets to send 35, broken 34] [21:18:09]ProducePacketName [21:18:09]name=ofd_packets/00067379 [21:18:09]OFD Sender: To server: pG, [21:18:09]CommunicateWithHost lk.salyk.kg:30040 [21:18:09]ConnectInit lk.salyk.kg [21:18:09]Connected sock=10 [21:18: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 16 BF 08 01 15 E2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 C5 00 00 00 F4 03 04 00 91 26 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 33 07 01 00 35 04 06 00 A6 70 FE 3D 8B 42 7D 3B EB E7 7B A5 AC F2 [21:18: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 F3 16 47 00 5E 37 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 33 07 01 00 F4 03 04 00 6D CE 44 66 B6 04 01 00 00 98 DE 58 60 48 9C 4F 35 [21:18:09]CommunicateWithHost err = 0 [21:18:09]CheckOFDResponse [21:18:09]1017 (14) - 77093643461234 [21:18:09]1041 (16) - 0000000000871829 [21:18:09]1040 (4) - 67379 [21:18:09]1012 (4) - 15.05.2024 15:02 [21:18:09]1206 (1) - 0 [21:18:09]OFD Sender: Remove packet 67379 [21:18:09]ProducePacketName [21:18:09]name=ofd_packets/00067379 [21:18:09]NVStorageDeleteData [21:18:09]Write to MH i2c: 01 00 00 11 31 42 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: 01 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: 01 07 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: 01 07 00 11 31 00 00 00 00 00 C8 0C 1D [21:18:09]RasterBufferAndPrint [21:18:09]line [21:18:09]line [21:18:09]line [21:18:09]line [21:18:09]line [21:18:09]written 0, free lines is 3278 [21:18:09]MH_Cut [21:18:09]Write to MH i2c: D1 01 00 18 31 01 1B [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: D1 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: D1 01 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: D1 01 00 18 31 00 1A [21:18:09]Write to MH i2c: 01 00 00 19 31 4A [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]OFD Sender: No OFD packet to send [21:18:10]*** Cut start [21:18:10]*** Purtial cut [21:18:10]*** Stage 1: CUTSNS_PIN = 1 [21:18:10]Read from MH i2c: 01 [21:18:10]MH_I2C_Read... [21:18:10]*** Stop cut motor [21:18:10]*** Cut end [21:18:10]Read from MH i2c: 01 07 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: 01 07 00 19 31 00 00 00 00 00 FF 0F 5F [21:18:10]process_action close_receipt done [21:18:10]requested_data is exist [21:18:10]produce_requested_data [21:18:10]requested_item fm.sn is exist - process it [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 11 00 00 [21:18:10]Write to MH i2c: E2 08 00 1A 31 80 11 00 00 00 00 00 00 C5 [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 17 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 17 00 1A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [21:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:18:10]wFMCommunicate OK [21:18:10]requested_item fd.num is exist - process it [21:18:10]SAM_PROTO_GetFieldsCounters [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 13 00 00 [21:18:10]Write to MH i2c: E2 08 00 1B 31 80 13 00 00 00 00 00 00 C8 [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 62 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 62 00 1B 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 33 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:18: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 33 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetFieldsCounters done [21:18:10]requested_item shift.num is exist - process it [21:18:10]requested_item shift.opened is exist - process it [21:18:10]req_shift_opened [21:18:10]FM_GetShiftState [21:18:10]SAM_PROTO_GetShiftState [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 13 01 00 [21:18:10]Write to MH i2c: E2 08 00 1C 31 80 13 01 00 00 00 00 00 CA [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 0E 00 1C 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 75 [21:18:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetShiftState done [21:18:10]FM_GetShiftState done [21:18:10]req_shift_opened done [21:18:10]requested_item shift.open_date is exist - process it [21:18:10]req_shift_open_date [21:18:10]req_shift_open_date done [21:18:10]produce_requested_data done [21:18:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67379,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:18:10]process_action_free close_receipt [21:18:10]json_value_free [21:18:10]json_value_free done [21:18:10]process_json_proto returns [21:18:10]Send response to host [21:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67379,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:18:10]free response buf [21:18:10]execute_script done [21:18:10]execute_script returns [21:18:10]free content buf [21:18:10]Sock 9.Close socket [21:18:10]Sock 9.Thread stoped [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:49]accept exits with 7 [21:21:49]New connection [21:21:49]New thread 3067174244 created [21:21:49]Thread 3067030884 joined [21:21:49]Waiting for new connection... [21:21:49] Sock 7.Parse request [21:21:49]Sock 7.Check first char [21:21:49]Sock 7.First char is OK [21:21:49]request: POST /json_proto HTTP/1.0 [21:21:49]Method: POST [21:21:49]URL: /json_proto [21:21:49]Method is POST - this is cgi request [21:21:49]url: /json_proto [21:21:49]query_string will be loaded in cgi processing [21:21:49]execute_cgi json_proto POST (null) [21:21:49]execute_cgi path=json_proto method=POST [21:21:49]POST find Content-Length [21:21:49]Host: 172.17.41.195:8080 [21:21:49]Content-Length: 679 [21:21:49]Content-Type: application/json [21:21:49] [21:21:49]POST finish read [21:21:49]Found Content-Length = 679 [21:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507359", "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" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:49]execute_script... [21:21: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)507359", "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" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:49]POST & json_proto [21:21:49]process_json_proto [21:21:49]json parsed OK: [21:21:49]protocol is kg_v1.0 [21:21:49]action value=close_receipt [21:21:49]process_action close_receipt [21:21:49]cmd_close_receipt [21:21:49]MH_GetDate [21:21:49]Write to MH i2c: F0 00 00 1D 31 3D [21:21:49]Write i2c OK [21:21:49]MH_I2C_Read... [21:21:49]Read from MH i2c: F0 [21:21:49]MH_I2C_Read... [21:21:49]Read from MH i2c: F0 09 00 [21:21:49]MH_I2C_Read... [21:21:49]Read from MH i2c: F0 09 00 1D 31 00 70 27 45 66 FC 21 6F 64 78 [21:21:49]GetLastDocTimeStamp 1715807889 [21:21:49]current date 1715808112 [21:21:49]FM_GetShiftState [21:21:49]SAM_PROTO_GetShiftState [21:21:49]wFMCommunicate request_size=4 [21:21:49]MH_SAM_APDU [21:21:49]CAPDU: 80 13 01 00 [21:21:49]Write to MH i2c: E2 08 00 1E 31 80 13 01 00 00 00 00 00 CC [21:21:49]Write i2c OK [21:21:49]MH_I2C_Read... [21:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:49]Read from MH i2c: E2 [21:21:49]MH_I2C_Read... [21:21:49]Read from MH i2c: E2 0E 00 [21:21:49]MH_I2C_Read... [21:21:49]Read from MH i2c: E2 0E 00 1E 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 77 [21:21:49]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:21:49]wFMCommunicate OK [21:21:49]SAM_PROTO_GetShiftState done [21:21:49]FM_GetShiftState done [21:21:49]opened in 1715732471 [21:21:49]opened+sec_in_day 1715818871 [21:21:49]quantity*price = 140062 [21:21:49]sum+1 = 140064 [21:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 198 15.05.2024 21:21 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67380 ФПД: 95057665624006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212152&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67380&fm=95057665624006&tin=02508201610067®Number=0000000000091845&sum=140000 [21:21:50]StoreToDocumentArchive [21:21:50]shift 356 fd 67380 [21:21:50]save to /storage/0356/doc_00067380 [21:21:50]save last doc name /storage/0356/doc_00067380 to /storage/kkm_last_doc_name [21:21:50]save OK [21:21:50]Clear old archive folders... [21:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:21:50]tlvbuf is 00B27D90 [21:21:50]SAM_PROTO_ClearQueue [21:21:50]wFMCommunicate request_size=4 [21:21:50]MH_SAM_APDU [21:21:50]CAPDU: 80 09 00 00 [21:21:50]Write to MH i2c: E2 08 00 2B 31 80 09 00 00 00 00 00 00 CE [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:50]Read from MH i2c: E2 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 03 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [21:21:50]RAPDU: 90 00 [21:21:50]wFMCommunicate OK [21:21:50]SAM_PROTO_ClearQueue done [21:21:50]KKMCreateOFDPacket [21:21:50]OFDProtocolAddRootSTLVToBuf [21:21:50]FM_MakeSignedData [21:21:50]FM_MakeSignedData [21:21:50]SAM_PROTO_SignData [21:21:50]wFMCommunicate request_size=4 [21:21:50]MH_SAM_APDU [21:21:50]CAPDU: 80 0D 01 02 [21:21:50]Write to MH i2c: E2 08 00 2C 31 80 0D 01 02 00 00 00 00 D6 [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:50]Read from MH i2c: E2 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 03 00 [21:21:50]MH_I2C_Read... [21:21:50]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [21:21:50]RAPDU: 90 00 [21:21:50]wFMCommunicate OK [21:21:50]wFMCommunicate request_size=255 [21:21:50]MH_SAM_APDU [21:21: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 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 E0 22 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 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 70 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 34 07 01 00 35 04 06 00 56 74 56 64 [21:21:50]Write to MH i2c: E2 02 01 2D 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 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 E0 22 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 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 70 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 34 07 01 00 35 04 06 00 56 74 56 64 00 00 B2 [21:21:50]Write i2c OK [21:21:50]MH_I2C_Read... [21:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:51]Read from MH i2c: E2 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 03 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 03 00 2D 31 00 90 00 D2 [21:21:51]RAPDU: 90 00 [21:21:51]wFMCommunicate OK [21:21:51]wFMCommunicate request_size=7 [21:21:51]MH_SAM_APDU [21:21:51]CAPDU: 80 0D 02 02 02 87 C6 [21:21:51]Write to MH i2c: E2 0A 00 2E 31 80 0D 02 02 02 00 87 C6 00 00 2A [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:51]Read from MH i2c: E2 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 03 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 03 00 2E 31 00 90 00 D3 [21:21:51]RAPDU: 90 00 [21:21:51]wFMCommunicate OK [21:21:51]wFMCommunicate request_size=4 [21:21:51]MH_SAM_APDU [21:21:51]CAPDU: 80 0D 03 02 [21:21:51]Write to MH i2c: E2 08 00 2F 31 80 0D 03 02 00 00 00 00 DB [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:51]Read from MH i2c: E2 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 0B 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 0B 00 2F 31 00 E2 D1 9D 3B 0A BD C7 01 90 00 F6 [21:21:51]RAPDU: E2 D1 9D 3B 0A BD C7 01 90 00 [21:21:51]wFMCommunicate OK [21:21:51]SAM_PROTO_SignData done [21:21:51]FM_MakeSignedData done [21:21:51]CreateOFDProtocolMessage [21:21:51]wFMCommunicate request_size=4 [21:21:51]MH_SAM_APDU [21:21:51]CAPDU: 80 11 00 00 [21:21:51]Write to MH i2c: E2 08 00 30 31 80 11 00 00 00 00 00 00 DB [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:51]Read from MH i2c: E2 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 17 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: E2 17 00 30 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [21:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:21:51]wFMCommunicate OK [21:21:51]CreateOFDProtocolMessage done [21:21:51]OFDSenderStorePacket 67380 [21:21:51]StoreOFDPacket docnum=67380 [21:21: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 25 65 04 01 24 E9 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 E0 22 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 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 70 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 34 07 01 00 35 04 06 00 56 74 56 64 87 C6 E2 D1 9D 3B 0A BD C7 01 [21:21:51]CheckFolder [21:21:51]dirname=/storage/ofd_packets [21:21:51]CheckFolder done [21:21:51]ProducePacketName [21:21:51]name=ofd_packets/00067380 [21:21:51]NVStorageSaveData ofd_packets/00067380 [21:21:51]File name is /storage/ofd_packets/00067380 [21:21:51]Write 298 bytes [21:21:51]NVStorageSaveData done [21:21:51]OFDSenderStorePacket done [21:21:51]KKMCreateOFDPacket done [21:21:51]NVStorageSaveData kkm_last_timestamp [21:21:51]File name is /storage/kkm_last_timestamp [21:21:51]Write 4 bytes [21:21:51]NVStorageSaveData done [21:21:51]ExternCall_PrintAddStr [21:21:51]wPrintStart [21:21:51]Write to MH i2c: 01 00 00 31 31 62 [21:21:51]Write i2c OK [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: 01 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: 01 07 00 [21:21:51]MH_I2C_Read... [21:21:51]Read from MH i2c: 01 07 00 31 31 00 00 00 00 00 FF 0F 77 [21:21:51]RasterBufferAndPrint [21:21:51]line Счет N : (1)507359 [21:21:51]line ИНН: 02508201610067 [21:21:51]line Контрольно-Кассовый Чек [21:21:51]line ПРОДАЖА [21:21:51]line ТРК (МРК, ГНК) : 11 [21:21:51]line Товар: 2710194210 [21:21:51]line ДТ-К-5 [21:21:51]line 18.750 * 74.70 [21:21:51]line = 1400.63 [21:21:51]line НДС 12% НСП 1% [21:21:51]line > о реализуемом товаре [21:21:51]line ОКРУГЛЕНИЕ: -0.63 [21:21:51]line ИТОГО: 1400.00 [21:21:51]line Внесено: 1400.00 [21:21:51]line СДАЧА: 0.00 [21:21:51]line НСП 1% : 12.39 [21:21:51]line НДС 12% : 148.74 [21:21:51]line Наличными: 1400.00 [21:21:51]line Безнал.: 0.00 [21:21:51]line Место: АЗС № 91 "Партнер Нефть" [21:21:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:21:51]line СНО: Общий режим [21:21:51]line Чек 198 15.05.2024 21:21 [21:21:51]line Смена: 356 ФФД: 1.0 [21:21:51]line ЗНМ: 0300000119 [21:21:51]line РНМ: 0000000000091845 [21:21:51]line Версия ККМ: 001 [21:21:51]line ФМ: 0000000000871829 [21:21:51]line ФД: 67380 [21:21:51]line ФПД: 95057665624006 [21:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212152&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67380&fm=95057665624006&tin=02508201610067®Number=0000000000091845&sum=140000 [21:21:51]OFD Sender: Processing packet 67380 [packets to send 35, broken 34] [21:21:51]ProducePacketName [21:21:51]name=ofd_packets/00067380 [21:21:51]OFD Sender: To server: pG, [21:21:51]CommunicateWithHost lk.salyk.kg:30040 [21:21:51]ConnectInit lk.salyk.kg [21:21:51]written 0, free lines is 4095 [21:21:51]Connected sock=10 [21:21: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 25 65 04 01 24 E9 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 E0 22 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 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 70 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 34 07 01 00 35 04 06 00 56 74 56 64 87 C6 E2 D1 9D 3B 0A BD C7 01 [21:21: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 A0 25 47 00 E4 51 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 34 07 01 00 F4 03 04 00 4C CF 44 66 B6 04 01 00 00 72 98 17 19 C9 55 97 26 [21:21:51]CommunicateWithHost err = 0 [21:21:51]CheckOFDResponse [21:21:51]1017 (14) - 77093643461234 [21:21:51]1041 (16) - 0000000000871829 [21:21:51]1040 (4) - 67380 [21:21:51]1012 (4) - 15.05.2024 15:05 [21:21:51]1206 (1) - 0 [21:21:51]OFD Sender: Remove packet 67380 [21:21:51]ProducePacketName [21:21:51]name=ofd_packets/00067380 [21:21:51]NVStorageDeleteData [21:21:52]Write to MH i2c: 01 00 00 5B 31 8C [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 07 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: 01 07 00 5B 31 00 00 00 00 00 C3 0C 62 [21:21:52]RasterBufferAndPrint [21:21:52]line [21:21:52]line [21:21:52]line [21:21:52]line [21:21:52]line [21:21:52]written 0, free lines is 3272 [21:21:52]MH_Cut [21:21:52]Write to MH i2c: D1 01 00 62 31 01 65 [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: D1 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: D1 01 00 [21:21:52]MH_I2C_Read... [21:21:52]Read from MH i2c: D1 01 00 62 31 00 64 [21:21:52]Write to MH i2c: 01 00 00 63 31 94 [21:21:52]Write i2c OK [21:21:52]MH_I2C_Read... [21:21:52]OFD Sender: No OFD packet to send [21:21:52]*** Cut start [21:21:52]*** Purtial cut [21:21:52]*** CUTSNS_PIN = 0 [21:21:53]*** Stage 1: CUTSNS_PIN = 1 [21:21:54]Read from MH i2c: 01 [21:21:54]MH_I2C_Read... [21:21:54]*** Stop cut motor [21:21:54]*** Cut end [21:21:54]Read from MH i2c: 01 07 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 FF 0F A9 [21:21:54]process_action close_receipt done [21:21:54]requested_data is exist [21:21:54]produce_requested_data [21:21:54]requested_item fm.sn is exist - process it [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 11 00 00 [21:21:54]Write to MH i2c: E2 08 00 64 31 80 11 00 00 00 00 00 00 0F [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:54]Read from MH i2c: E2 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 17 00 [21:21:54]MH_I2C_Read... [21:21:54]Read from MH i2c: E2 17 00 64 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [21:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:21:54]wFMCommunicate OK [21:21:54]requested_item fd.num is exist - process it [21:21:54]SAM_PROTO_GetFieldsCounters [21:21:54]wFMCommunicate request_size=4 [21:21:54]MH_SAM_APDU [21:21:54]CAPDU: 80 13 00 00 [21:21:54]Write to MH i2c: E2 08 00 65 31 80 13 00 00 00 00 00 00 12 [21:21:54]Write i2c OK [21:21:54]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 62 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 62 00 65 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 34 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:21: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 34 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_GetFieldsCounters done [21:21:55]requested_item shift.num is exist - process it [21:21:55]requested_item shift.opened is exist - process it [21:21:55]req_shift_opened [21:21:55]FM_GetShiftState [21:21:55]SAM_PROTO_GetShiftState [21:21:55]wFMCommunicate request_size=4 [21:21:55]MH_SAM_APDU [21:21:55]CAPDU: 80 13 01 00 [21:21:55]Write to MH i2c: E2 08 00 66 31 80 13 01 00 00 00 00 00 14 [21:21:55]Write i2c OK [21:21:55]MH_I2C_Read... [21:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:55]Read from MH i2c: E2 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0E 00 [21:21:55]MH_I2C_Read... [21:21:55]Read from MH i2c: E2 0E 00 66 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BF [21:21:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:21:55]wFMCommunicate OK [21:21:55]SAM_PROTO_GetShiftState done [21:21:55]FM_GetShiftState done [21:21:55]req_shift_opened done [21:21:55]requested_item shift.open_date is exist - process it [21:21:55]req_shift_open_date [21:21:55]req_shift_open_date done [21:21:55]produce_requested_data done [21:21:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67380,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:21:55]process_action_free close_receipt [21:21:55]json_value_free [21:21:55]json_value_free done [21:21:55]process_json_proto returns [21:21:55]Send response to host [21:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67380,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:21:55]free response buf [21:21:55]execute_script done [21:21:55]execute_script returns [21:21:55]free content buf [21:21:55]Sock 7.Close socket [21:21:55]Sock 7.Thread stoped [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:14]accept exits with 9 [21:23:14]New connection [21:23:14]New thread 3067030884 created [21:23:14]Thread 3067174244 joined [21:23:14]Waiting for new connection... [21:23:14] Sock 9.Parse request [21:23:14]Sock 9.Check first char [21:23:14]Sock 9.First char is OK [21:23:14]request: POST /json_proto HTTP/1.0 [21:23:14]Method: POST [21:23:14]URL: /json_proto [21:23:14]Method is POST - this is cgi request [21:23:14]url: /json_proto [21:23:14]query_string will be loaded in cgi processing [21:23:14]execute_cgi json_proto POST (null) [21:23:14]execute_cgi path=json_proto method=POST [21:23:14]POST find Content-Length [21:23:14]Host: 172.17.41.195:8080 [21:23:14]Content-Length: 668 [21:23:14]Content-Type: application/json [21:23:14] [21:23:14]POST finish read [21:23:14]Found Content-Length = 668 [21:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12082", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:14]execute_script... [21:23: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 : (3)12082", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:14]POST & json_proto [21:23:14]process_json_proto [21:23:14]json parsed OK: [21:23:14]protocol is kg_v1.0 [21:23:14]action value=close_receipt [21:23:14]process_action close_receipt [21:23:14]cmd_close_receipt [21:23:14]MH_GetDate [21:23:14]Write to MH i2c: F0 00 00 67 31 87 [21:23:14]Write i2c OK [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 09 00 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: F0 09 00 67 31 00 C5 27 45 66 FC 21 6F 64 17 [21:23:14]GetLastDocTimeStamp 1715808112 [21:23:14]current date 1715808197 [21:23:14]FM_GetShiftState [21:23:14]SAM_PROTO_GetShiftState [21:23:14]wFMCommunicate request_size=4 [21:23:14]MH_SAM_APDU [21:23:14]CAPDU: 80 13 01 00 [21:23:14]Write to MH i2c: E2 08 00 68 31 80 13 01 00 00 00 00 00 16 [21:23:14]Write i2c OK [21:23:14]MH_I2C_Read... [21:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:14]Read from MH i2c: E2 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: E2 0E 00 [21:23:14]MH_I2C_Read... [21:23:14]Read from MH i2c: E2 0E 00 68 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 C1 [21:23:14]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:23:14]wFMCommunicate OK [21:23:14]SAM_PROTO_GetShiftState done [21:23:14]FM_GetShiftState done [21:23:14]opened in 1715732471 [21:23:14]opened+sec_in_day 1715818871 [21:23:14]quantity*price = 10500 [21:23:14]sum+1 = 10501 [21:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 199 15.05.2024 21:23 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67381 ФПД: 32629446609754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212317&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67381&fm=32629446609754&tin=02508201610067®Number=0000000000091845&sum=10500 0 [21:23:16]StoreToDocumentArchive [21:23:16]shift 356 fd 67381 [21:23:16]save to /storage/0356/doc_00067381 [21:23:16]save last doc name /storage/0356/doc_00067381 to /storage/kkm_last_doc_name [21:23:16]save OK [21:23:16]Clear old archive folders... [21:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=293 [21:23:16]tlvbuf is 00B36500 [21:23:16]SAM_PROTO_ClearQueue [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 09 00 00 [21:23:16]Write to MH i2c: E2 08 00 75 31 80 09 00 00 00 00 00 00 18 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]SAM_PROTO_ClearQueue done [21:23:16]KKMCreateOFDPacket [21:23:16]OFDProtocolAddRootSTLVToBuf [21:23:16]FM_MakeSignedData [21:23:16]FM_MakeSignedData [21:23:16]SAM_PROTO_SignData [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 01 02 [21:23:16]Write to MH i2c: E2 08 00 76 31 80 0D 01 02 00 00 00 00 20 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 76 31 00 90 00 1B [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=255 [21:23:16]MH_SAM_APDU [21:23:16]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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [21:23:16]Write to MH i2c: E2 02 01 77 31 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F0 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 77 31 00 90 00 1C [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=52 [21:23:16]MH_SAM_APDU [21:23:16]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 35 07 01 00 35 04 06 00 1D AD 22 93 0B 5A [21:23:16]Write to MH i2c: E2 37 00 78 31 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 35 07 01 00 35 04 06 00 1D AD 22 93 0B 5A 00 00 0C [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 03 00 78 31 00 90 00 1D [21:23:16]RAPDU: 90 00 [21:23:16]wFMCommunicate OK [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 0D 03 02 [21:23:16]Write to MH i2c: E2 08 00 79 31 80 0D 03 02 00 00 00 00 25 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 0B 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 0B 00 79 31 00 91 0B 5C 77 B8 26 D9 89 90 00 D5 [21:23:16]RAPDU: 91 0B 5C 77 B8 26 D9 89 90 00 [21:23:16]wFMCommunicate OK [21:23:16]SAM_PROTO_SignData done [21:23:16]FM_MakeSignedData done [21:23:16]CreateOFDProtocolMessage [21:23:16]wFMCommunicate request_size=4 [21:23:16]MH_SAM_APDU [21:23:16]CAPDU: 80 11 00 00 [21:23:16]Write to MH i2c: E2 08 00 7A 31 80 11 00 00 00 00 00 00 25 [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:16]Read from MH i2c: E2 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 17 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: E2 17 00 7A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [21:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:23:16]wFMCommunicate OK [21:23:16]CreateOFDProtocolMessage done [21:23:16]OFDSenderStorePacket 67381 [21:23:16]StoreOFDPacket docnum=67381 [21:23: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 39 01 00 00 28 F4 31 01 03 AE 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 35 07 01 00 35 04 06 00 1D AD 22 93 0B 5A 91 0B 5C 77 B8 26 D9 89 [21:23:16]CheckFolder [21:23:16]dirname=/storage/ofd_packets [21:23:16]CheckFolder done [21:23:16]ProducePacketName [21:23:16]name=ofd_packets/00067381 [21:23:16]NVStorageSaveData ofd_packets/00067381 [21:23:16]File name is /storage/ofd_packets/00067381 [21:23:16]Write 343 bytes [21:23:16]NVStorageSaveData done [21:23:16]OFDSenderStorePacket done [21:23:16]KKMCreateOFDPacket done [21:23:16]NVStorageSaveData kkm_last_timestamp [21:23:16]File name is /storage/kkm_last_timestamp [21:23:16]Write 4 bytes [21:23:16]NVStorageSaveData done [21:23:16]ExternCall_PrintAddStr [21:23:16]wPrintStart [21:23:16]Write to MH i2c: 01 00 00 7B 31 AC [21:23:16]Write i2c OK [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 07 00 [21:23:16]MH_I2C_Read... [21:23:16]Read from MH i2c: 01 07 00 7B 31 00 00 00 00 00 FF 0F C1 [21:23:16]RasterBufferAndPrint [21:23:16]line Счет N : (3)12082 [21:23:16]line ИНН: 02508201610067 [21:23:16]line Контрольно-Кассовый Чек [21:23:16]line ПРОДАЖА [21:23:16]line Товар: 4870022003305 [21:23:16]line Напиток Gorilla эн нат ж/б 0,5/0,45л [21:23:16]line 1.000 * 105.00 [21:23:16]line = 105.00 [21:23:16]line НДС 12% НСП 1% [21:23:16]line > о реализуемом товаре [21:23:16]line ИТОГО: 105.00 [21:23:16]line НСП 1% : 0.93 [21:23:16]line НДС 12% : 11.15 [21:23:16]line Наличными: 105.00 [21:23:16]line Безнал.: 0.00 [21:23:16]line Место: АЗС № 91 "Партнер Нефть" [21:23:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:23:16]line СНО: Общий режим [21:23:16]line Чек 199 15.05.2024 21:23 [21:23:16]line Смена: 356 ФФД: 1.0 [21:23:16]line ЗНМ: 0300000119 [21:23:16]line РНМ: 0000000000091845 [21:23:16]line Версия ККМ: 001 [21:23:16]line ФМ: 0000000000871829 [21:23:16]line ФД: 67381 [21:23:16]line ФПД: 32629446609754 [21:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212317&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67381&fm=32629446609754&tin=02508201610067®Number=0000000000091845&sum=10500 [21:23:16]OFD Sender: Processing packet 67381 [packets to send 35, broken 34] [21:23:16]ProducePacketName [21:23:16]name=ofd_packets/00067381 [21:23:16]OFD Sender: To server: pG, [21:23:16]CommunicateWithHost lk.salyk.kg:30040 [21:23:16]ConnectInit lk.salyk.kg [21:23:16]line 0 [21:23:16]written 0, free lines is 4095 [21:23:17]Connected sock=10 [21:23: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 39 01 00 00 28 F4 31 01 03 AE 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 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 27 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 35 07 01 00 35 04 06 00 1D AD 22 93 0B 5A 91 0B 5C 77 B8 26 D9 89 [21:23: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 73 60 47 00 63 8D 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 35 07 01 00 F4 03 04 00 A1 CF 44 66 B6 04 01 00 00 57 AE EE 31 6E 14 81 6F [21:23:17]CommunicateWithHost err = 0 [21:23:17]CheckOFDResponse [21:23:17]1017 (14) - 77093643461234 [21:23:17]1041 (16) - 0000000000871829 [21:23:17]1040 (4) - 67381 [21:23:17]1012 (4) - 15.05.2024 15:07 [21:23:17]1206 (1) - 0 [21:23:17]OFD Sender: Remove packet 67381 [21:23:17]ProducePacketName [21:23:17]name=ofd_packets/00067381 [21:23:17]NVStorageDeleteData [21:23:17]Write to MH i2c: 01 00 00 A3 31 D4 [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: 01 07 00 A3 31 00 00 00 00 00 D7 0C BE [21:23:17]RasterBufferAndPrint [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]line [21:23:17]written 0, free lines is 3292 [21:23:17]MH_Cut [21:23:17]Write to MH i2c: D1 01 00 AA 31 01 AD [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: D1 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: D1 01 00 [21:23:17]MH_I2C_Read... [21:23:17]Read from MH i2c: D1 01 00 AA 31 00 AC [21:23:17]Write to MH i2c: 01 00 00 AB 31 DC [21:23:17]Write i2c OK [21:23:17]MH_I2C_Read... [21:23:17]OFD Sender: No OFD packet to send [21:23:18]*** Cut start [21:23:18]*** Purtial cut [21:23:18]*** Stage 1: CUTSNS_PIN = 1 [21:23:18]Read from MH i2c: 01 [21:23:18]MH_I2C_Read... [21:23:18]*** Stop cut motor [21:23:18]*** Cut end [21:23:18]Read from MH i2c: 01 07 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: 01 07 00 AB 31 00 00 00 00 00 FF 0F F1 [21:23:18]process_action close_receipt done [21:23:18]requested_data is exist [21:23:18]produce_requested_data [21:23:18]requested_item fm.sn is exist - process it [21:23:18]wFMCommunicate request_size=4 [21:23:18]MH_SAM_APDU [21:23:18]CAPDU: 80 11 00 00 [21:23:18]Write to MH i2c: E2 08 00 AC 31 80 11 00 00 00 00 00 00 57 [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:18]Read from MH i2c: E2 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 17 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 17 00 AC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [21:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:23:18]wFMCommunicate OK [21:23:18]requested_item fd.num is exist - process it [21:23:18]SAM_PROTO_GetFieldsCounters [21:23:18]wFMCommunicate request_size=4 [21:23:18]MH_SAM_APDU [21:23:18]CAPDU: 80 13 00 00 [21:23:18]Write to MH i2c: E2 08 00 AD 31 80 13 00 00 00 00 00 00 5A [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:18]Read from MH i2c: E2 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 62 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 62 00 AD 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 35 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:23: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 35 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:18]wFMCommunicate OK [21:23:18]SAM_PROTO_GetFieldsCounters done [21:23:18]requested_item shift.num is exist - process it [21:23:18]requested_item shift.opened is exist - process it [21:23:18]req_shift_opened [21:23:18]FM_GetShiftState [21:23:18]SAM_PROTO_GetShiftState [21:23:18]wFMCommunicate request_size=4 [21:23:18]MH_SAM_APDU [21:23:18]CAPDU: 80 13 01 00 [21:23:18]Write to MH i2c: E2 08 00 AE 31 80 13 01 00 00 00 00 00 5C [21:23:18]Write i2c OK [21:23:18]MH_I2C_Read... [21:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:18]Read from MH i2c: E2 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 0E 00 [21:23:18]MH_I2C_Read... [21:23:18]Read from MH i2c: E2 0E 00 AE 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 07 [21:23:18]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:23:18]wFMCommunicate OK [21:23:18]SAM_PROTO_GetShiftState done [21:23:18]FM_GetShiftState done [21:23:18]req_shift_opened done [21:23:18]requested_item shift.open_date is exist - process it [21:23:18]req_shift_open_date [21:23:18]req_shift_open_date done [21:23:18]produce_requested_data done [21:23:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67381,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:23:18]process_action_free close_receipt [21:23:18]json_value_free [21:23:18]json_value_free done [21:23:18]process_json_proto returns [21:23:18]Send response to host [21:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67381,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:23:18]free response buf [21:23:18]execute_script done [21:23:18]execute_script returns [21:23:18]free content buf [21:23:18]Sock 9.Close socket [21:23:18]Sock 9.Thread stoped [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:54]accept exits with 7 [21:24:54]New connection [21:24:54]New thread 3067174244 created [21:24:54]Thread 3067030884 joined [21:24:54]Waiting for new connection... [21:24:54] Sock 7.Parse request [21:24:54]Sock 7.Check first char [21:24:54]Sock 7.First char is OK [21:24:54]request: POST /json_proto HTTP/1.0 [21:24:54]Method: POST [21:24:54]URL: /json_proto [21:24:54]Method is POST - this is cgi request [21:24:54]url: /json_proto [21:24:54]query_string will be loaded in cgi processing [21:24:54]execute_cgi json_proto POST (null) [21:24:54]execute_cgi path=json_proto method=POST [21:24:54]POST find Content-Length [21:24:54]Host: 172.17.41.195:8080 [21:24:54]Content-Length: 803 [21:24:54]Content-Type: application/json [21:24:54] [21:24:54]POST finish read [21:24:54]Found Content-Length = 803 [21:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507360", "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" : 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" ] } } [21:24:54]execute_script... [21:24: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)507360", "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" : 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" ] } } [21:24:54]POST & json_proto [21:24:54]process_json_proto [21:24:54]json parsed OK: [21:24:54]protocol is kg_v1.0 [21:24:54]action value=close_receipt [21:24:54]process_action close_receipt [21:24:54]cmd_close_receipt [21:24:54]MH_GetDate [21:24:54]Write to MH i2c: F0 00 00 AF 31 CF [21:24:54]Write i2c OK [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: F0 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: F0 09 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: F0 09 00 AF 31 00 28 28 45 66 FC 21 6F 64 C3 [21:24:54]GetLastDocTimeStamp 1715808197 [21:24:54]current date 1715808296 [21:24:54]FM_GetShiftState [21:24:54]SAM_PROTO_GetShiftState [21:24:54]wFMCommunicate request_size=4 [21:24:54]MH_SAM_APDU [21:24:54]CAPDU: 80 13 01 00 [21:24:54]Write to MH i2c: E2 08 00 B0 31 80 13 01 00 00 00 00 00 5E [21:24:54]Write i2c OK [21:24:54]MH_I2C_Read... [21:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:54]Read from MH i2c: E2 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 0E 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 0E 00 B0 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [21:24:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:24:54]wFMCommunicate OK [21:24:54]SAM_PROTO_GetShiftState done [21:24:54]FM_GetShiftState done [21:24:54]opened in 1715732471 [21:24:54]opened+sec_in_day 1715818871 [21:24:54]quantity*price = 150032 [21:24:54]sum+1 = 150034 [21:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 200 15.05.2024 21:24 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67382 ФПД: 36730509630591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212456&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67382&fm=36730509630591&tin=02508201610067®Number=0000000000091845&sum=150033 [21:24:55]StoreToDocumentArchive [21:24:55]shift 356 fd 67382 [21:24:55]save to /storage/0356/doc_00067382 [21:24:55]save last doc name /storage/0356/doc_00067382 to /storage/kkm_last_doc_name [21:24:55]save OK [21:24:55]Clear old archive folders... [21:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:55]tlvbuf is 00B75530 [21:24:55]SAM_PROTO_ClearQueue [21:24:55]wFMCommunicate request_size=4 [21:24:55]MH_SAM_APDU [21:24:55]CAPDU: 80 09 00 00 [21:24:55]Write to MH i2c: E2 08 00 BD 31 80 09 00 00 00 00 00 00 60 [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [21:24:55]RAPDU: 90 00 [21:24:55]wFMCommunicate OK [21:24:55]SAM_PROTO_ClearQueue done [21:24:55]KKMCreateOFDPacket [21:24:55]OFDProtocolAddRootSTLVToBuf [21:24:55]FM_MakeSignedData [21:24:55]FM_MakeSignedData [21:24:55]SAM_PROTO_SignData [21:24:55]wFMCommunicate request_size=4 [21:24:55]MH_SAM_APDU [21:24:55]CAPDU: 80 0D 01 02 [21:24:55]Write to MH i2c: E2 08 00 BE 31 80 0D 01 02 00 00 00 00 68 [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [21:24:55]RAPDU: 90 00 [21:24:55]wFMCommunicate OK [21:24:55]wFMCommunicate request_size=255 [21:24:55]MH_SAM_APDU [21:24:55]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 C8 00 00 00 F4 03 04 00 28 28 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 36 07 01 00 35 04 06 00 21 [21:24:55]Write to MH i2c: E2 02 01 BF 31 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 C8 00 00 00 F4 03 04 00 28 28 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 36 07 01 00 35 04 06 00 21 00 00 0A [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [21:24:55]RAPDU: 90 00 [21:24:55]wFMCommunicate OK [21:24:55]wFMCommunicate request_size=10 [21:24:55]MH_SAM_APDU [21:24:55]CAPDU: 80 0D 02 02 05 67 FC FA 9C 7F [21:24:55]Write to MH i2c: E2 0D 00 C0 31 80 0D 02 02 05 00 67 FC FA 9C 7F 00 00 ED [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [21:24:55]RAPDU: 90 00 [21:24:55]wFMCommunicate OK [21:24:55]wFMCommunicate request_size=4 [21:24:55]MH_SAM_APDU [21:24:55]CAPDU: 80 0D 03 02 [21:24:55]Write to MH i2c: E2 08 00 C1 31 80 0D 03 02 00 00 00 00 6D [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 0B 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 0B 00 C1 31 00 10 15 C7 0E 17 D8 88 2B 90 00 0A [21:24:55]RAPDU: 10 15 C7 0E 17 D8 88 2B 90 00 [21:24:55]wFMCommunicate OK [21:24:55]SAM_PROTO_SignData done [21:24:55]FM_MakeSignedData done [21:24:55]CreateOFDProtocolMessage [21:24:55]wFMCommunicate request_size=4 [21:24:55]MH_SAM_APDU [21:24:55]CAPDU: 80 11 00 00 [21:24:55]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:55]Read from MH i2c: E2 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: E2 17 00 [21:24:55]MH_I2C_Read... [21:24:55]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 [21:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:24:55]wFMCommunicate OK [21:24:55]CreateOFDProtocolMessage done [21:24:55]OFDSenderStorePacket 67382 [21:24:55]StoreOFDPacket docnum=67382 [21:24:55]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 BE AD 07 01 C5 E6 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 C8 00 00 00 F4 03 04 00 28 28 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 36 07 01 00 35 04 06 00 21 67 FC FA 9C 7F 10 15 C7 0E 17 D8 88 2B [21:24:55]CheckFolder [21:24:55]dirname=/storage/ofd_packets [21:24:55]CheckFolder done [21:24:55]ProducePacketName [21:24:55]name=ofd_packets/00067382 [21:24:55]NVStorageSaveData ofd_packets/00067382 [21:24:55]File name is /storage/ofd_packets/00067382 [21:24:55]Write 301 bytes [21:24:55]NVStorageSaveData done [21:24:55]OFDSenderStorePacket done [21:24:55]KKMCreateOFDPacket done [21:24:55]NVStorageSaveData kkm_last_timestamp [21:24:55]File name is /storage/kkm_last_timestamp [21:24:55]Write 4 bytes [21:24:55]NVStorageSaveData done [21:24:55]ExternCall_PrintAddStr [21:24:55]wPrintStart [21:24:55]Write to MH i2c: 01 00 00 C3 31 F4 [21:24:55]Write i2c OK [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: 01 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: 01 07 00 [21:24:55]MH_I2C_Read... [21:24:55]Read from MH i2c: 01 07 00 C3 31 00 00 00 00 00 FF 0F 09 [21:24:55]RasterBufferAndPrint [21:24:55]line Счет N : (1)507360 [21:24:55]line ИНН: 02508201610067 [21:24:55]line Контрольно-Кассовый Чек [21:24:55]line ПРОДАЖА [21:24:55]line ТРК (МРК, ГНК) : 43 [21:24:55]line Товар: 2710124130 [21:24:55]line Аи-92-К-5 [21:24:55]line 22.460 * 66.80 [21:24:55]line = 1500.33 [21:24:55]line НДС 12% НСП 1% [21:24:55]line > о реализуемом товаре [21:24:55]line ИТОГО: 1500.33 [21:24:55]line НСП 1% : 13.28 [21:24:55]line НДС 12% : 159.33 [21:24:55]line Наличными: 0.00 [21:24:55]line Безнал.: 1500.33 [21:24:55]line Место: АЗС № 91 "Партнер Нефть" [21:24:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:24:55]line СНО: Общий режим [21:24:55]line Чек 200 15.05.2024 21:24 [21:24:55]line Смена: 356 ФФД: 1.0 [21:24:55]line ЗНМ: 0300000119 [21:24:55]line РНМ: 0000000000091845 [21:24:55]line Версия ККМ: 001 [21:24:55]line Платежная система: O! деньги [21:24:55]line ФМ: 0000000000871829 [21:24:55]line ФД: 67382 [21:24:55]line ФПД: 36730509630591 [21:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212456&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67382&fm=36730509630591&tin=02508201610067®Number=0000000000091845&sum=150033 [21:24:55]written 0, free lines is 4095 [21:24:55]OFD Sender: Processing packet 67382 [packets to send 35, broken 34] [21:24:55]ProducePacketName [21:24:55]name=ofd_packets/00067382 [21:24:55]OFD Sender: To server: pG, [21:24:55]CommunicateWithHost lk.salyk.kg:30040 [21:24:55]ConnectInit lk.salyk.kg [21:24:56]Connected sock=9 [21:24: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 BE AD 07 01 C5 E6 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 C8 00 00 00 F4 03 04 00 28 28 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 36 07 01 00 35 04 06 00 21 67 FC FA 9C 7F 10 15 C7 0E 17 D8 88 2B [21:24: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 EE CD 47 00 4C 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 36 07 01 00 F4 03 04 00 04 D0 44 66 B6 04 01 00 00 9D F7 00 09 DB 18 29 06 [21:24:56]CommunicateWithHost err = 0 [21:24:56]CheckOFDResponse [21:24:56]1017 (14) - 77093643461234 [21:24:56]1041 (16) - 0000000000871829 [21:24:56]1040 (4) - 67382 [21:24:56]1012 (4) - 15.05.2024 15:08 [21:24:56]1206 (1) - 0 [21:24:56]OFD Sender: Remove packet 67382 [21:24:56]ProducePacketName [21:24:56]name=ofd_packets/00067382 [21:24:56]NVStorageDeleteData [21:24:56]Write to MH i2c: 01 00 00 EC 31 1D [21:24:56]Write i2c OK [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: 01 [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: 01 07 00 [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: 01 07 00 EC 31 00 00 00 00 00 E7 0C 17 [21:24:56]RasterBufferAndPrint [21:24:56]line [21:24:56]line [21:24:56]line [21:24:56]line [21:24:56]line [21:24:56]written 0, free lines is 3311 [21:24:56]MH_Cut [21:24:56]Write to MH i2c: D1 01 00 F3 31 01 F6 [21:24:56]Write i2c OK [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: D1 [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: D1 01 00 [21:24:56]MH_I2C_Read... [21:24:56]Read from MH i2c: D1 01 00 F3 31 00 F5 [21:24:56]Write to MH i2c: 01 00 00 F4 31 25 [21:24:56]Write i2c OK [21:24:56]MH_I2C_Read... [21:24:56]OFD Sender: No OFD packet to send [21:24:57]*** Cut start [21:24:57]*** Purtial cut [21:24:57]*** CUTSNS_PIN = 0 [21:24:57]*** Stage 1: CUTSNS_PIN = 1 [21:24:59]Read from MH i2c: 01 [21:24:59]MH_I2C_Read... [21:24:59]*** Stop cut motor [21:24:59]*** Cut end [21:24:59]Read from MH i2c: 01 07 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: 01 07 00 F4 31 00 00 00 00 00 FF 0F 3A [21:24:59]process_action close_receipt done [21:24:59]requested_data is exist [21:24:59]produce_requested_data [21:24:59]requested_item fm.sn is exist - process it [21:24:59]wFMCommunicate request_size=4 [21:24:59]MH_SAM_APDU [21:24:59]CAPDU: 80 11 00 00 [21:24:59]Write to MH i2c: E2 08 00 F5 31 80 11 00 00 00 00 00 00 A0 [21:24:59]Write i2c OK [21:24:59]MH_I2C_Read... [21:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:59]Read from MH i2c: E2 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 17 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 17 00 F5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [21:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:24:59]wFMCommunicate OK [21:24:59]requested_item fd.num is exist - process it [21:24:59]SAM_PROTO_GetFieldsCounters [21:24:59]wFMCommunicate request_size=4 [21:24:59]MH_SAM_APDU [21:24:59]CAPDU: 80 13 00 00 [21:24:59]Write to MH i2c: E2 08 00 F6 31 80 13 00 00 00 00 00 00 A3 [21:24:59]Write i2c OK [21:24:59]MH_I2C_Read... [21:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:59]Read from MH i2c: E2 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 62 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 62 00 F6 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 36 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [21:24: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 36 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:59]wFMCommunicate OK [21:24:59]SAM_PROTO_GetFieldsCounters done [21:24:59]requested_item shift.num is exist - process it [21:24:59]requested_item shift.opened is exist - process it [21:24:59]req_shift_opened [21:24:59]FM_GetShiftState [21:24:59]SAM_PROTO_GetShiftState [21:24:59]wFMCommunicate request_size=4 [21:24:59]MH_SAM_APDU [21:24:59]CAPDU: 80 13 01 00 [21:24:59]Write to MH i2c: E2 08 00 F7 31 80 13 01 00 00 00 00 00 A5 [21:24:59]Write i2c OK [21:24:59]MH_I2C_Read... [21:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:59]Read from MH i2c: E2 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 0E 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 0E 00 F7 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 50 [21:24:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:24:59]wFMCommunicate OK [21:24:59]SAM_PROTO_GetShiftState done [21:24:59]FM_GetShiftState done [21:24:59]req_shift_opened done [21:24:59]requested_item shift.open_date is exist - process it [21:24:59]req_shift_open_date [21:24:59]req_shift_open_date done [21:24:59]produce_requested_data done [21:24:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67382,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:24:59]process_action_free close_receipt [21:24:59]json_value_free [21:24:59]json_value_free done [21:24:59]process_json_proto returns [21:24:59]Send response to host [21:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67382,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:24:59]free response buf [21:24:59]execute_script done [21:24:59]execute_script returns [21:24:59]free content buf [21:24:59]Sock 7.Close socket [21:24:59]Sock 7.Thread stoped [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:43]accept exits with 10 [21:28:43]New connection [21:28:43]New thread 3067030884 created [21:28:43]Thread 3067174244 joined [21:28:43]Waiting for new connection... [21:28:43] Sock 10.Parse request [21:28:43]Sock 10.Check first char [21:28:43]Sock 10.First char is OK [21:28:43]request: POST /json_proto HTTP/1.0 [21:28:43]Method: POST [21:28:43]URL: /json_proto [21:28:43]Method is POST - this is cgi request [21:28:43]url: /json_proto [21:28:43]query_string will be loaded in cgi processing [21:28:43]execute_cgi json_proto POST (null) [21:28:43]execute_cgi path=json_proto method=POST [21:28:43]POST find Content-Length [21:28:43]Host: 172.17.41.195:8080 [21:28:43]Content-Length: 816 [21:28:43]Content-Type: application/json [21:28:43] [21:28:43]POST finish read [21:28:43]Found Content-Length = 816 [21:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507361", "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" ] } } [21:28:43]execute_script... [21:28: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)507361", "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" ] } } [21:28:43]POST & json_proto [21:28:43]process_json_proto [21:28:43]json parsed OK: [21:28:43]protocol is kg_v1.0 [21:28:43]action value=close_receipt [21:28:43]process_action close_receipt [21:28:43]cmd_close_receipt [21:28:43]MH_GetDate [21:28:43]Write to MH i2c: F0 00 00 F8 31 18 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: F0 09 00 F8 31 00 0E 29 45 66 FC 21 6F 64 F3 [21:28:43]GetLastDocTimeStamp 1715808296 [21:28:43]current date 1715808526 [21:28:43]FM_GetShiftState [21:28:43]SAM_PROTO_GetShiftState [21:28:43]wFMCommunicate request_size=4 [21:28:43]MH_SAM_APDU [21:28:43]CAPDU: 80 13 01 00 [21:28:43]Write to MH i2c: E2 08 00 F9 31 80 13 01 00 00 00 00 00 A7 [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:43]Read from MH i2c: E2 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: E2 0E 00 F9 31 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 52 [21:28:43]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:28:43]wFMCommunicate OK [21:28:43]SAM_PROTO_GetShiftState done [21:28:43]FM_GetShiftState done [21:28:43]opened in 1715732471 [21:28:43]opened+sec_in_day 1715818871 [21:28:43]quantity*price = 50033 [21:28:43]sum+1 = 50034 [21:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 201 15.05.2024 21:28 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67383 ФПД: 169240331346219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67383&fm=169240331346219&tin=02508201610067®Number=0000000000091845&sum=50033 [21:28:44]StoreToDocumentArchive [21:28:44]shift 356 fd 67383 [21:28:44]save to /storage/0356/doc_00067383 [21:28:44]save last doc name /storage/0356/doc_00067383 to /storage/kkm_last_doc_name [21:28:44]save OK [21:28:44]Clear old archive folders... [21:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:44]tlvbuf is 00B3B0F0 [21:28:44]SAM_PROTO_ClearQueue [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 09 00 00 [21:28:44]Write to MH i2c: E2 08 00 06 32 80 09 00 00 00 00 00 00 AA [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [21:28:44]RAPDU: 90 00 [21:28:44]wFMCommunicate OK [21:28:44]SAM_PROTO_ClearQueue done [21:28:44]KKMCreateOFDPacket [21:28:44]OFDProtocolAddRootSTLVToBuf [21:28:44]FM_MakeSignedData [21:28:44]FM_MakeSignedData [21:28:44]SAM_PROTO_SignData [21:28:44]wFMCommunicate request_size=4 [21:28:44]MH_SAM_APDU [21:28:44]CAPDU: 80 0D 01 02 [21:28:44]Write to MH i2c: E2 08 00 07 32 80 0D 01 02 00 00 00 00 B2 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:44]Read from MH i2c: E2 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 [21:28:44]MH_I2C_Read... [21:28:44]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [21:28:44]RAPDU: 90 00 [21:28:44]wFMCommunicate OK [21:28:44]wFMCommunicate request_size=255 [21:28:44]MH_SAM_APDU [21:28: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 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 C9 00 00 00 F4 03 04 00 0E 29 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 37 07 01 00 35 04 06 00 99 [21:28:44]Write to MH i2c: E2 02 01 08 32 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 C9 00 00 00 F4 03 04 00 0E 29 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 37 07 01 00 35 04 06 00 99 00 00 67 [21:28:44]Write i2c OK [21:28:44]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=10 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 02 02 05 EC 55 D4 E1 2B [21:28:45]Write to MH i2c: E2 0D 00 09 32 80 0D 02 02 05 00 EC 55 D4 E1 2B 00 00 E0 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 03 00 09 32 00 90 00 AF [21:28:45]RAPDU: 90 00 [21:28:45]wFMCommunicate OK [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 0D 03 02 [21:28:45]Write to MH i2c: E2 08 00 0A 32 80 0D 03 02 00 00 00 00 B7 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 0B 00 0A 32 00 7B CA B5 A2 76 B6 D6 63 90 00 B9 [21:28:45]RAPDU: 7B CA B5 A2 76 B6 D6 63 90 00 [21:28:45]wFMCommunicate OK [21:28:45]SAM_PROTO_SignData done [21:28:45]FM_MakeSignedData done [21:28:45]CreateOFDProtocolMessage [21:28:45]wFMCommunicate request_size=4 [21:28:45]MH_SAM_APDU [21:28:45]CAPDU: 80 11 00 00 [21:28:45]Write to MH i2c: E2 08 00 0B 32 80 11 00 00 00 00 00 00 B7 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:45]Read from MH i2c: E2 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: E2 17 00 0B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [21:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:28:45]wFMCommunicate OK [21:28:45]CreateOFDProtocolMessage done [21:28:45]OFDSenderStorePacket 67383 [21:28:45]StoreOFDPacket docnum=67383 [21:28: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 71 85 07 01 CF 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 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 C9 00 00 00 F4 03 04 00 0E 29 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 37 07 01 00 35 04 06 00 99 EC 55 D4 E1 2B 7B CA B5 A2 76 B6 D6 63 [21:28:45]CheckFolder [21:28:45]dirname=/storage/ofd_packets [21:28:45]CheckFolder done [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00067383 [21:28:45]NVStorageSaveData ofd_packets/00067383 [21:28:45]File name is /storage/ofd_packets/00067383 [21:28:45]Write 301 bytes [21:28:45]NVStorageSaveData done [21:28:45]OFDSenderStorePacket done [21:28:45]KKMCreateOFDPacket done [21:28:45]NVStorageSaveData kkm_last_timestamp [21:28:45]File name is /storage/kkm_last_timestamp [21:28:45]Write 4 bytes [21:28:45]NVStorageSaveData done [21:28:45]ExternCall_PrintAddStr [21:28:45]wPrintStart [21:28:45]Write to MH i2c: 01 00 00 0C 32 3E [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 0C 32 00 00 00 00 00 FF 0F 53 [21:28:45]RasterBufferAndPrint [21:28:45]line Счет N : (1)507361 [21:28:45]line ИНН: 02508201610067 [21:28:45]line Контрольно-Кассовый Чек [21:28:45]line ПРОДАЖА [21:28:45]line ТРК (МРК, ГНК) : 33 [21:28:45]line Товар: 2710124130 [21:28:45]line Аи-92-К-5 [21:28:45]line 7.490 * 66.80 [21:28:45]line = 500.33 [21:28:45]line НДС 12% НСП 1% [21:28:45]line > о реализуемом товаре [21:28:45]line ИТОГО: 500.33 [21:28:45]line НСП 1% : 4.43 [21:28:45]line НДС 12% : 53.13 [21:28:45]line Наличными: 0.00 [21:28:45]line Безнал.: 500.33 [21:28:45]line Место: АЗС № 91 "Партнер Нефть" [21:28:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:28:45]line СНО: Общий режим [21:28:45]line Чек 201 15.05.2024 21:28 [21:28:45]line Смена: 356 ФФД: 1.0 [21:28:45]line ЗНМ: 0300000119 [21:28:45]line РНМ: 0000000000091845 [21:28:45]line Версия ККМ: 001 [21:28:45]line Платежная система: Бакай Банк [21:28:45]line ФМ: 0000000000871829 [21:28:45]line ФД: 67383 [21:28:45]line ФПД: 169240331346219 [21:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T212846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67383&fm=169240331346219&tin=02508201610067®Number=0000000000091845&sum=50033 [21:28:45]written 0, free lines is 4095 [21:28:45]OFD Sender: Processing packet 67383 [packets to send 35, broken 34] [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00067383 [21:28:45]OFD Sender: To server: pG, [21:28:45]CommunicateWithHost lk.salyk.kg:30040 [21:28:45]ConnectInit lk.salyk.kg [21:28:45]Write to MH i2c: 01 00 00 35 32 67 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: 01 07 00 35 32 00 00 00 00 00 D7 0C 51 [21:28:45]RasterBufferAndPrint [21:28:45]line [21:28:45]line [21:28:45]line [21:28:45]line [21:28:45]line [21:28:45]Connected sock=9 [21:28: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 71 85 07 01 CF 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 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 C9 00 00 00 F4 03 04 00 0E 29 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 37 07 01 00 35 04 06 00 99 EC 55 D4 E1 2B 7B CA B5 A2 76 B6 D6 63 [21:28:45]written 0, free lines is 3309 [21:28:45]MH_Cut [21:28:45]Write to MH i2c: D1 01 00 3C 32 01 40 [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: D1 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: D1 01 00 [21:28:45]MH_I2C_Read... [21:28:45]Read from MH i2c: D1 01 00 3C 32 00 3F [21:28:45]Write to MH i2c: 01 00 00 3D 32 6F [21:28:45]Write i2c OK [21:28:45]MH_I2C_Read... [21:28: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 7C F3 47 00 E0 DE 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 37 07 01 00 F4 03 04 00 EA D0 44 66 B6 04 01 00 00 81 21 87 6D AB 15 78 72 [21:28:45]CommunicateWithHost err = 0 [21:28:45]CheckOFDResponse [21:28:45]1017 (14) - 77093643461234 [21:28:45]1041 (16) - 0000000000871829 [21:28:45]1040 (4) - 67383 [21:28:45]1012 (4) - 15.05.2024 15:12 [21:28:45]1206 (1) - 0 [21:28:45]OFD Sender: Remove packet 67383 [21:28:45]ProducePacketName [21:28:45]name=ofd_packets/00067383 [21:28:45]NVStorageDeleteData [21:28:46]OFD Sender: No OFD packet to send [21:28:46]*** Cut start [21:28:46]*** Purtial cut [21:28:46]*** Stage 1: CUTSNS_PIN = 1 [21:28:46]Read from MH i2c: 01 [21:28:46]MH_I2C_Read... [21:28:46]*** Stop cut motor [21:28:46]*** Cut end [21:28:46]Read from MH i2c: 01 07 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: 01 07 00 3D 32 00 00 00 00 00 FF 0F 84 [21:28:46]process_action close_receipt done [21:28:46]requested_data is exist [21:28:46]produce_requested_data [21:28:46]requested_item fm.sn is exist - process it [21:28:46]wFMCommunicate request_size=4 [21:28:46]MH_SAM_APDU [21:28:46]CAPDU: 80 11 00 00 [21:28:46]Write to MH i2c: E2 08 00 3E 32 80 11 00 00 00 00 00 00 EA [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:46]Read from MH i2c: E2 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: E2 17 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: E2 17 00 3E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [21:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:28:46]wFMCommunicate OK [21:28:46]requested_item fd.num is exist - process it [21:28:46]SAM_PROTO_GetFieldsCounters [21:28:46]wFMCommunicate request_size=4 [21:28:46]MH_SAM_APDU [21:28:46]CAPDU: 80 13 00 00 [21:28:46]Write to MH i2c: E2 08 00 3F 32 80 13 00 00 00 00 00 00 ED [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:46]Read from MH i2c: E2 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: E2 62 00 [21:28:46]MH_I2C_Read... [21:28:46]Read from MH i2c: E2 62 00 3F 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 37 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [21:28: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 37 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:46]wFMCommunicate OK [21:28:46]SAM_PROTO_GetFieldsCounters done [21:28:46]requested_item shift.num is exist - process it [21:28:46]requested_item shift.opened is exist - process it [21:28:46]req_shift_opened [21:28:46]FM_GetShiftState [21:28:46]SAM_PROTO_GetShiftState [21:28:46]wFMCommunicate request_size=4 [21:28:46]MH_SAM_APDU [21:28:46]CAPDU: 80 13 01 00 [21:28:46]Write to MH i2c: E2 08 00 40 32 80 13 01 00 00 00 00 00 EF [21:28:46]Write i2c OK [21:28:46]MH_I2C_Read... [21:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:47]Read from MH i2c: E2 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 [21:28:47]MH_I2C_Read... [21:28:47]Read from MH i2c: E2 0E 00 40 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9A [21:28:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:28:47]wFMCommunicate OK [21:28:47]SAM_PROTO_GetShiftState done [21:28:47]FM_GetShiftState done [21:28:47]req_shift_opened done [21:28:47]requested_item shift.open_date is exist - process it [21:28:47]req_shift_open_date [21:28:47]req_shift_open_date done [21:28:47]produce_requested_data done [21:28:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67383,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:28:47]process_action_free close_receipt [21:28:47]json_value_free [21:28:47]json_value_free done [21:28:47]process_json_proto returns [21:28:47]Send response to host [21:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67383,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:28:47]free response buf [21:28:47]execute_script done [21:28:47]execute_script returns [21:28:47]free content buf [21:28:47]Sock 10.Close socket [21:28:47]Sock 10.Thread stoped [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:39]accept exits with 7 [21:32:39]New connection [21:32:39]New thread 3067174244 created [21:32:39]Thread 3067030884 joined [21:32:39]Waiting for new connection... [21:32:39] Sock 7.Parse request [21:32:39]Sock 7.Check first char [21:32:39]Sock 7.First char is OK [21:32:39]request: POST /json_proto HTTP/1.0 [21:32:39]Method: POST [21:32:39]URL: /json_proto [21:32:39]Method is POST - this is cgi request [21:32:39]url: /json_proto [21:32:39]query_string will be loaded in cgi processing [21:32:39]execute_cgi json_proto POST (null) [21:32:39]execute_cgi path=json_proto method=POST [21:32:39]POST find Content-Length [21:32:39]Host: 172.17.41.195:8080 [21:32:39]Content-Length: 215 [21:32:39]Content-Type: application/json [21:32:39] [21:32:39]POST finish read [21:32:39]Found Content-Length = 215 [21:32:39]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" ] } } [21:32:39]execute_script... [21:32:39]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" ] } } [21:32:39]POST & json_proto [21:32:39]process_json_proto [21:32:39]json parsed OK: [21:32:39]protocol is kg_v1.0 [21:32:39]action value=get_value [21:32:39]process_action get_value [21:32:39]cmd_get_value [21:32:39]process_action get_value done [21:32:39]requested_data is exist [21:32:39]produce_requested_data [21:32:39]requested_item kkm.sn is exist - process it [21:32:39]requested_item kkm.ver is exist - process it [21:32:39]requested_item fm.sn is exist - process it [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 11 00 00 [21:32:39]Write to MH i2c: E2 08 00 41 32 80 11 00 00 00 00 00 00 ED [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 17 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 17 00 41 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [21:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:32:39]wFMCommunicate OK [21:32:39]requested_item fd.num is exist - process it [21:32:39]SAM_PROTO_GetFieldsCounters [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 13 00 00 [21:32:39]Write to MH i2c: E2 08 00 42 32 80 13 00 00 00 00 00 00 F0 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 62 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 62 00 42 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 37 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:32: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 37 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:39]wFMCommunicate OK [21:32:39]SAM_PROTO_GetFieldsCounters done [21:32:39]requested_item shift.num is exist - process it [21:32:39]requested_item shift.opened is exist - process it [21:32:39]req_shift_opened [21:32:39]FM_GetShiftState [21:32:39]SAM_PROTO_GetShiftState [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 13 01 00 [21:32:39]Write to MH i2c: E2 08 00 43 32 80 13 01 00 00 00 00 00 F2 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:39]Read from MH i2c: E2 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 0E 00 [21:32:39]MH_I2C_Read... [21:32:39]Read from MH i2c: E2 0E 00 43 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 9D [21:32:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:32:39]wFMCommunicate OK [21:32:39]SAM_PROTO_GetShiftState done [21:32:39]FM_GetShiftState done [21:32:39]req_shift_opened done [21:32:39]requested_item shift.open_date is exist - process it [21:32:39]req_shift_open_date [21:32:39]req_shift_open_date done [21:32:39]produce_requested_data done [21:32:39]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67383,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:32:39]process_action_free get_value [21:32:39]json_value_free [21:32:39]json_value_free done [21:32:39]process_json_proto returns [21:32:39]Send response to host [21:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67383,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:32:39]free response buf [21:32:39]execute_script done [21:32:39]execute_script returns [21:32:39]free content buf [21:32:39]Sock 7.Close socket [21:32:39]Sock 7.Thread stoped [21:32:39]accept exits with 9 [21:32:39]New connection [21:32:39]New thread 3067030884 created [21:32:39]Thread 3067174244 joined [21:32:39]Waiting for new connection... [21:32:39] Sock 9.Parse request [21:32:39]Sock 9.Check first char [21:32:39]Sock 9.First char is OK [21:32:39]request: POST /json_proto HTTP/1.0 [21:32:39]Method: POST [21:32:39]URL: /json_proto [21:32:39]Method is POST - this is cgi request [21:32:39]url: /json_proto [21:32:39]query_string will be loaded in cgi processing [21:32:39]execute_cgi json_proto POST (null) [21:32:39]execute_cgi path=json_proto method=POST [21:32:39]POST find Content-Length [21:32:39]Host: 172.17.41.195:8080 [21:32:39]Content-Length: 331 [21:32:39]Content-Type: application/json [21:32:39] [21:32:39]POST finish read [21:32:39]Found Content-Length = 331 [21:32:39]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" ] } } [21:32:39]execute_script... [21:32:39]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" ] } } [21:32:39]POST & json_proto [21:32:39]process_json_proto [21:32:39]json parsed OK: [21:32:39]protocol is kg_v1.0 [21:32:39]action value=get_value [21:32:39]process_action get_value [21:32:39]cmd_get_value [21:32:39]process_action get_value done [21:32:39]requested_data is exist [21:32:39]produce_requested_data [21:32:39]requested_item fm.sale.total is exist - process it [21:32:39]SAM_PROTO_GetFMData [21:32:39]wFMCommunicate request_size=4 [21:32:39]MH_SAM_APDU [21:32:39]CAPDU: 80 13 03 00 [21:32:39]Write to MH i2c: E2 08 00 44 32 80 13 03 00 00 00 00 00 F5 [21:32:39]Write i2c OK [21:32:39]MH_I2C_Read... [21:32:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:32:40]Read from MH i2c: E2 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 44 32 00 C6 04 85 04 C2 04 6E 04 04 00 6F 04 01 00 69 04 A3 00 6F 04 04 00 C7 03 01 00 B1 04 05 00 05 4E AD 1A 03 70 04 05 00 DC 44 6D BF 02 72 04 04 00 29 09 40 5B 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 76 EC 66 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 38 7F 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 D1 [21:32:40]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 6F 04 01 00 69 04 A3 00 6F 04 04 00 C7 03 01 00 B1 04 05 00 05 4E AD 1A 03 70 04 05 00 DC 44 6D BF 02 72 04 04 00 29 09 40 5B 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 76 EC 66 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 38 7F 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [21:32:40]wFMCommunicate OK [21:32:40]wFMCommunicate request_size=4 [21:32:40]MH_SAM_APDU [21:32:40]CAPDU: 80 17 00 00 [21:32:40]Write to MH i2c: E2 08 00 45 32 80 17 00 00 00 00 00 00 F7 [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:40]Read from MH i2c: E2 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 45 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 1B [21:32: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 6C 0F 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 [21:32:40]wFMCommunicate OK [21:32:40]wFMCommunicate request_size=4 [21:32:40]MH_SAM_APDU [21:32:40]CAPDU: 80 17 00 00 [21:32:40]Write to MH i2c: E2 08 00 46 32 80 17 00 00 00 00 00 00 F8 [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:40]Read from MH i2c: E2 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 [21:32:40]MH_I2C_Read... [21:32:40]Read from MH i2c: E2 FD 00 46 32 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 1F [21:32: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 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 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:32:40]wFMCommunicate OK [21:32:40]wFMCommunicate request_size=4 [21:32:40]MH_SAM_APDU [21:32:40]CAPDU: 80 17 00 00 [21:32:40]Write to MH i2c: E2 08 00 47 32 80 17 00 00 00 00 00 00 F9 [21:32:40]Write i2c OK [21:32:40]MH_I2C_Read... [21:32:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 47 32 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [21:32:41]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 [21:32:41]wFMCommunicate OK [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 17 00 00 [21:32:41]Write to MH i2c: E2 08 00 48 32 80 17 00 00 00 00 00 00 FA [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 E3 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 E3 00 48 32 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [21:32:41]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 [21:32:41]wFMCommunicate OK [21:32:41]SAM_PROTO_GetFMData done [21:32:41]requested_item fm.sale_refund.total is exist - process it [21:32:41]requested_item fm.buy.total is exist - process it [21:32:41]requested_item shift.sale.total is exist - process it [21:32:41]SAM_PROTO_GetShiftData [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 13 02 00 [21:32:41]Write to MH i2c: E2 08 00 49 32 80 13 02 00 00 00 00 00 F9 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]OFD Sender: No OFD packet to send [21:32:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 49 32 00 BB 04 AA 04 B7 04 6E 04 04 00 C9 00 00 00 69 04 9D 00 6F 04 04 00 C6 00 00 00 B1 04 04 00 67 95 9D 01 70 04 03 00 00 DF A7 72 04 03 00 67 B6 F5 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 E8 EC 2B 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 05 A9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 66 [21:32:41]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 C9 00 00 00 69 04 9D 00 6F 04 04 00 C6 00 00 00 B1 04 04 00 67 95 9D 01 70 04 03 00 00 DF A7 72 04 03 00 67 B6 F5 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 E8 EC 2B 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 05 A9 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [21:32:41]wFMCommunicate OK [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 17 00 00 [21:32:41]Write to MH i2c: E2 08 00 4A 32 80 17 00 00 00 00 00 00 FC [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:41]Read from MH i2c: E2 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: E2 FD 00 4A 32 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [21:32:41]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:32:41]wFMCommunicate OK [21:32:41]wFMCommunicate request_size=4 [21:32:41]MH_SAM_APDU [21:32:41]CAPDU: 80 17 00 00 [21:32:41]Write to MH i2c: E2 08 00 4B 32 80 17 00 00 00 00 00 00 FD [21:32:42]Write i2c OK [21:32:42]MH_I2C_Read... [21:32:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:42]Read from MH i2c: E2 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 FD 00 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 FD 00 4B 32 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [21:32:42]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:32:42]wFMCommunicate OK [21:32:42]wFMCommunicate request_size=4 [21:32:42]MH_SAM_APDU [21:32:42]CAPDU: 80 17 00 00 [21:32:42]Write to MH i2c: E2 08 00 4C 32 80 17 00 00 00 00 00 00 FE [21:32:42]Write i2c OK [21:32:42]MH_I2C_Read... [21:32:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:32:42]Read from MH i2c: E2 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 FD 00 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 FD 00 4C 32 00 00 00 EF 03 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 90 00 73 [21:32:42]RAPDU: 00 00 EF 03 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 90 00 [21:32:42]wFMCommunicate OK [21:32:42]wFMCommunicate request_size=4 [21:32:42]MH_SAM_APDU [21:32:42]CAPDU: 80 17 00 00 [21:32:42]Write to MH i2c: E2 08 00 4D 32 80 17 00 00 00 00 00 00 FF [21:32:42]Write i2c OK [21:32:42]MH_I2C_Read... [21:32:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [21:32:42]Read from MH i2c: E2 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 D8 00 [21:32:42]MH_I2C_Read... [21:32:42]Read from MH i2c: E2 D8 00 4D 32 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 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 E6 [21:32:42]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 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 [21:32:42]wFMCommunicate OK [21:32:42]SAM_PROTO_GetShiftData done [21:32:42]requested_item shift.sale.total_cash is exist - process it [21:32:42]requested_item shift.sale_refund.total is exist - process it [21:32:42]requested_item shift.sale_refund.total_cash is exist - process it [21:32:42]requested_item shift.buy.total is exist - process it [21:32:42]requested_item shift.buy.total_cash is exist - process it [21:32:42]produce_requested_data done [21:32:42]produce_requested_data return {"fm.sale.total":133324672.05,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":271046.15,"shift.sale.total_cash":110016.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:32:42]process_action_free get_value [21:32:42]json_value_free [21:32:42]json_value_free done [21:32:42]process_json_proto returns [21:32:42]Send response to host [21:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133324672.05,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":271046.15,"shift.sale.total_cash":110016.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:32:42]free response buf [21:32:42]execute_script done [21:32:42]execute_script returns [21:32:42]free content buf [21:32:42]Sock 9.Close socket [21:32:42]Sock 9.Thread stoped [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:46]accept exits with 7 [21:33:46]New connection [21:33:46]New thread 3067174244 created [21:33:46]Thread 3067030884 joined [21:33:46]Waiting for new connection... [21:33:46] Sock 7.Parse request [21:33:46]Sock 7.Check first char [21:33:46]Sock 7.First char is OK [21:33:46]request: POST /json_proto HTTP/1.0 [21:33:46]Method: POST [21:33:46]URL: /json_proto [21:33:46]Method is POST - this is cgi request [21:33:46]url: /json_proto [21:33:46]query_string will be loaded in cgi processing [21:33:46]execute_cgi json_proto POST (null) [21:33:46]execute_cgi path=json_proto method=POST [21:33:46]POST find Content-Length [21:33:46]Host: 172.17.41.195:8080 [21:33:46]Content-Length: 674 [21:33:46]Content-Type: application/json [21:33:46] [21:33:46]POST finish read [21:33:46]Found Content-Length = 674 [21:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507362", "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" : 7.370, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:46]execute_script... [21:33: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)507362", "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" : 7.370, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:46]POST & json_proto [21:33:46]process_json_proto [21:33:46]json parsed OK: [21:33:46]protocol is kg_v1.0 [21:33:46]action value=close_receipt [21:33:46]process_action close_receipt [21:33:46]cmd_close_receipt [21:33:46]MH_GetDate [21:33:46]Write to MH i2c: F0 00 00 4E 32 6F [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: F0 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: F0 09 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: F0 09 00 4E 32 00 3D 2A 45 66 FC 21 6F 64 7A [21:33:46]GetLastDocTimeStamp 1715808526 [21:33:46]current date 1715808829 [21:33:46]FM_GetShiftState [21:33:46]SAM_PROTO_GetShiftState [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 13 01 00 [21:33:46]Write to MH i2c: E2 08 00 4F 32 80 13 01 00 00 00 00 00 FE [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 0E 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 0E 00 4F 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A9 [21:33:46]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:33:46]wFMCommunicate OK [21:33:46]SAM_PROTO_GetShiftState done [21:33:46]FM_GetShiftState done [21:33:46]opened in 1715732471 [21:33:46]opened+sec_in_day 1715818871 [21:33:46]quantity*price = 55053 [21:33:46]sum+1 = 55055 [21:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 202 15.05.2024 21:33 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67384 ФПД: 211784466339779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213349&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67384&fm=211784466339779&tin=02508201610067®Number=0000000000091845&sum=55000 [21:33:48]StoreToDocumentArchive [21:33:48]shift 356 fd 67384 [21:33:48]save to /storage/0356/doc_00067384 [21:33:48]save last doc name /storage/0356/doc_00067384 to /storage/kkm_last_doc_name [21:33:48]save OK [21:33:48]Clear old archive folders... [21:33:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:33:48]tlvbuf is 00C59330 [21:33:48]SAM_PROTO_ClearQueue [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 09 00 00 [21:33:48]Write to MH i2c: E2 08 00 5C 32 80 09 00 00 00 00 00 00 00 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 5C 32 00 90 00 02 [21:33:48]RAPDU: 90 00 [21:33:48]wFMCommunicate OK [21:33:48]SAM_PROTO_ClearQueue done [21:33:48]KKMCreateOFDPacket [21:33:48]OFDProtocolAddRootSTLVToBuf [21:33:48]FM_MakeSignedData [21:33:48]FM_MakeSignedData [21:33:48]SAM_PROTO_SignData [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 0D 01 02 [21:33:48]Write to MH i2c: E2 08 00 5D 32 80 0D 01 02 00 00 00 00 08 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 5D 32 00 90 00 03 [21:33:48]RAPDU: 90 00 [21:33:48]wFMCommunicate OK [21:33:48]wFMCommunicate request_size=255 [21:33:48]MH_SAM_APDU [21:33:48]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 CA 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3D 2A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 38 07 01 00 35 04 06 00 C0 9D E9 E2 [21:33:48]Write to MH i2c: E2 02 01 5E 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 CA 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3D 2A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 38 07 01 00 35 04 06 00 C0 9D E9 E2 00 00 59 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 5E 32 00 90 00 04 [21:33:48]RAPDU: 90 00 [21:33:48]wFMCommunicate OK [21:33:48]wFMCommunicate request_size=7 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 0D 02 02 02 97 C3 [21:33:48]Write to MH i2c: E2 0A 00 5F 32 80 0D 02 02 02 00 97 C3 00 00 69 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 03 00 5F 32 00 90 00 05 [21:33:48]RAPDU: 90 00 [21:33:48]wFMCommunicate OK [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 0D 03 02 [21:33:48]Write to MH i2c: E2 08 00 60 32 80 0D 03 02 00 00 00 00 0D [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0B 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0B 00 60 32 00 EB 14 50 CF E6 E9 E1 36 90 00 12 [21:33:48]RAPDU: EB 14 50 CF E6 E9 E1 36 90 00 [21:33:48]wFMCommunicate OK [21:33:48]SAM_PROTO_SignData done [21:33:48]FM_MakeSignedData done [21:33:48]CreateOFDProtocolMessage [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 11 00 00 [21:33:48]Write to MH i2c: E2 08 00 61 32 80 11 00 00 00 00 00 00 0D [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 17 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 17 00 61 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [21:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:33:48]wFMCommunicate OK [21:33:48]CreateOFDProtocolMessage done [21:33:48]OFDSenderStorePacket 67384 [21:33:48]StoreOFDPacket docnum=67384 [21:33: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 74 1C 04 01 72 0C 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 CA 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3D 2A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 38 07 01 00 35 04 06 00 C0 9D E9 E2 97 C3 EB 14 50 CF E6 E9 E1 36 [21:33:48]CheckFolder [21:33:48]dirname=/storage/ofd_packets [21:33:48]CheckFolder done [21:33:48]ProducePacketName [21:33:48]name=ofd_packets/00067384 [21:33:48]NVStorageSaveData ofd_packets/00067384 [21:33:48]File name is /storage/ofd_packets/00067384 [21:33:48]Write 298 bytes [21:33:48]NVStorageSaveData done [21:33:48]OFDSenderStorePacket done [21:33:48]KKMCreateOFDPacket done [21:33:48]NVStorageSaveData kkm_last_timestamp [21:33:48]File name is /storage/kkm_last_timestamp [21:33:48]Write 4 bytes [21:33:48]NVStorageSaveData done [21:33:48]ExternCall_PrintAddStr [21:33:48]wPrintStart [21:33:48]Write to MH i2c: 01 00 00 62 32 94 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 07 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 07 00 62 32 00 00 00 00 00 FF 0F A9 [21:33:48]RasterBufferAndPrint [21:33:48]line Счет N : (1)507362 [21:33:48]line ИНН: 02508201610067 [21:33:48]line Контрольно-Кассовый Чек [21:33:48]line ПРОДАЖА [21:33:48]line ТРК (МРК, ГНК) : 11 [21:33:48]line Товар: 2710194210 [21:33:48]line ДТ-К-5 [21:33:48]line 7.370 * 74.70 [21:33:48]line = 550.54 [21:33:48]line НДС 12% НСП 1% [21:33:48]line > о реализуемом товаре [21:33:48]line ОКРУГЛЕНИЕ: -0.54 [21:33:48]line ИТОГО: 550.00 [21:33:48]line Внесено: 550.00 [21:33:48]line СДАЧА: 0.00 [21:33:48]line НСП 1% : 4.87 [21:33:48]line НДС 12% : 58.46 [21:33:48]line Наличными: 550.00 [21:33:48]line Безнал.: 0.00 [21:33:48]line Место: АЗС № 91 "Партнер Нефть" [21:33:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:33:48]line СНО: Общий режим [21:33:48]line Чек 202 15.05.2024 21:33 [21:33:48]line Смена: 356 ФФД: 1.0 [21:33:48]line ЗНМ: 0300000119 [21:33:48]line РНМ: 0000000000091845 [21:33:48]line Версия ККМ: 001 [21:33:48]line ФМ: 0000000000871829 [21:33:48]line ФД: 67384 [21:33:48]line ФПД: 211784466339779 [21:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213349&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67384&fm=211784466339779&tin=02508201610067®Number=0000000000091845&sum=55000 [21:33:48]OFD Sender: Processing packet 67384 [packets to send 35, broken 34] [21:33:48]ProducePacketName [21:33:48]name=ofd_packets/00067384 [21:33:48]OFD Sender: To server: pG, [21:33:48]CommunicateWithHost lk.salyk.kg:30040 [21:33:48]ConnectInit lk.salyk.kg [21:33:48]written 0, free lines is 4095 [21:33:49]Connected sock=10 [21:33: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 0C 01 00 00 74 1C 04 01 72 0C 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 CA 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 3D 2A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 38 07 01 00 35 04 06 00 C0 9D E9 E2 97 C3 EB 14 50 CF E6 E9 E1 36 [21:33: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 92 E7 47 00 0F 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 38 07 01 00 F4 03 04 00 19 D2 44 66 B6 04 01 00 00 1E E5 15 91 F0 21 4D 09 [21:33:49]CommunicateWithHost err = 0 [21:33:49]CheckOFDResponse [21:33:49]1017 (14) - 77093643461234 [21:33:49]1041 (16) - 0000000000871829 [21:33:49]1040 (4) - 67384 [21:33:49]1012 (4) - 15.05.2024 15:17 [21:33:49]1206 (1) - 0 [21:33:49]OFD Sender: Remove packet 67384 [21:33:49]ProducePacketName [21:33:49]name=ofd_packets/00067384 [21:33:49]NVStorageDeleteData [21:33:49]Write to MH i2c: 01 00 00 8C 32 BE [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 C4 0C 95 [21:33:49]RasterBufferAndPrint [21:33:49]line [21:33:49]line [21:33:49]line [21:33:49]line [21:33:49]line [21:33:49]written 0, free lines is 3273 [21:33:49]MH_Cut [21:33:49]Write to MH i2c: D1 01 00 93 32 01 97 [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D1 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D1 01 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D1 01 00 93 32 00 96 [21:33:49]Write to MH i2c: 01 00 00 94 32 C6 [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]OFD Sender: No OFD packet to send [21:33:50]*** Cut start [21:33:50]*** Purtial cut [21:33:50]*** CUTSNS_PIN = 0 [21:33:50]*** Stage 1: CUTSNS_PIN = 1 [21:33:52]Read from MH i2c: 01 [21:33:52]MH_I2C_Read... [21:33:52]*** Stop cut motor [21:33:52]*** Cut end [21:33:52]Read from MH i2c: 01 07 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: 01 07 00 94 32 00 00 00 00 00 FF 0F DB [21:33:52]process_action close_receipt done [21:33:52]requested_data is exist [21:33:52]produce_requested_data [21:33:52]requested_item fm.sn is exist - process it [21:33:52]wFMCommunicate request_size=4 [21:33:52]MH_SAM_APDU [21:33:52]CAPDU: 80 11 00 00 [21:33:52]Write to MH i2c: E2 08 00 95 32 80 11 00 00 00 00 00 00 41 [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:52]Read from MH i2c: E2 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 17 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 17 00 95 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [21:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:33:52]wFMCommunicate OK [21:33:52]requested_item fd.num is exist - process it [21:33:52]SAM_PROTO_GetFieldsCounters [21:33:52]wFMCommunicate request_size=4 [21:33:52]MH_SAM_APDU [21:33:52]CAPDU: 80 13 00 00 [21:33:52]Write to MH i2c: E2 08 00 96 32 80 13 00 00 00 00 00 00 44 [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:52]Read from MH i2c: E2 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 62 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 62 00 96 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 38 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [21:33: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 38 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:52]wFMCommunicate OK [21:33:52]SAM_PROTO_GetFieldsCounters done [21:33:52]requested_item shift.num is exist - process it [21:33:52]requested_item shift.opened is exist - process it [21:33:52]req_shift_opened [21:33:52]FM_GetShiftState [21:33:52]SAM_PROTO_GetShiftState [21:33:52]wFMCommunicate request_size=4 [21:33:52]MH_SAM_APDU [21:33:52]CAPDU: 80 13 01 00 [21:33:52]Write to MH i2c: E2 08 00 97 32 80 13 01 00 00 00 00 00 46 [21:33:52]Write i2c OK [21:33:52]MH_I2C_Read... [21:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:52]Read from MH i2c: E2 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 0E 00 [21:33:52]MH_I2C_Read... [21:33:52]Read from MH i2c: E2 0E 00 97 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F1 [21:33:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:33:52]wFMCommunicate OK [21:33:52]SAM_PROTO_GetShiftState done [21:33:52]FM_GetShiftState done [21:33:52]req_shift_opened done [21:33:52]requested_item shift.open_date is exist - process it [21:33:52]req_shift_open_date [21:33:52]req_shift_open_date done [21:33:52]produce_requested_data done [21:33:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67384,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:33:52]process_action_free close_receipt [21:33:52]json_value_free [21:33:52]json_value_free done [21:33:52]process_json_proto returns [21:33:52]Send response to host [21:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67384,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:33:52]free response buf [21:33:52]execute_script done [21:33:52]execute_script returns [21:33:52]free content buf [21:33:52]Sock 7.Close socket [21:33:52]Sock 7.Thread stoped [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:51]accept exits with 9 [21:37:51]New connection [21:37:51]New thread 3067030884 created [21:37:51]Thread 3067174244 joined [21:37:51]Waiting for new connection... [21:37:51] Sock 9.Parse request [21:37:51]Sock 9.Check first char [21:37:51]Sock 9.First char is OK [21:37:51]request: POST /json_proto HTTP/1.0 [21:37:51]Method: POST [21:37:51]URL: /json_proto [21:37:51]Method is POST - this is cgi request [21:37:51]url: /json_proto [21:37:51]query_string will be loaded in cgi processing [21:37:51]execute_cgi json_proto POST (null) [21:37:51]execute_cgi path=json_proto method=POST [21:37:51]POST find Content-Length [21:37:51]Host: 172.17.41.195:8080 [21:37:51]Content-Length: 679 [21:37:51]Content-Type: application/json [21:37:51] [21:37:51]POST finish read [21:37:51]Found Content-Length = 679 [21:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507363", "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 }]} ], "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" ] } } [21:37:51]execute_script... [21:37: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)507363", "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 }]} ], "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" ] } } [21:37:51]POST & json_proto [21:37:51]process_json_proto [21:37:51]json parsed OK: [21:37:51]protocol is kg_v1.0 [21:37:51]action value=close_receipt [21:37:51]process_action close_receipt [21:37:51]cmd_close_receipt [21:37:51]MH_GetDate [21:37:51]Write to MH i2c: F0 00 00 98 32 B9 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 09 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: F0 09 00 98 32 00 32 2B 45 66 FC 21 6F 64 BA [21:37:51]GetLastDocTimeStamp 1715808829 [21:37:51]current date 1715809074 [21:37:51]FM_GetShiftState [21:37:51]SAM_PROTO_GetShiftState [21:37:51]wFMCommunicate request_size=4 [21:37:51]MH_SAM_APDU [21:37:51]CAPDU: 80 13 01 00 [21:37:51]Write to MH i2c: E2 08 00 99 32 80 13 01 00 00 00 00 00 48 [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:51]Read from MH i2c: E2 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0E 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: E2 0E 00 99 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F3 [21:37:51]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:37:51]wFMCommunicate OK [21:37:51]SAM_PROTO_GetShiftState done [21:37:51]FM_GetShiftState done [21:37:51]opened in 1715732471 [21:37:51]opened+sec_in_day 1715818871 [21:37:51]quantity*price = 200046 [21:37:51]sum+1 = 200048 [21:37:51]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 СНО: Общий режим Чек 203 15.05.2024 21:37 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67385 ФПД: 77464082907280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67385&fm=77464082907280&tin=02508201610067®Number=0000000000091845&sum=200000 [21:37:52]StoreToDocumentArchive [21:37:52]shift 356 fd 67385 [21:37:52]save to /storage/0356/doc_00067385 [21:37:52]save last doc name /storage/0356/doc_00067385 to /storage/kkm_last_doc_name [21:37:52]save OK [21:37:52]Clear old archive folders... [21:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:37:52]tlvbuf is B6F8E3C0 [21:37:52]SAM_PROTO_ClearQueue [21:37:52]wFMCommunicate request_size=4 [21:37:52]MH_SAM_APDU [21:37:52]CAPDU: 80 09 00 00 [21:37:52]Write to MH i2c: E2 08 00 A6 32 80 09 00 00 00 00 00 00 4A [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:52]Read from MH i2c: E2 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 A6 32 00 90 00 4C [21:37:52]RAPDU: 90 00 [21:37:52]wFMCommunicate OK [21:37:52]SAM_PROTO_ClearQueue done [21:37:52]KKMCreateOFDPacket [21:37:52]OFDProtocolAddRootSTLVToBuf [21:37:52]FM_MakeSignedData [21:37:52]FM_MakeSignedData [21:37:52]SAM_PROTO_SignData [21:37:52]wFMCommunicate request_size=4 [21:37:52]MH_SAM_APDU [21:37:52]CAPDU: 80 0D 01 02 [21:37:52]Write to MH i2c: E2 08 00 A7 32 80 0D 01 02 00 00 00 00 52 [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:52]Read from MH i2c: E2 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 [21:37:52]MH_I2C_Read... [21:37:52]Read from MH i2c: E2 03 00 A7 32 00 90 00 4D [21:37:52]RAPDU: 90 00 [21:37:52]wFMCommunicate OK [21:37:52]wFMCommunicate request_size=255 [21:37:52]MH_SAM_APDU [21:37: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 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 CB 00 00 00 F4 03 04 00 32 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 39 07 01 00 35 04 06 00 46 74 03 25 [21:37:52]Write to MH i2c: E2 02 01 A8 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 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 CB 00 00 00 F4 03 04 00 32 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 39 07 01 00 35 04 06 00 46 74 03 25 00 00 BB [21:37:52]Write i2c OK [21:37:52]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 A8 32 00 90 00 4E [21:37:53]RAPDU: 90 00 [21:37:53]wFMCommunicate OK [21:37:53]wFMCommunicate request_size=7 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 0D 02 02 02 00 90 [21:37:53]Write to MH i2c: E2 0A 00 A9 32 80 0D 02 02 02 00 00 90 00 00 E9 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 03 00 A9 32 00 90 00 4F [21:37:53]RAPDU: 90 00 [21:37:53]wFMCommunicate OK [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 0D 03 02 [21:37:53]Write to MH i2c: E2 08 00 AA 32 80 0D 03 02 00 00 00 00 57 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0B 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 0B 00 AA 32 00 2C 6C 97 1C A3 CC B0 9F 90 00 61 [21:37:53]RAPDU: 2C 6C 97 1C A3 CC B0 9F 90 00 [21:37:53]wFMCommunicate OK [21:37:53]SAM_PROTO_SignData done [21:37:53]FM_MakeSignedData done [21:37:53]CreateOFDProtocolMessage [21:37:53]wFMCommunicate request_size=4 [21:37:53]MH_SAM_APDU [21:37:53]CAPDU: 80 11 00 00 [21:37:53]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:53]Read from MH i2c: E2 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: E2 17 00 [21:37:53]MH_I2C_Read... [21:37:53]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 [21:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:37:53]wFMCommunicate OK [21:37:53]CreateOFDProtocolMessage done [21:37:53]OFDSenderStorePacket 67385 [21:37:53]StoreOFDPacket docnum=67385 [21:37: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 0C 01 00 00 E0 F9 04 01 F4 DB 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 CB 00 00 00 F4 03 04 00 32 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 39 07 01 00 35 04 06 00 46 74 03 25 00 90 2C 6C 97 1C A3 CC B0 9F [21:37:53]CheckFolder [21:37:53]dirname=/storage/ofd_packets [21:37:53]CheckFolder done [21:37:53]ProducePacketName [21:37:53]name=ofd_packets/00067385 [21:37:53]NVStorageSaveData ofd_packets/00067385 [21:37:53]File name is /storage/ofd_packets/00067385 [21:37:53]Write 298 bytes [21:37:53]NVStorageSaveData done [21:37:53]OFDSenderStorePacket done [21:37:53]KKMCreateOFDPacket done [21:37:53]NVStorageSaveData kkm_last_timestamp [21:37:53]File name is /storage/kkm_last_timestamp [21:37:53]Write 4 bytes [21:37:53]NVStorageSaveData done [21:37:53]ExternCall_PrintAddStr [21:37:53]wPrintStart [21:37:53]Write to MH i2c: 01 00 00 AC 32 DE [21:37:53]Write i2c OK [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 [21:37:53]MH_I2C_Read... [21:37:53]Read from MH i2c: 01 07 00 AC 32 00 00 00 00 00 FF 0F F3 [21:37:53]RasterBufferAndPrint [21:37:53]line Счет N : (1)507363 [21:37:53]line ИНН: 02508201610067 [21:37:53]line Контрольно-Кассовый Чек [21:37:53]line ПРОДАЖА [21:37:53]line ТРК (МРК, ГНК) : 41 [21:37:53]line Товар: 2710194210 [21:37:53]line ДТ-К-5 [21:37:53]line 26.780 * 74.70 [21:37:53]line = 2000.47 [21:37:53]line НДС 12% НСП 1% [21:37:53]line > о реализуемом товаре [21:37:53]line ОКРУГЛЕНИЕ: -0.47 [21:37:53]line ИТОГО: 2000.00 [21:37:53]line Внесено: 2000.00 [21:37:53]line СДАЧА: 0.00 [21:37:53]line НСП 1% : 17.70 [21:37:53]line НДС 12% : 212.44 [21:37:53]line Наличными: 2000.00 [21:37:53]line Безнал.: 0.00 [21:37:53]line Место: АЗС № 91 "Партнер Нефть" [21:37:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:37:53]line СНО: Общий режим [21:37:53]line Чек 203 15.05.2024 21:37 [21:37:53]line Смена: 356 ФФД: 1.0 [21:37:53]line ЗНМ: 0300000119 [21:37:53]line РНМ: 0000000000091845 [21:37:53]line Версия ККМ: 001 [21:37:53]line ФМ: 0000000000871829 [21:37:53]line ФД: 67385 [21:37:53]line ФПД: 77464082907280 [21:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67385&fm=77464082907280&tin=02508201610067®Number=0000000000091845&sum=200000 [21:37:53]OFD Sender: Processing packet 67385 [packets to send 35, broken 34] [21:37:53]ProducePacketName [21:37:53]name=ofd_packets/00067385 [21:37:53]OFD Sender: To server: pG, [21:37:53]CommunicateWithHost lk.salyk.kg:30040 [21:37:53]ConnectInit lk.salyk.kg [21:37:53]written 0, free lines is 4095 [21:37:53]Connected sock=10 [21:37: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 E0 F9 04 01 F4 DB 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 CB 00 00 00 F4 03 04 00 32 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 39 07 01 00 35 04 06 00 46 74 03 25 00 90 2C 6C 97 1C A3 CC B0 9F [21:37: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 10 9C 47 00 9E BD 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 39 07 01 00 F4 03 04 00 0E D3 44 66 B6 04 01 00 00 64 99 5B D9 4A FE 80 59 [21:37:53]CommunicateWithHost err = 0 [21:37:53]CheckOFDResponse [21:37:53]1017 (14) - 77093643461234 [21:37:53]1041 (16) - 0000000000871829 [21:37:53]1040 (4) - 67385 [21:37:53]1012 (4) - 15.05.2024 15:21 [21:37:53]1206 (1) - 0 [21:37:53]OFD Sender: Remove packet 67385 [21:37:53]ProducePacketName [21:37:53]name=ofd_packets/00067385 [21:37:53]NVStorageDeleteData [21:37:54]Write to MH i2c: 01 00 00 D6 32 08 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 07 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: 01 07 00 D6 32 00 00 00 00 00 C8 0C E3 [21:37:54]RasterBufferAndPrint [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]line [21:37:54]written 0, free lines is 3278 [21:37:54]MH_Cut [21:37:54]Write to MH i2c: D1 01 00 DD 32 01 E1 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: D1 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: D1 01 00 [21:37:54]MH_I2C_Read... [21:37:54]Read from MH i2c: D1 01 00 DD 32 00 E0 [21:37:54]Write to MH i2c: 01 00 00 DE 32 10 [21:37:54]Write i2c OK [21:37:54]MH_I2C_Read... [21:37:54]OFD Sender: No OFD packet to send [21:37:54]*** Cut start [21:37:54]*** Purtial cut [21:37:54]*** Stage 1: CUTSNS_PIN = 1 [21:37:55]Read from MH i2c: 01 [21:37:55]MH_I2C_Read... [21:37:55]*** Stop cut motor [21:37:55]*** Cut end [21:37:55]Read from MH i2c: 01 07 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: 01 07 00 DE 32 00 00 00 00 00 FF 0F 25 [21:37:55]process_action close_receipt done [21:37:55]requested_data is exist [21:37:55]produce_requested_data [21:37:55]requested_item fm.sn is exist - process it [21:37:55]wFMCommunicate request_size=4 [21:37:55]MH_SAM_APDU [21:37:55]CAPDU: 80 11 00 00 [21:37:55]Write to MH i2c: E2 08 00 DF 32 80 11 00 00 00 00 00 00 8B [21:37:55]Write i2c OK [21:37:55]MH_I2C_Read... [21:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:55]Read from MH i2c: E2 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 17 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 17 00 DF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [21:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:37:55]wFMCommunicate OK [21:37:55]requested_item fd.num is exist - process it [21:37:55]SAM_PROTO_GetFieldsCounters [21:37:55]wFMCommunicate request_size=4 [21:37:55]MH_SAM_APDU [21:37:55]CAPDU: 80 13 00 00 [21:37:55]Write to MH i2c: E2 08 00 E0 32 80 13 00 00 00 00 00 00 8E [21:37:55]Write i2c OK [21:37:55]MH_I2C_Read... [21:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:55]Read from MH i2c: E2 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 62 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 62 00 E0 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 39 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [21:37: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 39 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:55]wFMCommunicate OK [21:37:55]SAM_PROTO_GetFieldsCounters done [21:37:55]requested_item shift.num is exist - process it [21:37:55]requested_item shift.opened is exist - process it [21:37:55]req_shift_opened [21:37:55]FM_GetShiftState [21:37:55]SAM_PROTO_GetShiftState [21:37:55]wFMCommunicate request_size=4 [21:37:55]MH_SAM_APDU [21:37:55]CAPDU: 80 13 01 00 [21:37:55]Write to MH i2c: E2 08 00 E1 32 80 13 01 00 00 00 00 00 90 [21:37:55]Write i2c OK [21:37:55]MH_I2C_Read... [21:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:55]Read from MH i2c: E2 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 0E 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 0E 00 E1 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3B [21:37:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:37:55]wFMCommunicate OK [21:37:55]SAM_PROTO_GetShiftState done [21:37:55]FM_GetShiftState done [21:37:55]req_shift_opened done [21:37:55]requested_item shift.open_date is exist - process it [21:37:55]req_shift_open_date [21:37:55]req_shift_open_date done [21:37:55]produce_requested_data done [21:37:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67385,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:37:55]process_action_free close_receipt [21:37:55]json_value_free [21:37:55]json_value_free done [21:37:55]process_json_proto returns [21:37:55]Send response to host [21:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67385,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:37:55]free response buf [21:37:55]execute_script done [21:37:55]execute_script returns [21:37:55]free content buf [21:37:55]Sock 9.Close socket [21:37:55]Sock 9.Thread stoped [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:27]accept exits with 7 [21:39:27]New connection [21:39:27]New thread 3067174244 created [21:39:27]Thread 3067030884 joined [21:39:27]Waiting for new connection... [21:39:27] Sock 7.Parse request [21:39:27]Sock 7.Check first char [21:39:27]Sock 7.First char is OK [21:39:27]request: POST /json_proto HTTP/1.0 [21:39:27]Method: POST [21:39:27]URL: /json_proto [21:39:27]Method is POST - this is cgi request [21:39:27]url: /json_proto [21:39:27]query_string will be loaded in cgi processing [21:39:27]execute_cgi json_proto POST (null) [21:39:27]execute_cgi path=json_proto method=POST [21:39:27]POST find Content-Length [21:39:27]Host: 172.17.41.195:8080 [21:39:27]Content-Length: 677 [21:39:27]Content-Type: application/json [21:39:27] [21:39:27]POST finish read [21:39:27]Found Content-Length = 677 [21:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507364", "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" : 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" ] } } [21:39:27]execute_script... [21:39: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)507364", "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" : 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" ] } } [21:39:27]POST & json_proto [21:39:27]process_json_proto [21:39:27]json parsed OK: [21:39:27]protocol is kg_v1.0 [21:39:27]action value=close_receipt [21:39:27]process_action close_receipt [21:39:27]cmd_close_receipt [21:39:27]MH_GetDate [21:39:27]Write to MH i2c: F0 00 00 E2 32 03 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: F0 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: F0 09 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: F0 09 00 E2 32 00 92 2B 45 66 FC 21 6F 64 64 [21:39:27]GetLastDocTimeStamp 1715809074 [21:39:27]current date 1715809170 [21:39:27]FM_GetShiftState [21:39:27]SAM_PROTO_GetShiftState [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 13 01 00 [21:39:27]Write to MH i2c: E2 08 00 E3 32 80 13 01 00 00 00 00 00 92 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0E 00 E3 32 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 3D [21:39:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_GetShiftState done [21:39:27]FM_GetShiftState done [21:39:27]opened in 1715732471 [21:39:27]opened+sec_in_day 1715818871 [21:39:27]quantity*price = 40013 [21:39:27]sum+1 = 40014 [21:39:27]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 СНО: Общий режим Чек 204 15.05.2024 21:39 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67386 ФПД: 149678287537823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67386&fm=149678287537823&tin=02508201610067®Number=0000000000091845&sum=40000 [21:39:28]StoreToDocumentArchive [21:39:28]shift 356 fd 67386 [21:39:28]save to /storage/0356/doc_00067386 [21:39:28]save last doc name /storage/0356/doc_00067386 to /storage/kkm_last_doc_name [21:39:28]save OK [21:39:28]Clear old archive folders... [21:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:28]tlvbuf is B6F10610 [21:39:28]SAM_PROTO_ClearQueue [21:39:28]wFMCommunicate request_size=4 [21:39:28]MH_SAM_APDU [21:39:28]CAPDU: 80 09 00 00 [21:39:28]Write to MH i2c: E2 08 00 F0 32 80 09 00 00 00 00 00 00 94 [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:28]Read from MH i2c: E2 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 03 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 03 00 F0 32 00 90 00 96 [21:39:28]RAPDU: 90 00 [21:39:28]wFMCommunicate OK [21:39:28]SAM_PROTO_ClearQueue done [21:39:28]KKMCreateOFDPacket [21:39:28]OFDProtocolAddRootSTLVToBuf [21:39:28]FM_MakeSignedData [21:39:28]FM_MakeSignedData [21:39:28]SAM_PROTO_SignData [21:39:28]wFMCommunicate request_size=4 [21:39:28]MH_SAM_APDU [21:39:28]CAPDU: 80 0D 01 02 [21:39:28]Write to MH i2c: E2 08 00 F1 32 80 0D 01 02 00 00 00 00 9C [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:28]Read from MH i2c: E2 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 03 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: E2 03 00 F1 32 00 90 00 97 [21:39:28]RAPDU: 90 00 [21:39:28]wFMCommunicate OK [21:39:28]wFMCommunicate request_size=255 [21:39:28]MH_SAM_APDU [21:39:28]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 CC 00 00 00 F4 03 04 00 92 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3A 07 01 00 35 04 06 00 88 [21:39:28]Write to MH i2c: E2 02 01 F2 32 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 CC 00 00 00 F4 03 04 00 92 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3A 07 01 00 35 04 06 00 88 00 00 6A [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 F2 32 00 90 00 98 [21:39:29]RAPDU: 90 00 [21:39:29]wFMCommunicate OK [21:39:29]wFMCommunicate request_size=10 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 0D 02 02 05 21 B1 28 C6 9F [21:39:29]Write to MH i2c: E2 0D 00 F3 32 80 0D 02 02 05 00 21 B1 28 C6 9F 00 00 08 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 03 00 F3 32 00 90 00 99 [21:39:29]RAPDU: 90 00 [21:39:29]wFMCommunicate OK [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 0D 03 02 [21:39:29]Write to MH i2c: E2 08 00 F4 32 80 0D 03 02 00 00 00 00 A1 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0B 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 0B 00 F4 32 00 9D F7 F3 59 A6 3C 45 38 90 00 E1 [21:39:29]RAPDU: 9D F7 F3 59 A6 3C 45 38 90 00 [21:39:29]wFMCommunicate OK [21:39:29]SAM_PROTO_SignData done [21:39:29]FM_MakeSignedData done [21:39:29]CreateOFDProtocolMessage [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 11 00 00 [21:39:29]Write to MH i2c: E2 08 00 F5 32 80 11 00 00 00 00 00 00 A1 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 17 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 17 00 F5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [21:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:39:29]wFMCommunicate OK [21:39:29]CreateOFDProtocolMessage done [21:39:29]OFDSenderStorePacket 67386 [21:39:29]StoreOFDPacket docnum=67386 [21:39:29]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 5B 30 07 01 3B 13 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 CC 00 00 00 F4 03 04 00 92 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3A 07 01 00 35 04 06 00 88 21 B1 28 C6 9F 9D F7 F3 59 A6 3C 45 38 [21:39:29]CheckFolder [21:39:29]dirname=/storage/ofd_packets [21:39:29]CheckFolder done [21:39:29]ProducePacketName [21:39:29]name=ofd_packets/00067386 [21:39:29]NVStorageSaveData ofd_packets/00067386 [21:39:29]File name is /storage/ofd_packets/00067386 [21:39:29]Write 301 bytes [21:39:29]NVStorageSaveData done [21:39:29]OFDSenderStorePacket done [21:39:29]KKMCreateOFDPacket done [21:39:29]NVStorageSaveData kkm_last_timestamp [21:39:29]File name is /storage/kkm_last_timestamp [21:39:29]Write 4 bytes [21:39:29]NVStorageSaveData done [21:39:29]ExternCall_PrintAddStr [21:39:29]wPrintStart [21:39:29]Write to MH i2c: 01 00 00 F6 32 28 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: 01 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: 01 07 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: 01 07 00 F6 32 00 00 00 00 00 FF 0F 3D [21:39:29]RasterBufferAndPrint [21:39:29]line Счет N : (1)507364 [21:39:29]line ИНН: 02508201610067 [21:39:29]line Контрольно-Кассовый Чек [21:39:29]line ПРОДАЖА [21:39:29]line ТРК (МРК, ГНК) : 33 [21:39:29]line Товар: 2710124130 [21:39:29]line Аи-92-К-5 [21:39:29]line 5.990 * 66.80 [21:39:29]line = 400.13 [21:39:29]line НДС 12% НСП 1% [21:39:29]line > о реализуемом товаре [21:39:29]line ОКРУГЛЕНИЕ: -0.13 [21:39:29]line ИТОГО: 400.00 [21:39:29]line Внесено: 400.00 [21:39:29]line СДАЧА: 0.00 [21:39:29]line НСП 1% : 3.54 [21:39:29]line НДС 12% : 42.49 [21:39:29]line Наличными: 400.00 [21:39:29]line Безнал.: 0.00 [21:39:29]line Место: АЗС № 91 "Партнер Нефть" [21:39:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:39:29]line СНО: Общий режим [21:39:29]line Чек 204 15.05.2024 21:39 [21:39:29]line Смена: 356 ФФД: 1.0 [21:39:29]line ЗНМ: 0300000119 [21:39:29]line РНМ: 0000000000091845 [21:39:29]line Версия ККМ: 001 [21:39:29]line ФМ: 0000000000871829 [21:39:29]line ФД: 67386 [21:39:29]line ФПД: 149678287537823 [21:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T213930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67386&fm=149678287537823&tin=02508201610067®Number=0000000000091845&sum=40000 [21:39:29]OFD Sender: Processing packet 67386 [packets to send 35, broken 34] [21:39:29]ProducePacketName [21:39:29]name=ofd_packets/00067386 [21:39:29]OFD Sender: To server: pG, [21:39:29]CommunicateWithHost lk.salyk.kg:30040 [21:39:29]ConnectInit lk.salyk.kg [21:39:29]written 0, free lines is 4095 [21:39:29]Connected sock=10 [21:39: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 0F 01 00 00 5B 30 07 01 3B 13 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 CC 00 00 00 F4 03 04 00 92 2B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3A 07 01 00 35 04 06 00 88 21 B1 28 C6 9F 9D F7 F3 59 A6 3C 45 38 [21:39: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 AB A6 47 00 CC 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 3A 07 01 00 F4 03 04 00 6E D3 44 66 B6 04 01 00 00 46 64 F9 9F C2 8F 7E 88 [21:39:29]CommunicateWithHost err = 0 [21:39:29]CheckOFDResponse [21:39:29]1017 (14) - 77093643461234 [21:39:29]1041 (16) - 0000000000871829 [21:39:29]1040 (4) - 67386 [21:39:29]1012 (4) - 15.05.2024 15:23 [21:39:29]1206 (1) - 0 [21:39:29]OFD Sender: Remove packet 67386 [21:39:29]ProducePacketName [21:39:29]name=ofd_packets/00067386 [21:39:29]NVStorageDeleteData [21:39:30]Write to MH i2c: 01 00 00 20 33 53 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: 01 07 00 20 33 00 00 00 00 00 D3 0C 39 [21:39:30]RasterBufferAndPrint [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]line [21:39:30]written 0, free lines is 3288 [21:39:30]MH_Cut [21:39:30]Write to MH i2c: D1 01 00 27 33 01 2C [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 01 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: D1 01 00 27 33 00 2B [21:39:30]Write to MH i2c: 01 00 00 28 33 5B [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]OFD Sender: No OFD packet to send [21:39:30]*** Cut start [21:39:30]*** Purtial cut [21:39:30]*** CUTSNS_PIN = 0 [21:39:31]*** Stage 1: CUTSNS_PIN = 1 [21:39:32]Read from MH i2c: 01 [21:39:32]*** Stop cut motor [21:39:32]*** Cut end [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: 01 07 00 28 33 00 00 00 00 00 FF 0F 70 [21:39:32]process_action close_receipt done [21:39:32]requested_data is exist [21:39:32]produce_requested_data [21:39:32]requested_item fm.sn is exist - process it [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 11 00 00 [21:39:32]Write to MH i2c: E2 08 00 29 33 80 11 00 00 00 00 00 00 D6 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:32]Read from MH i2c: E2 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 [21:39:32]MH_I2C_Read... [21:39:32]Read from MH i2c: E2 17 00 29 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [21:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:39:32]wFMCommunicate OK [21:39:32]requested_item fd.num is exist - process it [21:39:32]SAM_PROTO_GetFieldsCounters [21:39:32]wFMCommunicate request_size=4 [21:39:32]MH_SAM_APDU [21:39:32]CAPDU: 80 13 00 00 [21:39:32]Write to MH i2c: E2 08 00 2A 33 80 13 00 00 00 00 00 00 D9 [21:39:32]Write i2c OK [21:39:32]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 62 00 2A 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 3A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [21:39: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 3A 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetFieldsCounters done [21:39:33]requested_item shift.num is exist - process it [21:39:33]requested_item shift.opened is exist - process it [21:39:33]req_shift_opened [21:39:33]FM_GetShiftState [21:39:33]SAM_PROTO_GetShiftState [21:39:33]wFMCommunicate request_size=4 [21:39:33]MH_SAM_APDU [21:39:33]CAPDU: 80 13 01 00 [21:39:33]Write to MH i2c: E2 08 00 2B 33 80 13 01 00 00 00 00 00 DB [21:39:33]Write i2c OK [21:39:33]MH_I2C_Read... [21:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:33]Read from MH i2c: E2 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 [21:39:33]MH_I2C_Read... [21:39:33]Read from MH i2c: E2 0E 00 2B 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 86 [21:39:33]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:39:33]wFMCommunicate OK [21:39:33]SAM_PROTO_GetShiftState done [21:39:33]FM_GetShiftState done [21:39:33]req_shift_opened done [21:39:33]requested_item shift.open_date is exist - process it [21:39:33]req_shift_open_date [21:39:33]req_shift_open_date done [21:39:33]produce_requested_data done [21:39:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67386,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:39:33]process_action_free close_receipt [21:39:33]json_value_free [21:39:33]json_value_free done [21:39:33]process_json_proto returns [21:39:33]Send response to host [21:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67386,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:39:33]free response buf [21:39:33]execute_script done [21:39:33]execute_script returns [21:39:33]free content buf [21:39:33]Sock 7.Close socket [21:39:33]Sock 7.Thread stoped [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:41:56]accept exits with 9 [21:41:56]New connection [21:41:56]New thread 3067030884 created [21:41:56]Thread 3067174244 joined [21:41:56]Waiting for new connection... [21:41:56] Sock 9.Parse request [21:41:56]Sock 9.Check first char [21:41:56]Sock 9.First char is OK [21:41:56]request: POST /json_proto HTTP/1.0 [21:41:56]Method: POST [21:41:56]URL: /json_proto [21:41:56]Method is POST - this is cgi request [21:41:56]url: /json_proto [21:41:56]query_string will be loaded in cgi processing [21:41:56]execute_cgi json_proto POST (null) [21:41:56]execute_cgi path=json_proto method=POST [21:41:56]POST find Content-Length [21:41:56]Host: 172.17.41.195:8080 [21:41:56]Content-Length: 670 [21:41:56]Content-Type: application/json [21:41:56] [21:41:56]POST finish read [21:41:56]Found Content-Length = 670 [21:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507365", "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" : 7.380, "sum" : 500.36, "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" ] } } [21:41:56]execute_script... [21:41: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)507365", "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" : 7.380, "sum" : 500.36, "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" ] } } [21:41:56]POST & json_proto [21:41:56]process_json_proto [21:41:56]json parsed OK: [21:41:56]protocol is kg_v1.0 [21:41:56]action value=close_receipt [21:41:56]process_action close_receipt [21:41:56]cmd_close_receipt [21:41:56]MH_GetDate [21:41:56]Write to MH i2c: F0 00 00 2C 33 4E [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 09 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 09 00 2C 33 00 26 2C 45 66 FC 21 6F 64 44 [21:41:56]GetLastDocTimeStamp 1715809170 [21:41:56]current date 1715809318 [21:41:56]FM_GetShiftState [21:41:56]SAM_PROTO_GetShiftState [21:41:56]wFMCommunicate request_size=4 [21:41:56]MH_SAM_APDU [21:41:56]CAPDU: 80 13 01 00 [21:41:56]Write to MH i2c: E2 08 00 2D 33 80 13 01 00 00 00 00 00 DD [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:56]Read from MH i2c: E2 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 2D 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 88 [21:41:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:41:56]wFMCommunicate OK [21:41:56]SAM_PROTO_GetShiftState done [21:41:56]FM_GetShiftState done [21:41:56]opened in 1715732471 [21:41:56]opened+sec_in_day 1715818871 [21:41:56]quantity*price = 50036 [21:41:56]sum+1 = 50037 [21:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 205 15.05.2024 21:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67387 ФПД: 76206812464696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T214158&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67387&fm=76206812464696&tin=02508201610067®Number=0000000000091845&sum=50000 [21:41:57]StoreToDocumentArchive [21:41:57]shift 356 fd 67387 [21:41:57]save to /storage/0356/doc_00067387 [21:41:57]save last doc name /storage/0356/doc_00067387 to /storage/kkm_last_doc_name [21:41:57]save OK [21:41:57]Clear old archive folders... [21:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:41:57]tlvbuf is 00BA4150 [21:41:57]SAM_PROTO_ClearQueue [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 09 00 00 [21:41:57]Write to MH i2c: E2 08 00 3A 33 80 09 00 00 00 00 00 00 DF [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 3A 33 00 90 00 E1 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]SAM_PROTO_ClearQueue done [21:41:57]KKMCreateOFDPacket [21:41:57]OFDProtocolAddRootSTLVToBuf [21:41:57]FM_MakeSignedData [21:41:57]FM_MakeSignedData [21:41:57]SAM_PROTO_SignData [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 0D 01 02 [21:41:57]Write to MH i2c: E2 08 00 3B 33 80 0D 01 02 00 00 00 00 E7 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 3B 33 00 90 00 E2 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]wFMCommunicate request_size=255 [21:41:57]MH_SAM_APDU [21:41: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 CD 00 00 00 F4 03 04 00 26 2C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3B 07 01 00 35 04 06 00 [21:41:57]Write to MH i2c: E2 02 01 3C 33 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 CD 00 00 00 F4 03 04 00 26 2C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3B 07 01 00 35 04 06 00 00 00 07 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 3C 33 00 90 00 E3 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]wFMCommunicate request_size=11 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 0D 02 02 06 45 4F 47 FC 86 38 [21:41:57]Write to MH i2c: E2 0E 00 3D 33 80 0D 02 02 06 00 45 4F 47 FC 86 38 00 00 8B [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 3D 33 00 90 00 E4 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 0D 03 02 [21:41:57]Write to MH i2c: E2 08 00 3E 33 80 0D 03 02 00 00 00 00 EC [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 0B 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 0B 00 3E 33 00 8A E0 62 24 55 2B 32 D3 90 00 62 [21:41:57]RAPDU: 8A E0 62 24 55 2B 32 D3 90 00 [21:41:57]wFMCommunicate OK [21:41:57]SAM_PROTO_SignData done [21:41:57]FM_MakeSignedData done [21:41:57]CreateOFDProtocolMessage [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 11 00 00 [21:41:57]Write to MH i2c: E2 08 00 3F 33 80 11 00 00 00 00 00 00 EC [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 17 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 17 00 3F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [21:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:41:57]wFMCommunicate OK [21:41:57]CreateOFDProtocolMessage done [21:41:57]OFDSenderStorePacket 67387 [21:41:57]StoreOFDPacket docnum=67387 [21:41: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 8A 6B 08 01 D1 B5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 CD 00 00 00 F4 03 04 00 26 2C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3B 07 01 00 35 04 06 00 45 4F 47 FC 86 38 8A E0 62 24 55 2B 32 D3 [21:41:57]CheckFolder [21:41:57]dirname=/storage/ofd_packets [21:41:57]CheckFolder done [21:41:57]ProducePacketName [21:41:57]name=ofd_packets/00067387 [21:41:57]NVStorageSaveData ofd_packets/00067387 [21:41:57]File name is /storage/ofd_packets/00067387 [21:41:57]Write 302 bytes [21:41:57]NVStorageSaveData done [21:41:57]OFDSenderStorePacket done [21:41:57]KKMCreateOFDPacket done [21:41:57]NVStorageSaveData kkm_last_timestamp [21:41:57]File name is /storage/kkm_last_timestamp [21:41:57]Write 4 bytes [21:41:57]NVStorageSaveData done [21:41:57]ExternCall_PrintAddStr [21:41:57]wPrintStart [21:41:57]Write to MH i2c: 01 00 00 40 33 73 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: 01 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: 01 07 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: 01 07 00 40 33 00 00 00 00 00 FF 0F 88 [21:41:57]RasterBufferAndPrint [21:41:57]line Счет N : (1)507365 [21:41:57]line ИНН: 02508201610067 [21:41:57]line Контрольно-Кассовый Чек [21:41:57]line ПРОДАЖА [21:41:57]line ТРК (МРК, ГНК) : 42 [21:41:57]line Товар: 2710124130 [21:41:57]line Super-92-К-5 [21:41:57]line 7.380 * 67.80 [21:41:57]line = 500.36 [21:41:57]line НДС 12% НСП 1% [21:41:57]line > о реализуемом товаре [21:41:57]line ОКРУГЛЕНИЕ: -0.36 [21:41:57]line ИТОГО: 500.00 [21:41:57]line Внесено: 500.00 [21:41:57]line СДАЧА: 0.00 [21:41:57]line НСП 1% : 4.43 [21:41:57]line НДС 12% : 53.14 [21:41:57]line Наличными: 500.00 [21:41:57]line Безнал.: 0.00 [21:41:57]line Место: АЗС № 91 "Партнер Нефть" [21:41:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:41:57]line СНО: Общий режим [21:41:57]line Чек 205 15.05.2024 21:41 [21:41:57]line Смена: 356 ФФД: 1.0 [21:41:57]line ЗНМ: 0300000119 [21:41:57]line РНМ: 0000000000091845 [21:41:57]line Версия ККМ: 001 [21:41:57]line ФМ: 0000000000871829 [21:41:57]line ФД: 67387 [21:41:57]line ФПД: 76206812464696 [21:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T214158&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67387&fm=76206812464696&tin=02508201610067®Number=0000000000091845&sum=50000 [21:41:58]OFD Sender: Processing packet 67387 [packets to send 35, broken 34] [21:41:58]ProducePacketName [21:41:58]name=ofd_packets/00067387 [21:41:58]OFD Sender: To server: pG, [21:41:58]CommunicateWithHost lk.salyk.kg:30040 [21:41:58]ConnectInit lk.salyk.kg [21:41:58]written 0, free lines is 4095 [21:41:58]Connected sock=10 [21:41: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 8A 6B 08 01 D1 B5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 CD 00 00 00 F4 03 04 00 26 2C 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3B 07 01 00 35 04 06 00 45 4F 47 FC 86 38 8A E0 62 24 55 2B 32 D3 [21:41: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 55 3D 47 00 38 0F 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 3B 07 01 00 F4 03 04 00 03 D4 44 66 B6 04 01 00 00 29 7D 8A 67 34 B3 28 EE [21:41:58]CommunicateWithHost err = 0 [21:41:58]CheckOFDResponse [21:41:58]1017 (14) - 77093643461234 [21:41:58]1041 (16) - 0000000000871829 [21:41:58]1040 (4) - 67387 [21:41:58]1012 (4) - 15.05.2024 15:25 [21:41:58]1206 (1) - 0 [21:41:58]OFD Sender: Remove packet 67387 [21:41:58]ProducePacketName [21:41:58]name=ofd_packets/00067387 [21:41:58]NVStorageDeleteData [21:41:58]Write to MH i2c: 01 00 00 6A 33 9D [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 07 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 CF 0C 7F [21:41:58]RasterBufferAndPrint [21:41:58]line [21:41:58]line [21:41:58]line [21:41:58]line [21:41:58]line [21:41:58]written 0, free lines is 3288 [21:41:58]MH_Cut [21:41:58]Write to MH i2c: D1 01 00 71 33 01 76 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: D1 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: D1 01 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: D1 01 00 71 33 00 75 [21:41:58]Write to MH i2c: 01 00 00 72 33 A5 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:59]OFD Sender: No OFD packet to send [21:41:59]*** Cut start [21:41:59]*** Purtial cut [21:41:59]*** Stage 1: CUTSNS_PIN = 1 [21:41:59]Read from MH i2c: 01 [21:41:59]MH_I2C_Read... [21:41:59]*** Stop cut motor [21:41:59]*** Cut end [21:41:59]Read from MH i2c: 01 07 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 07 00 72 33 00 00 00 00 00 FF 0F BA [21:41:59]process_action close_receipt done [21:41:59]requested_data is exist [21:41:59]produce_requested_data [21:41:59]requested_item fm.sn is exist - process it [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 11 00 00 [21:41:59]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [21:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:41:59]wFMCommunicate OK [21:41:59]requested_item fd.num is exist - process it [21:41:59]SAM_PROTO_GetFieldsCounters [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 13 00 00 [21:41:59]Write to MH i2c: E2 08 00 74 33 80 13 00 00 00 00 00 00 23 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:00]Read from MH i2c: E2 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 62 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 62 00 74 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 3B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:42: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 3B 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:00]wFMCommunicate OK [21:42:00]SAM_PROTO_GetFieldsCounters done [21:42:00]requested_item shift.num is exist - process it [21:42:00]requested_item shift.opened is exist - process it [21:42:00]req_shift_opened [21:42:00]FM_GetShiftState [21:42:00]SAM_PROTO_GetShiftState [21:42:00]wFMCommunicate request_size=4 [21:42:00]MH_SAM_APDU [21:42:00]CAPDU: 80 13 01 00 [21:42:00]Write to MH i2c: E2 08 00 75 33 80 13 01 00 00 00 00 00 25 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:00]Read from MH i2c: E2 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 0E 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 0E 00 75 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D0 [21:42:00]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [21:42:00]wFMCommunicate OK [21:42:00]SAM_PROTO_GetShiftState done [21:42:00]FM_GetShiftState done [21:42:00]req_shift_opened done [21:42:00]requested_item shift.open_date is exist - process it [21:42:00]req_shift_open_date [21:42:00]req_shift_open_date done [21:42:00]produce_requested_data done [21:42:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67387,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [21:42:00]process_action_free close_receipt [21:42:00]json_value_free [21:42:00]json_value_free done [21:42:00]process_json_proto returns [21:42:00]Send response to host [21:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67387,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [21:42:00]free response buf [21:42:00]execute_script done [21:42:00]execute_script returns [21:42:00]free content buf [21:42:00]Sock 9.Close socket [21:42:00]Sock 9.Thread stoped [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:44]accept exits with 7 [22:09:44]New connection [22:09:44]New thread 3067174244 created [22:09:44]Thread 3067030884 joined [22:09:44]Waiting for new connection... [22:09:44] Sock 7.Parse request [22:09:44]Sock 7.Check first char [22:09:44]Sock 7.First char is OK [22:09:44]request: POST /json_proto HTTP/1.0 [22:09:44]Method: POST [22:09:44]URL: /json_proto [22:09:44]Method is POST - this is cgi request [22:09:44]url: /json_proto [22:09:44]query_string will be loaded in cgi processing [22:09:44]execute_cgi json_proto POST (null) [22:09:44]execute_cgi path=json_proto method=POST [22:09:44]POST find Content-Length [22:09:44]Host: 172.17.41.195:8080 [22:09:44]Content-Length: 675 [22:09:44]Content-Type: application/json [22:09:44] [22:09:44]POST finish read [22:09:44]Found Content-Length = 675 [22:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507366", "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" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:44]execute_script... [22:09: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)507366", "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" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:44]POST & json_proto [22:09:44]process_json_proto [22:09:44]json parsed OK: [22:09:44]protocol is kg_v1.0 [22:09:44]action value=close_receipt [22:09:44]process_action close_receipt [22:09:44]cmd_close_receipt [22:09:44]MH_GetDate [22:09:44]Write to MH i2c: F0 00 00 76 33 98 [22:09:44]Write i2c OK [22:09:44]MH_I2C_Read... [22:09:44]Read from MH i2c: F0 [22:09:44]MH_I2C_Read... [22:09:44]Read from MH i2c: F0 09 00 [22:09:44]MH_I2C_Read... [22:09:44]Read from MH i2c: F0 09 00 76 33 00 AB 32 45 66 FC 21 6F 64 19 [22:09:44]GetLastDocTimeStamp 1715809318 [22:09:44]current date 1715810987 [22:09:44]FM_GetShiftState [22:09:44]SAM_PROTO_GetShiftState [22:09:44]wFMCommunicate request_size=4 [22:09:44]MH_SAM_APDU [22:09:44]CAPDU: 80 13 01 00 [22:09:44]Write to MH i2c: E2 08 00 77 33 80 13 01 00 00 00 00 00 27 [22:09:44]Write i2c OK [22:09:44]MH_I2C_Read... [22:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:44]Read from MH i2c: E2 [22:09:44]MH_I2C_Read... [22:09:44]Read from MH i2c: E2 0E 00 [22:09:44]MH_I2C_Read... [22:09:44]Read from MH i2c: E2 0E 00 77 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D2 [22:09:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:09:44]wFMCommunicate OK [22:09:44]SAM_PROTO_GetShiftState done [22:09:44]FM_GetShiftState done [22:09:44]opened in 1715732471 [22:09:44]opened+sec_in_day 1715818871 [22:09:44]quantity*price = 150041 [22:09:44]sum+1 = 150042 [22:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 206 15.05.2024 22:09 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67388 ФПД: 71879677025571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T220947&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67388&fm=71879677025571&tin=02508201610067®Number=0000000000091845&sum=150000 [22:09:45]StoreToDocumentArchive [22:09:45]shift 356 fd 67388 [22:09:45]save to /storage/0356/doc_00067388 [22:09:45]save last doc name /storage/0356/doc_00067388 to /storage/kkm_last_doc_name [22:09:45]save OK [22:09:45]Clear old archive folders... [22:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:09:45]tlvbuf is 00B36A00 [22:09:45]SAM_PROTO_ClearQueue [22:09:45]wFMCommunicate request_size=4 [22:09:45]MH_SAM_APDU [22:09:45]CAPDU: 80 09 00 00 [22:09:45]Write to MH i2c: E2 08 00 84 33 80 09 00 00 00 00 00 00 29 [22:09:45]Write i2c OK [22:09:45]MH_I2C_Read... [22:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:45]OFD Sender: No OFD packet to send [22:09:45]Read from MH i2c: E2 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 84 33 00 90 00 2B [22:09:45]RAPDU: 90 00 [22:09:45]wFMCommunicate OK [22:09:45]SAM_PROTO_ClearQueue done [22:09:45]KKMCreateOFDPacket [22:09:45]OFDProtocolAddRootSTLVToBuf [22:09:45]FM_MakeSignedData [22:09:45]FM_MakeSignedData [22:09:45]SAM_PROTO_SignData [22:09:45]wFMCommunicate request_size=4 [22:09:45]MH_SAM_APDU [22:09:45]CAPDU: 80 0D 01 02 [22:09:45]Write to MH i2c: E2 08 00 85 33 80 0D 01 02 00 00 00 00 31 [22:09:45]Write i2c OK [22:09:45]MH_I2C_Read... [22:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:45]Read from MH i2c: E2 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 85 33 00 90 00 2C [22:09:45]RAPDU: 90 00 [22:09:45]wFMCommunicate OK [22:09:45]wFMCommunicate request_size=255 [22:09:45]MH_SAM_APDU [22:09:45]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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 AB 32 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 07 01 00 35 04 06 00 [22:09:45]Write to MH i2c: E2 02 01 86 33 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 AB 32 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 07 01 00 35 04 06 00 00 00 53 [22:09:45]Write i2c OK [22:09:45]MH_I2C_Read... [22:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:45]Read from MH i2c: E2 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 [22:09:45]MH_I2C_Read... [22:09:45]Read from MH i2c: E2 03 00 86 33 00 90 00 2D [22:09:45]RAPDU: 90 00 [22:09:45]wFMCommunicate OK [22:09:45]wFMCommunicate request_size=11 [22:09:45]MH_SAM_APDU [22:09:45]CAPDU: 80 0D 02 02 06 41 5F CA 9D 9D 23 [22:09:45]Write to MH i2c: E2 0E 00 87 33 80 0D 02 02 06 00 41 5F CA 9D 9D 23 00 00 07 [22:09:45]Write i2c OK [22:09:45]MH_I2C_Read... [22:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:46]Read from MH i2c: E2 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 03 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 03 00 87 33 00 90 00 2E [22:09:46]RAPDU: 90 00 [22:09:46]wFMCommunicate OK [22:09:46]wFMCommunicate request_size=4 [22:09:46]MH_SAM_APDU [22:09:46]CAPDU: 80 0D 03 02 [22:09:46]Write to MH i2c: E2 08 00 88 33 80 0D 03 02 00 00 00 00 36 [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:46]Read from MH i2c: E2 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 0B 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 0B 00 88 33 00 E8 6D 9A 5F 6C EF 5B B8 90 00 F3 [22:09:46]RAPDU: E8 6D 9A 5F 6C EF 5B B8 90 00 [22:09:46]wFMCommunicate OK [22:09:46]SAM_PROTO_SignData done [22:09:46]FM_MakeSignedData done [22:09:46]CreateOFDProtocolMessage [22:09:46]wFMCommunicate request_size=4 [22:09:46]MH_SAM_APDU [22:09:46]CAPDU: 80 11 00 00 [22:09:46]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:46]Read from MH i2c: E2 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 17 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [22:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:09:46]wFMCommunicate OK [22:09:46]CreateOFDProtocolMessage done [22:09:46]OFDSenderStorePacket 67388 [22:09:46]StoreOFDPacket docnum=67388 [22:09: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 10 01 00 00 96 9C 08 01 BA 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 AB 32 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 07 01 00 35 04 06 00 41 5F CA 9D 9D 23 E8 6D 9A 5F 6C EF 5B B8 [22:09:46]CheckFolder [22:09:46]dirname=/storage/ofd_packets [22:09:46]CheckFolder done [22:09:46]ProducePacketName [22:09:46]name=ofd_packets/00067388 [22:09:46]NVStorageSaveData ofd_packets/00067388 [22:09:46]File name is /storage/ofd_packets/00067388 [22:09:46]Write 302 bytes [22:09:46]NVStorageSaveData done [22:09:46]OFDSenderStorePacket done [22:09:46]KKMCreateOFDPacket done [22:09:46]NVStorageSaveData kkm_last_timestamp [22:09:46]File name is /storage/kkm_last_timestamp [22:09:46]Write 4 bytes [22:09:46]NVStorageSaveData done [22:09:46]ExternCall_PrintAddStr [22:09:46]wPrintStart [22:09:46]Write to MH i2c: 01 00 00 8A 33 BD [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 07 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 07 00 8A 33 00 00 00 00 00 FF 0F D2 [22:09:46]RasterBufferAndPrint [22:09:46]line Счет N : (1)507366 [22:09:46]line ИНН: 02508201610067 [22:09:46]line Контрольно-Кассовый Чек [22:09:46]line ПРОДАЖА [22:09:46]line ТРК (МРК, ГНК) : 32 [22:09:46]line Товар: 2710124130 [22:09:46]line Super-92-К-5 [22:09:46]line 22.130 * 67.80 [22:09:46]line = 1500.41 [22:09:46]line НДС 12% НСП 1% [22:09:46]line > о реализуемом товаре [22:09:46]line ОКРУГЛЕНИЕ: -0.41 [22:09:46]line ИТОГО: 1500.00 [22:09:46]line Внесено: 1500.00 [22:09:46]line СДАЧА: 0.00 [22:09:46]line НСП 1% : 13.28 [22:09:46]line НДС 12% : 159.34 [22:09:46]line Наличными: 1500.00 [22:09:46]line Безнал.: 0.00 [22:09:46]line Место: АЗС № 91 "Партнер Нефть" [22:09:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:09:46]line СНО: Общий режим [22:09:46]line Чек 206 15.05.2024 22:09 [22:09:46]line Смена: 356 ФФД: 1.0 [22:09:46]line ЗНМ: 0300000119 [22:09:46]line РНМ: 0000000000091845 [22:09:46]line Версия ККМ: 001 [22:09:46]line ФМ: 0000000000871829 [22:09:46]line ФД: 67388 [22:09:46]line ФПД: 71879677025571 [22:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T220947&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67388&fm=71879677025571&tin=02508201610067®Number=0000000000091845&sum=150000 [22:09:46]OFD Sender: Processing packet 67388 [packets to send 35, broken 34] [22:09:46]ProducePacketName [22:09:46]name=ofd_packets/00067388 [22:09:46]OFD Sender: To server: pG, [22:09:46]CommunicateWithHost lk.salyk.kg:30040 [22:09:46]ConnectInit lk.salyk.kg [22:09:46]written 0, free lines is 4095 [22:09:46]Connected sock=10 [22:09: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 10 01 00 00 96 9C 08 01 BA 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 F0 49 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 AB 32 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 07 01 00 35 04 06 00 41 5F CA 9D 9D 23 E8 6D 9A 5F 6C EF 5B B8 [22:09: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 57 A9 47 00 B4 9D 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 3C 07 01 00 F4 03 04 00 87 DA 44 66 B6 04 01 00 00 43 9D 87 EE DF B2 BE 5A [22:09:46]CommunicateWithHost err = 0 [22:09:46]CheckOFDResponse [22:09:46]1017 (14) - 77093643461234 [22:09:46]1041 (16) - 0000000000871829 [22:09:46]1040 (4) - 67388 [22:09:46]1012 (4) - 15.05.2024 15:53 [22:09:46]1206 (1) - 0 [22:09:46]OFD Sender: Remove packet 67388 [22:09:46]ProducePacketName [22:09:46]name=ofd_packets/00067388 [22:09:46]NVStorageDeleteData [22:09:46]Write to MH i2c: 01 00 00 B4 33 E7 [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 07 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: 01 07 00 B4 33 00 00 00 00 00 DA 0C D4 [22:09:46]RasterBufferAndPrint [22:09:46]line [22:09:46]line [22:09:46]line [22:09:46]line [22:09:46]line [22:09:46]written 0, free lines is 3296 [22:09:46]MH_Cut [22:09:46]Write to MH i2c: D1 01 00 BB 33 01 C0 [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: D1 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: D1 01 00 [22:09:46]MH_I2C_Read... [22:09:46]Read from MH i2c: D1 01 00 BB 33 00 BF [22:09:46]Write to MH i2c: 01 00 00 BC 33 EF [22:09:46]Write i2c OK [22:09:46]MH_I2C_Read... [22:09:47]OFD Sender: No OFD packet to send [22:09:47]*** Cut start [22:09:47]*** Purtial cut [22:09:47]*** CUTSNS_PIN = 0 [22:09:47]*** Stage 1: CUTSNS_PIN = 1 [22:09:49]Read from MH i2c: 01 [22:09:49]MH_I2C_Read... [22:09:49]*** Stop cut motor [22:09:49]*** Cut end [22:09:49]Read from MH i2c: 01 07 00 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: 01 07 00 BC 33 00 00 00 00 00 FF 0F 04 [22:09:49]process_action close_receipt done [22:09:49]requested_data is exist [22:09:49]produce_requested_data [22:09:49]requested_item fm.sn is exist - process it [22:09:49]wFMCommunicate request_size=4 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 11 00 00 [22:09:49]Write to MH i2c: E2 08 00 BD 33 80 11 00 00 00 00 00 00 6A [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:49]Read from MH i2c: E2 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 17 00 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 17 00 BD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [22:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:09:49]wFMCommunicate OK [22:09:49]requested_item fd.num is exist - process it [22:09:49]SAM_PROTO_GetFieldsCounters [22:09:49]wFMCommunicate request_size=4 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 13 00 00 [22:09:49]Write to MH i2c: E2 08 00 BE 33 80 13 00 00 00 00 00 00 6D [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:49]Read from MH i2c: E2 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 62 00 [22:09:49]MH_I2C_Read... [22:09:49]Read from MH i2c: E2 62 00 BE 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 3C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [22:09: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 3C 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:49]wFMCommunicate OK [22:09:49]SAM_PROTO_GetFieldsCounters done [22:09:49]requested_item shift.num is exist - process it [22:09:49]requested_item shift.opened is exist - process it [22:09:49]req_shift_opened [22:09:49]FM_GetShiftState [22:09:49]SAM_PROTO_GetShiftState [22:09:49]wFMCommunicate request_size=4 [22:09:49]MH_SAM_APDU [22:09:49]CAPDU: 80 13 01 00 [22:09:49]Write to MH i2c: E2 08 00 BF 33 80 13 01 00 00 00 00 00 6F [22:09:49]Write i2c OK [22:09:49]MH_I2C_Read... [22:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:50]Read from MH i2c: E2 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 0E 00 [22:09:50]MH_I2C_Read... [22:09:50]Read from MH i2c: E2 0E 00 BF 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1A [22:09:50]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:09:50]wFMCommunicate OK [22:09:50]SAM_PROTO_GetShiftState done [22:09:50]FM_GetShiftState done [22:09:50]req_shift_opened done [22:09:50]requested_item shift.open_date is exist - process it [22:09:50]req_shift_open_date [22:09:50]req_shift_open_date done [22:09:50]produce_requested_data done [22:09:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67388,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:09:50]process_action_free close_receipt [22:09:50]json_value_free [22:09:50]json_value_free done [22:09:50]process_json_proto returns [22:09:50]Send response to host [22:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67388,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:09:50]free response buf [22:09:50]execute_script done [22:09:50]execute_script returns [22:09:50]free content buf [22:09:50]Sock 7.Close socket [22:09:50]Sock 7.Thread stoped [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:39]accept exits with 9 [22:23:39]New connection [22:23:39]New thread 3067030884 created [22:23:39]Thread 3067174244 joined [22:23:39]Waiting for new connection... [22:23:39] Sock 9.Parse request [22:23:39]Sock 9.Check first char [22:23:39]Sock 9.First char is OK [22:23:39]request: POST /json_proto HTTP/1.0 [22:23:39]Method: POST [22:23:39]URL: /json_proto [22:23:39]Method is POST - this is cgi request [22:23:39]url: /json_proto [22:23:39]query_string will be loaded in cgi processing [22:23:39]execute_cgi json_proto POST (null) [22:23:39]execute_cgi path=json_proto method=POST [22:23:39]POST find Content-Length [22:23:39]Host: 172.17.41.195:8080 [22:23:39]Content-Length: 800 [22:23:39]Content-Type: application/json [22:23:39] [22:23:39]POST finish read [22:23:39]Found Content-Length = 800 [22:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507367", "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" ] } } [22:23:39]execute_script... [22:23: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)507367", "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" ] } } [22:23:39]POST & json_proto [22:23:39]process_json_proto [22:23:39]json parsed OK: [22:23:39]protocol is kg_v1.0 [22:23:39]action value=close_receipt [22:23:39]process_action close_receipt [22:23:39]cmd_close_receipt [22:23:39]MH_GetDate [22:23:39]Write to MH i2c: F0 00 00 C0 33 E2 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: F0 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: F0 09 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: F0 09 00 C0 33 00 ED 35 45 66 FC 21 6F 64 A8 [22:23:39]GetLastDocTimeStamp 1715810987 [22:23:39]current date 1715811821 [22:23:39]FM_GetShiftState [22:23:39]SAM_PROTO_GetShiftState [22:23:39]wFMCommunicate request_size=4 [22:23:39]MH_SAM_APDU [22:23:39]CAPDU: 80 13 01 00 [22:23:39]Write to MH i2c: E2 08 00 C1 33 80 13 01 00 00 00 00 00 71 [22:23:39]Write i2c OK [22:23:39]MH_I2C_Read... [22:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:39]Read from MH i2c: E2 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 [22:23:39]MH_I2C_Read... [22:23:39]Read from MH i2c: E2 0E 00 C1 33 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 1C [22:23:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:23:39]wFMCommunicate OK [22:23:39]SAM_PROTO_GetShiftState done [22:23:39]FM_GetShiftState done [22:23:39]opened in 1715732471 [22:23:39]opened+sec_in_day 1715818871 [22:23:39]quantity*price = 100023 [22:23:39]sum+1 = 100024 [22:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 207 15.05.2024 22:23 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67389 ФПД: 24195810212076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T222341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67389&fm=24195810212076&tin=02508201610067®Number=0000000000091845&sum=100023 [22:23:40]StoreToDocumentArchive [22:23:40]shift 356 fd 67389 [22:23:40]save to /storage/0356/doc_00067389 [22:23:40]save last doc name /storage/0356/doc_00067389 to /storage/kkm_last_doc_name [22:23:40]save OK [22:23:40]Clear old archive folders... [22:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:23:40]tlvbuf is 00B3AF70 [22:23:40]SAM_PROTO_ClearQueue [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 09 00 00 [22:23:40]Write to MH i2c: E2 08 00 CE 33 80 09 00 00 00 00 00 00 73 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 CE 33 00 90 00 75 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]SAM_PROTO_ClearQueue done [22:23:40]KKMCreateOFDPacket [22:23:40]OFDProtocolAddRootSTLVToBuf [22:23:40]FM_MakeSignedData [22:23:40]FM_MakeSignedData [22:23:40]SAM_PROTO_SignData [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 01 02 [22:23:40]Write to MH i2c: E2 08 00 CF 33 80 0D 01 02 00 00 00 00 7B [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 CF 33 00 90 00 76 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=255 [22:23:40]MH_SAM_APDU [22:23:40]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 CF 00 00 00 F4 03 04 00 ED 35 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3D 07 01 00 35 04 06 00 16 01 86 AC [22:23:40]Write to MH i2c: E2 02 01 D0 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 CF 00 00 00 F4 03 04 00 ED 35 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3D 07 01 00 35 04 06 00 16 01 86 AC 00 00 12 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 D0 33 00 90 00 77 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=7 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 02 02 02 38 EC [22:23:40]Write to MH i2c: E2 0A 00 D1 33 80 0D 02 02 02 00 38 EC 00 00 A6 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 03 00 D1 33 00 90 00 78 [22:23:40]RAPDU: 90 00 [22:23:40]wFMCommunicate OK [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 0D 03 02 [22:23:40]Write to MH i2c: E2 08 00 D2 33 80 0D 03 02 00 00 00 00 80 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 0B 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 0B 00 D2 33 00 82 23 50 37 F9 C5 0F F0 90 00 6A [22:23:40]RAPDU: 82 23 50 37 F9 C5 0F F0 90 00 [22:23:40]wFMCommunicate OK [22:23:40]SAM_PROTO_SignData done [22:23:40]FM_MakeSignedData done [22:23:40]CreateOFDProtocolMessage [22:23:40]wFMCommunicate request_size=4 [22:23:40]MH_SAM_APDU [22:23:40]CAPDU: 80 11 00 00 [22:23:40]Write to MH i2c: E2 08 00 D3 33 80 11 00 00 00 00 00 00 80 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:40]Read from MH i2c: E2 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 17 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: E2 17 00 D3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [22:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:23:40]wFMCommunicate OK [22:23:40]CreateOFDProtocolMessage done [22:23:40]OFDSenderStorePacket 67389 [22:23:40]StoreOFDPacket docnum=67389 [22:23: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 0C 01 00 00 90 67 04 01 35 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 CF 00 00 00 F4 03 04 00 ED 35 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3D 07 01 00 35 04 06 00 16 01 86 AC 38 EC 82 23 50 37 F9 C5 0F F0 [22:23:40]CheckFolder [22:23:40]dirname=/storage/ofd_packets [22:23:40]CheckFolder done [22:23:40]ProducePacketName [22:23:40]name=ofd_packets/00067389 [22:23:40]NVStorageSaveData ofd_packets/00067389 [22:23:40]File name is /storage/ofd_packets/00067389 [22:23:40]Write 298 bytes [22:23:40]NVStorageSaveData done [22:23:40]OFDSenderStorePacket done [22:23:40]KKMCreateOFDPacket done [22:23:40]NVStorageSaveData kkm_last_timestamp [22:23:40]File name is /storage/kkm_last_timestamp [22:23:40]Write 4 bytes [22:23:40]NVStorageSaveData done [22:23:40]ExternCall_PrintAddStr [22:23:40]wPrintStart [22:23:40]Write to MH i2c: 01 00 00 D4 33 07 [22:23:40]Write i2c OK [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 07 00 [22:23:40]MH_I2C_Read... [22:23:40]Read from MH i2c: 01 07 00 D4 33 00 00 00 00 00 FF 0F 1C [22:23:40]RasterBufferAndPrint [22:23:40]line Счет N : (1)507367 [22:23:40]line ИНН: 02508201610067 [22:23:40]line Контрольно-Кассовый Чек [22:23:40]line ПРОДАЖА [22:23:40]line ТРК (МРК, ГНК) : 41 [22:23:40]line Товар: 2710194210 [22:23:40]line ДТ-К-5 [22:23:40]line 13.390 * 74.70 [22:23:40]line = 1000.23 [22:23:40]line НДС 12% НСП 1% [22:23:40]line > о реализуемом товаре [22:23:40]line ИТОГО: 1000.23 [22:23:40]line НСП 1% : 8.85 [22:23:40]line НДС 12% : 106.22 [22:23:40]line Наличными: 0.00 [22:23:40]line Безнал.: 1000.23 [22:23:40]line Место: АЗС № 91 "Партнер Нефть" [22:23:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:23:40]line СНО: Общий режим [22:23:40]line Чек 207 15.05.2024 22:23 [22:23:40]line Смена: 356 ФФД: 1.0 [22:23:40]line ЗНМ: 0300000119 [22:23:40]line РНМ: 0000000000091845 [22:23:40]line Версия ККМ: 001 [22:23:40]line Платежная система: O! деньги [22:23:40]line ФМ: 0000000000871829 [22:23:40]line ФД: 67389 [22:23:40]line ФПД: 24195810212076 [22:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T222341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67389&fm=24195810212076&tin=02508201610067®Number=0000000000091845&sum=100023 [22:23:41]OFD Sender: Processing packet 67389 [packets to send 35, broken 34] [22:23:41]ProducePacketName [22:23:41]name=ofd_packets/00067389 [22:23:41]OFD Sender: To server: pG, [22:23:41]CommunicateWithHost lk.salyk.kg:30040 [22:23:41]ConnectInit lk.salyk.kg [22:23:41]written 0, free lines is 4095 [22:23:41]Connected sock=7 [22:23: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 0C 01 00 00 90 67 04 01 35 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 CF 00 00 00 F4 03 04 00 ED 35 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3D 07 01 00 35 04 06 00 16 01 86 AC 38 EC 82 23 50 37 F9 C5 0F F0 [22:23: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 D4 5E 47 00 7D 0B 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 3D 07 01 00 F4 03 04 00 CA DD 44 66 B6 04 01 00 00 A0 B0 C3 EF C7 7E 82 5C [22:23:41]CommunicateWithHost err = 0 [22:23:41]CheckOFDResponse [22:23:41]1017 (14) - 77093643461234 [22:23:41]1041 (16) - 0000000000871829 [22:23:41]1040 (4) - 67389 [22:23:41]1012 (4) - 15.05.2024 16:07 [22:23:41]1206 (1) - 0 [22:23:41]OFD Sender: Remove packet 67389 [22:23:41]ProducePacketName [22:23:41]name=ofd_packets/00067389 [22:23:41]NVStorageDeleteData [22:23:41]Write to MH i2c: 01 00 00 FD 33 30 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 07 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: 01 07 00 FD 33 00 00 00 00 00 ED 0C 30 [22:23:41]RasterBufferAndPrint [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]line [22:23:41]written 0, free lines is 3315 [22:23:41]MH_Cut [22:23:41]Write to MH i2c: D1 01 00 04 34 01 0A [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: D1 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: D1 01 00 [22:23:41]MH_I2C_Read... [22:23:41]Read from MH i2c: D1 01 00 04 34 00 09 [22:23:41]Write to MH i2c: 01 00 00 05 34 39 [22:23:41]Write i2c OK [22:23:41]MH_I2C_Read... [22:23:41]OFD Sender: No OFD packet to send [22:23:42]*** Cut start [22:23:42]*** Purtial cut [22:23:42]*** Stage 1: CUTSNS_PIN = 1 [22:23:42]Read from MH i2c: 01 [22:23:42]MH_I2C_Read... [22:23:42]*** Stop cut motor [22:23:42]*** Cut end [22:23:42]Read from MH i2c: 01 07 00 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: 01 07 00 05 34 00 00 00 00 00 FF 0F 4E [22:23:42]process_action close_receipt done [22:23:42]requested_data is exist [22:23:42]produce_requested_data [22:23:42]requested_item fm.sn is exist - process it [22:23:42]wFMCommunicate request_size=4 [22:23:42]MH_SAM_APDU [22:23:42]CAPDU: 80 11 00 00 [22:23:42]Write to MH i2c: E2 08 00 06 34 80 11 00 00 00 00 00 00 B4 [22:23:42]Write i2c OK [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 [22:23:42]MH_I2C_Read... [22:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:42]Read from MH i2c: E2 17 00 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 17 00 06 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [22:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:23:42]wFMCommunicate OK [22:23:42]requested_item fd.num is exist - process it [22:23:42]SAM_PROTO_GetFieldsCounters [22:23:42]wFMCommunicate request_size=4 [22:23:42]MH_SAM_APDU [22:23:42]CAPDU: 80 13 00 00 [22:23:42]Write to MH i2c: E2 08 00 07 34 80 13 00 00 00 00 00 00 B7 [22:23:42]Write i2c OK [22:23:42]MH_I2C_Read... [22:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:42]Read from MH i2c: E2 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 62 00 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 62 00 07 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 3D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [22:23: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 3D 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:42]wFMCommunicate OK [22:23:42]SAM_PROTO_GetFieldsCounters done [22:23:42]requested_item shift.num is exist - process it [22:23:42]requested_item shift.opened is exist - process it [22:23:42]req_shift_opened [22:23:42]FM_GetShiftState [22:23:42]SAM_PROTO_GetShiftState [22:23:42]wFMCommunicate request_size=4 [22:23:42]MH_SAM_APDU [22:23:42]CAPDU: 80 13 01 00 [22:23:42]Write to MH i2c: E2 08 00 08 34 80 13 01 00 00 00 00 00 B9 [22:23:42]Write i2c OK [22:23:42]MH_I2C_Read... [22:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:42]Read from MH i2c: E2 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 0E 00 [22:23:42]MH_I2C_Read... [22:23:42]Read from MH i2c: E2 0E 00 08 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 64 [22:23:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:23:42]wFMCommunicate OK [22:23:42]SAM_PROTO_GetShiftState done [22:23:42]FM_GetShiftState done [22:23:42]req_shift_opened done [22:23:42]requested_item shift.open_date is exist - process it [22:23:42]req_shift_open_date [22:23:42]req_shift_open_date done [22:23:42]produce_requested_data done [22:23:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67389,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:23:42]process_action_free close_receipt [22:23:42]json_value_free [22:23:42]json_value_free done [22:23:42]process_json_proto returns [22:23:42]Send response to host [22:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67389,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:23:42]free response buf [22:23:42]execute_script done [22:23:42]execute_script returns [22:23:42]free content buf [22:23:42]Sock 9.Close socket [22:23:42]Sock 9.Thread stoped [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:39]accept exits with 10 [22:34:39]New connection [22:34:39]New thread 3067174244 created [22:34:39]Thread 3067030884 joined [22:34:39]Waiting for new connection... [22:34:39] Sock 10.Parse request [22:34:39]Sock 10.Check first char [22:34:39]Sock 10.First char is OK [22:34:39]request: POST /json_proto HTTP/1.0 [22:34:39]Method: POST [22:34:39]URL: /json_proto [22:34:39]Method is POST - this is cgi request [22:34:39]url: /json_proto [22:34:39]query_string will be loaded in cgi processing [22:34:39]execute_cgi json_proto POST (null) [22:34:39]execute_cgi path=json_proto method=POST [22:34:39]POST find Content-Length [22:34:39]Host: 172.17.41.195:8080 [22:34:39]Content-Length: 798 [22:34:39]Content-Type: application/json [22:34:39] [22:34:39]POST finish read [22:34:39]Found Content-Length = 798 [22:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507368", "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" ] } } [22:34:39]execute_script... [22:34: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)507368", "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" ] } } [22:34:39]POST & json_proto [22:34:39]process_json_proto [22:34:39]json parsed OK: [22:34:39]protocol is kg_v1.0 [22:34:39]action value=close_receipt [22:34:39]process_action close_receipt [22:34:39]cmd_close_receipt [22:34:39]MH_GetDate [22:34:39]Write to MH i2c: F0 00 00 09 34 2C [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: F0 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: F0 09 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: F0 09 00 09 34 00 82 38 45 66 FC 21 6F 64 8A [22:34:39]GetLastDocTimeStamp 1715811821 [22:34:39]current date 1715812482 [22:34:39]FM_GetShiftState [22:34:39]SAM_PROTO_GetShiftState [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 13 01 00 [22:34:39]Write to MH i2c: E2 08 00 0A 34 80 13 01 00 00 00 00 00 BB [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 0E 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 0E 00 0A 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 66 [22:34:39]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:34:39]wFMCommunicate OK [22:34:39]SAM_PROTO_GetShiftState done [22:34:39]FM_GetShiftState done [22:34:39]opened in 1715732471 [22:34:39]opened+sec_in_day 1715818871 [22:34:39]quantity*price = 80003 [22:34:39]sum+1 = 80005 [22:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 208 15.05.2024 22:34 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67390 ФПД: 88051959467719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T223442&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67390&fm=88051959467719&tin=02508201610067®Number=0000000000091845&sum=80004 [22:34:40]StoreToDocumentArchive [22:34:40]shift 356 fd 67390 [22:34:40]save to /storage/0356/doc_00067390 [22:34:40]save last doc name /storage/0356/doc_00067390 to /storage/kkm_last_doc_name [22:34:40]save OK [22:34:40]Clear old archive folders... [22:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:34:40]tlvbuf is 00B277C0 [22:34:40]SAM_PROTO_ClearQueue [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 09 00 00 [22:34:40]Write to MH i2c: E2 08 00 17 34 80 09 00 00 00 00 00 00 BD [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 17 34 00 90 00 BF [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]SAM_PROTO_ClearQueue done [22:34:40]KKMCreateOFDPacket [22:34:40]OFDProtocolAddRootSTLVToBuf [22:34:40]FM_MakeSignedData [22:34:40]FM_MakeSignedData [22:34:40]SAM_PROTO_SignData [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 01 02 [22:34:40]Write to MH i2c: E2 08 00 18 34 80 0D 01 02 00 00 00 00 C5 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 18 34 00 90 00 C0 [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=255 [22:34:40]MH_SAM_APDU [22:34:40]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 D0 00 00 00 F4 03 04 00 82 38 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3E 07 01 00 35 04 06 00 50 15 31 C4 [22:34:40]Write to MH i2c: E2 02 01 19 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 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 D0 00 00 00 F4 03 04 00 82 38 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3E 07 01 00 35 04 06 00 50 15 31 C4 00 00 F9 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 19 34 00 90 00 C1 [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=7 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 02 02 02 0E C7 [22:34:40]Write to MH i2c: E2 0A 00 1A 34 80 0D 02 02 02 00 0E C7 00 00 A1 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 1A 34 00 90 00 C2 [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 03 02 [22:34:40]Write to MH i2c: E2 08 00 1B 34 80 0D 03 02 00 00 00 00 CA [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 1B 34 00 9C 58 B1 88 0F DA D1 8F 90 00 41 [22:34:40]RAPDU: 9C 58 B1 88 0F DA D1 8F 90 00 [22:34:40]wFMCommunicate OK [22:34:40]SAM_PROTO_SignData done [22:34:40]FM_MakeSignedData done [22:34:40]CreateOFDProtocolMessage [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 11 00 00 [22:34:40]Write to MH i2c: E2 08 00 1C 34 80 11 00 00 00 00 00 00 CA [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 17 00 [22:34:40]MH_I2C_Read... [22:34:40]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 [22:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:34:40]wFMCommunicate OK [22:34:40]CreateOFDProtocolMessage done [22:34:40]OFDSenderStorePacket 67390 [22:34:40]StoreOFDPacket docnum=67390 [22:34: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 0C 01 00 00 08 3C 04 01 35 35 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 D0 00 00 00 F4 03 04 00 82 38 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3E 07 01 00 35 04 06 00 50 15 31 C4 0E C7 9C 58 B1 88 0F DA D1 8F [22:34:40]CheckFolder [22:34:40]dirname=/storage/ofd_packets [22:34:40]CheckFolder done [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00067390 [22:34:40]NVStorageSaveData ofd_packets/00067390 [22:34:40]File name is /storage/ofd_packets/00067390 [22:34:40]Write 298 bytes [22:34:40]NVStorageSaveData done [22:34:40]OFDSenderStorePacket done [22:34:40]KKMCreateOFDPacket done [22:34:40]NVStorageSaveData kkm_last_timestamp [22:34:40]File name is /storage/kkm_last_timestamp [22:34:40]Write 4 bytes [22:34:40]NVStorageSaveData done [22:34:40]ExternCall_PrintAddStr [22:34:40]wPrintStart [22:34:40]Write to MH i2c: 01 00 00 1D 34 51 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 1D 34 00 00 00 00 00 FF 0F 66 [22:34:40]RasterBufferAndPrint [22:34:40]line Счет N : (1)507368 [22:34:40]line ИНН: 02508201610067 [22:34:40]line Контрольно-Кассовый Чек [22:34:40]line ПРОДАЖА [22:34:40]line ТРК (МРК, ГНК) : 31 [22:34:40]line Товар: 2710194210 [22:34:40]line ДТ-К-5 [22:34:40]line 10.710 * 74.70 [22:34:40]line = 800.04 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line ИТОГО: 800.04 [22:34:40]line НСП 1% : 7.08 [22:34:40]line НДС 12% : 84.96 [22:34:40]line Наличными: 0.00 [22:34:40]line Безнал.: 800.04 [22:34:40]line Место: АЗС № 91 "Партнер Нефть" [22:34:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:34:40]line СНО: Общий режим [22:34:40]line Чек 208 15.05.2024 22:34 [22:34:40]line Смена: 356 ФФД: 1.0 [22:34:40]line ЗНМ: 0300000119 [22:34:40]line РНМ: 0000000000091845 [22:34:40]line Версия ККМ: 001 [22:34:40]line Платежная система: O! деньги [22:34:40]line ФМ: 0000000000871829 [22:34:40]line ФД: 67390 [22:34:40]line ФПД: 88051959467719 [22:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T223442&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67390&fm=88051959467719&tin=02508201610067®Number=0000000000091845&sum=80004 [22:34:40]written 0, free lines is 4095 [22:34:41]OFD Sender: Processing packet 67390 [packets to send 35, broken 34] [22:34:41]ProducePacketName [22:34:41]name=ofd_packets/00067390 [22:34:41]OFD Sender: To server: pG, [22:34:41]CommunicateWithHost lk.salyk.kg:30040 [22:34:41]ConnectInit lk.salyk.kg [22:34:41]Connected sock=9 [22:34: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 0C 01 00 00 08 3C 04 01 35 35 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 D0 00 00 00 F4 03 04 00 82 38 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3E 07 01 00 35 04 06 00 50 15 31 C4 0E C7 9C 58 B1 88 0F DA D1 8F [22:34: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 E7 89 47 00 8B 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 3E 07 01 00 F4 03 04 00 5E E0 44 66 B6 04 01 00 00 4A 0A E7 94 BA C6 65 91 [22:34:41]CommunicateWithHost err = 0 [22:34:41]CheckOFDResponse [22:34:41]1017 (14) - 77093643461234 [22:34:41]1041 (16) - 0000000000871829 [22:34:41]1040 (4) - 67390 [22:34:41]1012 (4) - 15.05.2024 16:18 [22:34:41]1206 (1) - 0 [22:34:41]OFD Sender: Remove packet 67390 [22:34:41]ProducePacketName [22:34:41]name=ofd_packets/00067390 [22:34:41]NVStorageDeleteData [22:34:41]Write to MH i2c: 01 00 00 46 34 7A [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 46 34 00 00 00 00 00 D8 0C 65 [22:34:41]RasterBufferAndPrint [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]written 0, free lines is 3296 [22:34:41]MH_Cut [22:34:41]Write to MH i2c: D1 01 00 4D 34 01 53 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 4D 34 00 52 [22:34:41]Write to MH i2c: 01 00 00 4E 34 82 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]OFD Sender: No OFD packet to send [22:34:42]*** Cut start [22:34:42]*** Purtial cut [22:34:42]*** CUTSNS_PIN = 0 [22:34:42]*** Stage 1: CUTSNS_PIN = 1 [22:34:44]Read from MH i2c: 01 [22:34:44]MH_I2C_Read... [22:34:44]*** Stop cut motor [22:34:44]*** Cut end [22:34:44]Read from MH i2c: 01 07 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: 01 07 00 4E 34 00 00 00 00 00 FF 0F 97 [22:34:44]process_action close_receipt done [22:34:44]requested_data is exist [22:34:44]produce_requested_data [22:34:44]requested_item fm.sn is exist - process it [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 11 00 00 [22:34:44]Write to MH i2c: E2 08 00 4F 34 80 11 00 00 00 00 00 00 FD [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 17 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 17 00 4F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [22: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 [22:34:44]wFMCommunicate OK [22:34:44]requested_item fd.num is exist - process it [22:34:44]SAM_PROTO_GetFieldsCounters [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 13 00 00 [22:34:44]Write to MH i2c: E2 08 00 50 34 80 13 00 00 00 00 00 00 00 [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 62 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 62 00 50 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 3E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [22: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 3E 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:44]wFMCommunicate OK [22:34:44]SAM_PROTO_GetFieldsCounters done [22:34:44]requested_item shift.num is exist - process it [22:34:44]requested_item shift.opened is exist - process it [22:34:44]req_shift_opened [22:34:44]FM_GetShiftState [22:34:44]SAM_PROTO_GetShiftState [22:34:44]wFMCommunicate request_size=4 [22:34:44]MH_SAM_APDU [22:34:44]CAPDU: 80 13 01 00 [22:34:44]Write to MH i2c: E2 08 00 51 34 80 13 01 00 00 00 00 00 02 [22:34:44]Write i2c OK [22:34:44]MH_I2C_Read... [22:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:44]Read from MH i2c: E2 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 0E 00 [22:34:44]MH_I2C_Read... [22:34:44]Read from MH i2c: E2 0E 00 51 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AD [22:34:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:34:44]wFMCommunicate OK [22:34:44]SAM_PROTO_GetShiftState done [22:34:44]FM_GetShiftState done [22:34:44]req_shift_opened done [22:34:44]requested_item shift.open_date is exist - process it [22:34:44]req_shift_open_date [22:34:44]req_shift_open_date done [22:34:44]produce_requested_data done [22:34:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67390,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:34:44]process_action_free close_receipt [22:34:44]json_value_free [22:34:44]json_value_free done [22:34:44]process_json_proto returns [22:34:44]Send response to host [22:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67390,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:34:44]free response buf [22:34:44]execute_script done [22:34:44]execute_script returns [22:34:44]free content buf [22:34:44]Sock 10.Close socket [22:34:44]Sock 10.Thread stoped [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:55]accept exits with 7 [22:38:55]New connection [22:38:55]New thread 3067030884 created [22:38:55]Thread 3067174244 joined [22:38:55]Waiting for new connection... [22:38:55] Sock 7.Parse request [22:38:55]Sock 7.Check first char [22:38:55]Sock 7.First char is OK [22:38:55]request: POST /json_proto HTTP/1.0 [22:38:55]Method: POST [22:38:55]URL: /json_proto [22:38:55]Method is POST - this is cgi request [22:38:55]url: /json_proto [22:38:55]query_string will be loaded in cgi processing [22:38:55]execute_cgi json_proto POST (null) [22:38:55]execute_cgi path=json_proto method=POST [22:38:55]POST find Content-Length [22:38:55]Host: 172.17.41.195:8080 [22:38:55]Content-Length: 677 [22:38:55]Content-Type: application/json [22:38:55] [22:38:55]POST finish read [22:38:55]Found Content-Length = 677 [22:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507369", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:55]execute_script... [22:38: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)507369", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:55]POST & json_proto [22:38:55]process_json_proto [22:38:55]json parsed OK: [22:38:55]protocol is kg_v1.0 [22:38:55]action value=close_receipt [22:38:55]process_action close_receipt [22:38:55]cmd_close_receipt [22:38:55]MH_GetDate [22:38:55]Write to MH i2c: F0 00 00 52 34 75 [22:38:55]Write i2c OK [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 09 00 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 09 00 52 34 00 82 39 45 66 FC 21 6F 64 D4 [22:38:55]GetLastDocTimeStamp 1715812482 [22:38:55]current date 1715812738 [22:38:55]FM_GetShiftState [22:38:55]SAM_PROTO_GetShiftState [22:38:55]wFMCommunicate request_size=4 [22:38:55]MH_SAM_APDU [22:38:55]CAPDU: 80 13 01 00 [22:38:55]Write to MH i2c: E2 08 00 53 34 80 13 01 00 00 00 00 00 04 [22:38:55]Write i2c OK [22:38:55]MH_I2C_Read... [22:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:55]Read from MH i2c: E2 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: E2 0E 00 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: E2 0E 00 53 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 AF [22:38:55]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:38:55]wFMCommunicate OK [22:38:55]SAM_PROTO_GetShiftState done [22:38:55]FM_GetShiftState done [22:38:55]opened in 1715732471 [22:38:55]opened+sec_in_day 1715818871 [22:38:55]quantity*price = 20040 [22:38:55]sum+1 = 20041 [22:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 209 15.05.2024 22:38 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67391 ФПД: 142240705577439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T223858&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67391&fm=142240705577439&tin=02508201610067®Number=0000000000091845&sum=20000 [22:38:56]StoreToDocumentArchive [22:38:56]shift 356 fd 67391 [22:38:56]save to /storage/0356/doc_00067391 [22:38:56]save last doc name /storage/0356/doc_00067391 to /storage/kkm_last_doc_name [22:38:56]save OK [22:38:56]Clear old archive folders... [22:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:56]tlvbuf is B6EDE570 [22:38:56]SAM_PROTO_ClearQueue [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 09 00 00 [22:38:56]Write to MH i2c: E2 08 00 60 34 80 09 00 00 00 00 00 00 06 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 60 34 00 90 00 08 [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]SAM_PROTO_ClearQueue done [22:38:56]KKMCreateOFDPacket [22:38:56]OFDProtocolAddRootSTLVToBuf [22:38:56]FM_MakeSignedData [22:38:56]FM_MakeSignedData [22:38:56]SAM_PROTO_SignData [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 0D 01 02 [22:38:56]Write to MH i2c: E2 08 00 61 34 80 0D 01 02 00 00 00 00 0E [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 61 34 00 90 00 09 [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]wFMCommunicate request_size=255 [22:38:56]MH_SAM_APDU [22:38:56]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 20 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 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 82 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 07 01 00 35 04 06 00 81 [22:38:56]Write to MH i2c: E2 02 01 62 34 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 20 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 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 82 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 07 01 00 35 04 06 00 81 00 00 F1 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 62 34 00 90 00 0A [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]wFMCommunicate request_size=10 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 0D 02 02 05 5D FE BA 81 DF [22:38:56]Write to MH i2c: E2 0D 00 63 34 80 0D 02 02 05 00 5D FE BA 81 DF 00 00 90 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 63 34 00 90 00 0B [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 0D 03 02 [22:38:56]Write to MH i2c: E2 08 00 64 34 80 0D 03 02 00 00 00 00 13 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 0B 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 0B 00 64 34 00 3B C8 4A E5 71 C4 B1 2E 90 00 5A [22:38:56]RAPDU: 3B C8 4A E5 71 C4 B1 2E 90 00 [22:38:56]wFMCommunicate OK [22:38:56]SAM_PROTO_SignData done [22:38:56]FM_MakeSignedData done [22:38:56]CreateOFDProtocolMessage [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 11 00 00 [22:38:56]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 17 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [22:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:38:56]wFMCommunicate OK [22:38:56]CreateOFDProtocolMessage done [22:38:56]OFDSenderStorePacket 67391 [22:38:56]StoreOFDPacket docnum=67391 [22:38: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 0F 01 00 00 43 F5 07 01 DE E6 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 20 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 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 82 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 07 01 00 35 04 06 00 81 5D FE BA 81 DF 3B C8 4A E5 71 C4 B1 2E [22:38:56]CheckFolder [22:38:56]dirname=/storage/ofd_packets [22:38:56]CheckFolder done [22:38:56]ProducePacketName [22:38:56]name=ofd_packets/00067391 [22:38:56]NVStorageSaveData ofd_packets/00067391 [22:38:56]File name is /storage/ofd_packets/00067391 [22:38:56]Write 301 bytes [22:38:56]NVStorageSaveData done [22:38:56]OFDSenderStorePacket done [22:38:56]KKMCreateOFDPacket done [22:38:56]NVStorageSaveData kkm_last_timestamp [22:38:56]File name is /storage/kkm_last_timestamp [22:38:56]Write 4 bytes [22:38:56]NVStorageSaveData done [22:38:56]ExternCall_PrintAddStr [22:38:56]wPrintStart [22:38:56]Write to MH i2c: 01 00 00 66 34 9A [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: 01 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: 01 07 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: 01 07 00 66 34 00 00 00 00 00 FF 0F AF [22:38:56]RasterBufferAndPrint [22:38:56]line Счет N : (1)507369 [22:38:56]line ИНН: 02508201610067 [22:38:56]line Контрольно-Кассовый Чек [22:38:56]line ПРОДАЖА [22:38:56]line ТРК (МРК, ГНК) : 33 [22:38:56]line Товар: 2710124130 [22:38:56]line Аи-92-К-5 [22:38:56]line 3.000 * 66.80 [22:38:56]line = 200.40 [22:38:56]line НДС 12% НСП 1% [22:38:56]line > о реализуемом товаре [22:38:56]line ОКРУГЛЕНИЕ: -0.40 [22:38:56]line ИТОГО: 200.00 [22:38:56]line Внесено: 200.00 [22:38:56]line СДАЧА: 0.00 [22:38:56]line НСП 1% : 1.77 [22:38:56]line НДС 12% : 21.28 [22:38:56]line Наличными: 200.00 [22:38:56]line Безнал.: 0.00 [22:38:56]line Место: АЗС № 91 "Партнер Нефть" [22:38:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:38:56]line СНО: Общий режим [22:38:56]line Чек 209 15.05.2024 22:38 [22:38:56]line Смена: 356 ФФД: 1.0 [22:38:56]line ЗНМ: 0300000119 [22:38:56]line РНМ: 0000000000091845 [22:38:56]line Версия ККМ: 001 [22:38:56]line ФМ: 0000000000871829 [22:38:56]line ФД: 67391 [22:38:56]line ФПД: 142240705577439 [22:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T223858&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67391&fm=142240705577439&tin=02508201610067®Number=0000000000091845&sum=20000 [22:38:57]OFD Sender: Processing packet 67391 [packets to send 35, broken 34] [22:38:57]ProducePacketName [22:38:57]name=ofd_packets/00067391 [22:38:57]OFD Sender: To server: pG, [22:38:57]CommunicateWithHost lk.salyk.kg:30040 [22:38:57]ConnectInit lk.salyk.kg [22:38:57]written 0, free lines is 4095 [22:38:57]Connected sock=10 [22:38:57]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 43 F5 07 01 DE E6 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 20 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 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 82 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 07 01 00 35 04 06 00 81 5D FE BA 81 DF 3B C8 4A E5 71 C4 B1 2E [22:38: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 85 24 47 00 97 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 3F 07 01 00 F4 03 04 00 5E E1 44 66 B6 04 01 00 00 49 96 F5 07 96 63 64 9C [22:38:57]CommunicateWithHost err = 0 [22:38:57]CheckOFDResponse [22:38:57]1017 (14) - 77093643461234 [22:38:57]1041 (16) - 0000000000871829 [22:38:57]1040 (4) - 67391 [22:38:57]1012 (4) - 15.05.2024 16:22 [22:38:57]1206 (1) - 0 [22:38:57]OFD Sender: Remove packet 67391 [22:38:57]ProducePacketName [22:38:57]name=ofd_packets/00067391 [22:38:57]NVStorageDeleteData [22:38:57]Write to MH i2c: 01 00 00 90 34 C4 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 07 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 07 00 90 34 00 00 00 00 00 DF 0C B6 [22:38:57]RasterBufferAndPrint [22:38:57]line [22:38:57]line [22:38:57]line [22:38:57]line [22:38:57]line [22:38:57]written 0, free lines is 3301 [22:38:57]MH_Cut [22:38:57]Write to MH i2c: D1 01 00 97 34 01 9D [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: D1 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: D1 01 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: D1 01 00 97 34 00 9C [22:38:57]Write to MH i2c: 01 00 00 98 34 CC [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:58]OFD Sender: No OFD packet to send [22:38:58]*** Cut start [22:38:58]*** Purtial cut [22:38:58]*** Stage 1: CUTSNS_PIN = 1 [22:38:58]Read from MH i2c: 01 [22:38:58]MH_I2C_Read... [22:38:58]*** Stop cut motor [22:38:58]*** Cut end [22:38:58]Read from MH i2c: 01 07 00 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 FF 0F E1 [22:38:58]process_action close_receipt done [22:38:58]requested_data is exist [22:38:58]produce_requested_data [22:38:58]requested_item fm.sn is exist - process it [22:38:58]wFMCommunicate request_size=4 [22:38:58]MH_SAM_APDU [22:38:58]CAPDU: 80 11 00 00 [22:38:58]Write to MH i2c: E2 08 00 99 34 80 11 00 00 00 00 00 00 47 [22:38:58]Write i2c OK [22:38:58]MH_I2C_Read... [22:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:58]Read from MH i2c: E2 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: E2 17 00 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: E2 17 00 99 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [22:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:38:58]wFMCommunicate OK [22:38:58]requested_item fd.num is exist - process it [22:38:58]SAM_PROTO_GetFieldsCounters [22:38:58]wFMCommunicate request_size=4 [22:38:58]MH_SAM_APDU [22:38:58]CAPDU: 80 13 00 00 [22:38:58]Write to MH i2c: E2 08 00 9A 34 80 13 00 00 00 00 00 00 4A [22:38:58]Write i2c OK [22:38:58]MH_I2C_Read... [22:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:59]Read from MH i2c: E2 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 62 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 62 00 9A 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 3F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [22:38: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 3F 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:59]wFMCommunicate OK [22:38:59]SAM_PROTO_GetFieldsCounters done [22:38:59]requested_item shift.num is exist - process it [22:38:59]requested_item shift.opened is exist - process it [22:38:59]req_shift_opened [22:38:59]FM_GetShiftState [22:38:59]SAM_PROTO_GetShiftState [22:38:59]wFMCommunicate request_size=4 [22:38:59]MH_SAM_APDU [22:38:59]CAPDU: 80 13 01 00 [22:38:59]Write to MH i2c: E2 08 00 9B 34 80 13 01 00 00 00 00 00 4C [22:38:59]Write i2c OK [22:38:59]MH_I2C_Read... [22:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:59]Read from MH i2c: E2 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 0E 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 0E 00 9B 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F7 [22:38:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:38:59]wFMCommunicate OK [22:38:59]SAM_PROTO_GetShiftState done [22:38:59]FM_GetShiftState done [22:38:59]req_shift_opened done [22:38:59]requested_item shift.open_date is exist - process it [22:38:59]req_shift_open_date [22:38:59]req_shift_open_date done [22:38:59]produce_requested_data done [22:38:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67391,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:38:59]process_action_free close_receipt [22:38:59]json_value_free [22:38:59]json_value_free done [22:38:59]process_json_proto returns [22:38:59]Send response to host [22:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67391,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:38:59]free response buf [22:38:59]execute_script done [22:38:59]execute_script returns [22:38:59]free content buf [22:38:59]Sock 7.Close socket [22:38:59]Sock 7.Thread stoped [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:51]accept exits with 9 [22:40:51]New connection [22:40:51]New thread 3067174244 created [22:40:51]Thread 3067030884 joined [22:40:51]Waiting for new connection... [22:40:51] Sock 9.Parse request [22:40:51]Sock 9.Check first char [22:40:51]Sock 9.First char is OK [22:40:51]request: POST /json_proto HTTP/1.0 [22:40:51]Method: POST [22:40:51]URL: /json_proto [22:40:51]Method is POST - this is cgi request [22:40:51]url: /json_proto [22:40:51]query_string will be loaded in cgi processing [22:40:51]execute_cgi json_proto POST (null) [22:40:51]execute_cgi path=json_proto method=POST [22:40:51]POST find Content-Length [22:40:51]Host: 172.17.41.195:8080 [22:40:51]Content-Length: 670 [22:40:51]Content-Type: application/json [22:40:51] [22:40:51]POST finish read [22:40:51]Found Content-Length = 670 [22:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [22:40:51]execute_script... [22:40: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)507371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [22:40:51]POST & json_proto [22:40:51]process_json_proto [22:40:51]json parsed OK: [22:40:51]protocol is kg_v1.0 [22:40:51]action value=close_receipt [22:40:51]process_action close_receipt [22:40:51]cmd_close_receipt [22:40:51]MH_GetDate [22:40:51]Write to MH i2c: F0 00 00 9C 34 BF [22:40:51]Write i2c OK [22:40:51]MH_I2C_Read... [22:40:51]Read from MH i2c: F0 [22:40:51]MH_I2C_Read... [22:40:51]Read from MH i2c: F0 09 00 [22:40:51]MH_I2C_Read... [22:40:51]Read from MH i2c: F0 09 00 9C 34 00 F6 39 45 66 FC 21 6F 64 92 [22:40:51]GetLastDocTimeStamp 1715812738 [22:40:51]current date 1715812854 [22:40:51]FM_GetShiftState [22:40:51]SAM_PROTO_GetShiftState [22:40:51]wFMCommunicate request_size=4 [22:40:51]MH_SAM_APDU [22:40:51]CAPDU: 80 13 01 00 [22:40:51]Write to MH i2c: E2 08 00 9D 34 80 13 01 00 00 00 00 00 4E [22:40:51]Write i2c OK [22:40:51]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 9D 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 F9 [22:40:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:40:52]wFMCommunicate OK [22:40:52]SAM_PROTO_GetShiftState done [22:40:52]FM_GetShiftState done [22:40:52]opened in 1715732471 [22:40:52]opened+sec_in_day 1715818871 [22:40:52]quantity*price = 50036 [22:40:52]sum+1 = 50037 [22:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 210 15.05.2024 22:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67392 ФПД: 99030093692552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67392&fm=99030093692552&tin=02508201610067®Number=0000000000091845&sum=50000 [22:40:53]StoreToDocumentArchive [22:40:53]shift 356 fd 67392 [22:40:53]save to /storage/0356/doc_00067392 [22:40:53]save last doc name /storage/0356/doc_00067392 to /storage/kkm_last_doc_name [22:40:53]save OK [22:40:53]Clear old archive folders... [22:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:40:53]tlvbuf is B6EDE380 [22:40:53]SAM_PROTO_ClearQueue [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 09 00 00 [22:40:53]Write to MH i2c: E2 08 00 AA 34 80 09 00 00 00 00 00 00 50 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]SAM_PROTO_ClearQueue done [22:40:53]KKMCreateOFDPacket [22:40:53]OFDProtocolAddRootSTLVToBuf [22:40:53]FM_MakeSignedData [22:40:53]FM_MakeSignedData [22:40:53]SAM_PROTO_SignData [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 0D 01 02 [22:40:53]Write to MH i2c: E2 08 00 AB 34 80 0D 01 02 00 00 00 00 58 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]OFD Sender: No OFD packet to send [22:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 AB 34 00 90 00 53 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]wFMCommunicate request_size=255 [22:40:53]MH_SAM_APDU [22:40:53]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 D2 00 00 00 F4 03 04 00 F6 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 07 01 00 35 04 06 00 [22:40:53]Write to MH i2c: E2 02 01 AC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 D2 00 00 00 F4 03 04 00 F6 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 07 01 00 35 04 06 00 00 00 5F [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 AC 34 00 90 00 54 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]wFMCommunicate request_size=11 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 0D 02 02 06 5A 11 3D 8E 7E 88 [22:40:53]Write to MH i2c: E2 0E 00 AD 34 80 0D 02 02 06 00 5A 11 3D 8E 7E 88 00 00 A3 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 AD 34 00 90 00 55 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 0D 03 02 [22:40:53]Write to MH i2c: E2 08 00 AE 34 80 0D 03 02 00 00 00 00 5D [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 0B 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 0B 00 AE 34 00 91 09 15 4D 65 18 8A 69 90 00 CA [22:40:53]RAPDU: 91 09 15 4D 65 18 8A 69 90 00 [22:40:53]wFMCommunicate OK [22:40:53]SAM_PROTO_SignData done [22:40:53]FM_MakeSignedData done [22:40:53]CreateOFDProtocolMessage [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 11 00 00 [22:40:53]Write to MH i2c: E2 08 00 AF 34 80 11 00 00 00 00 00 00 5D [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 17 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 17 00 AF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [22:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:40:53]wFMCommunicate OK [22:40:53]CreateOFDProtocolMessage done [22:40:53]OFDSenderStorePacket 67392 [22:40:53]StoreOFDPacket docnum=67392 [22:40: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 10 01 00 00 ED 66 08 01 0F 0E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 D2 00 00 00 F4 03 04 00 F6 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 07 01 00 35 04 06 00 5A 11 3D 8E 7E 88 91 09 15 4D 65 18 8A 69 [22:40:53]CheckFolder [22:40:53]dirname=/storage/ofd_packets [22:40:53]CheckFolder done [22:40:53]ProducePacketName [22:40:53]name=ofd_packets/00067392 [22:40:53]NVStorageSaveData ofd_packets/00067392 [22:40:53]File name is /storage/ofd_packets/00067392 [22:40:53]Write 302 bytes [22:40:53]NVStorageSaveData done [22:40:53]OFDSenderStorePacket done [22:40:53]KKMCreateOFDPacket done [22:40:53]NVStorageSaveData kkm_last_timestamp [22:40:53]File name is /storage/kkm_last_timestamp [22:40:53]Write 4 bytes [22:40:53]NVStorageSaveData done [22:40:53]ExternCall_PrintAddStr [22:40:53]wPrintStart [22:40:53]Write to MH i2c: 01 00 00 B0 34 E4 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: 01 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: 01 07 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: 01 07 00 B0 34 00 00 00 00 00 FF 0F F9 [22:40:53]RasterBufferAndPrint [22:40:53]line Счет N : (1)507371 [22:40:53]line ИНН: 02508201610067 [22:40:53]line Контрольно-Кассовый Чек [22:40:53]line ПРОДАЖА [22:40:53]line ТРК (МРК, ГНК) : 12 [22:40:53]line Товар: 2710124130 [22:40:53]line Super-92-К-5 [22:40:53]line 7.380 * 67.80 [22:40:53]line = 500.36 [22:40:53]line НДС 12% НСП 1% [22:40:53]line > о реализуемом товаре [22:40:53]line ОКРУГЛЕНИЕ: -0.36 [22:40:53]line ИТОГО: 500.00 [22:40:53]line Внесено: 500.00 [22:40:53]line СДАЧА: 0.00 [22:40:53]line НСП 1% : 4.43 [22:40:53]line НДС 12% : 53.14 [22:40:53]line Наличными: 500.00 [22:40:53]line Безнал.: 0.00 [22:40:53]line Место: АЗС № 91 "Партнер Нефть" [22:40:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:40:53]line СНО: Общий режим [22:40:53]line Чек 210 15.05.2024 22:40 [22:40:53]line Смена: 356 ФФД: 1.0 [22:40:53]line ЗНМ: 0300000119 [22:40:53]line РНМ: 0000000000091845 [22:40:53]line Версия ККМ: 001 [22:40:53]line ФМ: 0000000000871829 [22:40:53]line ФД: 67392 [22:40:53]line ФПД: 99030093692552 [22:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67392&fm=99030093692552&tin=02508201610067®Number=0000000000091845&sum=50000 [22:40:54]OFD Sender: Processing packet 67392 [packets to send 35, broken 34] [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00067392 [22:40:54]OFD Sender: To server: pG, [22:40:54]CommunicateWithHost lk.salyk.kg:30040 [22:40:54]ConnectInit lk.salyk.kg [22:40:54]written 0, free lines is 4095 [22:40:54]Connected sock=10 [22:40: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 10 01 00 00 ED 66 08 01 0F 0E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 C2 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 D2 00 00 00 F4 03 04 00 F6 39 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 07 01 00 35 04 06 00 5A 11 3D 8E 7E 88 91 09 15 4D 65 18 8A 69 [22:40: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 44 E0 47 00 70 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 40 07 01 00 F4 03 04 00 D3 E1 44 66 B6 04 01 00 00 BC 7E 16 0B 80 DB A7 93 [22:40:54]CommunicateWithHost err = 0 [22:40:54]CheckOFDResponse [22:40:54]1017 (14) - 77093643461234 [22:40:54]1041 (16) - 0000000000871829 [22:40:54]1040 (4) - 67392 [22:40:54]1012 (4) - 15.05.2024 16:24 [22:40:54]1206 (1) - 0 [22:40:54]OFD Sender: Remove packet 67392 [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00067392 [22:40:54]NVStorageDeleteData [22:40:54]Write to MH i2c: 01 00 00 DA 34 0E [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 DA 34 00 00 00 00 00 E7 0C 08 [22:40:54]RasterBufferAndPrint [22:40:54]line [22:40:54]line [22:40:54]line [22:40:54]line [22:40:54]line [22:40:54]written 0, free lines is 3311 [22:40:54]MH_Cut [22:40:54]Write to MH i2c: D1 01 00 E1 34 01 E7 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: D1 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: D1 01 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: D1 01 00 E1 34 00 E6 [22:40:54]Write to MH i2c: 01 00 00 E2 34 16 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]OFD Sender: No OFD packet to send [22:40:55]*** Cut start [22:40:55]*** Purtial cut [22:40:55]*** CUTSNS_PIN = 0 [22:40:55]*** Stage 1: CUTSNS_PIN = 1 [22:40:57]Read from MH i2c: 01 [22:40:57]MH_I2C_Read... [22:40:57]*** Stop cut motor [22:40:57]*** Cut end [22:40:57]Read from MH i2c: 01 07 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: 01 07 00 E2 34 00 00 00 00 00 FF 0F 2B [22:40:57]process_action close_receipt done [22:40:57]requested_data is exist [22:40:57]produce_requested_data [22:40:57]requested_item fm.sn is exist - process it [22:40:57]wFMCommunicate request_size=4 [22:40:57]MH_SAM_APDU [22:40:57]CAPDU: 80 11 00 00 [22:40:57]Write to MH i2c: E2 08 00 E3 34 80 11 00 00 00 00 00 00 91 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:57]Read from MH i2c: E2 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 17 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 17 00 E3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [22:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:40:57]wFMCommunicate OK [22:40:57]requested_item fd.num is exist - process it [22:40:57]SAM_PROTO_GetFieldsCounters [22:40:57]wFMCommunicate request_size=4 [22:40:57]MH_SAM_APDU [22:40:57]CAPDU: 80 13 00 00 [22:40:57]Write to MH i2c: E2 08 00 E4 34 80 13 00 00 00 00 00 00 94 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:57]Read from MH i2c: E2 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 62 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 62 00 E4 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 40 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:40: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 40 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:57]wFMCommunicate OK [22:40:57]SAM_PROTO_GetFieldsCounters done [22:40:57]requested_item shift.num is exist - process it [22:40:57]requested_item shift.opened is exist - process it [22:40:57]req_shift_opened [22:40:57]FM_GetShiftState [22:40:57]SAM_PROTO_GetShiftState [22:40:57]wFMCommunicate request_size=4 [22:40:57]MH_SAM_APDU [22:40:57]CAPDU: 80 13 01 00 [22:40:57]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:57]Read from MH i2c: E2 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 0E 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 41 [22:40:57]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:40:57]wFMCommunicate OK [22:40:57]SAM_PROTO_GetShiftState done [22:40:57]FM_GetShiftState done [22:40:57]req_shift_opened done [22:40:57]requested_item shift.open_date is exist - process it [22:40:57]req_shift_open_date [22:40:57]req_shift_open_date done [22:40:57]produce_requested_data done [22:40:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67392,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:40:57]process_action_free close_receipt [22:40:57]json_value_free [22:40:57]json_value_free done [22:40:57]process_json_proto returns [22:40:57]Send response to host [22:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67392,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:40:57]free response buf [22:40:57]execute_script done [22:40:57]execute_script returns [22:40:57]free content buf [22:40:57]Sock 9.Close socket [22:40:57]Sock 9.Thread stoped [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:19]accept exits with 7 [22:41:19]New connection [22:41:19]New thread 3067030884 created [22:41:19]Thread 3067174244 joined [22:41:19]Waiting for new connection... [22:41:19] Sock 7.Parse request [22:41:19]Sock 7.Check first char [22:41:19]Sock 7.First char is OK [22:41:19]request: POST /json_proto HTTP/1.0 [22:41:19]Method: POST [22:41:19]URL: /json_proto [22:41:19]Method is POST - this is cgi request [22:41:19]url: /json_proto [22:41:19]query_string will be loaded in cgi processing [22:41:19]execute_cgi json_proto POST (null) [22:41:19]execute_cgi path=json_proto method=POST [22:41:19]POST find Content-Length [22:41:19]Host: 172.17.41.195:8080 [22:41:19]Content-Length: 679 [22:41:19]Content-Type: application/json [22:41:19] [22:41:19]POST finish read [22:41:19]Found Content-Length = 679 [22:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507370", "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 }]} ], "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" ] } } [22:41:19]execute_script... [22:41:19]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)507370", "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 }]} ], "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" ] } } [22:41:19]POST & json_proto [22:41:19]process_json_proto [22:41:19]json parsed OK: [22:41:19]protocol is kg_v1.0 [22:41:19]action value=close_receipt [22:41:19]process_action close_receipt [22:41:19]cmd_close_receipt [22:41:19]MH_GetDate [22:41:19]Write to MH i2c: F0 00 00 E6 34 09 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: F0 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: F0 09 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: F0 09 00 E6 34 00 12 3A 45 66 FC 21 6F 64 F9 [22:41:19]GetLastDocTimeStamp 1715812854 [22:41:19]current date 1715812882 [22:41:19]FM_GetShiftState [22:41:19]SAM_PROTO_GetShiftState [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 13 01 00 [22:41:19]Write to MH i2c: E2 08 00 E7 34 80 13 01 00 00 00 00 00 98 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 E7 34 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 43 [22:41:19]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetShiftState done [22:41:19]FM_GetShiftState done [22:41:19]opened in 1715732471 [22:41:19]opened+sec_in_day 1715818871 [22:41:19]quantity*price = 200046 [22:41:19]sum+1 = 200048 [22:41:19]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 СНО: Общий режим Чек 211 15.05.2024 22:41 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67393 ФПД: 212823539130026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67393&fm=212823539130026&tin=02508201610067®Number=0000000000091845&sum=200000 [22:41:21]StoreToDocumentArchive [22:41:21]shift 356 fd 67393 [22:41:21]save to /storage/0356/doc_00067393 [22:41:21]save last doc name /storage/0356/doc_00067393 to /storage/kkm_last_doc_name [22:41:21]save OK [22:41:21]Clear old archive folders... [22:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:41:21]tlvbuf is 00BF6110 [22:41:21]SAM_PROTO_ClearQueue [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 09 00 00 [22:41:21]Write to MH i2c: E2 08 00 F4 34 80 09 00 00 00 00 00 00 9A [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]SAM_PROTO_ClearQueue done [22:41:21]KKMCreateOFDPacket [22:41:21]OFDProtocolAddRootSTLVToBuf [22:41:21]FM_MakeSignedData [22:41:21]FM_MakeSignedData [22:41:21]SAM_PROTO_SignData [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 01 02 [22:41:21]Write to MH i2c: E2 08 00 F5 34 80 0D 01 02 00 00 00 00 A2 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=255 [22:41:21]MH_SAM_APDU [22:41:21]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 D3 00 00 00 F4 03 04 00 12 3A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 41 07 01 00 35 04 06 00 C1 8F D7 73 [22:41:21]Write to MH i2c: E2 02 01 F6 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 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 D3 00 00 00 F4 03 04 00 12 3A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 41 07 01 00 35 04 06 00 C1 8F D7 73 00 00 C2 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 F6 34 00 90 00 9E [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=7 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 02 02 02 1E AA [22:41:21]Write to MH i2c: E2 0A 00 F7 34 80 0D 02 02 02 00 1E AA 00 00 71 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 F7 34 00 90 00 9F [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 03 02 [22:41:21]Write to MH i2c: E2 08 00 F8 34 80 0D 03 02 00 00 00 00 A7 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 0B 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 0B 00 F8 34 00 91 17 69 20 B7 5B 49 E3 90 00 17 [22:41:21]RAPDU: 91 17 69 20 B7 5B 49 E3 90 00 [22:41:21]wFMCommunicate OK [22:41:21]SAM_PROTO_SignData done [22:41:21]FM_MakeSignedData done [22:41:21]CreateOFDProtocolMessage [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 11 00 00 [22:41:21]Write to MH i2c: E2 08 00 F9 34 80 11 00 00 00 00 00 00 A7 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 17 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 17 00 F9 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [22:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:41:21]wFMCommunicate OK [22:41:21]CreateOFDProtocolMessage done [22:41:21]OFDSenderStorePacket 67393 [22:41:21]StoreOFDPacket docnum=67393 [22:41:21]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 91 04 01 B3 64 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 D3 00 00 00 F4 03 04 00 12 3A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 41 07 01 00 35 04 06 00 C1 8F D7 73 1E AA 91 17 69 20 B7 5B 49 E3 [22:41:21]CheckFolder [22:41:21]dirname=/storage/ofd_packets [22:41:21]CheckFolder done [22:41:21]ProducePacketName [22:41:21]name=ofd_packets/00067393 [22:41:21]NVStorageSaveData ofd_packets/00067393 [22:41:21]File name is /storage/ofd_packets/00067393 [22:41:21]Write 298 bytes [22:41:21]NVStorageSaveData done [22:41:21]OFDSenderStorePacket done [22:41:21]KKMCreateOFDPacket done [22:41:21]NVStorageSaveData kkm_last_timestamp [22:41:21]File name is /storage/kkm_last_timestamp [22:41:21]Write 4 bytes [22:41:21]NVStorageSaveData done [22:41:21]ExternCall_PrintAddStr [22:41:21]wPrintStart [22:41:21]Write to MH i2c: 01 00 00 FA 34 2E [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 FA 34 00 00 00 00 00 FF 0F 43 [22:41:21]RasterBufferAndPrint [22:41:21]line Счет N : (1)507370 [22:41:21]line ИНН: 02508201610067 [22:41:21]line Контрольно-Кассовый Чек [22:41:21]line ПРОДАЖА [22:41:21]line ТРК (МРК, ГНК) : 21 [22:41:21]line Товар: 2710194210 [22:41:21]line ДТ-К-5 [22:41:21]line 26.780 * 74.70 [22:41:21]line = 2000.47 [22:41:21]line НДС 12% НСП 1% [22:41:21]line > о реализуемом товаре [22:41:21]line ОКРУГЛЕНИЕ: -0.47 [22:41:21]line ИТОГО: 2000.00 [22:41:21]line Внесено: 2000.00 [22:41:21]line СДАЧА: 0.00 [22:41:21]line НСП 1% : 17.70 [22:41:21]line НДС 12% : 212.44 [22:41:21]line Наличными: 2000.00 [22:41:21]line Безнал.: 0.00 [22:41:21]line Место: АЗС № 91 "Партнер Нефть" [22:41:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:41:21]line СНО: Общий режим [22:41:21]line Чек 211 15.05.2024 22:41 [22:41:21]line Смена: 356 ФФД: 1.0 [22:41:21]line ЗНМ: 0300000119 [22:41:21]line РНМ: 0000000000091845 [22:41:21]line Версия ККМ: 001 [22:41:21]line ФМ: 0000000000871829 [22:41:21]line ФД: 67393 [22:41:21]line ФПД: 212823539130026 [22:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67393&fm=212823539130026&tin=02508201610067®Number=0000000000091845&sum=200000 [22:41:21]OFD Sender: Processing packet 67393 [packets to send 35, broken 34] [22:41:21]ProducePacketName [22:41:21]name=ofd_packets/00067393 [22:41:21]OFD Sender: To server: pG, [22:41:21]CommunicateWithHost lk.salyk.kg:30040 [22:41:21]ConnectInit lk.salyk.kg [22:41:21]written 0, free lines is 4095 [22:41:22]Connected sock=10 [22:41:22]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 91 04 01 B3 64 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 D3 00 00 00 F4 03 04 00 12 3A 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 41 07 01 00 35 04 06 00 C1 8F D7 73 1E AA 91 17 69 20 B7 5B 49 E3 [22:41:22]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 2B 97 47 00 BF 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 41 07 01 00 F4 03 04 00 EF E1 44 66 B6 04 01 00 00 D5 31 62 B6 EE C0 06 EC [22:41:22]CommunicateWithHost err = 0 [22:41:22]CheckOFDResponse [22:41:22]1017 (14) - 77093643461234 [22:41:22]1041 (16) - 0000000000871829 [22:41:22]1040 (4) - 67393 [22:41:22]1012 (4) - 15.05.2024 16:25 [22:41:22]1206 (1) - 0 [22:41:22]OFD Sender: Remove packet 67393 [22:41:22]ProducePacketName [22:41:22]name=ofd_packets/00067393 [22:41:22]NVStorageDeleteData [22:41:22]Write to MH i2c: 01 00 00 24 35 59 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 07 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 07 00 24 35 00 00 00 00 00 E0 0C 4C [22:41:22]RasterBufferAndPrint [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]written 0, free lines is 3303 [22:41:22]MH_Cut [22:41:22]Write to MH i2c: D1 01 00 2B 35 01 32 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 01 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 01 00 2B 35 00 31 [22:41:22]Write to MH i2c: 01 00 00 2C 35 61 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]OFD Sender: No OFD packet to send [22:41:23]*** Cut start [22:41:23]*** Purtial cut [22:41:23]*** Stage 1: CUTSNS_PIN = 1 [22:41:23]Read from MH i2c: 01 [22:41:23]MH_I2C_Read... [22:41:23]*** Stop cut motor [22:41:23]*** Cut end [22:41:23]Read from MH i2c: 01 07 00 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: 01 07 00 2C 35 00 00 00 00 00 FF 0F 76 [22:41:23]process_action close_receipt done [22:41:23]requested_data is exist [22:41:23]produce_requested_data [22:41:23]requested_item fm.sn is exist - process it [22:41:23]wFMCommunicate request_size=4 [22:41:23]MH_SAM_APDU [22:41:23]CAPDU: 80 11 00 00 [22:41:23]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [22:41:23]Write i2c OK [22:41:23]MH_I2C_Read... [22:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:23]Read from MH i2c: E2 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 17 00 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [22:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:41:23]wFMCommunicate OK [22:41:23]requested_item fd.num is exist - process it [22:41:23]SAM_PROTO_GetFieldsCounters [22:41:23]wFMCommunicate request_size=4 [22:41:23]MH_SAM_APDU [22:41:23]CAPDU: 80 13 00 00 [22:41:23]Write to MH i2c: E2 08 00 2E 35 80 13 00 00 00 00 00 00 DF [22:41:23]Write i2c OK [22:41:23]MH_I2C_Read... [22:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:23]Read from MH i2c: E2 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 62 00 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 62 00 2E 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 41 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [22:41: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 41 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:23]wFMCommunicate OK [22:41:23]SAM_PROTO_GetFieldsCounters done [22:41:23]requested_item shift.num is exist - process it [22:41:23]requested_item shift.opened is exist - process it [22:41:23]req_shift_opened [22:41:23]FM_GetShiftState [22:41:23]SAM_PROTO_GetShiftState [22:41:23]wFMCommunicate request_size=4 [22:41:23]MH_SAM_APDU [22:41:23]CAPDU: 80 13 01 00 [22:41:23]Write to MH i2c: E2 08 00 2F 35 80 13 01 00 00 00 00 00 E1 [22:41:23]Write i2c OK [22:41:23]MH_I2C_Read... [22:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:23]Read from MH i2c: E2 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 0E 00 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 0E 00 2F 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8C [22:41:23]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:41:23]wFMCommunicate OK [22:41:23]SAM_PROTO_GetShiftState done [22:41:23]FM_GetShiftState done [22:41:23]req_shift_opened done [22:41:23]requested_item shift.open_date is exist - process it [22:41:23]req_shift_open_date [22:41:23]req_shift_open_date done [22:41:23]produce_requested_data done [22:41:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67393,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:41:23]process_action_free close_receipt [22:41:23]json_value_free [22:41:23]json_value_free done [22:41:23]process_json_proto returns [22:41:23]Send response to host [22:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67393,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:41:23]free response buf [22:41:23]execute_script done [22:41:23]execute_script returns [22:41:23]free content buf [22:41:23]Sock 7.Close socket [22:41:23]Sock 7.Thread stoped [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:04]accept exits with 9 [22:48:04]New connection [22:48:04]New thread 3067174244 created [22:48:04]Thread 3067030884 joined [22:48:04]Waiting for new connection... [22:48:04] Sock 9.Parse request [22:48:04]Sock 9.Check first char [22:48:04]Sock 9.First char is OK [22:48:04]request: POST /json_proto HTTP/1.0 [22:48:04]Method: POST [22:48:04]URL: /json_proto [22:48:04]Method is POST - this is cgi request [22:48:04]url: /json_proto [22:48:04]query_string will be loaded in cgi processing [22:48:04]execute_cgi json_proto POST (null) [22:48:04]execute_cgi path=json_proto method=POST [22:48:04]POST find Content-Length [22:48:04]Host: 172.17.41.195:8080 [22:48:04]Content-Length: 675 [22:48:04]Content-Type: application/json [22:48:04] [22:48:04]POST finish read [22:48:04]Found Content-Length = 675 [22:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507372", "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" : 29.500, "sum" : 2000.10, "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" ] } } [22:48:04]execute_script... [22:48: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)507372", "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" : 29.500, "sum" : 2000.10, "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" ] } } [22:48:04]POST & json_proto [22:48:04]process_json_proto [22:48:04]json parsed OK: [22:48:04]protocol is kg_v1.0 [22:48:04]action value=close_receipt [22:48:04]process_action close_receipt [22:48:04]cmd_close_receipt [22:48:04]MH_GetDate [22:48:04]Write to MH i2c: F0 00 00 30 35 54 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: F0 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: F0 09 00 [22:48:04]MH_I2C_Read... [22:48:04]Read from MH i2c: F0 09 00 30 35 00 A7 3B 45 66 FC 21 6F 64 DA [22:48:04]GetLastDocTimeStamp 1715812882 [22:48:04]current date 1715813287 [22:48:04]FM_GetShiftState [22:48:04]SAM_PROTO_GetShiftState [22:48:04]wFMCommunicate request_size=4 [22:48:04]MH_SAM_APDU [22:48:04]CAPDU: 80 13 01 00 [22:48:04]Write to MH i2c: E2 08 00 31 35 80 13 01 00 00 00 00 00 E3 [22:48:04]Write i2c OK [22:48:04]MH_I2C_Read... [22:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:05]Read from MH i2c: E2 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: E2 0E 00 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: E2 0E 00 31 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 8E [22:48:05]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:05]wFMCommunicate OK [22:48:05]SAM_PROTO_GetShiftState done [22:48:05]FM_GetShiftState done [22:48:05]opened in 1715732471 [22:48:05]opened+sec_in_day 1715818871 [22:48:05]quantity*price = 200010 [22:48:05]sum+1 = 200011 [22:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 212 15.05.2024 22:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67394 ФПД: 166790868362222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224807&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67394&fm=166790868362222&tin=02508201610067®Number=0000000000091845&sum=200000 [22:48:06]StoreToDocumentArchive [22:48:06]shift 356 fd 67394 [22:48:06]save to /storage/0356/doc_00067394 [22:48:06]save last doc name /storage/0356/doc_00067394 to /storage/kkm_last_doc_name [22:48:06]save OK [22:48:06]Clear old archive folders... [22:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:48:06]tlvbuf is 00B3ACD0 [22:48:06]SAM_PROTO_ClearQueue [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 09 00 00 [22:48:06]Write to MH i2c: E2 08 00 3E 35 80 09 00 00 00 00 00 00 E5 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [22:48:06]RAPDU: 90 00 [22:48:06]wFMCommunicate OK [22:48:06]SAM_PROTO_ClearQueue done [22:48:06]KKMCreateOFDPacket [22:48:06]OFDProtocolAddRootSTLVToBuf [22:48:06]FM_MakeSignedData [22:48:06]FM_MakeSignedData [22:48:06]SAM_PROTO_SignData [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 0D 01 02 [22:48:06]Write to MH i2c: E2 08 00 3F 35 80 0D 01 02 00 00 00 00 ED [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [22:48:06]RAPDU: 90 00 [22:48:06]wFMCommunicate OK [22:48:06]wFMCommunicate request_size=255 [22:48:06]MH_SAM_APDU [22:48:06]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 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 F8 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 D4 00 00 00 F4 03 04 00 A7 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 42 07 01 00 35 04 06 00 [22:48:06]Write to MH i2c: E2 02 01 40 35 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 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 F8 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 D4 00 00 00 F4 03 04 00 A7 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 42 07 01 00 35 04 06 00 00 00 AF [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 40 35 00 90 00 E9 [22:48:06]RAPDU: 90 00 [22:48:06]wFMCommunicate OK [22:48:06]wFMCommunicate request_size=11 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 0D 02 02 06 97 B2 06 75 E3 EE [22:48:06]Write to MH i2c: E2 0E 00 41 35 80 0D 02 02 06 00 97 B2 06 75 E3 EE 00 00 91 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 41 35 00 90 00 EA [22:48:06]RAPDU: 90 00 [22:48:06]wFMCommunicate OK [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 0D 03 02 [22:48:06]Write to MH i2c: E2 08 00 42 35 80 0D 03 02 00 00 00 00 F2 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 0B 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 0B 00 42 35 00 72 97 87 4E B3 CE D8 F8 90 00 22 [22:48:06]RAPDU: 72 97 87 4E B3 CE D8 F8 90 00 [22:48:06]wFMCommunicate OK [22:48:06]SAM_PROTO_SignData done [22:48:06]FM_MakeSignedData done [22:48:06]CreateOFDProtocolMessage [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 11 00 00 [22:48:06]Write to MH i2c: E2 08 00 43 35 80 11 00 00 00 00 00 00 F2 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 17 00 43 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [22:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:48:06]wFMCommunicate OK [22:48:06]CreateOFDProtocolMessage done [22:48:06]OFDSenderStorePacket 67394 [22:48:06]StoreOFDPacket docnum=67394 [22:48: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 10 01 00 00 B1 39 08 01 D1 C0 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 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 F8 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 D4 00 00 00 F4 03 04 00 A7 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 42 07 01 00 35 04 06 00 97 B2 06 75 E3 EE 72 97 87 4E B3 CE D8 F8 [22:48:06]CheckFolder [22:48:06]dirname=/storage/ofd_packets [22:48:06]CheckFolder done [22:48:06]ProducePacketName [22:48:06]name=ofd_packets/00067394 [22:48:06]NVStorageSaveData ofd_packets/00067394 [22:48:06]File name is /storage/ofd_packets/00067394 [22:48:06]Write 302 bytes [22:48:06]NVStorageSaveData done [22:48:06]OFDSenderStorePacket done [22:48:06]KKMCreateOFDPacket done [22:48:06]NVStorageSaveData kkm_last_timestamp [22:48:06]File name is /storage/kkm_last_timestamp [22:48:06]Write 4 bytes [22:48:06]NVStorageSaveData done [22:48:06]ExternCall_PrintAddStr [22:48:06]wPrintStart [22:48:06]Write to MH i2c: 01 00 00 44 35 79 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: 01 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: 01 07 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: 01 07 00 44 35 00 00 00 00 00 FF 0F 8E [22:48:06]RasterBufferAndPrint [22:48:06]line Счет N : (1)507372 [22:48:06]line ИНН: 02508201610067 [22:48:06]line Контрольно-Кассовый Чек [22:48:06]line ПРОДАЖА [22:48:06]line ТРК (МРК, ГНК) : 22 [22:48:06]line Товар: 2710124130 [22:48:06]line Super-92-К-5 [22:48:06]line 29.500 * 67.80 [22:48:06]line = 2000.10 [22:48:06]line НДС 12% НСП 1% [22:48:06]line > о реализуемом товаре [22:48:06]line ОКРУГЛЕНИЕ: -0.10 [22:48:06]line ИТОГО: 2000.00 [22:48:06]line Внесено: 2000.00 [22:48:06]line СДАЧА: 0.00 [22:48:06]line НСП 1% : 17.70 [22:48:06]line НДС 12% : 212.40 [22:48:06]line Наличными: 2000.00 [22:48:06]line Безнал.: 0.00 [22:48:06]line Место: АЗС № 91 "Партнер Нефть" [22:48:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:48:06]line СНО: Общий режим [22:48:06]line Чек 212 15.05.2024 22:48 [22:48:06]line Смена: 356 ФФД: 1.0 [22:48:06]line ЗНМ: 0300000119 [22:48:06]line РНМ: 0000000000091845 [22:48:06]line Версия ККМ: 001 [22:48:06]line ФМ: 0000000000871829 [22:48:06]line ФД: 67394 [22:48:06]line ФПД: 166790868362222 [22:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224807&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67394&fm=166790868362222&tin=02508201610067®Number=0000000000091845&sum=200000 [22:48:06]OFD Sender: Processing packet 67394 [packets to send 35, broken 34] [22:48:06]ProducePacketName [22:48:06]name=ofd_packets/00067394 [22:48:06]OFD Sender: To server: pG, [22:48:06]CommunicateWithHost lk.salyk.kg:30040 [22:48:06]ConnectInit lk.salyk.kg [22:48:07]Connected sock=11 [22:48: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 10 01 00 00 B1 39 08 01 D1 C0 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 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 F8 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 D4 00 00 00 F4 03 04 00 A7 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 42 07 01 00 35 04 06 00 97 B2 06 75 E3 EE 72 97 87 4E B3 CE D8 F8 [22:48:07]written 0, free lines is 4095 [22:48: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 58 71 47 00 07 74 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 42 07 01 00 F4 03 04 00 84 E3 44 66 B6 04 01 00 00 67 DA 4D B0 5E A3 09 B9 [22:48:07]CommunicateWithHost err = 0 [22:48:07]CheckOFDResponse [22:48:07]1017 (14) - 77093643461234 [22:48:07]1041 (16) - 0000000000871829 [22:48:07]1040 (4) - 67394 [22:48:07]1012 (4) - 15.05.2024 16:32 [22:48:07]1206 (1) - 0 [22:48:07]OFD Sender: Remove packet 67394 [22:48:07]ProducePacketName [22:48:07]name=ofd_packets/00067394 [22:48:07]NVStorageDeleteData [22:48:07]Write to MH i2c: 01 00 00 6E 35 A3 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 07 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 07 00 6E 35 00 00 00 00 00 D1 0C 87 [22:48:07]RasterBufferAndPrint [22:48:07]line [22:48:07]line [22:48:07]line [22:48:07]line [22:48:07]line [22:48:07]written 0, free lines is 3286 [22:48:07]MH_Cut [22:48:07]Write to MH i2c: D1 01 00 75 35 01 7C [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: D1 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: D1 01 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: D1 01 00 75 35 00 7B [22:48:07]Write to MH i2c: 01 00 00 76 35 AB [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]OFD Sender: No OFD packet to send [22:48:08]*** Cut start [22:48:08]*** Purtial cut [22:48:08]*** CUTSNS_PIN = 0 [22:48:08]*** Stage 1: CUTSNS_PIN = 1 [22:48:10]Read from MH i2c: 01 [22:48:10]MH_I2C_Read... [22:48:10]*** Stop cut motor [22:48:10]*** Cut end [22:48:10]Read from MH i2c: 01 07 00 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: 01 07 00 76 35 00 00 00 00 00 FF 0F C0 [22:48:10]process_action close_receipt done [22:48:10]requested_data is exist [22:48:10]produce_requested_data [22:48:10]requested_item fm.sn is exist - process it [22:48:10]wFMCommunicate request_size=4 [22:48:10]MH_SAM_APDU [22:48:10]CAPDU: 80 11 00 00 [22:48:10]Write to MH i2c: E2 08 00 77 35 80 11 00 00 00 00 00 00 26 [22:48:10]Write i2c OK [22:48:10]MH_I2C_Read... [22:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:10]Read from MH i2c: E2 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 17 00 [22:48:10]MH_I2C_Read... [22:48:10]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 [22:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:48:10]wFMCommunicate OK [22:48:10]requested_item fd.num is exist - process it [22:48:10]SAM_PROTO_GetFieldsCounters [22:48:10]wFMCommunicate request_size=4 [22:48:10]MH_SAM_APDU [22:48:10]CAPDU: 80 13 00 00 [22:48:10]Write to MH i2c: E2 08 00 78 35 80 13 00 00 00 00 00 00 29 [22:48:10]Write i2c OK [22:48:10]MH_I2C_Read... [22:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:10]Read from MH i2c: E2 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 62 00 [22:48:10]MH_I2C_Read... [22:48:10]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 42 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [22:48: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 42 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:10]wFMCommunicate OK [22:48:10]SAM_PROTO_GetFieldsCounters done [22:48:10]requested_item shift.num is exist - process it [22:48:10]requested_item shift.opened is exist - process it [22:48:10]req_shift_opened [22:48:10]FM_GetShiftState [22:48:10]SAM_PROTO_GetShiftState [22:48:10]wFMCommunicate request_size=4 [22:48:10]MH_SAM_APDU [22:48:10]CAPDU: 80 13 01 00 [22:48:10]Write to MH i2c: E2 08 00 79 35 80 13 01 00 00 00 00 00 2B [22:48:10]Write i2c OK [22:48:10]MH_I2C_Read... [22:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:10]Read from MH i2c: E2 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 0E 00 [22:48:10]MH_I2C_Read... [22:48:10]Read from MH i2c: E2 0E 00 79 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D6 [22:48:10]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:10]wFMCommunicate OK [22:48:10]SAM_PROTO_GetShiftState done [22:48:10]FM_GetShiftState done [22:48:10]req_shift_opened done [22:48:10]requested_item shift.open_date is exist - process it [22:48:10]req_shift_open_date [22:48:10]req_shift_open_date done [22:48:10]produce_requested_data done [22:48:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67394,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:48:10]process_action_free close_receipt [22:48:10]json_value_free [22:48:10]json_value_free done [22:48:10]process_json_proto returns [22:48:10]Send response to host [22:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67394,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:48:10]free response buf [22:48:10]execute_script done [22:48:10]execute_script returns [22:48:10]free content buf [22:48:10]Sock 9.Close socket [22:48:10]Sock 9.Thread stoped [22:48:12]OFD Sender: No OFD packet to send [22:48:16]accept exits with 7 [22:48:16]New connection [22:48:16]New thread 3067030884 created [22:48:16]Thread 3067174244 joined [22:48:16]Waiting for new connection... [22:48:16] Sock 7.Parse request [22:48:16]Sock 7.Check first char [22:48:16]Sock 7.First char is OK [22:48:16]request: POST /json_proto HTTP/1.0 [22:48:16]Method: POST [22:48:16]URL: /json_proto [22:48:16]Method is POST - this is cgi request [22:48:16]url: /json_proto [22:48:16]query_string will be loaded in cgi processing [22:48:16]execute_cgi json_proto POST (null) [22:48:16]execute_cgi path=json_proto method=POST [22:48:16]POST find Content-Length [22:48:16]Host: 172.17.41.195:8080 [22:48:16]Content-Length: 677 [22:48:16]Content-Type: application/json [22:48:16] [22:48:16]POST finish read [22:48:16]Found Content-Length = 677 [22:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507373", "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" : 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" ] } } [22:48:16]execute_script... [22:48: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)507373", "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" : 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" ] } } [22:48:16]POST & json_proto [22:48:16]process_json_proto [22:48:16]json parsed OK: [22:48:16]protocol is kg_v1.0 [22:48:16]action value=close_receipt [22:48:16]process_action close_receipt [22:48:16]cmd_close_receipt [22:48:16]MH_GetDate [22:48:16]Write to MH i2c: F0 00 00 7A 35 9E [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 09 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: F0 09 00 7A 35 00 B3 3B 45 66 FC 21 6F 64 30 [22:48:16]GetLastDocTimeStamp 1715813287 [22:48:16]current date 1715813299 [22:48:16]FM_GetShiftState [22:48:16]SAM_PROTO_GetShiftState [22:48:16]wFMCommunicate request_size=4 [22:48:16]MH_SAM_APDU [22:48:16]CAPDU: 80 13 01 00 [22:48:16]Write to MH i2c: E2 08 00 7B 35 80 13 01 00 00 00 00 00 2D [22:48:16]Write i2c OK [22:48:16]MH_I2C_Read... [22:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:16]Read from MH i2c: E2 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 [22:48:16]MH_I2C_Read... [22:48:16]Read from MH i2c: E2 0E 00 7B 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 D8 [22:48:16]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:16]wFMCommunicate OK [22:48:16]SAM_PROTO_GetShiftState done [22:48:16]FM_GetShiftState done [22:48:16]opened in 1715732471 [22:48:16]opened+sec_in_day 1715818871 [22:48:16]quantity*price = 60053 [22:48:16]sum+1 = 60054 [22:48:16]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 СНО: Общий режим Чек 213 15.05.2024 22:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67395 ФПД: 186674553155940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67395&fm=186674553155940&tin=02508201610067®Number=0000000000091845&sum=60000 [22:48:18]StoreToDocumentArchive [22:48:18]shift 356 fd 67395 [22:48:18]save to /storage/0356/doc_00067395 [22:48:18]save last doc name /storage/0356/doc_00067395 to /storage/kkm_last_doc_name [22:48:18]save OK [22:48:18]Clear old archive folders... [22:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:18]tlvbuf is B6F8B1D0 [22:48:18]SAM_PROTO_ClearQueue [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 09 00 00 [22:48:18]Write to MH i2c: E2 08 00 88 35 80 09 00 00 00 00 00 00 2F [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_ClearQueue done [22:48:18]KKMCreateOFDPacket [22:48:18]OFDProtocolAddRootSTLVToBuf [22:48:18]FM_MakeSignedData [22:48:18]FM_MakeSignedData [22:48:18]SAM_PROTO_SignData [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 01 02 [22:48:18]Write to MH i2c: E2 08 00 89 35 80 0D 01 02 00 00 00 00 37 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 89 35 00 90 00 32 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=255 [22:48:18]MH_SAM_APDU [22:48:18]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 D5 00 00 00 F4 03 04 00 B3 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 43 07 01 00 35 04 06 00 A9 [22:48:18]Write to MH i2c: E2 02 01 8A 35 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 D5 00 00 00 F4 03 04 00 B3 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 43 07 01 00 35 04 06 00 A9 00 00 A9 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 8A 35 00 90 00 33 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=10 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 02 02 05 C7 8E 6D F1 64 [22:48:18]Write to MH i2c: E2 0D 00 8B 35 80 0D 02 02 05 00 C7 8E 6D F1 64 00 00 5B [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 03 00 8B 35 00 90 00 34 [22:48:18]RAPDU: 90 00 [22:48:18]wFMCommunicate OK [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 0D 03 02 [22:48:18]Write to MH i2c: E2 08 00 8C 35 80 0D 03 02 00 00 00 00 3C [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0B 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 0B 00 8C 35 00 8B 82 61 B6 46 52 E2 45 90 00 20 [22:48:18]RAPDU: 8B 82 61 B6 46 52 E2 45 90 00 [22:48:18]wFMCommunicate OK [22:48:18]SAM_PROTO_SignData done [22:48:18]FM_MakeSignedData done [22:48:18]CreateOFDProtocolMessage [22:48:18]wFMCommunicate request_size=4 [22:48:18]MH_SAM_APDU [22:48:18]CAPDU: 80 11 00 00 [22:48:18]Write to MH i2c: E2 08 00 8D 35 80 11 00 00 00 00 00 00 3C [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:18]Read from MH i2c: E2 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: E2 17 00 8D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [22: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 [22:48:18]wFMCommunicate OK [22:48:18]CreateOFDProtocolMessage done [22:48:18]OFDSenderStorePacket 67395 [22:48:18]StoreOFDPacket docnum=67395 [22:48: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 E8 E3 07 01 FC 12 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 D5 00 00 00 F4 03 04 00 B3 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 43 07 01 00 35 04 06 00 A9 C7 8E 6D F1 64 8B 82 61 B6 46 52 E2 45 [22:48:18]CheckFolder [22:48:18]dirname=/storage/ofd_packets [22:48:18]CheckFolder done [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00067395 [22:48:18]NVStorageSaveData ofd_packets/00067395 [22:48:18]File name is /storage/ofd_packets/00067395 [22:48:18]Write 301 bytes [22:48:18]NVStorageSaveData done [22:48:18]OFDSenderStorePacket done [22:48:18]KKMCreateOFDPacket done [22:48:18]NVStorageSaveData kkm_last_timestamp [22:48:18]File name is /storage/kkm_last_timestamp [22:48:18]Write 4 bytes [22:48:18]NVStorageSaveData done [22:48:18]ExternCall_PrintAddStr [22:48:18]wPrintStart [22:48:18]Write to MH i2c: 01 00 00 8E 35 C3 [22:48:18]Write i2c OK [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 [22:48:18]MH_I2C_Read... [22:48:18]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 FF 0F D8 [22:48:18]RasterBufferAndPrint [22:48:18]line Счет N : (1)507373 [22:48:18]line ИНН: 02508201610067 [22:48:18]line Контрольно-Кассовый Чек [22:48:18]line ПРОДАЖА [22:48:18]line ТРК (МРК, ГНК) : 43 [22:48:18]line Товар: 2710124130 [22:48:18]line Аи-92-К-5 [22:48:18]line 8.990 * 66.80 [22:48:18]line = 600.53 [22:48:18]line НДС 12% НСП 1% [22:48:18]line > о реализуемом товаре [22:48:18]line ОКРУГЛЕНИЕ: -0.53 [22:48:18]line ИТОГО: 600.00 [22:48:18]line Внесено: 600.00 [22:48:18]line СДАЧА: 0.00 [22:48:18]line НСП 1% : 5.31 [22:48:18]line НДС 12% : 63.77 [22:48:18]line Наличными: 600.00 [22:48:18]line Безнал.: 0.00 [22:48:18]line Место: АЗС № 91 "Партнер Нефть" [22:48:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:48:18]line СНО: Общий режим [22:48:18]line Чек 213 15.05.2024 22:48 [22:48:18]line Смена: 356 ФФД: 1.0 [22:48:18]line ЗНМ: 0300000119 [22:48:18]line РНМ: 0000000000091845 [22:48:18]line Версия ККМ: 001 [22:48:18]line ФМ: 0000000000871829 [22:48:18]line ФД: 67395 [22:48:18]line ФПД: 186674553155940 [22:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67395&fm=186674553155940&tin=02508201610067®Number=0000000000091845&sum=60000 [22:48:18]written 0, free lines is 4095 [22:48:18]OFD Sender: Processing packet 67395 [packets to send 35, broken 34] [22:48:18]ProducePacketName [22:48:18]name=ofd_packets/00067395 [22:48:18]OFD Sender: To server: pG, [22:48:18]CommunicateWithHost lk.salyk.kg:30040 [22:48:18]ConnectInit lk.salyk.kg [22:48:19]Connected sock=10 [22:48: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 0F 01 00 00 E8 E3 07 01 FC 12 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 D5 00 00 00 F4 03 04 00 B3 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 43 07 01 00 35 04 06 00 A9 C7 8E 6D F1 64 8B 82 61 B6 46 52 E2 45 [22:48: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 E1 80 47 00 A1 BA 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 43 07 01 00 F4 03 04 00 90 E3 44 66 B6 04 01 00 00 4E 13 19 99 3E CE A2 44 [22:48:19]CommunicateWithHost err = 0 [22:48:19]CheckOFDResponse [22:48:19]1017 (14) - 77093643461234 [22:48:19]1041 (16) - 0000000000871829 [22:48:19]1040 (4) - 67395 [22:48:19]1012 (4) - 15.05.2024 16:32 [22:48:19]1206 (1) - 0 [22:48:19]OFD Sender: Remove packet 67395 [22:48:19]ProducePacketName [22:48:19]name=ofd_packets/00067395 [22:48:19]NVStorageDeleteData [22:48:19]Write to MH i2c: 01 00 00 B8 35 ED [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: 01 07 00 B8 35 00 00 00 00 00 CC 0C CC [22:48:19]RasterBufferAndPrint [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]line [22:48:19]written 0, free lines is 3284 [22:48:19]MH_Cut [22:48:19]Write to MH i2c: D1 01 00 BF 35 01 C6 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 01 00 [22:48:19]MH_I2C_Read... [22:48:19]Read from MH i2c: D1 01 00 BF 35 00 C5 [22:48:19]Write to MH i2c: 01 00 00 C0 35 F5 [22:48:19]Write i2c OK [22:48:19]MH_I2C_Read... [22:48:19]OFD Sender: No OFD packet to send [22:48:20]*** Cut start [22:48:20]*** Purtial cut [22:48:20]*** Stage 1: CUTSNS_PIN = 1 [22:48:20]Read from MH i2c: 01 [22:48:20]MH_I2C_Read... [22:48:20]*** Stop cut motor [22:48:20]*** Cut end [22:48:20]Read from MH i2c: 01 07 00 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: 01 07 00 C0 35 00 00 00 00 00 FF 0F 0A [22:48:20]process_action close_receipt done [22:48:20]requested_data is exist [22:48:20]produce_requested_data [22:48:20]requested_item fm.sn is exist - process it [22:48:20]wFMCommunicate request_size=4 [22:48:20]MH_SAM_APDU [22:48:20]CAPDU: 80 11 00 00 [22:48:20]Write to MH i2c: E2 08 00 C1 35 80 11 00 00 00 00 00 00 70 [22:48:20]Write i2c OK [22:48:20]MH_I2C_Read... [22:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:20]Read from MH i2c: E2 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 17 00 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 17 00 C1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [22:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:48:20]wFMCommunicate OK [22:48:20]requested_item fd.num is exist - process it [22:48:20]SAM_PROTO_GetFieldsCounters [22:48:20]wFMCommunicate request_size=4 [22:48:20]MH_SAM_APDU [22:48:20]CAPDU: 80 13 00 00 [22:48:20]Write to MH i2c: E2 08 00 C2 35 80 13 00 00 00 00 00 00 73 [22:48:20]Write i2c OK [22:48:20]MH_I2C_Read... [22:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:20]Read from MH i2c: E2 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 62 00 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 62 00 C2 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 43 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [22:48: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 43 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:20]wFMCommunicate OK [22:48:20]SAM_PROTO_GetFieldsCounters done [22:48:20]requested_item shift.num is exist - process it [22:48:20]requested_item shift.opened is exist - process it [22:48:20]req_shift_opened [22:48:20]FM_GetShiftState [22:48:20]SAM_PROTO_GetShiftState [22:48:20]wFMCommunicate request_size=4 [22:48:20]MH_SAM_APDU [22:48:20]CAPDU: 80 13 01 00 [22:48:20]Write to MH i2c: E2 08 00 C3 35 80 13 01 00 00 00 00 00 75 [22:48:20]Write i2c OK [22:48:20]MH_I2C_Read... [22:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:20]Read from MH i2c: E2 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 0E 00 [22:48:20]MH_I2C_Read... [22:48:20]Read from MH i2c: E2 0E 00 C3 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 20 [22:48:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:20]wFMCommunicate OK [22:48:20]SAM_PROTO_GetShiftState done [22:48:20]FM_GetShiftState done [22:48:20]req_shift_opened done [22:48:20]requested_item shift.open_date is exist - process it [22:48:20]req_shift_open_date [22:48:20]req_shift_open_date done [22:48:20]produce_requested_data done [22:48:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67395,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:48:20]process_action_free close_receipt [22:48:20]json_value_free [22:48:20]json_value_free done [22:48:20]process_json_proto returns [22:48:20]Send response to host [22:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67395,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:48:20]free response buf [22:48:20]execute_script done [22:48:20]execute_script returns [22:48:20]free content buf [22:48:20]Sock 7.Close socket [22:48:20]Sock 7.Thread stoped [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:53]accept exits with 9 [22:48:53]New connection [22:48:53]New thread 3067174244 created [22:48:53]Thread 3067030884 joined [22:48:53]Waiting for new connection... [22:48:53] Sock 9.Parse request [22:48:53]Sock 9.Check first char [22:48:53]Sock 9.First char is OK [22:48:53]request: POST /json_proto HTTP/1.0 [22:48:53]Method: POST [22:48:53]URL: /json_proto [22:48:53]Method is POST - this is cgi request [22:48:53]url: /json_proto [22:48:53]query_string will be loaded in cgi processing [22:48:53]execute_cgi json_proto POST (null) [22:48:53]execute_cgi path=json_proto method=POST [22:48:53]POST find Content-Length [22:48:53]Host: 172.17.41.195:8080 [22:48:53]Content-Length: 670 [22:48:53]Content-Type: application/json [22:48:53] [22:48:53]POST finish read [22:48:53]Found Content-Length = 670 [22:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507374", "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" : 4.430, "sum" : 300.35, "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" ] } } [22:48:53]execute_script... [22:48:53]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)507374", "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" : 4.430, "sum" : 300.35, "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" ] } } [22:48:53]POST & json_proto [22:48:53]process_json_proto [22:48:53]json parsed OK: [22:48:53]protocol is kg_v1.0 [22:48:53]action value=close_receipt [22:48:53]process_action close_receipt [22:48:53]cmd_close_receipt [22:48:53]MH_GetDate [22:48:53]Write to MH i2c: F0 00 00 C4 35 E8 [22:48:53]Write i2c OK [22:48:53]MH_I2C_Read... [22:48:53]Read from MH i2c: F0 [22:48:53]MH_I2C_Read... [22:48:53]Read from MH i2c: F0 09 00 [22:48:53]MH_I2C_Read... [22:48:53]Read from MH i2c: F0 09 00 C4 35 00 D8 3B 45 66 FC 21 6F 64 9F [22:48:53]GetLastDocTimeStamp 1715813299 [22:48:53]current date 1715813336 [22:48:53]FM_GetShiftState [22:48:53]SAM_PROTO_GetShiftState [22:48:53]wFMCommunicate request_size=4 [22:48:53]MH_SAM_APDU [22:48:53]CAPDU: 80 13 01 00 [22:48:53]Write to MH i2c: E2 08 00 C5 35 80 13 01 00 00 00 00 00 77 [22:48:53]Write i2c OK [22:48:53]MH_I2C_Read... [22:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:53]Read from MH i2c: E2 [22:48:53]MH_I2C_Read... [22:48:53]Read from MH i2c: E2 0E 00 [22:48:53]MH_I2C_Read... [22:48:53]Read from MH i2c: E2 0E 00 C5 35 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 22 [22:48:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:53]wFMCommunicate OK [22:48:53]SAM_PROTO_GetShiftState done [22:48:53]FM_GetShiftState done [22:48:53]opened in 1715732471 [22:48:53]opened+sec_in_day 1715818871 [22:48:53]quantity*price = 30035 [22:48:53]sum+1 = 30036 [22:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 214 15.05.2024 22:48 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67396 ФПД: 257473813111794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67396&fm=257473813111794&tin=02508201610067®Number=0000000000091845&sum=30000 [22:48:55]StoreToDocumentArchive [22:48:55]shift 356 fd 67396 [22:48:55]save to /storage/0356/doc_00067396 [22:48:55]save last doc name /storage/0356/doc_00067396 to /storage/kkm_last_doc_name [22:48:55]save OK [22:48:55]Clear old archive folders... [22:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:48:55]tlvbuf is 00C3FEB0 [22:48:55]SAM_PROTO_ClearQueue [22:48:55]wFMCommunicate request_size=4 [22:48:55]MH_SAM_APDU [22:48:55]CAPDU: 80 09 00 00 [22:48:55]Write to MH i2c: E2 08 00 D2 35 80 09 00 00 00 00 00 00 79 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [22:48:55]RAPDU: 90 00 [22:48:55]wFMCommunicate OK [22:48:55]SAM_PROTO_ClearQueue done [22:48:55]KKMCreateOFDPacket [22:48:55]OFDProtocolAddRootSTLVToBuf [22:48:55]FM_MakeSignedData [22:48:55]FM_MakeSignedData [22:48:55]SAM_PROTO_SignData [22:48:55]wFMCommunicate request_size=4 [22:48:55]MH_SAM_APDU [22:48:55]CAPDU: 80 0D 01 02 [22:48:55]Write to MH i2c: E2 08 00 D3 35 80 0D 01 02 00 00 00 00 81 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 D3 35 00 90 00 7C [22:48:55]RAPDU: 90 00 [22:48:55]wFMCommunicate OK [22:48:55]wFMCommunicate request_size=255 [22:48:55]MH_SAM_APDU [22:48: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 76 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 D6 00 00 00 F4 03 04 00 D8 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 44 07 01 00 35 04 06 00 [22:48:55]Write to MH i2c: E2 02 01 D4 35 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 76 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 D6 00 00 00 F4 03 04 00 D8 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 44 07 01 00 35 04 06 00 00 00 93 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 D4 35 00 90 00 7D [22:48:55]RAPDU: 90 00 [22:48:55]wFMCommunicate OK [22:48:55]wFMCommunicate request_size=11 [22:48:55]MH_SAM_APDU [22:48:55]CAPDU: 80 0D 02 02 06 EA 2B CB 2B 63 F2 [22:48:55]Write to MH i2c: E2 0E 00 D5 35 80 0D 02 02 06 00 EA 2B CB 2B 63 F2 00 00 F0 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 03 00 D5 35 00 90 00 7E [22:48:55]RAPDU: 90 00 [22:48:55]wFMCommunicate OK [22:48:55]wFMCommunicate request_size=4 [22:48:55]MH_SAM_APDU [22:48:55]CAPDU: 80 0D 03 02 [22:48:55]Write to MH i2c: E2 08 00 D6 35 80 0D 03 02 00 00 00 00 86 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 0B 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 0B 00 D6 35 00 97 A7 6A 6A 2C 40 1C B6 90 00 D7 [22:48:55]RAPDU: 97 A7 6A 6A 2C 40 1C B6 90 00 [22:48:55]wFMCommunicate OK [22:48:55]SAM_PROTO_SignData done [22:48:55]FM_MakeSignedData done [22:48:55]CreateOFDProtocolMessage [22:48:55]wFMCommunicate request_size=4 [22:48:55]MH_SAM_APDU [22:48:55]CAPDU: 80 11 00 00 [22:48:55]Write to MH i2c: E2 08 00 D7 35 80 11 00 00 00 00 00 00 86 [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:55]Read from MH i2c: E2 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 17 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: E2 17 00 D7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [22:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:48:55]wFMCommunicate OK [22:48:55]CreateOFDProtocolMessage done [22:48:55]OFDSenderStorePacket 67396 [22:48:55]StoreOFDPacket docnum=67396 [22:48:55]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 D0 70 08 01 44 5B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 76 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 D6 00 00 00 F4 03 04 00 D8 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 44 07 01 00 35 04 06 00 EA 2B CB 2B 63 F2 97 A7 6A 6A 2C 40 1C B6 [22:48:55]CheckFolder [22:48:55]dirname=/storage/ofd_packets [22:48:55]CheckFolder done [22:48:55]ProducePacketName [22:48:55]name=ofd_packets/00067396 [22:48:55]NVStorageSaveData ofd_packets/00067396 [22:48:55]File name is /storage/ofd_packets/00067396 [22:48:55]Write 302 bytes [22:48:55]NVStorageSaveData done [22:48:55]OFDSenderStorePacket done [22:48:55]KKMCreateOFDPacket done [22:48:55]NVStorageSaveData kkm_last_timestamp [22:48:55]File name is /storage/kkm_last_timestamp [22:48:55]Write 4 bytes [22:48:55]NVStorageSaveData done [22:48:55]ExternCall_PrintAddStr [22:48:55]wPrintStart [22:48:55]Write to MH i2c: 01 00 00 D8 35 0D [22:48:55]Write i2c OK [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: 01 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: 01 07 00 [22:48:55]MH_I2C_Read... [22:48:55]Read from MH i2c: 01 07 00 D8 35 00 00 00 00 00 FF 0F 22 [22:48:55]RasterBufferAndPrint [22:48:55]line Счет N : (1)507374 [22:48:55]line ИНН: 02508201610067 [22:48:55]line Контрольно-Кассовый Чек [22:48:55]line ПРОДАЖА [22:48:55]line ТРК (МРК, ГНК) : 22 [22:48:55]line Товар: 2710124130 [22:48:55]line Super-92-К-5 [22:48:55]line 4.430 * 67.80 [22:48:55]line = 300.35 [22:48:55]line НДС 12% НСП 1% [22:48:55]line > о реализуемом товаре [22:48:55]line ОКРУГЛЕНИЕ: -0.35 [22:48:55]line ИТОГО: 300.00 [22:48:55]line Внесено: 300.00 [22:48:55]line СДАЧА: 0.00 [22:48:55]line НСП 1% : 2.66 [22:48:55]line НДС 12% : 31.90 [22:48:55]line Наличными: 300.00 [22:48:55]line Безнал.: 0.00 [22:48:55]line Место: АЗС № 91 "Партнер Нефть" [22:48:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:48:55]line СНО: Общий режим [22:48:55]line Чек 214 15.05.2024 22:48 [22:48:55]line Смена: 356 ФФД: 1.0 [22:48:55]line ЗНМ: 0300000119 [22:48:55]line РНМ: 0000000000091845 [22:48:55]line Версия ККМ: 001 [22:48:55]line ФМ: 0000000000871829 [22:48:55]line ФД: 67396 [22:48:55]line ФПД: 257473813111794 [22:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T224856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67396&fm=257473813111794&tin=02508201610067®Number=0000000000091845&sum=30000 [22:48:55]OFD Sender: Processing packet 67396 [packets to send 35, broken 34] [22:48:55]ProducePacketName [22:48:55]name=ofd_packets/00067396 [22:48:55]OFD Sender: To server: pG, [22:48:55]CommunicateWithHost lk.salyk.kg:30040 [22:48:55]ConnectInit lk.salyk.kg [22:48:55]written 0, free lines is 4095 [22:48:56]Connected sock=10 [22:48: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 D0 70 08 01 44 5B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 76 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 D6 00 00 00 F4 03 04 00 D8 3B 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 44 07 01 00 35 04 06 00 EA 2B CB 2B 63 F2 97 A7 6A 6A 2C 40 1C B6 [22:48: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 A6 67 47 00 B8 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 44 07 01 00 F4 03 04 00 B5 E3 44 66 B6 04 01 00 00 D5 3B 58 B9 E0 DD 38 FC [22:48:56]CommunicateWithHost err = 0 [22:48:56]CheckOFDResponse [22:48:56]1017 (14) - 77093643461234 [22:48:56]1041 (16) - 0000000000871829 [22:48:56]1040 (4) - 67396 [22:48:56]1012 (4) - 15.05.2024 16:32 [22:48:56]1206 (1) - 0 [22:48:56]OFD Sender: Remove packet 67396 [22:48:56]ProducePacketName [22:48:56]name=ofd_packets/00067396 [22:48:56]NVStorageDeleteData [22:48:56]Write to MH i2c: 01 00 00 02 36 38 [22:48:56]Write i2c OK [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: 01 [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: 01 07 00 [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: 01 07 00 02 36 00 00 00 00 00 DC 0C 27 [22:48:56]RasterBufferAndPrint [22:48:56]line [22:48:56]line [22:48:56]line [22:48:56]line [22:48:56]line [22:48:56]written 0, free lines is 3298 [22:48:56]MH_Cut [22:48:56]Write to MH i2c: D1 01 00 09 36 01 11 [22:48:56]Write i2c OK [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: D1 [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: D1 01 00 [22:48:56]MH_I2C_Read... [22:48:56]Read from MH i2c: D1 01 00 09 36 00 10 [22:48:56]Write to MH i2c: 01 00 00 0A 36 40 [22:48:56]Write i2c OK [22:48:56]MH_I2C_Read... [22:48:56]OFD Sender: No OFD packet to send [22:48:57]*** Cut start [22:48:57]*** Purtial cut [22:48:57]*** CUTSNS_PIN = 0 [22:48:57]*** Stage 1: CUTSNS_PIN = 1 [22:48:59]Read from MH i2c: 01 [22:48:59]MH_I2C_Read... [22:48:59]*** Stop cut motor [22:48:59]*** Cut end [22:48:59]Read from MH i2c: 01 07 00 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: 01 07 00 0A 36 00 00 00 00 00 FF 0F 55 [22:48:59]process_action close_receipt done [22:48:59]requested_data is exist [22:48:59]produce_requested_data [22:48:59]requested_item fm.sn is exist - process it [22:48:59]wFMCommunicate request_size=4 [22:48:59]MH_SAM_APDU [22:48:59]CAPDU: 80 11 00 00 [22:48:59]Write to MH i2c: E2 08 00 0B 36 80 11 00 00 00 00 00 00 BB [22:48:59]Write i2c OK [22:48:59]MH_I2C_Read... [22:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:59]Read from MH i2c: E2 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 17 00 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 17 00 0B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [22: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 [22:48:59]wFMCommunicate OK [22:48:59]requested_item fd.num is exist - process it [22:48:59]SAM_PROTO_GetFieldsCounters [22:48:59]wFMCommunicate request_size=4 [22:48:59]MH_SAM_APDU [22:48:59]CAPDU: 80 13 00 00 [22:48:59]Write to MH i2c: E2 08 00 0C 36 80 13 00 00 00 00 00 00 BE [22:48:59]Write i2c OK [22:48:59]MH_I2C_Read... [22:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:59]Read from MH i2c: E2 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 62 00 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 62 00 0C 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 44 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [22:48: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 44 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:59]wFMCommunicate OK [22:48:59]SAM_PROTO_GetFieldsCounters done [22:48:59]requested_item shift.num is exist - process it [22:48:59]requested_item shift.opened is exist - process it [22:48:59]req_shift_opened [22:48:59]FM_GetShiftState [22:48:59]SAM_PROTO_GetShiftState [22:48:59]wFMCommunicate request_size=4 [22:48:59]MH_SAM_APDU [22:48:59]CAPDU: 80 13 01 00 [22:48:59]Write to MH i2c: E2 08 00 0D 36 80 13 01 00 00 00 00 00 C0 [22:48:59]Write i2c OK [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:59]E2 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 0E 00 [22:48:59]MH_I2C_Read... [22:48:59]Read from MH i2c: E2 0E 00 0D 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6B [22:48:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [22:48:59]wFMCommunicate OK [22:48:59]SAM_PROTO_GetShiftState done [22:48:59]FM_GetShiftState done [22:48:59]req_shift_opened done [22:48:59]requested_item shift.open_date is exist - process it [22:48:59]req_shift_open_date [22:48:59]req_shift_open_date done [22:48:59]produce_requested_data done [22:48:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67396,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [22:48:59]process_action_free close_receipt [22:48:59]json_value_free [22:48:59]json_value_free done [22:48:59]process_json_proto returns [22:48:59]Send response to host [22:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67396,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [22:48:59]free response buf [22:48:59]execute_script done [22:48:59]execute_script returns [22:48:59]free content buf [22:48:59]Sock 9.Close socket [22:48:59]Sock 9.Thread stoped [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:41]accept exits with 7 [23:02:41]New connection [23:02:41]New thread 3067030884 created [23:02:41]Thread 3067174244 joined [23:02:41]Waiting for new connection... [23:02:41] Sock 7.Parse request [23:02:41]Sock 7.Check first char [23:02:41]Sock 7.First char is OK [23:02:41]request: POST /json_proto HTTP/1.0 [23:02:41]Method: POST [23:02:41]URL: /json_proto [23:02:41]Method is POST - this is cgi request [23:02:41]url: /json_proto [23:02:41]query_string will be loaded in cgi processing [23:02:41]execute_cgi json_proto POST (null) [23:02:41]execute_cgi path=json_proto method=POST [23:02:41]POST find Content-Length [23:02:41]Host: 172.17.41.195:8080 [23:02:41]Content-Length: 658 [23:02:41]Content-Type: application/json [23:02:41] [23:02:41]POST finish read [23:02:41]Found Content-Length = 658 [23:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507375", "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" : 14.000, "sum" : 1045.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "total" : 1045.00, "payments": [ { "type": 0, "sum" : 1045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:41]execute_script... [23:02:41]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)507375", "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" : 14.000, "sum" : 1045.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "total" : 1045.00, "payments": [ { "type": 0, "sum" : 1045.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:41]POST & json_proto [23:02:41]process_json_proto [23:02:41]json parsed OK: [23:02:41]protocol is kg_v1.0 [23:02:41]action value=close_receipt [23:02:41]process_action close_receipt [23:02:41]cmd_close_receipt [23:02:41]MH_GetDate [23:02:41]Write to MH i2c: F0 00 00 0E 36 33 [23:02:41]Write i2c OK [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 09 00 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 09 00 0E 36 00 14 3F 45 66 FC 21 6F 64 2A [23:02:41]GetLastDocTimeStamp 1715813336 [23:02:41]current date 1715814164 [23:02:41]FM_GetShiftState [23:02:41]SAM_PROTO_GetShiftState [23:02:41]wFMCommunicate request_size=4 [23:02:41]MH_SAM_APDU [23:02:41]CAPDU: 80 13 01 00 [23:02:41]Write to MH i2c: E2 08 00 0F 36 80 13 01 00 00 00 00 00 C2 [23:02:41]Write i2c OK [23:02:41]MH_I2C_Read... [23:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:41]Read from MH i2c: E2 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: E2 0E 00 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: E2 0E 00 0F 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 6D [23:02:41]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:02:41]wFMCommunicate OK [23:02:41]SAM_PROTO_GetShiftState done [23:02:41]FM_GetShiftState done [23:02:41]opened in 1715732471 [23:02:41]opened+sec_in_day 1715818871 [23:02:41]quantity*price = 104580 [23:02:41]sum+1 = 104581 [23:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 1045.00 НСП 1% : 9.25 НДС 12% : 111.06 Наличными: 1045.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 215 15.05.2024 23:02 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67397 ФПД: 109292908530369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T230244&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67397&fm=109292908530369&tin=02508201610067®Number=0000000000091845&sum=104500 [23:02:42]StoreToDocumentArchive [23:02:42]shift 356 fd 67397 [23:02:42]save to /storage/0356/doc_00067397 [23:02:42]save last doc name /storage/0356/doc_00067397 to /storage/kkm_last_doc_name [23:02:42]save OK [23:02:42]Clear old archive folders... [23:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:02:42]tlvbuf is 00BF6450 [23:02:42]SAM_PROTO_ClearQueue [23:02:42]wFMCommunicate request_size=4 [23:02:42]MH_SAM_APDU [23:02:42]CAPDU: 80 09 00 00 [23:02:42]Write to MH i2c: E2 08 00 1C 36 80 09 00 00 00 00 00 00 C4 [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:42]Read from MH i2c: E2 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 1C 36 00 90 00 C6 [23:02:42]RAPDU: 90 00 [23:02:42]wFMCommunicate OK [23:02:42]SAM_PROTO_ClearQueue done [23:02:42]KKMCreateOFDPacket [23:02:42]OFDProtocolAddRootSTLVToBuf [23:02:42]FM_MakeSignedData [23:02:42]FM_MakeSignedData [23:02:42]SAM_PROTO_SignData [23:02:42]wFMCommunicate request_size=4 [23:02:42]MH_SAM_APDU [23:02:42]CAPDU: 80 0D 01 02 [23:02:42]Write to MH i2c: E2 08 00 1D 36 80 0D 01 02 00 00 00 00 CC [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:42]Read from MH i2c: E2 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 1D 36 00 90 00 C7 [23:02:42]RAPDU: 90 00 [23:02:42]wFMCommunicate OK [23:02:42]wFMCommunicate request_size=255 [23:02:42]MH_SAM_APDU [23:02:42]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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 14 3F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 45 07 01 00 35 04 06 00 63 66 BC FD [23:02:42]Write to MH i2c: E2 02 01 1E 36 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 14 3F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 45 07 01 00 35 04 06 00 63 66 BC FD 00 00 4C [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 1E 36 00 90 00 C8 [23:02:43]RAPDU: 90 00 [23:02:43]wFMCommunicate OK [23:02:43]wFMCommunicate request_size=7 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 0D 02 02 02 4A C1 [23:02:43]Write to MH i2c: E2 0A 00 1F 36 80 0D 02 02 02 00 4A C1 00 00 DE [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 1F 36 00 90 00 C9 [23:02:43]RAPDU: 90 00 [23:02:43]wFMCommunicate OK [23:02:43]wFMCommunicate request_size=4 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 0D 03 02 [23:02:43]Write to MH i2c: E2 08 00 20 36 80 0D 03 02 00 00 00 00 D1 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 0B 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 0B 00 20 36 00 F7 90 13 1F 0A 1D 64 03 90 00 19 [23:02:43]RAPDU: F7 90 13 1F 0A 1D 64 03 90 00 [23:02:43]wFMCommunicate OK [23:02:43]SAM_PROTO_SignData done [23:02:43]FM_MakeSignedData done [23:02:43]CreateOFDProtocolMessage [23:02:43]wFMCommunicate request_size=4 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 11 00 00 [23:02:43]Write to MH i2c: E2 08 00 21 36 80 11 00 00 00 00 00 00 D1 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 17 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 17 00 21 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [23:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:02:43]wFMCommunicate OK [23:02:43]CreateOFDProtocolMessage done [23:02:43]OFDSenderStorePacket 67397 [23:02:43]StoreOFDPacket docnum=67397 [23:02:43]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 46 4B 04 01 DD 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 14 3F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 45 07 01 00 35 04 06 00 63 66 BC FD 4A C1 F7 90 13 1F 0A 1D 64 03 [23:02:43]CheckFolder [23:02:43]dirname=/storage/ofd_packets [23:02:43]CheckFolder done [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00067397 [23:02:43]NVStorageSaveData ofd_packets/00067397 [23:02:43]File name is /storage/ofd_packets/00067397 [23:02:43]Write 298 bytes [23:02:43]NVStorageSaveData done [23:02:43]OFDSenderStorePacket done [23:02:43]KKMCreateOFDPacket done [23:02:43]NVStorageSaveData kkm_last_timestamp [23:02:43]File name is /storage/kkm_last_timestamp [23:02:43]Write 4 bytes [23:02:43]NVStorageSaveData done [23:02:43]ExternCall_PrintAddStr [23:02:43]wPrintStart [23:02:43]Write to MH i2c: 01 00 00 22 36 58 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 22 36 00 00 00 00 00 FF 0F 6D [23:02:43]RasterBufferAndPrint [23:02:43]line Счет N : (1)507375 [23:02:43]line ИНН: 02508201610067 [23:02:43]line Контрольно-Кассовый Чек [23:02:43]line ПРОДАЖА [23:02:43]line ТРК (МРК, ГНК) : 11 [23:02:43]line Товар: 2710194210 [23:02:43]line ДТ-К-5 [23:02:43]line 14.000 * 74.70 [23:02:43]line = 1045.80 [23:02:43]line НДС 12% НСП 1% [23:02:43]line > о реализуемом товаре [23:02:43]line ОКРУГЛЕНИЕ: -0.80 [23:02:43]line ИТОГО: 1045.00 [23:02:43]line НСП 1% : 9.25 [23:02:43]line НДС 12% : 111.06 [23:02:43]line Наличными: 1045.00 [23:02:43]line Безнал.: 0.00 [23:02:43]line Место: АЗС № 91 "Партнер Нефть" [23:02:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:02:43]line СНО: Общий режим [23:02:43]line Чек 215 15.05.2024 23:02 [23:02:43]line Смена: 356 ФФД: 1.0 [23:02:43]line ЗНМ: 0300000119 [23:02:43]line РНМ: 0000000000091845 [23:02:43]line Версия ККМ: 001 [23:02:43]line ФМ: 0000000000871829 [23:02:43]line ФД: 67397 [23:02:43]line ФПД: 109292908530369 [23:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T230244&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67397&fm=109292908530369&tin=02508201610067®Number=0000000000091845&sum=104500 [23:02:43]OFD Sender: Processing packet 67397 [packets to send 35, broken 34] [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00067397 [23:02:43]OFD Sender: To server: pG, [23:02:43]CommunicateWithHost lk.salyk.kg:30040 [23:02:43]ConnectInit lk.salyk.kg [23:02:43]written 0, free lines is 4095 [23:02:43]Connected sock=10 [23:02:43]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 46 4B 04 01 DD 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 B0 36 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 98 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 98 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 2B 00 00 00 00 07 04 06 00 34 98 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 14 3F 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 45 07 01 00 35 04 06 00 63 66 BC FD 4A C1 F7 90 13 1F 0A 1D 64 03 [23:02: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 25 22 47 00 B9 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 45 07 01 00 F4 03 04 00 F0 E6 44 66 B6 04 01 00 00 76 E4 38 99 D9 7F 1C 6F [23:02:43]CommunicateWithHost err = 0 [23:02:43]CheckOFDResponse [23:02:43]1017 (14) - 77093643461234 [23:02:43]1041 (16) - 0000000000871829 [23:02:43]1040 (4) - 67397 [23:02:43]1012 (4) - 15.05.2024 16:46 [23:02:43]1206 (1) - 0 [23:02:43]OFD Sender: Remove packet 67397 [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00067397 [23:02:43]NVStorageDeleteData [23:02:43]Write to MH i2c: 01 00 00 4A 36 80 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 4A 36 00 00 00 00 00 F4 0C 87 [23:02:43]RasterBufferAndPrint [23:02:43]line [23:02:43]line [23:02:43]line [23:02:43]line [23:02:43]line [23:02:43]written 0, free lines is 3323 [23:02:43]MH_Cut [23:02:43]Write to MH i2c: D1 01 00 51 36 01 59 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: D1 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: D1 01 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: D1 01 00 51 36 00 58 [23:02:43]Write to MH i2c: 01 00 00 52 36 88 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:44]OFD Sender: No OFD packet to send [23:02:44]*** Cut start [23:02:44]*** Purtial cut [23:02:44]*** Stage 1: CUTSNS_PIN = 1 [23:02:45]Read from MH i2c: 01 [23:02:45]MH_I2C_Read... [23:02:45]*** Stop cut motor [23:02:45]*** Cut end [23:02:45]Read from MH i2c: 01 07 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: 01 07 00 52 36 00 00 00 00 00 FF 0F 9D [23:02:45]process_action close_receipt done [23:02:45]requested_data is exist [23:02:45]produce_requested_data [23:02:45]requested_item fm.sn is exist - process it [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 11 00 00 [23:02:45]Write to MH i2c: E2 08 00 53 36 80 11 00 00 00 00 00 00 03 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 17 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 17 00 53 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [23:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:02:45]wFMCommunicate OK [23:02:45]requested_item fd.num is exist - process it [23:02:45]SAM_PROTO_GetFieldsCounters [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 13 00 00 [23:02:45]Write to MH i2c: E2 08 00 54 36 80 13 00 00 00 00 00 00 06 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 62 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 62 00 54 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 45 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [23:02: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 45 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:02:45]wFMCommunicate OK [23:02:45]SAM_PROTO_GetFieldsCounters done [23:02:45]requested_item shift.num is exist - process it [23:02:45]requested_item shift.opened is exist - process it [23:02:45]req_shift_opened [23:02:45]FM_GetShiftState [23:02:45]SAM_PROTO_GetShiftState [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 13 01 00 [23:02:45]Write to MH i2c: E2 08 00 55 36 80 13 01 00 00 00 00 00 08 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 0E 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 0E 00 55 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B3 [23:02:45]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:02:45]wFMCommunicate OK [23:02:45]SAM_PROTO_GetShiftState done [23:02:45]FM_GetShiftState done [23:02:45]req_shift_opened done [23:02:45]requested_item shift.open_date is exist - process it [23:02:45]req_shift_open_date [23:02:45]req_shift_open_date done [23:02:45]produce_requested_data done [23:02:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67397,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:02:45]process_action_free close_receipt [23:02:45]json_value_free [23:02:45]json_value_free done [23:02:45]process_json_proto returns [23:02:45]Send response to host [23:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67397,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:02:45]free response buf [23:02:45]execute_script done [23:02:45]execute_script returns [23:02:45]free content buf [23:02:45]Sock 7.Close socket [23:02:45]Sock 7.Thread stoped [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:42]accept exits with 9 [23:29:42]New connection [23:29:42]New thread 3067174244 created [23:29:42]Thread 3067030884 joined [23:29:42]Waiting for new connection... [23:29:42] Sock 9.Parse request [23:29:42]Sock 9.Check first char [23:29:42]Sock 9.First char is OK [23:29:42]request: POST /json_proto HTTP/1.0 [23:29:42]Method: POST [23:29:42]URL: /json_proto [23:29:42]Method is POST - this is cgi request [23:29:42]url: /json_proto [23:29:42]query_string will be loaded in cgi processing [23:29:42]execute_cgi json_proto POST (null) [23:29:42]execute_cgi path=json_proto method=POST [23:29:42]POST find Content-Length [23:29:42]Host: 172.17.41.195:8080 [23:29:42]Content-Length: 817 [23:29:42]Content-Type: application/json [23:29:42] [23:29:42]POST finish read [23:29:42]Found Content-Length = 817 [23:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507377", "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" : 107.100, "sum" : 8000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:42]execute_script... [23:29: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)507377", "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" : 107.100, "sum" : 8000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:42]POST & json_proto [23:29:42]process_json_proto [23:29:42]json parsed OK: [23:29:42]protocol is kg_v1.0 [23:29:42]action value=close_receipt [23:29:42]process_action close_receipt [23:29:42]cmd_close_receipt [23:29:42]MH_GetDate [23:29:42]Write to MH i2c: F0 00 00 56 36 7B [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 09 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: F0 09 00 56 36 00 69 45 45 66 FC 21 6F 64 CD [23:29:42]GetLastDocTimeStamp 1715814164 [23:29:42]current date 1715815785 [23:29:42]FM_GetShiftState [23:29:42]SAM_PROTO_GetShiftState [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 13 01 00 [23:29:42]Write to MH i2c: E2 08 00 57 36 80 13 01 00 00 00 00 00 0A [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 0E 00 57 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B5 [23:29:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:29:42]wFMCommunicate OK [23:29:42]SAM_PROTO_GetShiftState done [23:29:42]FM_GetShiftState done [23:29:42]opened in 1715732471 [23:29:42]opened+sec_in_day 1715818871 [23:29:42]quantity*price = 800037 [23:29:42]sum+1 = 800038 [23:29:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.37 НСП 1% : 70.80 НДС 12% : 849.60 Наличными: 0.00 Безнал.: 8000.37 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 216 15.05.2024 23:29 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67398 ФПД: 38752166257786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T232946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67398&fm=38752166257786&tin=02508201610067®Number=0000000000091845&sum=800037 [23:29:44]StoreToDocumentArchive [23:29:44]shift 356 fd 67398 [23:29:44]save to /storage/0356/doc_00067398 [23:29:44]save last doc name /storage/0356/doc_00067398 to /storage/kkm_last_doc_name [23:29:44]save OK [23:29:44]Clear old archive folders... [23:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:29:44]tlvbuf is 00B75030 [23:29:44]SAM_PROTO_ClearQueue [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 09 00 00 [23:29:44]Write to MH i2c: E2 08 00 64 36 80 09 00 00 00 00 00 00 0C [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 64 36 00 90 00 0E [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]SAM_PROTO_ClearQueue done [23:29:44]KKMCreateOFDPacket [23:29:44]OFDProtocolAddRootSTLVToBuf [23:29:44]FM_MakeSignedData [23:29:44]FM_MakeSignedData [23:29:44]SAM_PROTO_SignData [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 01 02 [23:29:44]Write to MH i2c: E2 08 00 65 36 80 0D 01 02 00 00 00 00 14 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 65 36 00 90 00 0F [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=255 [23:29:44]MH_SAM_APDU [23:29:44]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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 6A 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 46 07 01 00 35 04 06 00 23 3E B1 1A [23:29:44]Write to MH i2c: E2 02 01 66 36 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 6A 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 46 07 01 00 35 04 06 00 23 3E B1 1A 00 00 F2 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 66 36 00 90 00 10 [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=7 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 02 02 02 A4 7A [23:29:44]Write to MH i2c: E2 0A 00 67 36 80 0D 02 02 02 00 A4 7A 00 00 39 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 03 00 67 36 00 90 00 11 [23:29:44]RAPDU: 90 00 [23:29:44]wFMCommunicate OK [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 0D 03 02 [23:29:44]Write to MH i2c: E2 08 00 68 36 80 0D 03 02 00 00 00 00 19 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0B 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0B 00 68 36 00 E7 D3 47 76 BD AA 5D 2F 90 00 84 [23:29:44]RAPDU: E7 D3 47 76 BD AA 5D 2F 90 00 [23:29:44]wFMCommunicate OK [23:29:44]SAM_PROTO_SignData done [23:29:44]FM_MakeSignedData done [23:29:44]CreateOFDProtocolMessage [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 11 00 00 [23:29:44]Write to MH i2c: E2 08 00 69 36 80 11 00 00 00 00 00 00 19 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 17 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 17 00 69 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [23:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:29:44]wFMCommunicate OK [23:29:44]CreateOFDProtocolMessage done [23:29:44]OFDSenderStorePacket 67398 [23:29:44]StoreOFDPacket docnum=67398 [23:29: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 0C 01 00 00 29 DD 04 01 D8 DE 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 6A 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 46 07 01 00 35 04 06 00 23 3E B1 1A A4 7A E7 D3 47 76 BD AA 5D 2F [23:29:44]CheckFolder [23:29:44]dirname=/storage/ofd_packets [23:29:44]CheckFolder done [23:29:44]ProducePacketName [23:29:44]name=ofd_packets/00067398 [23:29:44]NVStorageSaveData ofd_packets/00067398 [23:29:44]File name is /storage/ofd_packets/00067398 [23:29:44]Write 298 bytes [23:29:44]NVStorageSaveData done [23:29:44]OFDSenderStorePacket done [23:29:44]KKMCreateOFDPacket done [23:29:44]NVStorageSaveData kkm_last_timestamp [23:29:44]File name is /storage/kkm_last_timestamp [23:29:44]Write 4 bytes [23:29:44]NVStorageSaveData done [23:29:44]ExternCall_PrintAddStr [23:29:44]wPrintStart [23:29:44]Write to MH i2c: 01 00 00 6A 36 A0 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 6A 36 00 00 00 00 00 FF 0F B5 [23:29:44]RasterBufferAndPrint [23:29:44]line Счет N : (1)507377 [23:29:44]line ИНН: 02508201610067 [23:29:44]line Контрольно-Кассовый Чек [23:29:44]line ПРОДАЖА [23:29:44]line ТРК (МРК, ГНК) : 21 [23:29:44]line Товар: 2710194210 [23:29:44]line ДТ-К-5 [23:29:44]line 107.100 * 74.70 [23:29:44]line = 8000.37 [23:29:44]line НДС 12% НСП 1% [23:29:44]line > о реализуемом товаре [23:29:44]line ИТОГО: 8000.37 [23:29:44]line НСП 1% : 70.80 [23:29:44]line НДС 12% : 849.60 [23:29:44]line Наличными: 0.00 [23:29:44]line Безнал.: 8000.37 [23:29:44]line Место: АЗС № 91 "Партнер Нефть" [23:29:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:29:44]line СНО: Общий режим [23:29:44]line Чек 216 15.05.2024 23:29 [23:29:44]line Смена: 356 ФФД: 1.0 [23:29:44]line ЗНМ: 0300000119 [23:29:44]line РНМ: 0000000000091845 [23:29:44]line Версия ККМ: 001 [23:29:44]line Платежная система: Бакай Банк [23:29:44]line ФМ: 0000000000871829 [23:29:44]line ФД: 67398 [23:29:44]line ФПД: 38752166257786 [23:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T232946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67398&fm=38752166257786&tin=02508201610067®Number=0000000000091845&sum=800037 [23:29:44]OFD Sender: Processing packet 67398 [packets to send 35, broken 34] [23:29:44]ProducePacketName [23:29:44]name=ofd_packets/00067398 [23:29:44]OFD Sender: To server: pG, [23:29:44]CommunicateWithHost lk.salyk.kg:30040 [23:29:44]ConnectInit lk.salyk.kg [23:29:44]written 0, free lines is 4095 [23:29:45]Connected sock=10 [23:29: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 29 DD 04 01 D8 DE 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 6A 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 46 07 01 00 35 04 06 00 23 3E B1 1A A4 7A E7 D3 47 76 BD AA 5D 2F [23:29: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 5E 4B 47 00 D0 12 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 46 07 01 00 F4 03 04 00 46 ED 44 66 B6 04 01 00 00 02 54 07 C2 50 F4 07 6F [23:29:45]CommunicateWithHost err = 0 [23:29:45]CheckOFDResponse [23:29:45]1017 (14) - 77093643461234 [23:29:45]1041 (16) - 0000000000871829 [23:29:45]1040 (4) - 67398 [23:29:45]1012 (4) - 15.05.2024 17:13 [23:29:45]1206 (1) - 0 [23:29:45]OFD Sender: Remove packet 67398 [23:29:45]ProducePacketName [23:29:45]name=ofd_packets/00067398 [23:29:45]NVStorageDeleteData [23:29:45]Write to MH i2c: 01 00 00 93 36 C9 [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 07 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: 01 07 00 93 36 00 00 00 00 00 E3 0C BF [23:29:45]RasterBufferAndPrint [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]line [23:29:45]written 0, free lines is 3305 [23:29:45]MH_Cut [23:29:45]Write to MH i2c: D1 01 00 9A 36 01 A2 [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 01 00 [23:29:45]MH_I2C_Read... [23:29:45]Read from MH i2c: D1 01 00 9A 36 00 A1 [23:29:45]Write to MH i2c: 01 00 00 9B 36 D1 [23:29:45]Write i2c OK [23:29:45]MH_I2C_Read... [23:29:45]OFD Sender: No OFD packet to send [23:29:46]*** Cut start [23:29:46]*** Purtial cut [23:29:46]*** CUTSNS_PIN = 0 [23:29:46]*** Stage 1: CUTSNS_PIN = 1 [23:29:48]Read from MH i2c: 01 [23:29:48]MH_I2C_Read... [23:29:48]*** Stop cut motor [23:29:48]*** Cut end [23:29:48]Read from MH i2c: 01 07 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: 01 07 00 9B 36 00 00 00 00 00 FF 0F E6 [23:29:48]process_action close_receipt done [23:29:48]requested_data is exist [23:29:48]produce_requested_data [23:29:48]requested_item fm.sn is exist - process it [23:29:48]wFMCommunicate request_size=4 [23:29:48]MH_SAM_APDU [23:29:48]CAPDU: 80 11 00 00 [23:29:48]Write to MH i2c: E2 08 00 9C 36 80 11 00 00 00 00 00 00 4C [23:29:48]Write i2c OK [23:29:48]MH_I2C_Read... [23:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:48]Read from MH i2c: E2 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 17 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 17 00 9C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A2 [23:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:29:48]wFMCommunicate OK [23:29:48]requested_item fd.num is exist - process it [23:29:48]SAM_PROTO_GetFieldsCounters [23:29:48]wFMCommunicate request_size=4 [23:29:48]MH_SAM_APDU [23:29:48]CAPDU: 80 13 00 00 [23:29:48]Write to MH i2c: E2 08 00 9D 36 80 13 00 00 00 00 00 00 4F [23:29:48]Write i2c OK [23:29:48]MH_I2C_Read... [23:29:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:48]Read from MH i2c: E2 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 62 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 62 00 9D 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 46 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23:29: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 46 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:48]wFMCommunicate OK [23:29:48]SAM_PROTO_GetFieldsCounters done [23:29:48]requested_item shift.num is exist - process it [23:29:48]requested_item shift.opened is exist - process it [23:29:48]req_shift_opened [23:29:48]FM_GetShiftState [23:29:48]SAM_PROTO_GetShiftState [23:29:48]wFMCommunicate request_size=4 [23:29:48]MH_SAM_APDU [23:29:48]CAPDU: 80 13 01 00 [23:29:48]Write to MH i2c: E2 08 00 9E 36 80 13 01 00 00 00 00 00 51 [23:29:48]Write i2c OK [23:29:48]MH_I2C_Read... [23:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:48]Read from MH i2c: E2 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 0E 00 [23:29:48]MH_I2C_Read... [23:29:48]Read from MH i2c: E2 0E 00 9E 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FC [23:29:48]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:29:48]wFMCommunicate OK [23:29:48]SAM_PROTO_GetShiftState done [23:29:48]FM_GetShiftState done [23:29:48]req_shift_opened done [23:29:48]requested_item shift.open_date is exist - process it [23:29:48]req_shift_open_date [23:29:48]req_shift_open_date done [23:29:48]produce_requested_data done [23:29:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67398,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:29:48]process_action_free close_receipt [23:29:48]json_value_free [23:29:48]json_value_free done [23:29:48]process_json_proto returns [23:29:48]Send response to host [23:29:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67398,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:29:48]free response buf [23:29:48]execute_script done [23:29:48]execute_script returns [23:29:48]free content buf [23:29:48]Sock 9.Close socket [23:29:48]Sock 9.Thread stoped [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:27]accept exits with 7 [23:30:27]New connection [23:30:27]New thread 3067030884 created [23:30:27]Thread 3067174244 joined [23:30:27]Waiting for new connection... [23:30:27] Sock 7.Parse request [23:30:27]Sock 7.Check first char [23:30:27]Sock 7.First char is OK [23:30:27]request: POST /json_proto HTTP/1.0 [23:30:27]Method: POST [23:30:27]URL: /json_proto [23:30:27]Method is POST - this is cgi request [23:30:27]url: /json_proto [23:30:27]query_string will be loaded in cgi processing [23:30:27]execute_cgi json_proto POST (null) [23:30:27]execute_cgi path=json_proto method=POST [23:30:27]POST find Content-Length [23:30:27]Host: 172.17.41.195:8080 [23:30:27]Content-Length: 817 [23:30:27]Content-Type: application/json [23:30:27] [23:30:27]POST finish read [23:30:27]Found Content-Length = 817 [23:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507376", "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" : 107.100, "sum" : 8000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:27]execute_script... [23:30: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)507376", "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" : 107.100, "sum" : 8000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:27]POST & json_proto [23:30:27]process_json_proto [23:30:27]json parsed OK: [23:30:27]protocol is kg_v1.0 [23:30:27]action value=close_receipt [23:30:27]process_action close_receipt [23:30:27]cmd_close_receipt [23:30:27]MH_GetDate [23:30:27]Write to MH i2c: F0 00 00 9F 36 C4 [23:30:27]Write i2c OK [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 09 00 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 09 00 9F 36 00 96 45 45 66 FC 21 6F 64 43 [23:30:27]GetLastDocTimeStamp 1715815786 [23:30:27]current date 1715815830 [23:30:27]FM_GetShiftState [23:30:27]SAM_PROTO_GetShiftState [23:30:27]wFMCommunicate request_size=4 [23:30:27]MH_SAM_APDU [23:30:27]CAPDU: 80 13 01 00 [23:30:27]Write to MH i2c: E2 08 00 A0 36 80 13 01 00 00 00 00 00 53 [23:30:27]Write i2c OK [23:30:27]MH_I2C_Read... [23:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:27]Read from MH i2c: E2 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: E2 0E 00 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: E2 0E 00 A0 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 FE [23:30:27]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:30:27]wFMCommunicate OK [23:30:27]SAM_PROTO_GetShiftState done [23:30:27]FM_GetShiftState done [23:30:27]opened in 1715732471 [23:30:27]opened+sec_in_day 1715818871 [23:30:27]quantity*price = 800037 [23:30:27]sum+1 = 800038 [23:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8000.37 НСП 1% : 70.80 НДС 12% : 849.60 Наличными: 0.00 Безнал.: 8000.37 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 217 15.05.2024 23:30 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67399 ФПД: 66492609887134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T233030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67399&fm=66492609887134&tin=02508201610067®Number=0000000000091845&sum=800037 [23:30:28]StoreToDocumentArchive [23:30:28]shift 356 fd 67399 [23:30:28]save to /storage/0356/doc_00067399 [23:30:28]save last doc name /storage/0356/doc_00067399 to /storage/kkm_last_doc_name [23:30:28]save OK [23:30:28]Clear old archive folders... [23:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:30:28]tlvbuf is B6F8E520 [23:30:28]SAM_PROTO_ClearQueue [23:30:28]wFMCommunicate request_size=4 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 09 00 00 [23:30:28]Write to MH i2c: E2 08 00 AD 36 80 09 00 00 00 00 00 00 55 [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:28]Read from MH i2c: E2 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 AD 36 00 90 00 57 [23:30:28]RAPDU: 90 00 [23:30:28]wFMCommunicate OK [23:30:28]SAM_PROTO_ClearQueue done [23:30:28]KKMCreateOFDPacket [23:30:28]OFDProtocolAddRootSTLVToBuf [23:30:28]FM_MakeSignedData [23:30:28]FM_MakeSignedData [23:30:28]SAM_PROTO_SignData [23:30:28]wFMCommunicate request_size=4 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 0D 01 02 [23:30:28]Write to MH i2c: E2 08 00 AE 36 80 0D 01 02 00 00 00 00 5D [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:28]Read from MH i2c: E2 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 AE 36 00 90 00 58 [23:30:28]RAPDU: 90 00 [23:30:28]wFMCommunicate OK [23:30:28]wFMCommunicate request_size=255 [23:30:28]MH_SAM_APDU [23:30: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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 96 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 47 07 01 00 35 04 06 00 3C 79 84 64 [23:30:28]Write to MH i2c: E2 02 01 AF 36 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 96 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 47 07 01 00 35 04 06 00 3C 79 84 64 00 00 DA [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 AF 36 00 90 00 59 [23:30:29]RAPDU: 90 00 [23:30:29]wFMCommunicate OK [23:30:29]wFMCommunicate request_size=7 [23:30:29]MH_SAM_APDU [23:30:29]CAPDU: 80 0D 02 02 02 7B 9E [23:30:29]Write to MH i2c: E2 0A 00 B0 36 80 0D 02 02 02 00 7B 9E 00 00 7D [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 B0 36 00 90 00 5A [23:30:29]RAPDU: 90 00 [23:30:29]wFMCommunicate OK [23:30:29]wFMCommunicate request_size=4 [23:30:29]MH_SAM_APDU [23:30:29]CAPDU: 80 0D 03 02 [23:30:29]Write to MH i2c: E2 08 00 B1 36 80 0D 03 02 00 00 00 00 62 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 0B 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 0B 00 B1 36 00 10 6D 19 2D FD CE 3C 7E 90 00 AB [23:30:29]RAPDU: 10 6D 19 2D FD CE 3C 7E 90 00 [23:30:29]wFMCommunicate OK [23:30:29]SAM_PROTO_SignData done [23:30:29]FM_MakeSignedData done [23:30:29]CreateOFDProtocolMessage [23:30:29]wFMCommunicate request_size=4 [23:30:29]MH_SAM_APDU [23:30:29]CAPDU: 80 11 00 00 [23:30:29]Write to MH i2c: E2 08 00 B2 36 80 11 00 00 00 00 00 00 62 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 17 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 17 00 B2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [23:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:30:29]wFMCommunicate OK [23:30:29]CreateOFDProtocolMessage done [23:30:29]OFDSenderStorePacket 67399 [23:30:29]StoreOFDPacket docnum=67399 [23:30:29]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 C7 04 01 69 AB 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 96 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 47 07 01 00 35 04 06 00 3C 79 84 64 7B 9E 10 6D 19 2D FD CE 3C 7E [23:30:29]CheckFolder [23:30:29]dirname=/storage/ofd_packets [23:30:29]CheckFolder done [23:30:29]ProducePacketName [23:30:29]name=ofd_packets/00067399 [23:30:29]NVStorageSaveData ofd_packets/00067399 [23:30:29]File name is /storage/ofd_packets/00067399 [23:30:29]Write 298 bytes [23:30:29]NVStorageSaveData done [23:30:29]OFDSenderStorePacket done [23:30:29]KKMCreateOFDPacket done [23:30:29]NVStorageSaveData kkm_last_timestamp [23:30:29]File name is /storage/kkm_last_timestamp [23:30:29]Write 4 bytes [23:30:29]NVStorageSaveData done [23:30:29]ExternCall_PrintAddStr [23:30:29]wPrintStart [23:30:29]Write to MH i2c: 01 00 00 B3 36 E9 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 B3 36 00 00 00 00 00 FF 0F FE [23:30:29]RasterBufferAndPrint [23:30:29]line Счет N : (1)507376 [23:30:29]line ИНН: 02508201610067 [23:30:29]line Контрольно-Кассовый Чек [23:30:29]line ПРОДАЖА [23:30:29]line ТРК (МРК, ГНК) : 11 [23:30:29]line Товар: 2710194210 [23:30:29]line ДТ-К-5 [23:30:29]line 107.100 * 74.70 [23:30:29]line = 8000.37 [23:30:29]line НДС 12% НСП 1% [23:30:29]line > о реализуемом товаре [23:30:29]line ИТОГО: 8000.37 [23:30:29]line НСП 1% : 70.80 [23:30:29]line НДС 12% : 849.60 [23:30:29]line Наличными: 0.00 [23:30:29]line Безнал.: 8000.37 [23:30:29]line Место: АЗС № 91 "Партнер Нефть" [23:30:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:30:29]line СНО: Общий режим [23:30:29]line Чек 217 15.05.2024 23:30 [23:30:29]line Смена: 356 ФФД: 1.0 [23:30:29]line ЗНМ: 0300000119 [23:30:29]line РНМ: 0000000000091845 [23:30:29]line Версия ККМ: 001 [23:30:29]line Платежная система: Бакай Банк [23:30:29]line ФМ: 0000000000871829 [23:30:29]line ФД: 67399 [23:30:29]line ФПД: 66492609887134 [23:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T233030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67399&fm=66492609887134&tin=02508201610067®Number=0000000000091845&sum=800037 [23:30:29]OFD Sender: Processing packet 67399 [packets to send 35, broken 34] [23:30:29]ProducePacketName [23:30:29]name=ofd_packets/00067399 [23:30:29]OFD Sender: To server: pG, [23:30:29]CommunicateWithHost lk.salyk.kg:30040 [23:30:29]ConnectInit lk.salyk.kg [23:30:29]written 0, free lines is 4095 [23:30:29]Connected sock=10 [23:30: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 AA C7 04 01 69 AB 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 5C A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 25 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 96 45 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 47 07 01 00 35 04 06 00 3C 79 84 64 7B 9E 10 6D 19 2D FD CE 3C 7E [23:30: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 28 26 47 00 04 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 47 07 01 00 F4 03 04 00 72 ED 44 66 B6 04 01 00 00 9E 12 9F DE 4B 95 90 CD [23:30:30]CommunicateWithHost err = 0 [23:30:30]CheckOFDResponse [23:30:30]1017 (14) - 77093643461234 [23:30:30]1041 (16) - 0000000000871829 [23:30:30]1040 (4) - 67399 [23:30:30]1012 (4) - 15.05.2024 17:14 [23:30:30]1206 (1) - 0 [23:30:30]OFD Sender: Remove packet 67399 [23:30:30]ProducePacketName [23:30:30]name=ofd_packets/00067399 [23:30:30]NVStorageDeleteData [23:30:30]Write to MH i2c: 01 00 00 DC 36 12 [23:30:30]Write i2c OK [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: 01 [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: 01 07 00 [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: 01 07 00 DC 36 00 00 00 00 00 E9 0C 0E [23:30:30]RasterBufferAndPrint [23:30:30]line [23:30:30]line [23:30:30]line [23:30:30]line [23:30:30]line [23:30:30]written 0, free lines is 3313 [23:30:30]MH_Cut [23:30:30]Write to MH i2c: D1 01 00 E3 36 01 EB [23:30:30]Write i2c OK [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: D1 [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: D1 01 00 [23:30:30]MH_I2C_Read... [23:30:30]Read from MH i2c: D1 01 00 E3 36 00 EA [23:30:30]Write to MH i2c: 01 00 00 E4 36 1A [23:30:30]Write i2c OK [23:30:30]MH_I2C_Read... [23:30:30]OFD Sender: No OFD packet to send [23:30:30]*** Cut start [23:30:30]*** Purtial cut [23:30:30]*** Stage 1: CUTSNS_PIN = 1 [23:30:31]Read from MH i2c: 01 [23:30:31]MH_I2C_Read... [23:30:31]*** Stop cut motor [23:30:31]*** Cut end [23:30:31]Read from MH i2c: 01 07 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: 01 07 00 E4 36 00 00 00 00 00 FF 0F 2F [23:30:31]process_action close_receipt done [23:30:31]requested_data is exist [23:30:31]produce_requested_data [23:30:31]requested_item fm.sn is exist - process it [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 11 00 00 [23:30:31]Write to MH i2c: E2 08 00 E5 36 80 11 00 00 00 00 00 00 95 [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 17 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 17 00 E5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [23:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:30:31]wFMCommunicate OK [23:30:31]requested_item fd.num is exist - process it [23:30:31]SAM_PROTO_GetFieldsCounters [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 13 00 00 [23:30:31]Write to MH i2c: E2 08 00 E6 36 80 13 00 00 00 00 00 00 98 [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 62 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 62 00 E6 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 47 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [23:30: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 47 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:31]wFMCommunicate OK [23:30:31]SAM_PROTO_GetFieldsCounters done [23:30:31]requested_item shift.num is exist - process it [23:30:31]requested_item shift.opened is exist - process it [23:30:31]req_shift_opened [23:30:31]FM_GetShiftState [23:30:31]SAM_PROTO_GetShiftState [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 13 01 00 [23:30:31]Write to MH i2c: E2 08 00 E7 36 80 13 01 00 00 00 00 00 9A [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 0E 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 0E 00 E7 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 45 [23:30:31]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:30:31]wFMCommunicate OK [23:30:31]SAM_PROTO_GetShiftState done [23:30:31]FM_GetShiftState done [23:30:31]req_shift_opened done [23:30:31]requested_item shift.open_date is exist - process it [23:30:31]req_shift_open_date [23:30:31]req_shift_open_date done [23:30:31]produce_requested_data done [23:30:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67399,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:30:31]process_action_free close_receipt [23:30:31]json_value_free [23:30:31]json_value_free done [23:30:31]process_json_proto returns [23:30:31]Send response to host [23:30:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67399,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:30:31]free response buf [23:30:31]execute_script done [23:30:31]execute_script returns [23:30:31]free content buf [23:30:31]Sock 7.Close socket [23:30:31]Sock 7.Thread stoped [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:47]accept exits with 9 [23:40:47]New connection [23:40:47]New thread 3067174244 created [23:40:47]Thread 3067030884 joined [23:40:47]Waiting for new connection... [23:40:47] Sock 9.Parse request [23:40:47]Sock 9.Check first char [23:40:47]Sock 9.First char is OK [23:40:47]request: POST /json_proto HTTP/1.0 [23:40:47]Method: POST [23:40:47]URL: /json_proto [23:40:47]Method is POST - this is cgi request [23:40:47]url: /json_proto [23:40:47]query_string will be loaded in cgi processing [23:40:47]execute_cgi json_proto POST (null) [23:40:47]execute_cgi path=json_proto method=POST [23:40:47]POST find Content-Length [23:40:47]Host: 172.17.41.195:8080 [23:40:47]Content-Length: 679 [23:40:47]Content-Type: application/json [23:40:47] [23:40:47]POST finish read [23:40:47]Found Content-Length = 679 [23:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507378", "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 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:47]execute_script... [23:40: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)507378", "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 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:47]POST & json_proto [23:40:47]process_json_proto [23:40:47]json parsed OK: [23:40:47]protocol is kg_v1.0 [23:40:47]action value=close_receipt [23:40:47]process_action close_receipt [23:40:47]cmd_close_receipt [23:40:47]MH_GetDate [23:40:47]Write to MH i2c: F0 00 00 E8 36 0D [23:40:47]Write i2c OK [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 09 00 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: F0 09 00 E8 36 00 02 48 45 66 FC 21 6F 64 FB [23:40:47]GetLastDocTimeStamp 1715815830 [23:40:47]current date 1715816450 [23:40:47]FM_GetShiftState [23:40:47]SAM_PROTO_GetShiftState [23:40:47]wFMCommunicate request_size=4 [23:40:47]MH_SAM_APDU [23:40:47]CAPDU: 80 13 01 00 [23:40:47]Write to MH i2c: E2 08 00 E9 36 80 13 01 00 00 00 00 00 9C [23:40:47]Write i2c OK [23:40:47]MH_I2C_Read... [23:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:47]Read from MH i2c: E2 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: E2 0E 00 [23:40:47]MH_I2C_Read... [23:40:47]Read from MH i2c: E2 0E 00 E9 36 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 47 [23:40:47]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:40:47]wFMCommunicate OK [23:40:47]SAM_PROTO_GetShiftState done [23:40:47]FM_GetShiftState done [23:40:47]opened in 1715732471 [23:40:47]opened+sec_in_day 1715818871 [23:40:47]quantity*price = 112050 [23:40:47]sum+1 = 112051 [23:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.92 НДС 12% : 118.99 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 218 15.05.2024 23:40 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67400 ФПД: 222375725616218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T234050&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67400&fm=222375725616218&tin=02508201610067®Number=0000000000091845&sum=112000 [23:40:48]StoreToDocumentArchive [23:40:48]shift 356 fd 67400 [23:40:48]save to /storage/0356/doc_00067400 [23:40:48]save last doc name /storage/0356/doc_00067400 to /storage/kkm_last_doc_name [23:40:48]save OK [23:40:48]Clear old archive folders... [23:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:40:48]tlvbuf is 00C38D10 [23:40:48]SAM_PROTO_ClearQueue [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 09 00 00 [23:40:48]Write to MH i2c: E2 08 00 F6 36 80 09 00 00 00 00 00 00 9E [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 F6 36 00 90 00 A0 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]SAM_PROTO_ClearQueue done [23:40:48]KKMCreateOFDPacket [23:40:48]OFDProtocolAddRootSTLVToBuf [23:40:48]FM_MakeSignedData [23:40:48]FM_MakeSignedData [23:40:48]SAM_PROTO_SignData [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 01 02 [23:40:48]Write to MH i2c: E2 08 00 F7 36 80 0D 01 02 00 00 00 00 A6 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 F7 36 00 90 00 A1 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=255 [23:40:48]MH_SAM_APDU [23:40:48]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 80 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 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 02 48 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 48 07 01 00 35 04 06 00 CA 3F E2 21 [23:40:48]Write to MH i2c: E2 02 01 F8 36 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 80 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 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 02 48 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 48 07 01 00 35 04 06 00 CA 3F E2 21 00 00 15 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 F8 36 00 90 00 A2 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=7 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 02 02 02 CC 5A [23:40:48]Write to MH i2c: E2 0A 00 F9 36 80 0D 02 02 02 00 CC 5A 00 00 D3 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 03 00 F9 36 00 90 00 A3 [23:40:48]RAPDU: 90 00 [23:40:48]wFMCommunicate OK [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 0D 03 02 [23:40:48]Write to MH i2c: E2 08 00 FA 36 80 0D 03 02 00 00 00 00 AB [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0B 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 0B 00 FA 36 00 A5 A6 77 58 B6 AF AE AC 90 00 85 [23:40:48]RAPDU: A5 A6 77 58 B6 AF AE AC 90 00 [23:40:48]wFMCommunicate OK [23:40:48]SAM_PROTO_SignData done [23:40:48]FM_MakeSignedData done [23:40:48]CreateOFDProtocolMessage [23:40:48]wFMCommunicate request_size=4 [23:40:48]MH_SAM_APDU [23:40:48]CAPDU: 80 11 00 00 [23:40:48]Write to MH i2c: E2 08 00 FB 36 80 11 00 00 00 00 00 00 AB [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:48]Read from MH i2c: E2 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 17 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: E2 17 00 FB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [23:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:40:48]wFMCommunicate OK [23:40:48]CreateOFDProtocolMessage done [23:40:48]OFDSenderStorePacket 67400 [23:40:48]StoreOFDPacket docnum=67400 [23:40: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 B3 74 04 01 EB 47 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 80 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 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 02 48 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 48 07 01 00 35 04 06 00 CA 3F E2 21 CC 5A A5 A6 77 58 B6 AF AE AC [23:40:48]CheckFolder [23:40:48]dirname=/storage/ofd_packets [23:40:48]CheckFolder done [23:40:48]ProducePacketName [23:40:48]name=ofd_packets/00067400 [23:40:48]NVStorageSaveData ofd_packets/00067400 [23:40:48]File name is /storage/ofd_packets/00067400 [23:40:48]Write 298 bytes [23:40:48]NVStorageSaveData done [23:40:48]OFDSenderStorePacket done [23:40:48]KKMCreateOFDPacket done [23:40:48]NVStorageSaveData kkm_last_timestamp [23:40:48]File name is /storage/kkm_last_timestamp [23:40:48]Write 4 bytes [23:40:48]NVStorageSaveData done [23:40:48]ExternCall_PrintAddStr [23:40:48]wPrintStart [23:40:48]Write to MH i2c: 01 00 00 FC 36 32 [23:40:48]Write i2c OK [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: 01 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: 01 07 00 [23:40:48]MH_I2C_Read... [23:40:48]Read from MH i2c: 01 07 00 FC 36 00 00 00 00 00 FF 0F 47 [23:40:48]RasterBufferAndPrint [23:40:48]line Счет N : (1)507378 [23:40:48]line ИНН: 02508201610067 [23:40:48]line Контрольно-Кассовый Чек [23:40:48]line ПРОДАЖА [23:40:48]line ТРК (МРК, ГНК) : 11 [23:40:48]line Товар: 2710194210 [23:40:48]line ДТ-К-5 [23:40:48]line 15.000 * 74.70 [23:40:48]line = 1120.50 [23:40:48]line НДС 12% НСП 1% [23:40:48]line > о реализуемом товаре [23:40:48]line ОКРУГЛЕНИЕ: -0.50 [23:40:48]line ИТОГО: 1120.00 [23:40:48]line Внесено: 1120.00 [23:40:48]line СДАЧА: 0.00 [23:40:48]line НСП 1% : 9.92 [23:40:48]line НДС 12% : 118.99 [23:40:48]line Наличными: 1120.00 [23:40:48]line Безнал.: 0.00 [23:40:48]line Место: АЗС № 91 "Партнер Нефть" [23:40:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:40:48]line СНО: Общий режим [23:40:48]line Чек 218 15.05.2024 23:40 [23:40:48]line Смена: 356 ФФД: 1.0 [23:40:48]line ЗНМ: 0300000119 [23:40:48]line РНМ: 0000000000091845 [23:40:48]line Версия ККМ: 001 [23:40:48]line ФМ: 0000000000871829 [23:40:48]line ФД: 67400 [23:40:48]line ФПД: 222375725616218 [23:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T234050&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67400&fm=222375725616218&tin=02508201610067®Number=0000000000091845&sum=112000 [23:40:49]OFD Sender: Processing packet 67400 [packets to send 35, broken 34] [23:40:49]ProducePacketName [23:40:49]name=ofd_packets/00067400 [23:40:49]OFD Sender: To server: pG, [23:40:49]CommunicateWithHost lk.salyk.kg:30040 [23:40:49]ConnectInit lk.salyk.kg [23:40:49]written 0, free lines is 4095 [23:40:49]Connected sock=10 [23:40: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 0C 01 00 00 B3 74 04 01 EB 47 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 80 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 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 02 48 45 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 48 07 01 00 35 04 06 00 CA 3F E2 21 CC 5A A5 A6 77 58 B6 AF AE AC [23:40: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 31 CA 47 00 2B 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 48 07 01 00 F4 03 04 00 DE EF 44 66 B6 04 01 00 00 8C C1 16 DC 5F FF B7 C4 [23:40:49]CommunicateWithHost err = 0 [23:40:49]CheckOFDResponse [23:40:49]1017 (14) - 77093643461234 [23:40:49]1041 (16) - 0000000000871829 [23:40:49]1040 (4) - 67400 [23:40:49]1012 (4) - 15.05.2024 17:24 [23:40:49]1206 (1) - 0 [23:40:49]OFD Sender: Remove packet 67400 [23:40:49]ProducePacketName [23:40:49]name=ofd_packets/00067400 [23:40:49]NVStorageDeleteData [23:40:49]Write to MH i2c: 01 00 00 26 37 5D [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: 01 07 00 26 37 00 00 00 00 00 CE 0C 3E [23:40:49]RasterBufferAndPrint [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]line [23:40:49]written 0, free lines is 3286 [23:40:49]MH_Cut [23:40:49]Write to MH i2c: D1 01 00 2D 37 01 36 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 01 00 [23:40:49]MH_I2C_Read... [23:40:49]Read from MH i2c: D1 01 00 2D 37 00 35 [23:40:49]Write to MH i2c: 01 00 00 2E 37 65 [23:40:49]Write i2c OK [23:40:49]MH_I2C_Read... [23:40:50]OFD Sender: No OFD packet to send [23:40:50]*** Cut start [23:40:50]*** Purtial cut [23:40:50]*** CUTSNS_PIN = 0 [23:40:50]*** Stage 1: CUTSNS_PIN = 1 [23:40:52]Read from MH i2c: 01 [23:40:52]MH_I2C_Read... [23:40:52]*** Stop cut motor [23:40:52]*** Cut end [23:40:52]Read from MH i2c: 01 07 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: 01 07 00 2E 37 00 00 00 00 00 FF 0F 7A [23:40:52]process_action close_receipt done [23:40:52]requested_data is exist [23:40:52]produce_requested_data [23:40:52]requested_item fm.sn is exist - process it [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 11 00 00 [23:40:52]Write to MH i2c: E2 08 00 2F 37 80 11 00 00 00 00 00 00 E0 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 17 00 2F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [23:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:40:52]wFMCommunicate OK [23:40:52]requested_item fd.num is exist - process it [23:40:52]SAM_PROTO_GetFieldsCounters [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 13 00 00 [23:40:52]Write to MH i2c: E2 08 00 30 37 80 13 00 00 00 00 00 00 E3 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 62 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 62 00 30 37 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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [23:40: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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:52]wFMCommunicate OK [23:40:52]SAM_PROTO_GetFieldsCounters done [23:40:52]requested_item shift.num is exist - process it [23:40:52]requested_item shift.opened is exist - process it [23:40:52]req_shift_opened [23:40:52]FM_GetShiftState [23:40:52]SAM_PROTO_GetShiftState [23:40:52]wFMCommunicate request_size=4 [23:40:52]MH_SAM_APDU [23:40:52]CAPDU: 80 13 01 00 [23:40:52]Write to MH i2c: E2 08 00 31 37 80 13 01 00 00 00 00 00 E5 [23:40:52]Write i2c OK [23:40:52]MH_I2C_Read... [23:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:52]Read from MH i2c: E2 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0E 00 [23:40:52]MH_I2C_Read... [23:40:52]Read from MH i2c: E2 0E 00 31 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 90 [23:40:52]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:40:52]wFMCommunicate OK [23:40:52]SAM_PROTO_GetShiftState done [23:40:52]FM_GetShiftState done [23:40:52]req_shift_opened done [23:40:52]requested_item shift.open_date is exist - process it [23:40:52]req_shift_open_date [23:40:52]req_shift_open_date done [23:40:52]produce_requested_data done [23:40:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:40:52]process_action_free close_receipt [23:40:52]json_value_free [23:40:52]json_value_free done [23:40:52]process_json_proto returns [23:40:52]Send response to host [23:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:40:52]free response buf [23:40:52]execute_script done [23:40:52]execute_script returns [23:40:52]free content buf [23:40:52]Sock 9.Close socket [23:40:52]Sock 9.Thread stoped [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:36]accept exits with 7 [23:57:36]New connection [23:57:36]New thread 3067030884 created [23:57:36]Thread 3067174244 joined [23:57:36]Waiting for new connection... [23:57:36] Sock 7.Parse request [23:57:36]Sock 7.Check first char [23:57:36]Sock 7.First char is OK [23:57:36]request: POST /json_proto HTTP/1.0 [23:57:36]Method: POST [23:57:36]URL: /json_proto [23:57:36]Method is POST - this is cgi request [23:57:36]url: /json_proto [23:57:36]query_string will be loaded in cgi processing [23:57:36]execute_cgi json_proto POST (null) [23:57:36]execute_cgi path=json_proto method=POST [23:57:36]POST find Content-Length [23:57:36]Host: 172.17.41.195:8080 [23:57:36]Content-Length: 215 [23:57:36]Content-Type: application/json [23:57:36] [23:57:36]POST finish read [23:57:36]Found Content-Length = 215 [23:57:36]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" ] } } [23:57:36]execute_script... [23:57:36]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" ] } } [23:57:36]POST & json_proto [23:57:36]process_json_proto [23:57:36]json parsed OK: [23:57:36]protocol is kg_v1.0 [23:57:36]action value=get_value [23:57:36]process_action get_value [23:57:36]cmd_get_value [23:57:36]process_action get_value done [23:57:36]requested_data is exist [23:57:36]produce_requested_data [23:57:36]requested_item kkm.sn is exist - process it [23:57:36]requested_item kkm.ver is exist - process it [23:57:36]requested_item fm.sn is exist - process it [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 11 00 00 [23:57:36]Write to MH i2c: E2 08 00 32 37 80 11 00 00 00 00 00 00 E3 [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 17 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 17 00 32 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 39 [23:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:57:36]wFMCommunicate OK [23:57:36]requested_item fd.num is exist - process it [23:57:36]SAM_PROTO_GetFieldsCounters [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 13 00 00 [23:57:36]Write to MH i2c: E2 08 00 33 37 80 13 00 00 00 00 00 00 E6 [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 62 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 62 00 33 37 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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [23:57: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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:36]wFMCommunicate OK [23:57:36]SAM_PROTO_GetFieldsCounters done [23:57:36]requested_item shift.num is exist - process it [23:57:36]requested_item shift.opened is exist - process it [23:57:36]req_shift_opened [23:57:36]FM_GetShiftState [23:57:36]SAM_PROTO_GetShiftState [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 13 01 00 [23:57:36]Write to MH i2c: E2 08 00 34 37 80 13 01 00 00 00 00 00 E8 [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 0E 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 0E 00 34 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 93 [23:57:36]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:57:36]wFMCommunicate OK [23:57:36]SAM_PROTO_GetShiftState done [23:57:36]FM_GetShiftState done [23:57:36]req_shift_opened done [23:57:36]requested_item shift.open_date is exist - process it [23:57:36]req_shift_open_date [23:57:36]req_shift_open_date done [23:57:36]produce_requested_data done [23:57:36]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:57:36]process_action_free get_value [23:57:36]json_value_free [23:57:36]json_value_free done [23:57:36]process_json_proto returns [23:57:36]Send response to host [23:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:57:36]free response buf [23:57:36]execute_script done [23:57:36]execute_script returns [23:57:36]free content buf [23:57:36]Sock 7.Close socket [23:57:36]Sock 7.Thread stoped [23:57:36]accept exits with 9 [23:57:36]New connection [23:57:36]New thread 3067174244 created [23:57:36]Thread 3067030884 joined [23:57:36]Waiting for new connection... [23:57:36] Sock 9.Parse request [23:57:36]Sock 9.Check first char [23:57:36]Sock 9.First char is OK [23:57:36]request: POST /json_proto HTTP/1.0 [23:57:36]Method: POST [23:57:36]URL: /json_proto [23:57:36]Method is POST - this is cgi request [23:57:36]url: /json_proto [23:57:36]query_string will be loaded in cgi processing [23:57:36]execute_cgi json_proto POST (null) [23:57:36]execute_cgi path=json_proto method=POST [23:57:36]POST find Content-Length [23:57:36]Host: 172.17.41.195:8080 [23:57:36]Content-Length: 331 [23:57:36]Content-Type: application/json [23:57:36] [23:57:36]POST finish read [23:57:36]Found Content-Length = 331 [23:57:36]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" ] } } [23:57:36]execute_script... [23:57:36]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" ] } } [23:57:36]POST & json_proto [23:57:36]process_json_proto [23:57:36]json parsed OK: [23:57:36]protocol is kg_v1.0 [23:57:36]action value=get_value [23:57:36]process_action get_value [23:57:36]cmd_get_value [23:57:36]process_action get_value done [23:57:36]requested_data is exist [23:57:36]produce_requested_data [23:57:36]requested_item fm.sale.total is exist - process it [23:57:36]SAM_PROTO_GetFMData [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 13 03 00 [23:57:36]Write to MH i2c: E2 08 00 35 37 80 13 03 00 00 00 00 00 EB [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:37]Read from MH i2c: E2 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 35 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 03 [23:57:37]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:57:37]wFMCommunicate OK [23:57:37]wFMCommunicate request_size=4 [23:57:37]MH_SAM_APDU [23:57:37]CAPDU: 80 17 00 00 [23:57:37]Write to MH i2c: E2 08 00 36 37 80 17 00 00 00 00 00 00 ED [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:37]Read from MH i2c: E2 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 36 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:57:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:57:37]wFMCommunicate OK [23:57:37]wFMCommunicate request_size=4 [23:57:37]MH_SAM_APDU [23:57:37]CAPDU: 80 17 00 00 [23:57:37]Write to MH i2c: E2 08 00 37 37 80 17 00 00 00 00 00 00 EE [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:37]Read from MH i2c: E2 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 37 37 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 15 [23:57:37]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 [23:57:37]wFMCommunicate OK [23:57:37]wFMCommunicate request_size=4 [23:57:37]MH_SAM_APDU [23:57:37]CAPDU: 80 17 00 00 [23:57:37]Write to MH i2c: E2 08 00 38 37 80 17 00 00 00 00 00 00 EF [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:37]Read from MH i2c: E2 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 FD 00 38 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [23:57:37]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 [23:57:37]wFMCommunicate OK [23:57:37]wFMCommunicate request_size=4 [23:57:37]MH_SAM_APDU [23:57:37]CAPDU: 80 17 00 00 [23:57:37]Write to MH i2c: E2 08 00 39 37 80 17 00 00 00 00 00 00 F0 [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:57:38]Read from MH i2c: E2 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 E3 00 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 E3 00 39 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [23:57:38]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 [23:57:38]wFMCommunicate OK [23:57:38]SAM_PROTO_GetFMData done [23:57:38]requested_item fm.sale_refund.total is exist - process it [23:57:38]requested_item fm.buy.total is exist - process it [23:57:38]requested_item shift.sale.total is exist - process it [23:57:38]SAM_PROTO_GetShiftData [23:57:38]wFMCommunicate request_size=4 [23:57:38]MH_SAM_APDU [23:57:38]CAPDU: 80 13 02 00 [23:57:38]Write to MH i2c: E2 08 00 3A 37 80 13 02 00 00 00 00 00 EF [23:57:38]Write i2c OK [23:57:38]MH_I2C_Read... [23:57:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:38]Read from MH i2c: E2 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 FD 00 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 FD 00 3A 37 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 A0 [23:57:38]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:57:38]wFMCommunicate OK [23:57:38]wFMCommunicate request_size=4 [23:57:38]MH_SAM_APDU [23:57:38]CAPDU: 80 17 00 00 [23:57:38]Write to MH i2c: E2 08 00 3B 37 80 17 00 00 00 00 00 00 F2 [23:57:38]Write i2c OK [23:57:38]MH_I2C_Read... [23:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:38]Read from MH i2c: E2 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 FD 00 [23:57:38]MH_I2C_Read... [23:57:38]Read from MH i2c: E2 FD 00 3B 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [23:57:38]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:38]wFMCommunicate OK [23:57:38]wFMCommunicate request_size=4 [23:57:38]MH_SAM_APDU [23:57:38]CAPDU: 80 17 00 00 [23:57:38]Write to MH i2c: E2 08 00 3C 37 80 17 00 00 00 00 00 00 F3 [23:57:38]Write i2c OK [23:57:38]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 FD 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 FD 00 3C 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [23:57:39]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:39]wFMCommunicate OK [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 17 00 00 [23:57:39]Write to MH i2c: E2 08 00 3D 37 80 17 00 00 00 00 00 00 F4 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 FD 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 FD 00 3D 37 00 03 00 00 EF 03 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 90 00 75 [23:57:39]RAPDU: 03 00 00 EF 03 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 90 00 [23:57:39]wFMCommunicate OK [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 17 00 00 [23:57:39]Write to MH i2c: E2 08 00 3E 37 80 17 00 00 00 00 00 00 F5 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 D9 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 D9 00 3E 37 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 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 [23:57:39]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 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 [23:57:39]wFMCommunicate OK [23:57:39]SAM_PROTO_GetShiftData done [23:57:39]requested_item shift.sale.total_cash is exist - process it [23:57:39]requested_item shift.sale_refund.total is exist - process it [23:57:39]requested_item shift.sale_refund.total_cash is exist - process it [23:57:39]requested_item shift.buy.total is exist - process it [23:57:39]requested_item shift.buy.total_cash is exist - process it [23:57:39]produce_requested_data done [23:57:39]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:57:39]process_action_free get_value [23:57:39]json_value_free [23:57:39]json_value_free done [23:57:39]process_json_proto returns [23:57:39]Send response to host [23:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:57:39]free response buf [23:57:39]execute_script done [23:57:39]execute_script returns [23:57:39]free content buf [23:57:39]Sock 9.Close socket [23:57:39]Sock 9.Thread stoped [23:57:39]accept exits with 7 [23:57:39]New connection [23:57:39]New thread 3067030884 created [23:57:39]Thread 3067174244 joined [23:57:39]Waiting for new connection... [23:57:39] Sock 7.Parse request [23:57:39]Sock 7.Check first char [23:57:39]Sock 7.First char is OK [23:57:39]request: POST /json_proto HTTP/1.0 [23:57:39]Method: POST [23:57:39]URL: /json_proto [23:57:39]Method is POST - this is cgi request [23:57:39]url: /json_proto [23:57:39]query_string will be loaded in cgi processing [23:57:39]execute_cgi json_proto POST (null) [23:57:39]execute_cgi path=json_proto method=POST [23:57:39]POST find Content-Length [23:57:39]Host: 172.17.41.195:8080 [23:57:39]Content-Length: 331 [23:57:39]Content-Type: application/json [23:57:39] [23:57:39]POST finish read [23:57:39]Found Content-Length = 331 [23:57:39]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" ] } } [23:57:39]execute_script... [23:57:39]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" ] } } [23:57:39]POST & json_proto [23:57:39]process_json_proto [23:57:39]json parsed OK: [23:57:39]protocol is kg_v1.0 [23:57:39]action value=get_value [23:57:39]process_action get_value [23:57:39]cmd_get_value [23:57:39]process_action get_value done [23:57:39]requested_data is exist [23:57:39]produce_requested_data [23:57:39]requested_item fm.sale.total is exist - process it [23:57:39]SAM_PROTO_GetFMData [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 13 03 00 [23:57:39]Write to MH i2c: E2 08 00 3F 37 80 13 03 00 00 00 00 00 F5 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:40]Read from MH i2c: E2 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: E2 FD 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: E2 FD 00 3F 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 0D [23:57:40]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:57:40]wFMCommunicate OK [23:57:40]wFMCommunicate request_size=4 [23:57:40]MH_SAM_APDU [23:57:40]CAPDU: 80 17 00 00 [23:57:40]Write to MH i2c: E2 08 00 40 37 80 17 00 00 00 00 00 00 F7 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:40]Read from MH i2c: E2 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: E2 FD 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: E2 FD 00 40 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 1B [23:57: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 6C 0F 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 [23:57:40]wFMCommunicate OK [23:57:40]wFMCommunicate request_size=4 [23:57:40]MH_SAM_APDU [23:57:40]CAPDU: 80 17 00 00 [23:57:40]Write to MH i2c: E2 08 00 41 37 80 17 00 00 00 00 00 00 F8 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 FD 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 FD 00 41 37 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 1F [23:57:41]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 [23:57:41]wFMCommunicate OK [23:57:41]wFMCommunicate request_size=4 [23:57:41]MH_SAM_APDU [23:57:41]CAPDU: 80 17 00 00 [23:57:41]Write to MH i2c: E2 08 00 42 37 80 17 00 00 00 00 00 00 F9 [23:57:41]OFD Sender: No OFD packet to send [23:57:41]Write i2c OK [23:57:41]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 FD 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 FD 00 42 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [23:57:41]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 [23:57:41]wFMCommunicate OK [23:57:41]wFMCommunicate request_size=4 [23:57:41]MH_SAM_APDU [23:57:41]CAPDU: 80 17 00 00 [23:57:41]Write to MH i2c: E2 08 00 43 37 80 17 00 00 00 00 00 00 FA [23:57:41]Write i2c OK [23:57:41]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 E3 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 E3 00 43 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [23:57:41]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 [23:57:42]wFMCommunicate OK [23:57:42]SAM_PROTO_GetFMData done [23:57:42]requested_item fm.sale_refund.total is exist - process it [23:57:42]requested_item fm.buy.total is exist - process it [23:57:42]requested_item shift.sale.total is exist - process it [23:57:42]SAM_PROTO_GetShiftData [23:57:42]wFMCommunicate request_size=4 [23:57:42]MH_SAM_APDU [23:57:42]CAPDU: 80 13 02 00 [23:57:42]Write to MH i2c: E2 08 00 44 37 80 13 02 00 00 00 00 00 F9 [23:57:42]Write i2c OK [23:57:42]MH_I2C_Read... [23:57:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:42]Read from MH i2c: E2 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 FD 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 FD 00 44 37 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 AA [23:57:42]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:57:42]wFMCommunicate OK [23:57:42]wFMCommunicate request_size=4 [23:57:42]MH_SAM_APDU [23:57:42]CAPDU: 80 17 00 00 [23:57:42]Write to MH i2c: E2 08 00 45 37 80 17 00 00 00 00 00 00 FC [23:57:42]Write i2c OK [23:57:42]MH_I2C_Read... [23:57:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:42]Read from MH i2c: E2 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 FD 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 FD 00 45 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [23:57:42]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:43]wFMCommunicate OK [23:57:43]wFMCommunicate request_size=4 [23:57:43]MH_SAM_APDU [23:57:43]CAPDU: 80 17 00 00 [23:57:43]Write to MH i2c: E2 08 00 46 37 80 17 00 00 00 00 00 00 FD [23:57:43]Write i2c OK [23:57:43]MH_I2C_Read... [23:57:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:43]Read from MH i2c: E2 [23:57:43]MH_I2C_Read... [23:57:43]Read from MH i2c: E2 FD 00 [23:57:43]MH_I2C_Read... [23:57:43]Read from MH i2c: E2 FD 00 46 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [23:57:43]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:43]wFMCommunicate OK [23:57:43]wFMCommunicate request_size=4 [23:57:43]MH_SAM_APDU [23:57:43]CAPDU: 80 17 00 00 [23:57:43]Write to MH i2c: E2 08 00 47 37 80 17 00 00 00 00 00 00 FE [23:57:43]Write i2c OK [23:57:43]MH_I2C_Read... [23:57:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:43]Read from MH i2c: E2 [23:57:43]MH_I2C_Read... [23:57:43]Read from MH i2c: E2 FD 00 [23:57:43]MH_I2C_Read... [23:57:43]Read from MH i2c: E2 FD 00 47 37 00 03 00 00 EF 03 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 90 00 7F [23:57:43]RAPDU: 03 00 00 EF 03 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 90 00 [23:57:43]wFMCommunicate OK [23:57:43]wFMCommunicate request_size=4 [23:57:43]MH_SAM_APDU [23:57:43]CAPDU: 80 17 00 00 [23:57:43]Write to MH i2c: E2 08 00 48 37 80 17 00 00 00 00 00 00 FF [23:57:43]Write i2c OK [23:57:43]MH_I2C_Read... [23:57:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:57:44]Read from MH i2c: E2 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 D9 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 D9 00 48 37 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 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 DE [23:57:44]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 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 [23:57:44]wFMCommunicate OK [23:57:44]SAM_PROTO_GetShiftData done [23:57:44]requested_item shift.sale.total_cash is exist - process it [23:57:44]requested_item shift.sale_refund.total is exist - process it [23:57:44]requested_item shift.sale_refund.total_cash is exist - process it [23:57:44]requested_item shift.buy.total is exist - process it [23:57:44]requested_item shift.buy.total_cash is exist - process it [23:57:44]produce_requested_data done [23:57:44]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:57:44]process_action_free get_value [23:57:44]json_value_free [23:57:44]json_value_free done [23:57:44]process_json_proto returns [23:57:44]Send response to host [23:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:57:44]free response buf [23:57:44]execute_script done [23:57:44]execute_script returns [23:57:44]free content buf [23:57:44]Sock 7.Close socket [23:57:44]Sock 7.Thread stoped [23:57:44]accept exits with 9 [23:57:44]New connection [23:57:44]New thread 3067174244 created [23:57:44]Thread 3067030884 joined [23:57:44]Waiting for new connection... [23:57:44] Sock 9.Parse request [23:57:44]Sock 9.Check first char [23:57:44]Sock 9.First char is OK [23:57:44]request: POST /json_proto HTTP/1.0 [23:57:44]Method: POST [23:57:44]URL: /json_proto [23:57:44]Method is POST - this is cgi request [23:57:44]url: /json_proto [23:57:44]query_string will be loaded in cgi processing [23:57:44]execute_cgi json_proto POST (null) [23:57:44]execute_cgi path=json_proto method=POST [23:57:44]POST find Content-Length [23:57:44]Host: 172.17.41.195:8080 [23:57:44]Content-Length: 274 [23:57:44]Content-Type: application/json [23:57:44] [23:57:44]POST finish read [23:57:44]Found Content-Length = 274 [23:57:44]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" ] } } [23:57:44]execute_script... [23:57:44]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" ] } } [23:57:44]POST & json_proto [23:57:44]process_json_proto [23:57:44]json parsed OK: [23:57:44]protocol is kg_v1.0 [23:57:44]action value=x_report [23:57:44]process_action x_report [23:57:44]cmd_x_report [23:57:44]MH_GetDate [23:57:44]Write to MH i2c: F0 00 00 49 37 6F [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 09 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 09 00 49 37 00 FB 4B 45 66 FC 21 6F 64 59 [23:57:44]GetLastDocTimeStamp 1715816450 [23:57:44]current date 1715817467 [23:57:44]FM_GetShiftState [23:57:44]SAM_PROTO_GetShiftState [23:57:44]wFMCommunicate request_size=4 [23:57:44]MH_SAM_APDU [23:57:44]CAPDU: 80 13 01 00 [23:57:44]Write to MH i2c: E2 08 00 4A 37 80 13 01 00 00 00 00 00 FE [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:44]Read from MH i2c: E2 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 0E 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 0E 00 4A 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A9 [23:57:44]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:57:44]wFMCommunicate OK [23:57:44]SAM_PROTO_GetShiftState done [23:57:44]FM_GetShiftState done [23:57:44]KKMCreateXReportDocument [23:57:44]Load OK [23:57:44]Malloc new data [23:57:44]MH_GetDate [23:57:44]Write to MH i2c: F0 00 00 4B 37 71 [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 09 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: F0 09 00 4B 37 00 FB 4B 45 66 FC 21 6F 64 5B [23:57:44]Malloc new data [23:57:44]Malloc new data [23:57:44]wFMCommunicate request_size=4 [23:57:44]MH_SAM_APDU [23:57:44]CAPDU: 80 11 00 00 [23:57:44]Write to MH i2c: E2 08 00 4C 37 80 11 00 00 00 00 00 00 FD [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:44]Read from MH i2c: E2 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 17 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 17 00 4C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [23:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:57:44]wFMCommunicate OK [23:57:44]SAM_PROTO_GetFieldsCounters [23:57:44]wFMCommunicate request_size=4 [23:57:44]MH_SAM_APDU [23:57:44]CAPDU: 80 13 00 00 [23:57:44]Write to MH i2c: E2 08 00 4D 37 80 13 00 00 00 00 00 00 00 [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:44]Read from MH i2c: E2 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 62 00 [23:57:44]MH_I2C_Read... [23:57:44]Read from MH i2c: E2 62 00 4D 37 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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [23:57: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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:44]wFMCommunicate OK [23:57:44]SAM_PROTO_GetFieldsCounters done [23:57:44]Malloc new data [23:57:44]Malloc new data [23:57:44]Malloc new data [23:57:44]KKMCreateXReportDocument OK [23:57:44]KKMSetXReportData OK [23:57:44]KKMPrepareXReportFMData [23:57:44]SAM_PROTO_GetShiftData [23:57:44]wFMCommunicate request_size=4 [23:57:44]MH_SAM_APDU [23:57:44]CAPDU: 80 13 02 00 [23:57:44]Write to MH i2c: E2 08 00 4E 37 80 13 02 00 00 00 00 00 03 [23:57:44]Write i2c OK [23:57:44]MH_I2C_Read... [23:57:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:45]Read from MH i2c: E2 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 4E 37 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B4 [23:57:45]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:57:45]wFMCommunicate OK [23:57:45]wFMCommunicate request_size=4 [23:57:45]MH_SAM_APDU [23:57:45]CAPDU: 80 17 00 00 [23:57:45]Write to MH i2c: E2 08 00 4F 37 80 17 00 00 00 00 00 00 06 [23:57:45]Write i2c OK [23:57:45]MH_I2C_Read... [23:57:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:45]Read from MH i2c: E2 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 4F 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [23:57:45]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:45]wFMCommunicate OK [23:57:45]wFMCommunicate request_size=4 [23:57:45]MH_SAM_APDU [23:57:45]CAPDU: 80 17 00 00 [23:57:45]Write to MH i2c: E2 08 00 50 37 80 17 00 00 00 00 00 00 07 [23:57:45]Write i2c OK [23:57:45]MH_I2C_Read... [23:57:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:45]Read from MH i2c: E2 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 [23:57:45]MH_I2C_Read... [23:57:45]Read from MH i2c: E2 FD 00 50 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [23:57:46]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:46]wFMCommunicate OK [23:57:46]wFMCommunicate request_size=4 [23:57:46]MH_SAM_APDU [23:57:46]CAPDU: 80 17 00 00 [23:57:46]Write to MH i2c: E2 08 00 51 37 80 17 00 00 00 00 00 00 08 [23:57:46]Write i2c OK [23:57:46]MH_I2C_Read... [23:57:46]OFD Sender: No OFD packet to send [23:57:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:46]Read from MH i2c: E2 [23:57:46]MH_I2C_Read... [23:57:46]Read from MH i2c: E2 FD 00 [23:57:46]MH_I2C_Read... [23:57:46]Read from MH i2c: E2 FD 00 51 37 00 03 00 00 EF 03 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 90 00 89 [23:57:46]RAPDU: 03 00 00 EF 03 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 90 00 [23:57:46]wFMCommunicate OK [23:57:46]wFMCommunicate request_size=4 [23:57:46]MH_SAM_APDU [23:57:46]CAPDU: 80 17 00 00 [23:57:46]Write to MH i2c: E2 08 00 52 37 80 17 00 00 00 00 00 00 09 [23:57:46]Write i2c OK [23:57:46]MH_I2C_Read... [23:57:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:57:46]Read from MH i2c: E2 [23:57:46]MH_I2C_Read... [23:57:46]Read from MH i2c: E2 D9 00 [23:57:46]MH_I2C_Read... [23:57:46]Read from MH i2c: E2 D9 00 52 37 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 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 E8 [23:57:46]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 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 [23:57:46]wFMCommunicate OK [23:57:46]SAM_PROTO_GetShiftData done [23:57:46]1194 (1208) - счетчики итогов смены [23:57:46] 1134 (4) - 218 - количество чеков со всеми признаками расчетов [23:57:46] 1129 (158) - счетчики операций «приход» [23:57:46] 1135 (4) - 215 - количество чеков по признаку расчетов [23:57:46] 1201 (4) - 301562.16 - общая итоговая сумма в чеках [23:57:46] 1136 (3) - 122731.00 - итоговая сумма в чеках наличными [23:57:46] 1138 (4) - 178831.16 - итоговая сумма в чеках безналичными [23:57:46] 1024 (123) - суммы налогов [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 0% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1006 (12) - суммы НДС [23:57:47] 1010 (1) - 12% - код ставки НДС [23:57:47] 1011 (3) - 32028.19 - сумма НДС по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (12) - суммы НСП [23:57:47] 1014 (1) - 1% - код ставки НСП [23:57:47] 1015 (3) - 2668.86 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 2% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 3% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 5% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1130 (152) - счетчики операций «возврат прихода» [23:57:47] 1135 (4) - 3 - количество чеков по признаку расчетов [23:57:47] 1201 (3) - 8200.00 - общая итоговая сумма в чеках [23:57:47] 1136 (3) - 8200.00 - итоговая сумма в чеках наличными [23:57:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:57:47] 1024 (122) - суммы налогов [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 0% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1006 (12) - суммы НДС [23:57:47] 1010 (1) - 12% - код ставки НДС [23:57:47] 1011 (3) - 870.94 - сумма НДС по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (11) - суммы НСП [23:57:47] 1014 (1) - 1% - код ставки НСП [23:57:47] 1015 (2) - 72.57 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 2% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 3% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 5% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1131 (141) - счетчики операций «расход» [23:57:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:57:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:57:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:57:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:57:47] 1024 (117) - суммы налогов [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 0% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 12% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 2% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 3% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 5% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1132 (141) - счетчики операций «возврат расхода» [23:57:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:57:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:57:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:57:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:57:47] 1024 (117) - суммы налогов [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 0% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1006 (9) - суммы НДС [23:57:47] 1010 (1) - 12% - код ставки НДС [23:57:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 2% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 3% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 5% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 0,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1007 (9) - суммы НСП [23:57:47] 1014 (1) - 1,50% - код ставки НСП [23:57:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:47] 1133 (588) - - счетчики коррекции - не используются [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1194 (04AA) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1134 (046E) [23:57:47]Malloc new data [23:57:47]Processing tag 1129 (0469) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1135 (046F) [23:57:47]Malloc new data [23:57:47]Processing tag 1201 (04B1) [23:57:47]Malloc new data [23:57:47]Processing tag 1136 (0470) [23:57:47]Malloc new data [23:57:47]Processing tag 1138 (0472) [23:57:47]Malloc new data [23:57:47]Processing tag 1024 (0400) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]SetTLVBufToDocument err=0 [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1130 (046A) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1135 (046F) [23:57:47]Malloc new data [23:57:47]Processing tag 1201 (04B1) [23:57:47]Malloc new data [23:57:47]Processing tag 1136 (0470) [23:57:47]Malloc new data [23:57:47]Processing tag 1138 (0472) [23:57:47]Malloc new data [23:57:47]Processing tag 1024 (0400) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]SetTLVBufToDocument err=0 [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1131 (046B) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1135 (046F) [23:57:47]Malloc new data [23:57:47]Processing tag 1201 (04B1) [23:57:47]Malloc new data [23:57:47]Processing tag 1136 (0470) [23:57:47]Malloc new data [23:57:47]Processing tag 1138 (0472) [23:57:47]Malloc new data [23:57:47]Processing tag 1024 (0400) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1006 (03EE) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1010 (03F2) [23:57:47]Malloc new data [23:57:47]Processing tag 1011 (03F3) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:47]Processing tag 1007 (03EF) [23:57:47]Load OK [23:57:47]SetTLVBufToDocument [23:57:47]Processing tag 1014 (03F6) [23:57:47]Malloc new data [23:57:47]Processing tag 1015 (03F7) [23:57:47]Malloc new data [23:57:47]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]SetTLVBufToDocument err=0 [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1132 (046C) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1135 (046F) [23:57:48]Malloc new data [23:57:48]Processing tag 1201 (04B1) [23:57:48]Malloc new data [23:57:48]Processing tag 1136 (0470) [23:57:48]Malloc new data [23:57:48]Processing tag 1138 (0472) [23:57:48]Malloc new data [23:57:48]Processing tag 1024 (0400) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1006 (03EE) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1010 (03F2) [23:57:48]Malloc new data [23:57:48]Processing tag 1011 (03F3) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1006 (03EE) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1010 (03F2) [23:57:48]Malloc new data [23:57:48]Processing tag 1011 (03F3) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1007 (03EF) [23:57:48]Load OK [23:57:48]SetTLVBufToDocument [23:57:48]Processing tag 1014 (03F6) [23:57:48]Malloc new data [23:57:48]Processing tag 1015 (03F7) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]SetTLVBufToDocument err=0 [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Processing tag 1133 (046D) [23:57:48]Malloc new data [23:57:48]SetTLVBufToDocument err=0 [23:57:48]SetTLVBufToDocument err=0 [23:57:48]Malloc new data [23:57:48]SAM_PROTO_GetFMData [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 13 03 00 [23:57:48]Write to MH i2c: E2 08 00 53 37 80 13 03 00 00 00 00 00 09 [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:48]Read from MH i2c: E2 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 FD 00 [23:57:48]MH_I2C_Read... [23:57:48]Read from MH i2c: E2 FD 00 53 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 21 [23:57:48]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:57:48]wFMCommunicate OK [23:57:48]wFMCommunicate request_size=4 [23:57:48]MH_SAM_APDU [23:57:48]CAPDU: 80 17 00 00 [23:57:48]Write to MH i2c: E2 08 00 54 37 80 17 00 00 00 00 00 00 0B [23:57:48]Write i2c OK [23:57:48]MH_I2C_Read... [23:57:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:49]Read from MH i2c: E2 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: E2 FD 00 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: E2 FD 00 54 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 2F [23:57:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:57:49]wFMCommunicate OK [23:57:49]wFMCommunicate request_size=4 [23:57:49]MH_SAM_APDU [23:57:49]CAPDU: 80 17 00 00 [23:57:49]Write to MH i2c: E2 08 00 55 37 80 17 00 00 00 00 00 00 0C [23:57:49]Write i2c OK [23:57:49]MH_I2C_Read... [23:57:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:49]Read from MH i2c: E2 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: E2 FD 00 [23:57:49]MH_I2C_Read... [23:57:49]Read from MH i2c: E2 FD 00 55 37 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 33 [23:57:49]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 [23:57:49]wFMCommunicate OK [23:57:49]wFMCommunicate request_size=4 [23:57:49]MH_SAM_APDU [23:57:49]CAPDU: 80 17 00 00 [23:57:49]Write to MH i2c: E2 08 00 56 37 80 17 00 00 00 00 00 00 0D [23:57:49]Write i2c OK [23:57:49]MH_I2C_Read... [23:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:50]Read from MH i2c: E2 [23:57:50]MH_I2C_Read... [23:57:50]Read from MH i2c: E2 FD 00 [23:57:50]MH_I2C_Read... [23:57:50]Read from MH i2c: E2 FD 00 56 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [23:57:50]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 [23:57:50]wFMCommunicate OK [23:57:50]wFMCommunicate request_size=4 [23:57:50]MH_SAM_APDU [23:57:50]CAPDU: 80 17 00 00 [23:57:50]Write to MH i2c: E2 08 00 57 37 80 17 00 00 00 00 00 00 0E [23:57:50]Write i2c OK [23:57:50]MH_I2C_Read... [23:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:57:50]Read from MH i2c: E2 [23:57:50]MH_I2C_Read... [23:57:50]Read from MH i2c: E2 E3 00 [23:57:50]MH_I2C_Read... [23:57:50]Read from MH i2c: E2 E3 00 57 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [23:57:50]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 [23:57:50]wFMCommunicate OK [23:57:50]SAM_PROTO_GetFMData done [23:57:50]FM_GetFMData:85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 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 6C 0F 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 OFD Sender: No OFD packet to send [23:57:51]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:57:51]oper:6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 [23:57:51]total:56 DE DB 1A 03 [23:57:51]Malloc new data [23:57:51]oper:6F 04 04 00 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 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 6C 0F 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 [23:57:51]total:90 BE BA DC [23:57:51]Malloc new data [23:57:51]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 [23:57:51]total: [23:57:51]Malloc new data [23:57:51]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 [23:57:51]total: [23:57:51]Malloc new data [23:57:51]KKMPrepareXReportFMData err=0 [23:57:51]Х отчет ИНН: 02508201610067 Кассир: Арстанбеков Н. 15.05.2024 23:57 Смена: 356 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Всего чеков: 218 ИТОГИ ПРИХОД Чеков: 215 Общий итог: 301562.16 Итого наличными: 122731.00 Итого безнал.: 178831.16 НДС 0% : 0.00 НДС 12% : 32028.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2668.86 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 8200.00 Итого наличными: 8200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 870.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 72.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 114531.00 НС Приход: 133355188.06 НС Возвр.Прихода: 37032260.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871829 [23:57:51]StoreToDocumentArchive [23:57:51]MH_GetDate [23:57:51]Write to MH i2c: F0 00 00 58 37 7E [23:57:51]Write i2c OK [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: F0 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: F0 09 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: F0 09 00 58 37 00 03 4C 45 66 FC 21 6F 64 71 [23:57:51]shift 356 fd 1715817475 [23:57:51]save to /storage/0356/doc_1715817475 [23:57:51]save last doc name /storage/0356/doc_1715817475 to /storage/kkm_last_doc_name [23:57:51]save OK [23:57:51]Clear old archive folders... [23:57:51]NVStorageSaveData kkm_last_timestamp [23:57:51]File name is /storage/kkm_last_timestamp [23:57:51]Write 4 bytes [23:57:51]NVStorageSaveData done [23:57:51]ExternCall_PrintAddStr [23:57:51]wPrintStart [23:57:51]Write to MH i2c: 01 00 00 59 37 90 [23:57:51]Write i2c OK [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: 01 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: 01 07 00 [23:57:51]MH_I2C_Read... [23:57:51]Read from MH i2c: 01 07 00 59 37 00 00 00 00 00 FF 0F A5 [23:57:51]RasterBufferAndPrint [23:57:51]line Х отчет [23:57:51]line ИНН: 02508201610067 [23:57:51]line Кассир: Арстанбеков Н. [23:57:51]line 15.05.2024 23:57 [23:57:51]line Смена: 356 [23:57:51]line РНМ: 0000000000091845 [23:57:51]line ЗНМ: 0300000119 [23:57:51]line СНО: Общий режим [23:57:51]line Всего чеков: 218 [23:57:51]line ИТОГИ ПРИХОД [23:57:51]line Чеков: 215 [23:57:51]line Общий итог: 301562.16 [23:57:51]line Итого наличными: 122731.00 [23:57:51]line Итого безнал.: 178831.16 [23:57:51]line НДС 0% : 0.00 [23:57:51]line НДС 12% : 32028.19 [23:57:51]line НСП 0% : 0.00 [23:57:51]line НСП 1,50% : 0.00 [23:57:51]line НСП 0,50% : 0.00 [23:57:51]line НСП 5% : 0.00 [23:57:51]line НСП 3% : 0.00 [23:57:51]line НСП 2% : 0.00 [23:57:51]line НСП 1% : 2668.86 [23:57:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:57:51]line Чеков: 3 [23:57:51]line Общий итог: 8200.00 [23:57:51]line Итого наличными: 8200.00 [23:57:51]line Итого безнал.: 0.00 [23:57:51]line НДС 0% : 0.00 [23:57:51]line НДС 12% : 870.94 [23:57:51]line НСП 0% : 0.00 [23:57:51]line НСП 1,50% : 0.00 [23:57:51]line НСП 0,50% : 0.00 [23:57:51]line НСП 5% : 0.00 [23:57:51]line НСП 3% : 0.00 [23:57:51]line НСП 2% : 0.00 [23:57:51]line НСП 1% : 72.57 [23:57:51]line ИТОГИ РАСХОД [23:57:51]line Чеков: 0 [23:57:51]line Общий итог: 0.00 [23:57:51]line Итого наличными: 0.00 [23:57:51]line Итого безнал.: 0.00 [23:57:51]line НДС 0% : 0.00 [23:57:51]line НДС 12% : 0.00 [23:57:51]line НСП 0% : 0.00 [23:57:51]line НСП 1,50% : 0.00 [23:57:51]line НСП 0,50% : 0.00 [23:57:51]line НСП 5% : 0.00 [23:57:51]line НСП 3% : 0.00 [23:57:51]line НСП 2% : 0.00 [23:57:51]line НСП 1% : 0.00 [23:57:51]line ИТОГИ ВОЗВРАТ РАСХОДА [23:57:51]line Чеков: 0 [23:57:51]line Общий итог: 0.00 [23:57:51]line Итого наличными: 0.00 [23:57:51]line Итого безнал.: 0.00 [23:57:51]line НДС 0% : 0.00 [23:57:51]line НДС 12% : 0.00 [23:57:51]line НСП 0% : 0.00 [23:57:51]line НСП 1,50% : 0.00 [23:57:51]line НСП 0,50% : 0.00 [23:57:51]line НСП 5% : 0.00 [23:57:51]line НСП 3% : 0.00 [23:57:51]line НСП 2% : 0.00 [23:57:51]line НСП 1% : 0.00 [23:57:51]line Сумма внесений: 0.00 [23:57:51]line Сумма выплат: 0.00 [23:57:51]line Нал. в кассе: 114531.00 [23:57:51]line НС Приход: 133355188.06 [23:57:51]line НС Возвр.Прихода: 37032260.00 [23:57:51]line НС Расход: 0.00 [23:57:51]line НС Возвр.Расхода: 0.00 [23:57:51]line ФМ: 0000000000871829 [23:57:51]written 0, free lines is 4095 [23:57:52]Write to MH i2c: 01 00 00 A5 37 DC [23:57:52]Write i2c OK [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: 01 [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: 01 07 00 [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: 01 07 00 A5 37 00 00 00 00 00 78 0A 65 [23:57:52]RasterBufferAndPrint [23:57:52]line [23:57:52]line [23:57:52]line [23:57:52]line [23:57:52]line [23:57:52]written 0, free lines is 2710 [23:57:52]MH_Cut [23:57:52]Write to MH i2c: D1 01 00 AC 37 01 B5 [23:57:52]Write i2c OK [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: D1 [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: D1 01 00 [23:57:52]MH_I2C_Read... [23:57:52]Read from MH i2c: D1 01 00 AC 37 00 B4 [23:57:52]Write to MH i2c: 01 00 00 AD 37 E4 [23:57:52]Write i2c OK [23:57:52]MH_I2C_Read... [23:57:53]*** Cut start [23:57:53]*** Purtial cut [23:57:53]*** Stage 1: CUTSNS_PIN = 1 [23:57:54]Read from MH i2c: 01 [23:57:54]MH_I2C_Read... [23:57:54]*** Stop cut motor [23:57:54]*** Cut end [23:57:54]Read from MH i2c: 01 07 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 FF 0F F9 [23:57:54]process_action x_report done [23:57:54]requested_data is exist [23:57:54]produce_requested_data [23:57:54]requested_item fd.num is exist - process it [23:57:54]SAM_PROTO_GetFieldsCounters [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 13 00 00 [23:57:54]Write to MH i2c: E2 08 00 AE 37 80 13 00 00 00 00 00 00 61 [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 62 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 62 00 AE 37 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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:57: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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:54]wFMCommunicate OK [23:57:54]SAM_PROTO_GetFieldsCounters done [23:57:54]requested_item shift.num is exist - process it [23:57:54]requested_item shift.opened is exist - process it [23:57:54]req_shift_opened [23:57:54]FM_GetShiftState [23:57:54]SAM_PROTO_GetShiftState [23:57:54]wFMCommunicate request_size=4 [23:57:54]MH_SAM_APDU [23:57:54]CAPDU: 80 13 01 00 [23:57:54]Write to MH i2c: E2 08 00 AF 37 80 13 01 00 00 00 00 00 63 [23:57:54]Write i2c OK [23:57:54]MH_I2C_Read... [23:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:54]Read from MH i2c: E2 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 [23:57:54]MH_I2C_Read... [23:57:54]Read from MH i2c: E2 0E 00 AF 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 0E [23:57:54]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:57:54]wFMCommunicate OK [23:57:54]SAM_PROTO_GetShiftState done [23:57:54]FM_GetShiftState done [23:57:54]req_shift_opened done [23:57:54]requested_item shift.open_date is exist - process it [23:57:54]req_shift_open_date [23:57:54]req_shift_open_date done [23:57:54]produce_requested_data done [23:57:54]produce_requested_data return {"fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:57:54]process_action_free x_report [23:57:54]json_value_free [23:57:54]json_value_free done [23:57:54]process_json_proto returns [23:57:54]Send response to host [23:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:57:54]free response buf [23:57:54]execute_script done [23:57:54]execute_script returns [23:57:54]free content buf [23:57:54]Sock 9.Close socket [23:57:54]Sock 9.Thread stoped [23:57:56]OFD Sender: No OFD packet to send [23:57:59]accept exits with 7 [23:57:59]New connection [23:57:59]New thread 3067030884 created [23:57:59]Thread 3067174244 joined [23:57:59]Waiting for new connection... [23:57:59] Sock 7.Parse request [23:57:59]Sock 7.Check first char [23:57:59]Sock 7.First char is OK [23:57:59]request: POST /json_proto HTTP/1.0 [23:57:59]Method: POST [23:57:59]URL: /json_proto [23:57:59]Method is POST - this is cgi request [23:57:59]url: /json_proto [23:57:59]query_string will be loaded in cgi processing [23:57:59]execute_cgi json_proto POST (null) [23:57:59]execute_cgi path=json_proto method=POST [23:57:59]POST find Content-Length [23:57:59]Host: 172.17.41.195:8080 [23:57:59]Content-Length: 215 [23:57:59]Content-Type: application/json [23:57:59] [23:57:59]POST finish read [23:57:59]Found Content-Length = 215 [23:57:59]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" ] } } [23:57:59]execute_script... [23:57:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:59]POST & json_proto [23:57:59]process_json_proto [23:57:59]json parsed OK: [23:57:59]protocol is kg_v1.0 [23:57:59]action value=get_value [23:57:59]process_action get_value [23:57:59]cmd_get_value [23:57:59]process_action get_value done [23:57:59]requested_data is exist [23:57:59]produce_requested_data [23:57:59]requested_item kkm.sn is exist - process it [23:57:59]requested_item kkm.ver is exist - process it [23:57:59]requested_item fm.sn is exist - process it [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 11 00 00 [23:57:59]Write to MH i2c: E2 08 00 B0 37 80 11 00 00 00 00 00 00 61 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 B0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [23:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:57:59]wFMCommunicate OK [23:57:59]requested_item fd.num is exist - process it [23:57:59]SAM_PROTO_GetFieldsCounters [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 13 00 00 [23:57:59]Write to MH i2c: E2 08 00 B1 37 80 13 00 00 00 00 00 00 64 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 62 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 62 00 B1 37 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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [23:57: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 48 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_GetFieldsCounters done [23:57:59]requested_item shift.num is exist - process it [23:57:59]requested_item shift.opened is exist - process it [23:57:59]req_shift_opened [23:57:59]FM_GetShiftState [23:57:59]SAM_PROTO_GetShiftState [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 13 01 00 [23:57:59]Write to MH i2c: E2 08 00 B2 37 80 13 01 00 00 00 00 00 66 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 0E 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 0E 00 B2 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 11 [23:57:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:57:59]wFMCommunicate OK [23:57:59]SAM_PROTO_GetShiftState done [23:57:59]FM_GetShiftState done [23:57:59]req_shift_opened done [23:57:59]requested_item shift.open_date is exist - process it [23:57:59]req_shift_open_date [23:57:59]req_shift_open_date done [23:57:59]produce_requested_data done [23:57:59]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [23:57:59]process_action_free get_value [23:57:59]json_value_free [23:57:59]json_value_free done [23:57:59]process_json_proto returns [23:57:59]Send response to host [23:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67400,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [23:57:59]free response buf [23:57:59]execute_script done [23:57:59]execute_script returns [23:57:59]free content buf [23:57:59]Sock 7.Close socket [23:57:59]Sock 7.Thread stoped [23:57:59]accept exits with 9 [23:57:59]New connection [23:57:59]New thread 3067174244 created [23:57:59]Thread 3067030884 joined [23:57:59]Waiting for new connection... [23:57:59] Sock 9.Parse request [23:57:59]Sock 9.Check first char [23:57:59]Sock 9.First char is OK [23:57:59]request: POST /json_proto HTTP/1.0 [23:57:59]Method: POST [23:57:59]URL: /json_proto [23:57:59]Method is POST - this is cgi request [23:57:59]url: /json_proto [23:57:59]query_string will be loaded in cgi processing [23:57:59]execute_cgi json_proto POST (null) [23:57:59]execute_cgi path=json_proto method=POST [23:57:59]POST find Content-Length [23:57:59]Host: 172.17.41.195:8080 [23:57:59]Content-Length: 331 [23:57:59]Content-Type: application/json [23:57:59] [23:57:59]POST finish read [23:57:59]Found Content-Length = 331 [23:57:59]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" ] } } [23:57:59]execute_script... [23:57:59]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" ] } } [23:57:59]POST & json_proto [23:57:59]process_json_proto [23:57:59]json parsed OK: [23:57:59]protocol is kg_v1.0 [23:57:59]action value=get_value [23:57:59]process_action get_value [23:57:59]cmd_get_value [23:57:59]process_action get_value done [23:57:59]requested_data is exist [23:57:59]produce_requested_data [23:57:59]requested_item fm.sale.total is exist - process it [23:57:59]SAM_PROTO_GetFMData [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 13 03 00 [23:57:59]Write to MH i2c: E2 08 00 B3 37 80 13 03 00 00 00 00 00 69 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 FD 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 FD 00 B3 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 81 [23:58:00]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:58:00]wFMCommunicate OK [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 17 00 00 [23:58:00]Write to MH i2c: E2 08 00 B4 37 80 17 00 00 00 00 00 00 6B [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 FD 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 FD 00 B4 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 8F [23:58:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 B5 37 80 17 00 00 00 00 00 00 6C [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 B5 37 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 OFD Sender: No OFD packet to send [23:58:01]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 93 [23:58:01]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 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 B6 37 80 17 00 00 00 00 00 00 6D [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 B6 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [23:58:02]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 [23:58:02]wFMCommunicate OK [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 17 00 00 [23:58:02]Write to MH i2c: E2 08 00 B7 37 80 17 00 00 00 00 00 00 6E [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 E3 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 E3 00 B7 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [23:58:02]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 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetFMData done [23:58:02]requested_item fm.sale_refund.total is exist - process it [23:58:02]requested_item fm.buy.total is exist - process it [23:58:02]requested_item shift.sale.total is exist - process it [23:58:02]SAM_PROTO_GetShiftData [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 02 00 [23:58:02]Write to MH i2c: E2 08 00 B8 37 80 13 02 00 00 00 00 00 6D [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 B8 37 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 1E [23:58:03]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:58:03]wFMCommunicate OK [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 17 00 00 [23:58:03]Write to MH i2c: E2 08 00 B9 37 80 17 00 00 00 00 00 00 70 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 B9 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [23:58:03]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 BA 37 80 17 00 00 00 00 00 00 71 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 BA 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [23:58:04]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 BB 37 80 17 00 00 00 00 00 00 72 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 BB 37 00 03 00 00 EF 03 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 90 00 F3 [23:58:05]RAPDU: 03 00 00 EF 03 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 90 00 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 BC 37 80 17 00 00 00 00 00 00 73 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 D9 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 D9 00 BC 37 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 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 [23:58:05]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 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 [23:58:05]wFMCommunicate OK [23:58:05]SAM_PROTO_GetShiftData done [23:58:05]requested_item shift.sale.total_cash is exist - process it [23:58:05]requested_item shift.sale_refund.total is exist - process it [23:58:05]requested_item shift.sale_refund.total_cash is exist - process it [23:58:05]requested_item shift.buy.total is exist - process it [23:58:05]requested_item shift.buy.total_cash is exist - process it [23:58:05]produce_requested_data done [23:58:05]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:58:05]process_action_free get_value [23:58:05]json_value_free [23:58:05]json_value_free done [23:58:05]process_json_proto returns [23:58:05]Send response to host [23:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:58:05]free response buf [23:58:05]execute_script done [23:58:05]execute_script returns [23:58:05]free content buf [23:58:05]Sock 9.Close socket [23:58:05]Sock 9.Thread stoped [23:58:05]accept exits with 7 [23:58:05]New connection [23:58:05]New thread 3067030884 created [23:58:05]Thread 3067174244 joined [23:58:05]Waiting for new connection... [23:58:05] Sock 7.Parse request [23:58:05]Sock 7.Check first char [23:58:05]Sock 7.First char is OK [23:58:05]request: POST /json_proto HTTP/1.0 [23:58:05]Method: POST [23:58:05]URL: /json_proto [23:58:05]Method is POST - this is cgi request [23:58:05]url: /json_proto [23:58:05]query_string will be loaded in cgi processing [23:58:05]execute_cgi json_proto POST (null) [23:58:05]execute_cgi path=json_proto method=POST [23:58:05]POST find Content-Length [23:58:05]Host: 172.17.41.195:8080 [23:58:05]Content-Length: 331 [23:58:05]Content-Type: application/json [23:58:05] [23:58:05]POST finish read [23:58:05]Found Content-Length = 331 [23:58:05]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" ] } } [23:58:05]execute_script... [23:58:05]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" ] } } [23:58:05]POST & json_proto [23:58:05]process_json_proto [23:58:05]json parsed OK: [23:58:05]protocol is kg_v1.0 [23:58:05]action value=get_value [23:58:05]process_action get_value [23:58:05]cmd_get_value [23:58:05]process_action get_value done [23:58:05]requested_data is exist [23:58:05]produce_requested_data [23:58:06]requested_item fm.sale.total is exist - process it [23:58:06]SAM_PROTO_GetFMData [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 13 03 00 [23:58:06]Write to MH i2c: E2 08 00 BD 37 80 13 03 00 00 00 00 00 73 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 BD 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 8B [23:58:06]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 OFD Sender: No OFD packet to send [23:58:06]AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 BE 37 80 17 00 00 00 00 00 00 75 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 BE 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 99 [23:58:07]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 BF 37 80 17 00 00 00 00 00 00 76 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 BF 37 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 9D [23:58:07]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 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 C0 37 80 17 00 00 00 00 00 00 77 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 C0 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [23:58:08]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 [23:58:08]wFMCommunicate OK [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 17 00 00 [23:58:08]Write to MH i2c: E2 08 00 C1 37 80 17 00 00 00 00 00 00 78 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 E3 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 E3 00 C1 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [23:58: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 [23:58:09]wFMCommunicate OK [23:58:09]SAM_PROTO_GetFMData done [23:58:09]requested_item fm.sale_refund.total is exist - process it [23:58:09]requested_item fm.buy.total is exist - process it [23:58:09]requested_item shift.sale.total is exist - process it [23:58:09]SAM_PROTO_GetShiftData [23:58:09]wFMCommunicate request_size=4 [23:58:09]MH_SAM_APDU [23:58:09]CAPDU: 80 13 02 00 [23:58:09]Write to MH i2c: E2 08 00 C2 37 80 13 02 00 00 00 00 00 77 [23:58:09]Write i2c OK [23:58:09]MH_I2C_Read... [23:58:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 C2 37 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 28 [23:58:09]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:58:10]wFMCommunicate OK [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 17 00 00 [23:58:10]Write to MH i2c: E2 08 00 C3 37 80 17 00 00 00 00 00 00 7A [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:10]Read from MH i2c: E2 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 C3 37 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [23:58:10]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:10]wFMCommunicate OK [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 17 00 00 [23:58:10]Write to MH i2c: E2 08 00 C4 37 80 17 00 00 00 00 00 00 7B [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:10]Read from MH i2c: E2 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 C4 37 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [23:58:11]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:11]wFMCommunicate OK [23:58:11]wFMCommunicate request_size=4 [23:58:11]MH_SAM_APDU [23:58:11]CAPDU: 80 17 00 00 [23:58:11]Write to MH i2c: E2 08 00 C5 37 80 17 00 00 00 00 00 00 7C [23:58:11]Write i2c OK [23:58:11]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 C5 37 00 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:58:11]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 FD [23:58:11]RAPDU: 03 00 00 EF 03 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 90 00 [23:58:11]wFMCommunicate OK [23:58:11]wFMCommunicate request_size=4 [23:58:11]MH_SAM_APDU [23:58:11]CAPDU: 80 17 00 00 [23:58:11]Write to MH i2c: E2 08 00 C6 37 80 17 00 00 00 00 00 00 7D [23:58:11]Write i2c OK [23:58:11]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 D9 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 D9 00 C6 37 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 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 [23:58:12]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 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 [23:58:12]wFMCommunicate OK [23:58:12]SAM_PROTO_GetShiftData done [23:58:12]requested_item shift.sale.total_cash is exist - process it [23:58:12]requested_item shift.sale_refund.total is exist - process it [23:58:12]requested_item shift.sale_refund.total_cash is exist - process it [23:58:12]requested_item shift.buy.total is exist - process it [23:58:12]requested_item shift.buy.total_cash is exist - process it [23:58:12]produce_requested_data done [23:58:12]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:58:12]process_action_free get_value [23:58:12]json_value_free [23:58:12]json_value_free done [23:58:12]process_json_proto returns [23:58:12]Send response to host [23:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:58:12]free response buf [23:58:12]execute_script done [23:58:12]execute_script returns [23:58:12]free content buf [23:58:12]Sock 7.Close socket [23:58:12]Sock 7.Thread stoped [23:58:12]accept exits with 9 [23:58:12]New connection [23:58:12]New thread 3067174244 created [23:58:12]Thread 3067030884 joined [23:58:12]Waiting for new connection... [23:58:12] Sock 9.Parse request [23:58:12]Sock 9.Check first char [23:58:12]Sock 9.First char is OK [23:58:12]request: POST /json_proto HTTP/1.0 [23:58:12]Method: POST [23:58:12]URL: /json_proto [23:58:12]Method is POST - this is cgi request [23:58:12]url: /json_proto [23:58:12]query_string will be loaded in cgi processing [23:58:12]execute_cgi json_proto POST (null) [23:58:12]execute_cgi path=json_proto method=POST [23:58:12]POST find Content-Length [23:58:12]Host: 172.17.41.195:8080 [23:58:12]Content-Length: 277 [23:58:12]Content-Type: application/json [23:58:12] [23:58:12]POST finish read [23:58:12]Found Content-Length = 277 [23:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "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" ] } } [23:58:12]execute_script... [23:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "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" ] } } [23:58:12]POST & json_proto [23:58:12]process_json_proto [23:58:12]json parsed OK: [23:58:12]protocol is kg_v1.0 [23:58:12]action value=close_shift [23:58:12]process_action close_shift [23:58:12]cmd_close_shift [23:58:12]MH_GetDate [23:58:12]Write to MH i2c: F0 00 00 C7 37 ED [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 C7 37 00 17 4C 45 66 FC 21 6F 64 F4 [23:58:12]GetLastDocTimeStamp 1715817467 [23:58:12]current date 1715817495 [23:58:12]FM_GetShiftState [23:58:12]SAM_PROTO_GetShiftState [23:58:12]wFMCommunicate request_size=4 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 13 01 00 [23:58:12]Write to MH i2c: E2 08 00 C8 37 80 13 01 00 00 00 00 00 7C [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 C8 37 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 27 [23:58:12]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [23:58:12]wFMCommunicate OK [23:58:12]SAM_PROTO_GetShiftState done [23:58:12]FM_GetShiftState done [23:58:12]KKMCreateCloseShiftDocument [23:58:12]Load OK [23:58:12]Malloc new data [23:58:12]MH_GetDate [23:58:12]Write to MH i2c: F0 00 00 C9 37 EF [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 C9 37 00 17 4C 45 66 FC 21 6F 64 F6 [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]KKMCreateCloseShiftDocument OK [23:58:12]KKMSetCloseShiftData OK [23:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=76 [23:58:12]tlvbuf is 00D23290 [23:58:12]KKMLoadAndSignCloseShiftData [23:58:12]SAM_PROTO_ProcessDocument [23:58:12]wFMCommunicate request_size=9 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 01 00 04 05 00 4C 00 [23:58:12]Write to MH i2c: E2 0C 00 CA 37 80 15 01 00 04 00 05 00 4C 00 00 00 D9 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 CA 37 00 90 00 75 [23:58:12]RAPDU: 90 00 [23:58:12]wFMCommunicate OK [23:58:12]wFMCommunicate request_size=23 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:58:12]Write to MH i2c: E2 1A 00 CB 37 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 77 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 CB 37 00 90 00 76 [23:58:12]RAPDU: 90 00 [23:58:12]wFMCommunicate OK [23:58:12]wFMCommunicate request_size=35 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E [23:58:13]Write to MH i2c: E2 26 00 CC 37 80 15 02 00 1E 00 FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 00 00 97 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 CC 37 00 90 00 77 [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=13 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 15 02 00 08 F4 03 04 00 17 4C 45 66 [23:58:13]Write to MH i2c: E2 10 00 CD 37 80 15 02 00 08 00 F4 03 04 00 17 4C 45 66 00 00 9D [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 CD 37 00 90 00 78 [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=25 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 [23:58:13]Write to MH i2c: E2 1C 00 CE 37 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 00 00 E9 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 CE 37 00 90 00 79 [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=4 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 15 03 00 [23:58:13]Write to MH i2c: E2 08 00 CF 37 80 15 03 00 00 00 00 00 87 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 CF 37 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 49 07 01 00 0E 04 04 00 64 01 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 90 00 E8 [23:58:14]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 49 07 01 00 0E 04 04 00 64 01 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_ProcessDocument answer len = 1279 [23:58:14]SAM_PROTO_ProcessDocument remain to read = 1031 [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 D0 37 80 17 00 00 00 00 00 00 87 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 D0 37 00 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 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 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [23:58:14]RAPDU: 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 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 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:14]SAM_PROTO_ProcessDocument remain to read = 781 [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 D1 37 80 17 00 00 00 00 00 00 88 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 D1 37 00 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [23:58:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:15]wFMCommunicate OK [23:58:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:15]SAM_PROTO_ProcessDocument remain to read = 531 [23:58:15]wFMCommunicate request_size=4 [23:58:15]MH_SAM_APDU [23:58:15]CAPDU: 80 17 00 00 [23:58:15]Write to MH i2c: E2 08 00 D2 37 80 17 00 00 00 00 00 00 89 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 D2 37 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [23:58:16]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:16]SAM_PROTO_ProcessDocument remain to read = 281 [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 17 00 00 [23:58:16]Write to MH i2c: E2 08 00 D3 37 80 17 00 00 00 00 00 00 8A [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 FD 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 FD 00 D3 37 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:58:16]00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 36 [23:58:16]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:17]wFMCommunicate OK [23:58:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:17]SAM_PROTO_ProcessDocument remain to read = 31 [23:58:17]wFMCommunicate request_size=4 [23:58:17]MH_SAM_APDU [23:58:17]CAPDU: 80 17 00 00 [23:58:17]Write to MH i2c: E2 08 00 D4 37 80 17 00 00 00 00 00 00 8B [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [23:58:17]Read from MH i2c: E2 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 22 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 22 00 D4 37 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 68 49 04 99 95 C3 90 00 7B [23:58:17]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 68 49 04 99 95 C3 90 00 [23:58:17]wFMCommunicate OK [23:58:17]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [23:58:17]SAM_PROTO_ProcessDocument done [23:58:17]1209 (1) - 1.0 - номер версии ФФД [23:58:17]1041 (16) - 0000000000871829 - номер ФМ [23:58:17]1040 (4) - 67401 - номер ФД [23:58:17]1038 (4) - 356 - номер смены [23:58:17]1118 (4) - 218 - количество кассовых чеков за смену [23:58:17]1111 (4) - 220 - общее количество ФД за смену [23:58:17]1194 (1208) - счетчики итогов смены [23:58:17] 1134 (4) - 218 - количество чеков со всеми признаками расчетов [23:58:17] 1129 (158) - счетчики операций «приход» [23:58:17] 1135 (4) - 215 - количество чеков по признаку расчетов [23:58:17] 1201 (4) - 301562.16 - общая итоговая сумма в чеках [23:58:17] 1136 (3) - 122731.00 - итоговая сумма в чеках наличными [23:58:17] 1138 (4) - 178831.16 - итоговая сумма в чеках безналичными [23:58:17] 1024 (123) - суммы налогов [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 0% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1006 (12) - суммы НДС [23:58:17] 1010 (1) - 12% - код ставки НДС [23:58:17] 1011 (3) - 32028.19 - сумма НДС по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (12) - суммы НСП [23:58:17] 1014 (1) - 1% - код ставки НСП [23:58:17] 1015 (3) - 2668.86 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 2% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 3% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 5% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1130 (152) - счетчики операций «возврат прихода» [23:58:17] 1135 (4) - 3 - количество чеков по признаку расчетов [23:58:17] 1201 (3) - 8200.00 - общая итоговая сумма в чеках [23:58:17] 1136 (3) - 8200.00 - итоговая сумма в чеках наличными [23:58:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:17] 1024 (122) - суммы налогов [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 0% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1006 (12) - суммы НДС [23:58:17] 1010 (1) - 12% - код ставки НДС [23:58:17] 1011 (3) - 870.94 - сумма НДС по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (11) - суммы НСП [23:58:17] 1014 (1) - 1% - код ставки НСП [23:58:17] 1015 (2) - 72.57 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 2% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 3% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 5% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1131 (141) - счетчики операций «расход» [23:58:17] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:17] 1024 (117) - суммы налогов [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 0% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 12% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 2% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 3% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 5% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1132 (141) - счетчики операций «возврат расхода» [23:58:17] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:17] 1024 (117) - суммы налогов [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 0% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1006 (9) - суммы НДС [23:58:17] 1010 (1) - 12% - код ставки НДС [23:58:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 2% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 3% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 5% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 0,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1007 (9) - суммы НСП [23:58:17] 1014 (1) - 1,50% - код ставки НСП [23:58:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:17] 1133 (588) - - счетчики коррекции - не используются [23:58:17]1077 (6) - 114662819075523 - ФПД [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1209 (04B9) [23:58:17]Malloc new data [23:58:17]Processing tag 1041 (0411) [23:58:17]Processing tag 1040 (0410) [23:58:17]Malloc new data [23:58:17]Processing tag 1038 (040E) [23:58:17]Malloc new data [23:58:17]Processing tag 1118 (045E) [23:58:17]Malloc new data [23:58:17]Processing tag 1111 (0457) [23:58:17]Malloc new data [23:58:17]Processing tag 1194 (04AA) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1134 (046E) [23:58:17]Malloc new data [23:58:17]Processing tag 1129 (0469) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1135 (046F) [23:58:17]Malloc new data [23:58:17]Processing tag 1201 (04B1) [23:58:17]Malloc new data [23:58:17]Processing tag 1136 (0470) [23:58:17]Malloc new data [23:58:17]Processing tag 1138 (0472) [23:58:17]Malloc new data [23:58:17]Processing tag 1024 (0400) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1130 (046A) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1135 (046F) [23:58:18]Malloc new data [23:58:18]Processing tag 1201 (04B1) [23:58:18]Malloc new data [23:58:18]Processing tag 1136 (0470) [23:58:18]Malloc new data [23:58:18]Processing tag 1138 (0472) [23:58:18]Malloc new data [23:58:18]Processing tag 1024 (0400) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1131 (046B) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1135 (046F) [23:58:18]Malloc new data [23:58:18]Processing tag 1201 (04B1) [23:58:18]Malloc new data [23:58:18]Processing tag 1136 (0470) [23:58:18]Malloc new data [23:58:18]Processing tag 1138 (0472) [23:58:18]Malloc new data [23:58:18]Processing tag 1024 (0400) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1132 (046C) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1135 (046F) [23:58:18]Malloc new data [23:58:18]Processing tag 1201 (04B1) [23:58:18]Malloc new data [23:58:18]Processing tag 1136 (0470) [23:58:18]Malloc new data [23:58:18]Processing tag 1138 (0472) [23:58:18]Malloc new data [23:58:18]Processing tag 1024 (0400) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1006 (03EE) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1010 (03F2) [23:58:18]Malloc new data [23:58:18]Processing tag 1011 (03F3) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1007 (03EF) [23:58:18]Load OK [23:58:18]SetTLVBufToDocument [23:58:18]Processing tag 1014 (03F6) [23:58:18]Malloc new data [23:58:18]Processing tag 1015 (03F7) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1133 (046D) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Processing tag 1077 (0435) [23:58:18]Malloc new data [23:58:18]SetTLVBufToDocument err=0 [23:58:18]Malloc new data [23:58:18]SAM_PROTO_GetFMData [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 13 03 00 [23:58:18]Write to MH i2c: E2 08 00 D5 37 80 13 03 00 00 00 00 00 8B [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 D5 37 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 A3 [23:58:19]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [23:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 D6 37 80 17 00 00 00 00 00 00 8D [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 D6 37 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 B1 [23:58:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [23:58:20]wFMCommunicate OK [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 17 00 00 [23:58:20]Write to MH i2c: E2 08 00 D7 37 80 17 00 00 00 00 00 00 8E [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 FD 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 FD 00 D7 37 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 B5 [23:58:20]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 [23:58:21]wFMCommunicate OK [23:58:21]wFMCommunicate request_size=4 [23:58:21]MH_SAM_APDU [23:58:21]CAPDU: 80 17 00 00 [23:58:21]Write to MH i2c: E2 08 00 D8 37 80 17 00 00 00 00 00 00 8F [23:58:21]Write i2c OK [23:58:21]MH_I2C_Read... [23:58:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:21]Read from MH i2c: E2 [23:58:21]MH_I2C_Read... [23:58:21]Read from MH i2c: E2 FD 00 [23:58:21]MH_I2C_Read... [23:58:21]Read from MH i2c: E2 FD 00 D8 37 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [23:58: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 [23:58:22]wFMCommunicate OK [23:58:22]wFMCommunicate request_size=4 [23:58:22]MH_SAM_APDU [23:58:22]CAPDU: 80 17 00 00 [23:58:22]Write to MH i2c: E2 08 00 D9 37 80 17 00 00 00 00 00 00 90 [23:58:22]OFD Sender: No OFD packet to send [23:58:22]Write i2c OK [23:58:22]MH_I2C_Read... [23:58:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:58:22]Read from MH i2c: E2 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 E3 00 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 E3 00 D9 37 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:58: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 [23:58:22]wFMCommunicate OK [23:58:22]SAM_PROTO_GetFMData done [23:58:22]Malloc new data [23:58:22]Malloc new data [23:58:22]Malloc new data [23:58:22]Malloc new data [23:58:22]KKMLoadAndSignCloseShiftData err=0 [23:58:22]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арстанбеков Н. 15.05.2024 23:58 Смена: 356 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Чеков за смену: 218 ФД за смену: 220 Всего чеков: 218 ИТОГИ ПРИХОД Чеков: 215 Общий итог: 301562.16 Итого наличными: 122731.00 Итого безнал.: 178831.16 НДС 0% : 0.00 НДС 12% : 32028.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2668.86 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 8200.00 Итого наличными: 8200.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 870.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 72.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 114531.00 НС Приход: 133355188.06 НС Возвр.Прихода: 37032260.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 67401 ФМ: 0000000000871829 ФПД: 114662819075523 [23:58:22]StoreToDocumentArchive [23:58:22]shift 356 fd 67401 [23:58:22]save to /storage/0356/doc_00067401 [23:58:22]save last doc name /storage/0356/doc_00067401 to /storage/kkm_last_doc_name [23:58:22]save OK [23:58:22]Clear old archive folders... [23:58:22]NVStorageSaveData kkm_registers [23:58:22]File name is /storage/kkm_registers [23:58:22]Write 24 bytes [23:58:22]NVStorageSaveData done [23:58:22]NVStorageSaveData kkm_registers [23:58:22]File name is /storage/kkm_registers [23:58:22]Write 24 bytes [23:58:22]NVStorageSaveData done [23:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [23:58:22]tlvbuf is 00CAE910 [23:58:22]SAM_PROTO_ClearQueue [23:58:22]wFMCommunicate request_size=4 [23:58:22]MH_SAM_APDU [23:58:22]CAPDU: 80 09 00 00 [23:58:22]Write to MH i2c: E2 08 00 DA 37 80 09 00 00 00 00 00 00 83 [23:58:22]Write i2c OK [23:58:22]MH_I2C_Read... [23:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:22]Read from MH i2c: E2 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 DA 37 00 90 00 85 [23:58:22]RAPDU: 90 00 [23:58:22]wFMCommunicate OK [23:58:23]SAM_PROTO_ClearQueue done [23:58:23]KKMCreateOFDPacket [23:58:23]OFDProtocolAddRootSTLVToBuf [23:58:23]FM_MakeSignedData [23:58:23]FM_MakeSignedData [23:58:23]SAM_PROTO_SignData [23:58:23]wFMCommunicate request_size=4 [23:58:23]MH_SAM_APDU [23:58:23]CAPDU: 80 0D 01 02 [23:58:23]Write to MH i2c: E2 08 00 DB 37 80 0D 01 02 00 00 00 00 8B [23:58:23]Write i2c OK [23:58:23]MH_I2C_Read... [23:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:23]Read from MH i2c: E2 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 DB 37 00 90 00 86 [23:58:23]RAPDU: 90 00 [23:58:23]wFMCommunicate OK [23:58:23]wFMCommunicate request_size=255 [23:58:23]MH_SAM_APDU [23:58:23]CAPDU: 80 0D 02 02 FA 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E F4 03 04 00 17 4C 45 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 DF 04 6E 04 04 00 DA 00 00 00 69 04 A5 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 DF 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 [23:58:23]Write to MH i2c: E2 02 01 DC 37 80 0D 02 02 FA 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E F4 03 04 00 17 4C 45 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 DF 04 6E 04 04 00 DA 00 00 00 69 04 A5 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 DF 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 00 1A [23:58:23]Write i2c OK [23:58:23]MH_I2C_Read... [23:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:23]Read from MH i2c: E2 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 DC 37 00 90 00 87 [23:58:23]RAPDU: 90 00 [23:58:23]wFMCommunicate OK [23:58:23]wFMCommunicate request_size=255 [23:58:23]MH_SAM_APDU [23:58:23]CAPDU: 80 0D 02 02 FA F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 86 12 04 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 36 54 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE [23:58:24]Write to MH i2c: E2 02 01 DD 37 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 86 12 04 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 36 54 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 00 00 0D [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 03 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [23:58:24]RAPDU: 90 00 [23:58:24]wFMCommunicate OK [23:58:24]wFMCommunicate request_size=255 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 0D 02 02 FA 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 [23:58:25]Write to MH i2c: E2 02 01 DE 37 80 0D 02 02 FA 00 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 00 00 56 [23:58:25]Write i2c OK [23:58:25]MH_I2C_Read... [23:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:25]Read from MH i2c: E2 [23:58:25]MH_I2C_Read... [23:58:25]Read from MH i2c: E2 03 00 [23:58:25]MH_I2C_Read... [23:58:25]Read from MH i2c: E2 03 00 DE 37 00 90 00 89 [23:58:25]RAPDU: 90 00 [23:58:25]wFMCommunicate OK [23:58:25]wFMCommunicate request_size=255 [23:58:25]MH_SAM_APDU [23:58:25]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 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 [23:58:25]Write to MH i2c: E2 02 01 DF 37 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 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 00 00 5F [23:58:26]Write i2c OK [23:58:26]MH_I2C_Read... [23:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:26]Read from MH i2c: E2 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 03 00 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [23:58:26]RAPDU: 90 00 [23:58:26]wFMCommunicate OK [23:58:26]wFMCommunicate request_size=255 [23:58:26]MH_SAM_APDU [23:58:26]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:58:26]Write to MH i2c: E2 02 01 E0 37 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 [23:58:26]Write i2c OK [23:58:26]MH_I2C_Read... [23:58:27]OFD Sender: No OFD packet to send [23:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 03 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [23:58:27]RAPDU: 90 00 [23:58:27]wFMCommunicate OK [23:58:27]wFMCommunicate request_size=153 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 49 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 68 49 04 99 95 C3 [23:58:27]Write to MH i2c: E2 9C 00 E1 37 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 49 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 68 49 04 99 95 C3 00 00 CB [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 03 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 03 00 E1 37 00 90 00 8C [23:58:27]RAPDU: 90 00 [23:58:27]wFMCommunicate OK [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 0D 03 02 [23:58:27]Write to MH i2c: E2 08 00 E2 37 80 0D 03 02 00 00 00 00 94 [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 0B 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 0B 00 E2 37 00 82 F2 15 68 2E C1 9D 74 90 00 86 [23:58:27]RAPDU: 82 F2 15 68 2E C1 9D 74 90 00 [23:58:27]wFMCommunicate OK [23:58:27]SAM_PROTO_SignData done [23:58:27]FM_MakeSignedData done [23:58:28]CreateOFDProtocolMessage [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 11 00 00 [23:58:28]Write to MH i2c: E2 08 00 E3 37 80 11 00 00 00 00 00 00 94 [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 17 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 17 00 E3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EA [23:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:58:28]wFMCommunicate OK [23:58:28]CreateOFDProtocolMessage done [23:58:28]OFDSenderStorePacket 67401 [23:58:28]StoreOFDPacket docnum=67401 [23:58: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 86 05 00 00 D8 73 7E 05 89 99 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E F4 03 04 00 17 4C 45 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 DF 04 6E 04 04 00 DA 00 00 00 69 04 A5 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 DF 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 86 12 04 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 36 54 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 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 10 04 04 00 49 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 68 49 04 99 95 C3 82 F2 15 68 2E C1 9D 74 [23:58:28]CheckFolder [23:58:28]dirname=/storage/ofd_packets [23:58:28]CheckFolder done [23:58:28]ProducePacketName [23:58:28]name=ofd_packets/00067401 [23:58:28]NVStorageSaveData ofd_packets/00067401 [23:58:28]File name is /storage/ofd_packets/00067401 [23:58:28]Write 1444 bytes [23:58:28]NVStorageSaveData done [23:58:28]OFDSenderStorePacket done [23:58:28]KKMCreateOFDPacket done [23:58:28]NVStorageSaveData kkm_last_timestamp [23:58:28]File name is /storage/kkm_last_timestamp [23:58:28]Write 4 bytes [23:58:28]NVStorageSaveData done [23:58:28]ExternCall_PrintAddStr [23:58:28]wPrintStart [23:58:28]Write to MH i2c: 01 00 00 E4 37 1B [23:58:28]OFD Sender: Processing packet 67401 [packets to send 35, broken 34] [23:58:28]ProducePacketName [23:58:28]name=ofd_packets/00067401 [23:58:28]OFD Sender: To server: pG, [23:58:28]CommunicateWithHost lk.salyk.kg:30040 [23:58:28]ConnectInit lk.salyk.kg [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 07 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [23:58:28]RasterBufferAndPrint [23:58:28]line Отчет о закрытии смены [23:58:28]line ФФД: 1.0 [23:58:28]line ИНН: 02508201610067 [23:58:28]line Кассир: Арстанбеков Н. [23:58:28]line 15.05.2024 23:58 [23:58:28]line Смена: 356 [23:58:28]line РНМ: 0000000000091845 [23:58:28]line ЗНМ: 0300000119 [23:58:28]line СНО: Общий режим [23:58:28]line Чеков за смену: 218 [23:58:28]line ФД за смену: 220 [23:58:28]line Всего чеков: 218 [23:58:28]line ИТОГИ ПРИХОД [23:58:28]line Чеков: 215 [23:58:28]line Общий итог: 301562.16 [23:58:28]line Итого наличными: 122731.00 [23:58:28]line Итого безнал.: 178831.16 [23:58:28]line НДС 0% : 0.00 [23:58:28]line НДС 12% : 32028.19 [23:58:28]line НСП 0% : 0.00 [23:58:28]line НСП 1,50% : 0.00 [23:58:28]line НСП 0,50% : 0.00 [23:58:28]line НСП 5% : 0.00 [23:58:28]line НСП 3% : 0.00 [23:58:28]line НСП 2% : 0.00 [23:58:28]line НСП 1% : 2668.86 [23:58:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:58:28]line Чеков: 3 [23:58:28]line Общий итог: 8200.00 [23:58:28]line Итого наличными: 8200.00 [23:58:28]line Итого безнал.: 0.00 [23:58:28]line НДС 0% : 0.00 [23:58:28]line НДС 12% : 870.94 [23:58:28]line НСП 0% : 0.00 [23:58:28]line НСП 1,50% : 0.00 [23:58:28]line НСП 0,50% : 0.00 [23:58:28]line НСП 5% : 0.00 [23:58:28]line НСП 3% : 0.00 [23:58:28]line НСП 2% : 0.00 [23:58:28]line НСП 1% : 72.57 [23:58:28]line ИТОГИ РАСХОД [23:58:28]line Чеков: 0 [23:58:28]line Общий итог: 0.00 [23:58:28]line Итого наличными: 0.00 [23:58:28]line Итого безнал.: 0.00 [23:58:28]line НДС 0% : 0.00 [23:58:28]line НДС 12% : 0.00 [23:58:28]line НСП 0% : 0.00 [23:58:28]line НСП 1,50% : 0.00 [23:58:28]line НСП 0,50% : 0.00 [23:58:28]line НСП 5% : 0.00 [23:58:28]line НСП 3% : 0.00 [23:58:28]line НСП 2% : 0.00 [23:58:28]line НСП 1% : 0.00 [23:58:28]line ИТОГИ ВОЗВРАТ РАСХОДА [23:58:28]line Чеков: 0 [23:58:28]line Общий итог: 0.00 [23:58:28]line Итого наличными: 0.00 [23:58:28]line Итого безнал.: 0.00 [23:58:28]line НДС 0% : 0.00 [23:58:28]line НДС 12% : 0.00 [23:58:28]line НСП 0% : 0.00 [23:58:28]line НСП 1,50% : 0.00 [23:58:28]line НСП 0,50% : 0.00 [23:58:28]line НСП 5% : 0.00 [23:58:28]line НСП 3% : 0.00 [23:58:28]line НСП 2% : 0.00 [23:58:28]line НСП 1% : 0.00 [23:58:28]line Сумма внесений: 0.00 [23:58:28]line Сумма выплат: 0.00 [23:58:28]line Нал. в кассе: 114531.00 [23:58:28]line НС Приход: 133355188.06 [23:58:28]line НС Возвр.Прихода: 37032260.00 [23:58:28]line НС Расход: 0.00 [23:58:28]line НС Возвр.Расхода: 0.00 [23:58:28]line ФД: 67401 [23:58:28]line ФМ: 0000000000871829 [23:58:28]line ФПД: 114662819075523 [23:58:28]Connected sock=10 [23:58:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 written 0, free lines is 4095 [23:58:28]30 30 30 30 30 30 30 38 37 31 38 32 39 86 05 00 00 D8 73 7E 05 89 99 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 90 D1 80 D1 81 D1 82 D0 B0 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E F4 03 04 00 17 4C 45 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 AA 04 DF 04 6E 04 04 00 DA 00 00 00 69 04 A5 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 03 DF 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 86 12 04 6A 04 A0 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 36 54 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 Write to MH i2c: 00 01 00 00 79 00 04 35 8D 38 00 6D 6F [23:58:29]04 04 00 00 00 Write i2c OK [23:58:29]00 MH_I2C_Read... [23:58:29]00 B1 04 00 00 70 Read from MH i2c: 04 01 00 [23:58:29]00 MH_I2C_Read... [23:58:29]72 04 00 00 00 04 75 00 EE 03 09 00 Read from MH i2c: F2 01 03 07 01 00 00 [23:58:29]00 MH_I2C_Read... [23:58:29]F3 Read from MH i2c: 03 01 00 07 00 00 EE 35 03 38 09 00 00 00 F2 00 03 00 01 00 00 5E 01 0A F3 03 00 DC 00 [23:58:29]EF RasterBufferAndPrint [23:58:29]03 line [23:58:29]09 00 F6 03 01 00 00 F7 03 00 line [23:58:29]00 EF 03 09 00 F6 03 01 00 line [23:58:29]01 line [23:58:29]F7 line [23:58:29]03 00 00 EF 03 09 00 F6 written 0, free lines is 2879 [23:58:29]03 01 00 02 F7 03 00 00 EF 03 09 00 MH_Cut [23:58:29]F6 Write to MH i2c: 03 D1 01 01 00 00 03 3C F7 38 03 01 00 46 00 [23:58:29]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write i2c OK [23:58:29]F7 MH_I2C_Read... [23:58:29]03 Read from MH i2c: 00 D1 00 [23:58:29]EF MH_I2C_Read... [23:58:29]03 Read from MH i2c: 09 D1 00 01 F6 00 03 [23:58:29]01 MH_I2C_Read... [23:58:30]00 Read from MH i2c: 02 D1 F7 03 00 00 EF 03 09 00 F6 03 01 01 00 00 03 3C F7 38 03 00 00 00 EF 03 09 00 F6 03 01 00 04 45 F7 [23:58:30]03 Write to MH i2c: 00 01 00 00 00 3D 38 75 [23:58:30]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:58:30]MH_I2C_Read... [23:58:30]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 10 04 04 00 49 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 68 49 04 99 95 C3 82 F2 15 68 2E C1 9D 74 [23:58:30]*** Cut start [23:58:30]*** Purtial cut [23:58:30]*** CUTSNS_PIN = 0 [23:58: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 F1 00 47 00 55 EF 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 49 07 01 00 F4 03 04 00 03 F4 44 66 B6 04 01 00 00 5A 88 DD 85 B7 3D A4 92 [23:58:30]CommunicateWithHost err = 0 [23:58:30]CheckOFDResponse [23:58:30]1017 (14) - 77093643461234 [23:58:30]1041 (16) - 0000000000871829 [23:58:30]1040 (4) - 67401 [23:58:30]1012 (4) - 15.05.2024 17:42 [23:58:30]1206 (1) - 0 [23:58:31]OFD Sender: Remove packet 67401 [23:58:31]ProducePacketName [23:58:31]name=ofd_packets/00067401 [23:58:31]NVStorageDeleteData [23:58:31]*** Stage 1: CUTSNS_PIN = 1 [23:58:31]OFD Sender: No OFD packet to send [23:58:32]Read from MH i2c: 01 [23:58:32]MH_I2C_Read... [23:58:32]*** Stop cut motor [23:58:32]*** Cut end [23:58:32]Read from MH i2c: 01 07 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: 01 07 00 3D 38 00 00 00 00 00 FF 0F 8A [23:58:32]process_action close_shift done [23:58:32]requested_data is exist [23:58:32]produce_requested_data [23:58:32]requested_item fd.num is exist - process it [23:58:32]SAM_PROTO_GetFieldsCounters [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 13 00 00 [23:58:32]Write to MH i2c: E2 08 00 3E 38 80 13 00 00 00 00 00 00 F2 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 62 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 62 00 3E 38 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 49 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [23:58: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 49 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_GetFieldsCounters done [23:58:33]requested_item shift.num is exist - process it [23:58:33]requested_item shift.opened is exist - process it [23:58:33]req_shift_opened [23:58:33]FM_GetShiftState [23:58:33]SAM_PROTO_GetShiftState [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 13 01 00 [23:58:33]Write to MH i2c: E2 08 00 3F 38 80 13 01 00 00 00 00 00 F4 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 3F 38 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FF [23:58:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_GetShiftState done [23:58:33]FM_GetShiftState done [23:58:33]req_shift_opened done [23:58:33]requested_item shift.open_date is exist - process it [23:58:33]req_shift_open_date [23:58:33]FM_GetShiftState [23:58:33]SAM_PROTO_GetShiftState [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 13 01 00 [23:58:33]Write to MH i2c: E2 08 00 40 38 80 13 01 00 00 00 00 00 F5 [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 40 38 00 09 00 00 00 00 00 00 00 00 00 00 90 00 00 [23:58:33]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_GetShiftState done [23:58:33]FM_GetShiftState done [23:58:33]req_shift_open_date done [23:58:33]produce_requested_data done [23:58:33]produce_requested_data return {"fd.num":67401,"shift.num":356,"shift.opened":0,"shift.open_date":0} [23:58:33]process_action_free close_shift [23:58:33]json_value_free [23:58:33]json_value_free done [23:58:33]process_json_proto returns [23:58:33]Send response to host [23:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67401,"shift.num":356,"shift.opened":0,"shift.open_date":0}}} [23:58:33]free response buf [23:58:33]execute_script done [23:58:33]execute_script returns [23:58:33]free content buf [23:58:33]Sock 9.Close socket [23:58:33]Sock 9.Thread stoped [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:49]accept exits with 7 [00:21:49]New connection [00:21:49]New thread 3067030884 created [00:21:49]Thread 3067174244 joined [00:21:49]Waiting for new connection... [00:21:49] Sock 7.Parse request [00:21:49]Sock 7.Check first char [00:21:49]Sock 7.First char is OK [00:21:49]request: POST /json_proto HTTP/1.0 [00:21:49]Method: POST [00:21:49]URL: /json_proto [00:21:49]Method is POST - this is cgi request [00:21:49]url: /json_proto [00:21:49]query_string will be loaded in cgi processing [00:21:49]execute_cgi json_proto POST (null) [00:21:49]execute_cgi path=json_proto method=POST [00:21:49]POST find Content-Length [00:21:49]Host: 172.17.41.195:8080 [00:21:49]Content-Length: 215 [00:21:49]Content-Type: application/json [00:21:49] [00:21:49]POST finish read [00:21:49]Found Content-Length = 215 [00:21:49]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" ] } } [00:21:49]execute_script... [00:21:49]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" ] } } [00:21:49]POST & json_proto [00:21:49]process_json_proto [00:21:49]json parsed OK: [00:21:49]protocol is kg_v1.0 [00:21:49]action value=get_value [00:21:49]process_action get_value [00:21:49]cmd_get_value [00:21:49]process_action get_value done [00:21:49]requested_data is exist [00:21:49]produce_requested_data [00:21:49]requested_item kkm.sn is exist - process it [00:21:49]requested_item kkm.ver is exist - process it [00:21:49]requested_item fm.sn is exist - process it [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 11 00 00 [00:21:49]Write to MH i2c: E2 08 00 41 38 80 11 00 00 00 00 00 00 F3 [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 17 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 17 00 41 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [00:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:49]wFMCommunicate OK [00:21:49]requested_item fd.num is exist - process it [00:21:49]SAM_PROTO_GetFieldsCounters [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 13 00 00 [00:21:49]Write to MH i2c: E2 08 00 42 38 80 13 00 00 00 00 00 00 F6 [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 62 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 62 00 42 38 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 49 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [00:21: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 49 07 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetFieldsCounters done [00:21:49]requested_item shift.num is exist - process it [00:21:49]requested_item shift.opened is exist - process it [00:21:49]req_shift_opened [00:21:49]FM_GetShiftState [00:21:49]SAM_PROTO_GetShiftState [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 13 01 00 [00:21:49]Write to MH i2c: E2 08 00 43 38 80 13 01 00 00 00 00 00 F8 [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 43 38 00 09 00 00 00 00 00 00 00 00 00 00 90 00 03 [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_opened done [00:21:49]requested_item shift.open_date is exist - process it [00:21:49]req_shift_open_date [00:21:49]FM_GetShiftState [00:21:49]SAM_PROTO_GetShiftState [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 13 01 00 [00:21:49]Write to MH i2c: E2 08 00 44 38 80 13 01 00 00 00 00 00 F9 [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 44 38 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_open_date done [00:21:49]produce_requested_data done [00:21:49]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67401,"shift.num":356,"shift.opened":0,"shift.open_date":0} [00:21:49]process_action_free get_value [00:21:49]json_value_free [00:21:49]json_value_free done [00:21:49]process_json_proto returns [00:21:49]Send response to host [00:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67401,"shift.num":356,"shift.opened":0,"shift.open_date":0}}} [00:21:49]free response buf [00:21:49]execute_script done [00:21:49]execute_script returns [00:21:49]free content buf [00:21:49]Sock 7.Close socket [00:21:49]Sock 7.Thread stoped [00:21:49]accept exits with 9 [00:21:49]New connection [00:21:49]New thread 3067174244 created [00:21:49]Thread 3067030884 joined [00:21:49]Waiting for new connection... [00:21:49] Sock 9.Parse request [00:21:49]Sock 9.Check first char [00:21:49]Sock 9.First char is OK [00:21:49]request: POST /json_proto HTTP/1.0 [00:21:49]Method: POST [00:21:49]URL: /json_proto [00:21:49]Method is POST - this is cgi request [00:21:49]url: /json_proto [00:21:49]query_string will be loaded in cgi processing [00:21:49]execute_cgi json_proto POST (null) [00:21:49]execute_cgi path=json_proto method=POST [00:21:49]POST find Content-Length [00:21:49]Host: 172.17.41.195:8080 [00:21:49]Content-Length: 331 [00:21:49]Content-Type: application/json [00:21:49] [00:21:49]POST finish read [00:21:49]Found Content-Length = 331 [00:21:49]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" ] } } [00:21:49]execute_script... [00:21:50]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" ] } } [00:21:50]POST & json_proto [00:21:50]process_json_proto [00:21:50]json parsed OK: [00:21:50]protocol is kg_v1.0 [00:21:50]action value=get_value [00:21:50]process_action get_value [00:21:50]cmd_get_value [00:21:50]process_action get_value done [00:21:50]requested_data is exist [00:21:50]produce_requested_data [00:21:50]requested_item fm.sale.total is exist - process it [00:21:50]SAM_PROTO_GetFMData [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 13 03 00 [00:21:50]Write to MH i2c: E2 08 00 45 38 80 13 03 00 00 00 00 00 FC [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 45 38 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 14 [00:21:50]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [00:21:50]wFMCommunicate OK [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 17 00 00 [00:21:50]Write to MH i2c: E2 08 00 46 38 80 17 00 00 00 00 00 00 FE [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:50]Read from MH i2c: E2 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: E2 FD 00 46 38 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 22 [00:21:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [00:21:50]wFMCommunicate OK [00:21:50]wFMCommunicate request_size=4 [00:21:50]MH_SAM_APDU [00:21:50]CAPDU: 80 17 00 00 [00:21:50]Write to MH i2c: E2 08 00 47 38 80 17 00 00 00 00 00 00 FF [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 47 38 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 26 [00:21:51]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 [00:21:51]wFMCommunicate OK [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 17 00 00 [00:21:51]Write to MH i2c: E2 08 00 48 38 80 17 00 00 00 00 00 00 00 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 FD 00 48 38 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [00:21:51]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 [00:21:51]wFMCommunicate OK [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 17 00 00 [00:21:51]Write to MH i2c: E2 08 00 49 38 80 17 00 00 00 00 00 00 01 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 E3 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: E2 E3 00 49 38 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:21:51]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 [00:21:51]wFMCommunicate OK [00:21:51]SAM_PROTO_GetFMData done [00:21:51]requested_item fm.sale_refund.total is exist - process it [00:21:51]requested_item fm.buy.total is exist - process it [00:21:51]requested_item shift.sale.total is exist - process it [00:21:51]SAM_PROTO_GetShiftData [00:21:51]wFMCommunicate request_size=4 [00:21:51]MH_SAM_APDU [00:21:51]CAPDU: 80 13 02 00 [00:21:51]Write to MH i2c: E2 08 00 4A 38 80 13 02 00 00 00 00 00 00 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:51]Read from MH i2c: E2 [00:21:51]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 4A 38 00 BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B1 [00:21:52]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DA 00 00 00 69 04 9E 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 B8 25 CC 01 70 04 03 00 CC 45 BB 72 04 04 00 EC DF 10 01 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 03 DF 30 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 86 12 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 00 6F 04 04 00 03 00 00 00 B1 04 03 00 20 83 0C 70 04 03 00 20 83 0C 72 04 00 00 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 36 54 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:21:52]wFMCommunicate OK [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 17 00 00 [00:21:52]Write to MH i2c: E2 08 00 4B 38 80 17 00 00 00 00 00 00 03 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:52]Read from MH i2c: E2 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 4B 38 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:21:52]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 59 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:52]wFMCommunicate OK [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 17 00 00 [00:21:52]Write to MH i2c: E2 08 00 4C 38 80 17 00 00 00 00 00 00 04 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:52]Read from MH i2c: E2 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 4C 38 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [00:21:52]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:52]wFMCommunicate OK [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 17 00 00 [00:21:52]Write to MH i2c: E2 08 00 4D 38 80 17 00 00 00 00 00 00 05 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:52]OFD Sender: No OFD packet to send [00:21:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:52]Read from MH i2c: E2 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 [00:21:52]MH_I2C_Read... [00:21:52]Read from MH i2c: E2 FD 00 4D 38 00 03 00 00 EF 03 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 90 00 86 [00:21:52]RAPDU: 03 00 00 EF 03 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 90 00 [00:21:52]wFMCommunicate OK [00:21:52]wFMCommunicate request_size=4 [00:21:52]MH_SAM_APDU [00:21:52]CAPDU: 80 17 00 00 [00:21:52]Write to MH i2c: E2 08 00 4E 38 80 17 00 00 00 00 00 00 06 [00:21:52]Write i2c OK [00:21:52]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 D9 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 D9 00 4E 38 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 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 E5 [00:21:53]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 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 [00:21:53]wFMCommunicate OK [00:21:53]SAM_PROTO_GetShiftData done [00:21:53]requested_item shift.sale.total_cash is exist - process it [00:21:53]requested_item shift.sale_refund.total is exist - process it [00:21:53]requested_item shift.sale_refund.total_cash is exist - process it [00:21:53]requested_item shift.buy.total is exist - process it [00:21:53]requested_item shift.buy.total_cash is exist - process it [00:21:53]produce_requested_data done [00:21:53]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:53]process_action_free get_value [00:21:53]json_value_free [00:21:53]json_value_free done [00:21:53]process_json_proto returns [00:21:53]Send response to host [00:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":301562.16,"shift.sale.total_cash":122731.00,"shift.sale_refund.total":8200.00,"shift.sale_refund.total_cash":8200.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:53]free response buf [00:21:53]execute_script done [00:21:53]execute_script returns [00:21:53]free content buf [00:21:53]Sock 9.Close socket [00:21:53]Sock 9.Thread stoped [00:21:53]accept exits with 7 [00:21:53]New connection [00:21:53]New thread 3067030884 created [00:21:53]Thread 3067174244 joined [00:21:53]Waiting for new connection... [00:21:53] Sock 7.Parse request [00:21:53]Sock 7.Check first char [00:21:53]Sock 7.First char is OK [00:21:53]request: POST /json_proto HTTP/1.0 [00:21:53]Method: POST [00:21:53]URL: /json_proto [00:21:53]Method is POST - this is cgi request [00:21:53]url: /json_proto [00:21:53]query_string will be loaded in cgi processing [00:21:53]execute_cgi json_proto POST (null) [00:21:53]execute_cgi path=json_proto method=POST [00:21:53]POST find Content-Length [00:21:53]Host: 172.17.41.195:8080 [00:21:53]Content-Length: 276 [00:21:53]Content-Type: application/json [00:21:53] [00:21:53]POST finish read [00:21:53]Found Content-Length = 276 [00:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:53]execute_script... [00:21:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:53]POST & json_proto [00:21:53]process_json_proto [00:21:53]json parsed OK: [00:21:53]protocol is kg_v1.0 [00:21:53]action value=open_shift [00:21:53]process_action open_shift [00:21:53]cmd_open_shift [00:21:53]MH_GetDate [00:21:53]Write to MH i2c: F0 00 00 4F 38 76 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 09 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 09 00 4F 38 00 A4 51 45 66 FC 21 6F 64 0F [00:21:53]GetLastDocTimeStamp 1715817495 [00:21:53]current date 1715818916 [00:21:53]FM_GetShiftState [00:21:53]SAM_PROTO_GetShiftState [00:21:53]wFMCommunicate request_size=4 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 13 01 00 [00:21:53]Write to MH i2c: E2 08 00 50 38 80 13 01 00 00 00 00 00 05 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 0E 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 0E 00 50 38 00 09 00 00 00 00 00 00 00 00 00 00 90 00 10 [00:21:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:53]wFMCommunicate OK [00:21:53]SAM_PROTO_GetShiftState done [00:21:53]FM_GetShiftState done [00:21:53]KKMCreateOpenShiftDocument [00:21:53]Load OK [00:21:53]Malloc new data [00:21:53]MH_GetDate [00:21:53]Write to MH i2c: F0 00 00 51 38 78 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 09 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: F0 09 00 51 38 00 A4 51 45 66 FC 21 6F 64 11 [00:21:53]Malloc new data [00:21:53]KKMCreateOpenShiftDocument OK [00:21:53]KKMSetOpenShiftData OK [00:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=189 [00:21:53]tlvbuf is 00C03840 [00:21:53]KKMLoadAndSignOpenShiftData [00:21:53]SAM_PROTO_ProcessDocument [00:21:53]wFMCommunicate request_size=9 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 01 00 04 02 00 BD 00 [00:21:53]Write to MH i2c: E2 0C 00 52 38 80 15 01 00 04 00 02 00 BD 00 00 00 D0 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=23 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:21:53]Write to MH i2c: E2 1A 00 53 38 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 00 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=35 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E [00:21:53]Write to MH i2c: E2 26 00 54 38 80 15 02 00 1E 00 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E 00 00 79 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=73 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 44 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 [00:21:53]Write to MH i2c: E2 4C 00 55 38 80 15 02 00 44 00 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 00 00 31 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 55 38 00 90 00 01 [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=50 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:21:53]Write to MH i2c: E2 35 00 56 38 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 87 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 56 38 00 90 00 02 [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=13 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 08 F4 03 04 00 A4 51 45 66 [00:21:53]Write to MH i2c: E2 10 00 57 38 80 15 02 00 08 00 F4 03 04 00 A4 51 45 66 00 00 BA [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:53]Read from MH i2c: E2 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 [00:21:53]MH_I2C_Read... [00:21:53]Read from MH i2c: E2 03 00 57 38 00 90 00 03 [00:21:53]RAPDU: 90 00 [00:21:53]wFMCommunicate OK [00:21:53]wFMCommunicate request_size=25 [00:21:53]MH_SAM_APDU [00:21:53]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 [00:21:53]Write to MH i2c: E2 1C 00 58 38 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 00 00 74 [00:21:53]Write i2c OK [00:21:53]MH_I2C_Read... [00:21:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 03 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 03 00 58 38 00 90 00 04 [00:21:54]RAPDU: 90 00 [00:21:54]wFMCommunicate OK [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 15 03 00 [00:21:54]Write to MH i2c: E2 08 00 59 38 80 15 03 00 00 00 00 00 12 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 38 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 38 00 59 38 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4A 07 01 00 0E 04 04 00 65 01 00 00 35 04 06 00 3E 83 7C 22 A4 DA 90 00 76 [00:21:54]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4A 07 01 00 0E 04 04 00 65 01 00 00 35 04 06 00 3E 83 7C 22 A4 DA 90 00 [00:21:54]wFMCommunicate OK [00:21:54]SAM_PROTO_ProcessDocument answer len = 51 [00:21:54]SAM_PROTO_ProcessDocument done [00:21:54]SetTLVBufToDocument [00:21:54]Processing tag 1209 (04B9) [00:21:54]Malloc new data [00:21:54]Processing tag 1041 (0411) [00:21:54]Processing tag 1040 (0410) [00:21:54]Malloc new data [00:21:54]Processing tag 1038 (040E) [00:21:54]Malloc new data [00:21:54]Processing tag 1077 (0435) [00:21:54]Malloc new data [00:21:54]SetTLVBufToDocument err=0 [00:21:54]KKMLoadAndSignOpenShiftData store KKM data [00:21:54]KKMLoadAndSignOpenShiftData err=0 [00:21:54]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Пайзулдаева А. Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 Место: АЗС № 91 "Партнер Нефть" 16.05.2024 00:21 Смена: 357 РНМ: 0000000000091845 ЗНМ: 0300000119 ФД: 67402 ФМ: 0000000000871829 ФПД: 68734444283098 [00:21:54]StoreToDocumentArchive [00:21:54]shift 357 fd 67402 [00:21:54]Create dir for shift 0357 [00:21:54]save to /storage/0357/doc_00067402 [00:21:54]save last doc name /storage/0357/doc_00067402 to /storage/kkm_last_doc_name [00:21:54]save OK [00:21:54]Clear old archive folders... [00:21:54]Remove dir /storage/0356 [00:21:54]opendir ok [00:21:54]file . [00:21:54]file .. [00:21:54]file doc_00067182 [00:21:54]remove file /storage/0356/doc_00067182 [00:21:54]file doc_00067183 [00:21:54]remove file /storage/0356/doc_00067183 [00:21:54]file doc_00067184 [00:21:54]remove file /storage/0356/doc_00067184 [00:21:54]file doc_00067185 [00:21:54]remove file /storage/0356/doc_00067185 [00:21:54]file doc_00067186 [00:21:54]remove file /storage/0356/doc_00067186 [00:21:54]file doc_00067187 [00:21:54]remove file /storage/0356/doc_00067187 [00:21:54]file doc_00067188 [00:21:54]remove file /storage/0356/doc_00067188 [00:21:54]file doc_00067189 [00:21:54]remove file /storage/0356/doc_00067189 [00:21:54]file doc_00067190 [00:21:54]remove file /storage/0356/doc_00067190 [00:21:54]file doc_00067191 [00:21:54]remove file /storage/0356/doc_00067191 [00:21:54]file doc_00067192 [00:21:54]remove file /storage/0356/doc_00067192 [00:21:54]file doc_00067193 [00:21:54]remove file /storage/0356/doc_00067193 [00:21:54]file doc_00067194 [00:21:54]remove file /storage/0356/doc_00067194 [00:21:54]file doc_00067195 [00:21:54]remove file /storage/0356/doc_00067195 [00:21:54]file doc_00067196 [00:21:54]remove file /storage/0356/doc_00067196 [00:21:54]file doc_00067197 [00:21:54]remove file /storage/0356/doc_00067197 [00:21:54]file doc_00067198 [00:21:54]remove file /storage/0356/doc_00067198 [00:21:54]file doc_00067199 [00:21:54]remove file /storage/0356/doc_00067199 [00:21:54]file doc_00067200 [00:21:54]remove file /storage/0356/doc_00067200 [00:21:54]file doc_00067201 [00:21:54]remove file /storage/0356/doc_00067201 [00:21:54]file doc_00067202 [00:21:54]remove file /storage/0356/doc_00067202 [00:21:54]file doc_00067203 [00:21:54]remove file /storage/0356/doc_00067203 [00:21:54]file doc_00067204 [00:21:54]remove file /storage/0356/doc_00067204 [00:21:54]file doc_00067205 [00:21:54]remove file /storage/0356/doc_00067205 [00:21:54]file doc_00067206 [00:21:54]remove file /storage/0356/doc_00067206 [00:21:54]file doc_00067207 [00:21:54]remove file /storage/0356/doc_00067207 [00:21:54]file doc_00067208 [00:21:54]remove file /storage/0356/doc_00067208 [00:21:54]file doc_00067209 [00:21:54]remove file /storage/0356/doc_00067209 [00:21:54]file doc_00067210 [00:21:54]remove file /storage/0356/doc_00067210 [00:21:54]file doc_00067211 [00:21:54]remove file /storage/0356/doc_00067211 [00:21:54]file doc_00067212 [00:21:54]remove file /storage/0356/doc_00067212 [00:21:54]file doc_00067213 [00:21:54]remove file /storage/0356/doc_00067213 [00:21:54]file doc_00067214 [00:21:54]remove file /storage/0356/doc_00067214 [00:21:54]file doc_00067215 [00:21:54]remove file /storage/0356/doc_00067215 [00:21:54]file doc_00067216 [00:21:54]remove file /storage/0356/doc_00067216 [00:21:54]file doc_00067217 [00:21:54]remove file /storage/0356/doc_00067217 [00:21:54]file doc_00067218 [00:21:54]remove file /storage/0356/doc_00067218 [00:21:54]file doc_00067219 [00:21:54]remove file /storage/0356/doc_00067219 [00:21:54]file doc_00067220 [00:21:54]remove file /storage/0356/doc_00067220 [00:21:54]file doc_00067221 [00:21:54]remove file /storage/0356/doc_00067221 [00:21:54]file doc_00067222 [00:21:54]remove file /storage/0356/doc_00067222 [00:21:54]file doc_00067223 [00:21:54]remove file /storage/0356/doc_00067223 [00:21:54]file doc_00067224 [00:21:54]remove file /storage/0356/doc_00067224 [00:21:54]file doc_00067225 [00:21:54]remove file /storage/0356/doc_00067225 [00:21:54]file doc_00067226 [00:21:54]remove file /storage/0356/doc_00067226 [00:21:54]file doc_00067227 [00:21:54]remove file /storage/0356/doc_00067227 [00:21:54]file doc_00067228 [00:21:54]remove file /storage/0356/doc_00067228 [00:21:54]file doc_00067229 [00:21:54]remove file /storage/0356/doc_00067229 [00:21:54]file doc_00067230 [00:21:54]remove file /storage/0356/doc_00067230 [00:21:54]file doc_00067231 [00:21:54]remove file /storage/0356/doc_00067231 [00:21:54]file doc_00067232 [00:21:54]remove file /storage/0356/doc_00067232 [00:21:54]file doc_00067233 [00:21:54]remove file /storage/0356/doc_00067233 [00:21:54]file doc_00067234 [00:21:54]remove file /storage/0356/doc_00067234 [00:21:54]file doc_00067235 [00:21:54]remove file /storage/0356/doc_00067235 [00:21:54]file doc_00067236 [00:21:54]remove file /storage/0356/doc_00067236 [00:21:54]file doc_00067237 [00:21:54]remove file /storage/0356/doc_00067237 [00:21:54]file doc_00067238 [00:21:54]remove file /storage/0356/doc_00067238 [00:21:54]file doc_00067239 [00:21:54]remove file /storage/0356/doc_00067239 [00:21:54]file doc_00067240 [00:21:54]remove file /storage/0356/doc_00067240 [00:21:54]file doc_00067241 [00:21:54]remove file /storage/0356/doc_00067241 [00:21:54]file doc_00067242 [00:21:54]remove file /storage/0356/doc_00067242 [00:21:54]file doc_00067243 [00:21:54]remove file /storage/0356/doc_00067243 [00:21:54]file doc_00067244 [00:21:54]remove file /storage/0356/doc_00067244 [00:21:54]file doc_00067245 [00:21:54]remove file /storage/0356/doc_00067245 [00:21:54]file doc_00067246 [00:21:54]remove file /storage/0356/doc_00067246 [00:21:54]file doc_00067247 [00:21:54]remove file /storage/0356/doc_00067247 [00:21:54]file doc_00067248 [00:21:54]remove file /storage/0356/doc_00067248 [00:21:54]file doc_00067249 [00:21:54]remove file /storage/0356/doc_00067249 [00:21:54]file doc_00067250 [00:21:54]remove file /storage/0356/doc_00067250 [00:21:54]file doc_00067251 [00:21:54]remove file /storage/0356/doc_00067251 [00:21:54]file doc_00067252 [00:21:54]remove file /storage/0356/doc_00067252 [00:21:54]file doc_00067253 [00:21:54]remove file /storage/0356/doc_00067253 [00:21:54]file doc_00067254 [00:21:54]remove file /storage/0356/doc_00067254 [00:21:54]file doc_00067255 [00:21:54]remove file /storage/0356/doc_00067255 [00:21:54]file doc_00067256 [00:21:54]remove file /storage/0356/doc_00067256 [00:21:54]file doc_00067257 [00:21:54]remove file /storage/0356/doc_00067257 [00:21:54]file doc_00067258 [00:21:54]remove file /storage/0356/doc_00067258 [00:21:54]file doc_00067259 [00:21:54]remove file /storage/0356/doc_00067259 [00:21:54]file doc_00067260 [00:21:54]remove file /storage/0356/doc_00067260 [00:21:54]file doc_00067261 [00:21:54]remove file /storage/0356/doc_00067261 [00:21:54]file doc_00067262 [00:21:54]remove file /storage/0356/doc_00067262 [00:21:54]file doc_00067263 [00:21:54]remove file /storage/0356/doc_00067263 [00:21:54]file doc_00067264 [00:21:54]remove file /storage/0356/doc_00067264 [00:21:54]file doc_00067265 [00:21:54]remove file /storage/0356/doc_00067265 [00:21:54]file doc_00067266 [00:21:54]remove file /storage/0356/doc_00067266 [00:21:54]file doc_00067267 [00:21:54]remove file /storage/0356/doc_00067267 [00:21:54]file doc_00067268 [00:21:54]remove file /storage/0356/doc_00067268 [00:21:54]file doc_00067269 [00:21:54]remove file /storage/0356/doc_00067269 [00:21:54]file doc_00067270 [00:21:54]remove file /storage/0356/doc_00067270 [00:21:54]file doc_00067271 [00:21:54]remove file /storage/0356/doc_00067271 [00:21:54]file doc_00067272 [00:21:54]remove file /storage/0356/doc_00067272 [00:21:54]file doc_00067273 [00:21:54]remove file /storage/0356/doc_00067273 [00:21:54]file doc_00067274 [00:21:54]remove file /storage/0356/doc_00067274 [00:21:54]file doc_00067275 [00:21:54]remove file /storage/0356/doc_00067275 [00:21:54]file doc_00067276 [00:21:54]remove file /storage/0356/doc_00067276 [00:21:54]file doc_00067277 [00:21:54]remove file /storage/0356/doc_00067277 [00:21:54]file doc_00067278 [00:21:54]remove file /storage/0356/doc_00067278 [00:21:54]file doc_00067279 [00:21:54]remove file /storage/0356/doc_00067279 [00:21:54]file doc_00067280 [00:21:54]remove file /storage/0356/doc_00067280 [00:21:54]file doc_00067281 [00:21:54]remove file /storage/0356/doc_00067281 [00:21:54]file doc_00067282 [00:21:54]remove file /storage/0356/doc_00067282 [00:21:54]file doc_00067283 [00:21:54]remove file /storage/0356/doc_00067283 [00:21:54]file doc_00067284 [00:21:54]remove file /storage/0356/doc_00067284 [00:21:54]file doc_00067285 [00:21:54]remove file /storage/0356/doc_00067285 [00:21:54]file doc_00067286 [00:21:54]remove file /storage/0356/doc_00067286 [00:21:54]file doc_00067287 [00:21:54]remove file /storage/0356/doc_00067287 [00:21:54]file doc_00067288 [00:21:54]remove file /storage/0356/doc_00067288 [00:21:54]file doc_00067289 [00:21:54]remove file /storage/0356/doc_00067289 [00:21:54]file doc_00067290 [00:21:54]remove file /storage/0356/doc_00067290 [00:21:54]file doc_00067291 [00:21:54]remove file /storage/0356/doc_00067291 [00:21:54]file doc_00067292 [00:21:54]remove file /storage/0356/doc_00067292 [00:21:54]file doc_00067293 [00:21:54]remove file /storage/0356/doc_00067293 [00:21:54]file doc_00067294 [00:21:54]remove file /storage/0356/doc_00067294 [00:21:54]file doc_00067295 [00:21:54]remove file /storage/0356/doc_00067295 [00:21:54]file doc_00067296 [00:21:54]remove file /storage/0356/doc_00067296 [00:21:54]file doc_00067297 [00:21:54]remove file /storage/0356/doc_00067297 [00:21:54]file doc_00067298 [00:21:54]remove file /storage/0356/doc_00067298 [00:21:54]file doc_00067299 [00:21:54]remove file /storage/0356/doc_00067299 [00:21:54]file doc_00067300 [00:21:54]remove file /storage/0356/doc_00067300 [00:21:54]file doc_00067301 [00:21:54]remove file /storage/0356/doc_00067301 [00:21:54]file doc_00067302 [00:21:54]remove file /storage/0356/doc_00067302 [00:21:54]file doc_00067303 [00:21:54]remove file /storage/0356/doc_00067303 [00:21:54]file doc_00067304 [00:21:54]remove file /storage/0356/doc_00067304 [00:21:54]file doc_00067305 [00:21:54]remove file /storage/0356/doc_00067305 [00:21:54]file doc_00067306 [00:21:55]remove file /storage/0356/doc_00067306 [00:21:55]file doc_00067307 [00:21:55]remove file /storage/0356/doc_00067307 [00:21:55]file doc_00067308 [00:21:55]remove file /storage/0356/doc_00067308 [00:21:55]file doc_00067309 [00:21:55]remove file /storage/0356/doc_00067309 [00:21:55]file doc_00067310 [00:21:55]remove file /storage/0356/doc_00067310 [00:21:55]file doc_00067311 [00:21:55]remove file /storage/0356/doc_00067311 [00:21:55]file doc_00067312 [00:21:55]remove file /storage/0356/doc_00067312 [00:21:55]file doc_00067313 [00:21:55]remove file /storage/0356/doc_00067313 [00:21:55]file doc_00067314 [00:21:55]remove file /storage/0356/doc_00067314 [00:21:55]file doc_00067315 [00:21:55]remove file /storage/0356/doc_00067315 [00:21:55]file doc_00067316 [00:21:55]remove file /storage/0356/doc_00067316 [00:21:55]file doc_00067317 [00:21:55]remove file /storage/0356/doc_00067317 [00:21:55]file doc_00067318 [00:21:55]remove file /storage/0356/doc_00067318 [00:21:55]file doc_00067319 [00:21:55]remove file /storage/0356/doc_00067319 [00:21:55]file doc_00067320 [00:21:55]remove file /storage/0356/doc_00067320 [00:21:55]file doc_00067321 [00:21:55]remove file /storage/0356/doc_00067321 [00:21:55]file doc_00067322 [00:21:55]remove file /storage/0356/doc_00067322 [00:21:55]file doc_00067323 [00:21:55]remove file /storage/0356/doc_00067323 [00:21:55]file doc_00067324 [00:21:55]remove file /storage/0356/doc_00067324 [00:21:55]file doc_00067325 [00:21:55]remove file /storage/0356/doc_00067325 [00:21:55]file doc_00067326 [00:21:55]remove file /storage/0356/doc_00067326 [00:21:55]file doc_00067327 [00:21:55]remove file /storage/0356/doc_00067327 [00:21:55]file doc_00067328 [00:21:55]remove file /storage/0356/doc_00067328 [00:21:55]file doc_00067329 [00:21:55]remove file /storage/0356/doc_00067329 [00:21:55]file doc_00067330 [00:21:55]remove file /storage/0356/doc_00067330 [00:21:55]file doc_00067331 [00:21:55]remove file /storage/0356/doc_00067331 [00:21:55]file doc_00067332 [00:21:55]remove file /storage/0356/doc_00067332 [00:21:55]file doc_00067333 [00:21:55]remove file /storage/0356/doc_00067333 [00:21:55]file doc_00067334 [00:21:55]remove file /storage/0356/doc_00067334 [00:21:55]file doc_00067335 [00:21:55]remove file /storage/0356/doc_00067335 [00:21:55]file doc_00067336 [00:21:55]remove file /storage/0356/doc_00067336 [00:21:55]file doc_00067337 [00:21:55]remove file /storage/0356/doc_00067337 [00:21:55]file doc_00067338 [00:21:55]remove file /storage/0356/doc_00067338 [00:21:55]file doc_00067339 [00:21:55]remove file /storage/0356/doc_00067339 [00:21:55]file doc_00067340 [00:21:55]remove file /storage/0356/doc_00067340 [00:21:55]file doc_00067341 [00:21:55]remove file /storage/0356/doc_00067341 [00:21:55]file doc_00067342 [00:21:55]remove file /storage/0356/doc_00067342 [00:21:55]file doc_00067343 [00:21:55]remove file /storage/0356/doc_00067343 [00:21:55]file doc_00067344 [00:21:55]remove file /storage/0356/doc_00067344 [00:21:55]file doc_00067345 [00:21:55]remove file /storage/0356/doc_00067345 [00:21:55]file doc_00067346 [00:21:55]remove file /storage/0356/doc_00067346 [00:21:55]file doc_00067347 [00:21:55]remove file /storage/0356/doc_00067347 [00:21:55]file doc_00067348 [00:21:55]remove file /storage/0356/doc_00067348 [00:21:55]file doc_00067349 [00:21:55]remove file /storage/0356/doc_00067349 [00:21:55]file doc_00067350 [00:21:55]remove file /storage/0356/doc_00067350 [00:21:55]file doc_00067351 [00:21:55]remove file /storage/0356/doc_00067351 [00:21:55]file doc_00067352 [00:21:55]remove file /storage/0356/doc_00067352 [00:21:55]file doc_00067353 [00:21:55]remove file /storage/0356/doc_00067353 [00:21:55]file doc_00067354 [00:21:55]remove file /storage/0356/doc_00067354 [00:21:55]file doc_00067355 [00:21:55]remove file /storage/0356/doc_00067355 [00:21:55]file doc_00067356 [00:21:55]remove file /storage/0356/doc_00067356 [00:21:55]file doc_00067357 [00:21:55]remove file /storage/0356/doc_00067357 [00:21:55]file doc_00067358 [00:21:55]remove file /storage/0356/doc_00067358 [00:21:55]file doc_00067359 [00:21:55]remove file /storage/0356/doc_00067359 [00:21:55]file doc_00067360 [00:21:55]remove file /storage/0356/doc_00067360 [00:21:55]file doc_00067361 [00:21:55]remove file /storage/0356/doc_00067361 [00:21:55]file doc_00067362 [00:21:55]remove file /storage/0356/doc_00067362 [00:21:55]file doc_00067363 [00:21:55]remove file /storage/0356/doc_00067363 [00:21:55]file doc_00067364 [00:21:55]remove file /storage/0356/doc_00067364 [00:21:55]file doc_00067365 [00:21:55]remove file /storage/0356/doc_00067365 [00:21:55]file doc_00067366 [00:21:55]remove file /storage/0356/doc_00067366 [00:21:55]file doc_00067367 [00:21:55]remove file /storage/0356/doc_00067367 [00:21:55]file doc_00067368 [00:21:55]remove file /storage/0356/doc_00067368 [00:21:55]file doc_00067369 [00:21:55]remove file /storage/0356/doc_00067369 [00:21:55]file doc_00067370 [00:21:55]remove file /storage/0356/doc_00067370 [00:21:55]file doc_00067371 [00:21:55]remove file /storage/0356/doc_00067371 [00:21:55]file doc_00067372 [00:21:55]remove file /storage/0356/doc_00067372 [00:21:55]file doc_00067373 [00:21:55]remove file /storage/0356/doc_00067373 [00:21:55]file doc_00067374 [00:21:55]remove file /storage/0356/doc_00067374 [00:21:55]file doc_00067375 [00:21:55]remove file /storage/0356/doc_00067375 [00:21:55]file doc_00067376 [00:21:55]remove file /storage/0356/doc_00067376 [00:21:55]file doc_00067377 [00:21:55]remove file /storage/0356/doc_00067377 [00:21:55]file doc_00067378 [00:21:55]remove file /storage/0356/doc_00067378 [00:21:55]file doc_00067379 [00:21:55]remove file /storage/0356/doc_00067379 [00:21:55]file doc_00067380 [00:21:55]remove file /storage/0356/doc_00067380 [00:21:55]file doc_00067381 [00:21:55]remove file /storage/0356/doc_00067381 [00:21:55]file doc_00067382 [00:21:55]remove file /storage/0356/doc_00067382 [00:21:55]file doc_00067383 [00:21:55]remove file /storage/0356/doc_00067383 [00:21:55]file doc_00067384 [00:21:55]remove file /storage/0356/doc_00067384 [00:21:55]file doc_00067385 [00:21:55]remove file /storage/0356/doc_00067385 [00:21:55]file doc_00067386 [00:21:55]remove file /storage/0356/doc_00067386 [00:21:55]file doc_00067387 [00:21:55]remove file /storage/0356/doc_00067387 [00:21:55]file doc_00067388 [00:21:55]remove file /storage/0356/doc_00067388 [00:21:55]file doc_00067389 [00:21:55]remove file /storage/0356/doc_00067389 [00:21:55]file doc_00067390 [00:21:55]remove file /storage/0356/doc_00067390 [00:21:55]file doc_00067391 [00:21:55]remove file /storage/0356/doc_00067391 [00:21:55]file doc_00067392 [00:21:55]remove file /storage/0356/doc_00067392 [00:21:55]file doc_00067393 [00:21:55]remove file /storage/0356/doc_00067393 [00:21:55]file doc_00067394 [00:21:55]remove file /storage/0356/doc_00067394 [00:21:55]file doc_00067395 [00:21:55]remove file /storage/0356/doc_00067395 [00:21:55]file doc_00067396 [00:21:55]remove file /storage/0356/doc_00067396 [00:21:55]file doc_00067397 [00:21:55]remove file /storage/0356/doc_00067397 [00:21:55]file doc_00067398 [00:21:55]remove file /storage/0356/doc_00067398 [00:21:55]file doc_00067399 [00:21:55]remove file /storage/0356/doc_00067399 [00:21:55]file doc_00067400 [00:21:55]remove file /storage/0356/doc_00067400 [00:21:55]file doc_00067401 [00:21:55]remove file /storage/0356/doc_00067401 [00:21:55]file doc_1715817475 [00:21:55]remove file /storage/0356/doc_1715817475 [00:21:55]remove dir /storage/0356 [00:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=240 [00:21:55]tlvbuf is 00D239E0 [00:21:55]SAM_PROTO_ClearQueue [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 09 00 00 [00:21:55]Write to MH i2c: E2 08 00 5A 38 80 09 00 00 00 00 00 00 04 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 5A 38 00 90 00 06 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]SAM_PROTO_ClearQueue done [00:21:55]KKMCreateOFDPacket [00:21:55]OFDProtocolAddRootSTLVToBuf [00:21:55]FM_MakeSignedData [00:21:55]FM_MakeSignedData [00:21:55]SAM_PROTO_SignData [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 0D 01 02 [00:21:55]Write to MH i2c: E2 08 00 5B 38 80 0D 01 02 00 00 00 00 0C [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]wFMCommunicate request_size=249 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 0D 02 02 F4 02 00 F0 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 A4 51 45 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4A 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 3E 83 7C 22 A4 DA [00:21:55]Write to MH i2c: E2 FC 00 5C 38 80 0D 02 02 F4 00 02 00 F0 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 A4 51 45 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4A 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 3E 83 7C 22 A4 DA 00 00 85 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 03 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [00:21:56]RAPDU: 90 00 [00:21:56]wFMCommunicate OK [00:21:56]wFMCommunicate request_size=4 [00:21:56]MH_SAM_APDU [00:21:56]CAPDU: 80 0D 03 02 [00:21:56]Write to MH i2c: E2 08 00 5D 38 80 0D 03 02 00 00 00 00 10 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 0B 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 0B 00 5D 38 00 19 0A 5D 1B F9 0B D7 D8 90 00 5F [00:21:56]RAPDU: 19 0A 5D 1B F9 0B D7 D8 90 00 [00:21:56]wFMCommunicate OK [00:21:56]SAM_PROTO_SignData done [00:21:56]FM_MakeSignedData done [00:21:56]CreateOFDProtocolMessage [00:21:56]wFMCommunicate request_size=4 [00:21:56]MH_SAM_APDU [00:21:56]CAPDU: 80 11 00 00 [00:21:56]Write to MH i2c: E2 08 00 5E 38 80 11 00 00 00 00 00 00 10 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 17 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 17 00 5E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [00:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:56]wFMCommunicate OK [00:21:56]CreateOFDProtocolMessage done [00:21:56]OFDSenderStorePacket 67402 [00:21:56]StoreOFDPacket docnum=67402 [00:21: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 04 01 00 00 10 13 FC 00 7C DF 5A 02 01 00 02 00 F0 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 A4 51 45 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4A 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 3E 83 7C 22 A4 DA 19 0A 5D 1B F9 0B D7 D8 [00:21:56]CheckFolder [00:21:56]dirname=/storage/ofd_packets [00:21:56]CheckFolder done [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00067402 [00:21:56]NVStorageSaveData ofd_packets/00067402 [00:21:56]File name is /storage/ofd_packets/00067402 [00:21:56]Write 290 bytes [00:21:56]NVStorageSaveData done [00:21:56]OFDSenderStorePacket done [00:21:56]KKMCreateOFDPacket done [00:21:56]NVStorageSaveData kkm_last_timestamp [00:21:56]File name is /storage/kkm_last_timestamp [00:21:56]Write 4 bytes [00:21:56]NVStorageSaveData done [00:21:56]ExternCall_PrintAddStr [00:21:56]wPrintStart [00:21:56]Write to MH i2c: 01 00 00 5F 38 97 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 5F 38 00 00 00 00 00 FF 0F AC [00:21:56]RasterBufferAndPrint [00:21:56]line Отчет об открытии смены [00:21:56]line ФФД: 1.0 [00:21:56]line ИНН: 02508201610067 [00:21:56]line Кассир: Пайзулдаева А. [00:21:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:21:56]line Место: АЗС № 91 "Партнер Нефть" [00:21:56]line 16.05.2024 00:21 [00:21:56]line Смена: 357 [00:21:56]line РНМ: 0000000000091845 [00:21:56]line ЗНМ: 0300000119 [00:21:56]line ФД: 67402 [00:21:56]line ФМ: 0000000000871829 [00:21:56]line ФПД: 68734444283098 [00:21:56]written 0, free lines is 4095 [00:21:56]OFD Sender: Processing packet 67402 [packets to send 35, broken 34] [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00067402 [00:21:56]OFD Sender: To server: pG, [00:21:56]CommunicateWithHost lk.salyk.kg:30040 [00:21:56]ConnectInit lk.salyk.kg [00:21:56]Connected sock=10 [00: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 04 01 00 00 10 13 FC 00 7C DF 5A 02 01 00 02 00 F0 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9F D0 B0 D0 B9 D0 B7 D1 83 D0 BB D0 B4 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 90 2E F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 A4 51 45 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4A 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 35 04 06 00 3E Write to MH i2c: 83 01 7C 00 22 00 A4 70 DA 38 19 A8 0A [00:21:56]5D 1B F9 Write i2c OK [00:21:56]0B MH_I2C_Read... [00:21:56]D7 Read from MH i2c: D8 01 [00:21:56] [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 70 38 00 00 00 00 00 E9 0E A6 [00:21:56]RasterBufferAndPrint [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]written 0, free lines is 3833 [00:21:56]MH_Cut [00:21:56]Write to MH i2c: D1 01 00 77 38 01 81 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 01 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 01 00 77 38 00 80 [00:21:56]Write to MH i2c: 01 00 00 78 38 B0 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00: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 71 46 47 00 61 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 4A 07 01 00 F4 03 04 00 81 F9 44 66 B6 04 01 00 00 8B C8 88 B8 EA 72 4F D3 [00:21:56]CommunicateWithHost err = 0 [00:21:56]CheckOFDResponse [00:21:56]1017 (14) - 77093643461234 [00:21:56]1041 (16) - 0000000000871829 [00:21:56]1040 (4) - 67402 [00:21:56]1012 (4) - 15.05.2024 18:05 [00:21:56]1206 (1) - 0 [00:21:56]OFD Sender: Remove packet 67402 [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00067402 [00:21:56]NVStorageDeleteData [00:21:56]*** Cut start [00:21:56]*** Purtial cut [00:21:56]*** Stage 1: CUTSNS_PIN = 1 [00:21:57]Read from MH i2c: 01 [00:21:57]MH_I2C_Read... [00:21:57]*** Stop cut motor [00:21:57]*** Cut end [00:21:57]Read from MH i2c: 01 07 00 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: 01 07 00 78 38 00 00 00 00 00 FF 0F C5 [00:21:57]process_action open_shift done [00:21:57]requested_data is exist [00:21:57]produce_requested_data [00:21:57]requested_item fd.num is exist - process it [00:21:57]SAM_PROTO_GetFieldsCounters [00:21:57]wFMCommunicate request_size=4 [00:21:57]MH_SAM_APDU [00:21:57]CAPDU: 80 13 00 00 [00:21:57]Write to MH i2c: E2 08 00 79 38 80 13 00 00 00 00 00 00 2D [00:21:57]Write i2c OK [00:21:57]MH_I2C_Read... [00:21:57]OFD Sender: No OFD packet to send [00:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:57]Read from MH i2c: E2 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 62 00 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 62 00 79 38 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 4A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [00:21: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 4A 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:57]wFMCommunicate OK [00:21:57]SAM_PROTO_GetFieldsCounters done [00:21:57]requested_item shift.num is exist - process it [00:21:57]requested_item shift.opened is exist - process it [00:21:57]req_shift_opened [00:21:57]FM_GetShiftState [00:21:57]SAM_PROTO_GetShiftState [00:21:57]wFMCommunicate request_size=4 [00:21:57]MH_SAM_APDU [00:21:57]CAPDU: 80 13 01 00 [00:21:57]Write to MH i2c: E2 08 00 7A 38 80 13 01 00 00 00 00 00 2F [00:21:57]Write i2c OK [00:21:57]MH_I2C_Read... [00:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:57]Read from MH i2c: E2 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 0E 00 [00:21:57]MH_I2C_Read... [00:21:57]Read from MH i2c: E2 0E 00 7A 38 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 DB [00:21:57]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:21:57]wFMCommunicate OK [00:21:57]SAM_PROTO_GetShiftState done [00:21:57]FM_GetShiftState done [00:21:57]req_shift_opened done [00:21:57]requested_item shift.open_date is exist - process it [00:21:57]req_shift_open_date [00:21:57]req_shift_open_date done [00:21:57]produce_requested_data done [00:21:57]produce_requested_data return {"fd.num":67402,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:21:57]process_action_free open_shift [00:21:57]json_value_free [00:21:57]json_value_free done [00:21:57]process_json_proto returns [00:21:57]Send response to host [00:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67402,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:21:57]free response buf [00:21:57]execute_script done [00:21:57]execute_script returns [00:21:57]free content buf [00:21:57]Sock 7.Close socket [00:21:57]Sock 7.Thread stoped [00:21:57]accept exits with 9 [00:21:57]New connection [00:21:57]New thread 3067174244 created [00:21:57]Thread 3067030884 joined [00:21:57]Waiting for new connection... [00:21:57] Sock 9.Parse request [00:21:57]Sock 9.Check first char [00:21:57]Sock 9.First char is OK [00:21:57]request: POST /json_proto HTTP/1.0 [00:21:57]Method: POST [00:21:57]URL: /json_proto [00:21:57]Method is POST - this is cgi request [00:21:57]url: /json_proto [00:21:57]query_string will be loaded in cgi processing [00:21:57]execute_cgi json_proto POST (null) [00:21:57]execute_cgi path=json_proto method=POST [00:21:57]POST find Content-Length [00:21:57]Host: 172.17.41.195:8080 [00:21:57]Content-Length: 331 [00:21:57]Content-Type: application/json [00:21:57] [00:21:57]POST finish read [00:21:57]Found Content-Length = 331 [00:21: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" ] } } [00:21:57]execute_script... [00:21: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" ] } } [00:21:57]POST & json_proto [00:21:57]process_json_proto [00:21:57]json parsed OK: [00:21:57]protocol is kg_v1.0 [00:21:57]action value=get_value [00:21:57]process_action get_value [00:21:57]cmd_get_value [00:21:57]process_action get_value done [00:21:57]requested_data is exist [00:21:57]produce_requested_data [00:21:57]requested_item fm.sale.total is exist - process it [00:21:57]SAM_PROTO_GetFMData [00:21:57]wFMCommunicate request_size=4 [00:21:57]MH_SAM_APDU [00:21:57]CAPDU: 80 13 03 00 [00:21:57]Write to MH i2c: E2 08 00 7B 38 80 13 03 00 00 00 00 00 32 [00:21:57]Write i2c OK [00:21:57]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 7B 38 00 C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 4A [00:21:58]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 80 04 01 00 69 04 A3 00 6F 04 04 00 D8 03 01 00 B1 04 05 00 56 DE DB 1A 03 70 04 05 00 A8 AB 80 BF 02 72 04 04 00 AE 32 5B 5B 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 91 DE 6B 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 B9 E8 08 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 A8 00 00 00 B1 04 04 00 90 BE BA DC 70 04 04 00 90 BE BA 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 AB B9 70 17 EF 03 09 90 00 [00:21:58]wFMCommunicate OK [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 17 00 00 [00:21:58]Write to MH i2c: E2 08 00 7C 38 80 17 00 00 00 00 00 00 34 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 7C 38 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [00:21:58]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 6C 0F 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 [00:21:58]wFMCommunicate OK [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 17 00 00 [00:21:58]Write to MH i2c: E2 08 00 7D 38 80 17 00 00 00 00 00 00 35 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 FD 00 7D 38 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 5C [00:21: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 [00:21:58]wFMCommunicate OK [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 17 00 00 [00:21:58]Write to MH i2c: E2 08 00 7E 38 80 17 00 00 00 00 00 00 36 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:59]Read from MH i2c: E2 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 FD 00 7E 38 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [00:21:59]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 [00:21:59]wFMCommunicate OK [00:21:59]wFMCommunicate request_size=4 [00:21:59]MH_SAM_APDU [00:21:59]CAPDU: 80 17 00 00 [00:21:59]Write to MH i2c: E2 08 00 7F 38 80 17 00 00 00 00 00 00 37 [00:21:59]Write i2c OK [00:21:59]MH_I2C_Read... [00:21:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:59]Read from MH i2c: E2 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 E3 00 [00:21:59]MH_I2C_Read... [00:21:59]Read from MH i2c: E2 E3 00 7F 38 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:21:59]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 [00:21:59]wFMCommunicate OK [00:21:59]SAM_PROTO_GetFMData done [00:21:59]requested_item fm.sale_refund.total is exist - process it [00:21:59]requested_item fm.buy.total is exist - process it [00:21:59]requested_item shift.sale.total is exist - process it [00:21:59]SAM_PROTO_GetShiftData [00:21:59]wFMCommunicate request_size=4 [00:21:59]MH_SAM_APDU [00:21:59]CAPDU: 80 13 02 00 [00:21:59]Write to MH i2c: E2 08 00 80 38 80 13 02 00 00 00 00 00 36 [00:21:59]Write i2c OK [00:21:59]MH_I2C_Read... [00:22:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:00]Read from MH i2c: E2 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 80 38 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 A9 [00:22:00]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:22:00]wFMCommunicate OK [00:22:00]wFMCommunicate request_size=4 [00:22:00]MH_SAM_APDU [00:22:00]CAPDU: 80 17 00 00 [00:22:00]Write to MH i2c: E2 08 00 81 38 80 17 00 00 00 00 00 00 39 [00:22:00]Write i2c OK [00:22:00]MH_I2C_Read... [00:22:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:00]Read from MH i2c: E2 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 [00:22:00]MH_I2C_Read... [00:22:00]Read from MH i2c: E2 FD 00 81 38 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [00:22:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:00]wFMCommunicate OK [00:22:00]wFMCommunicate request_size=4 [00:22:00]MH_SAM_APDU [00:22:00]CAPDU: 80 17 00 00 [00:22:00]Write to MH i2c: E2 08 00 82 38 80 17 00 00 00 00 00 00 3A [00:22:00]Write i2c OK [00:22:00]MH_I2C_Read... [00:22:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:01]Read from MH i2c: E2 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 FD 00 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 FD 00 82 38 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:22:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:22:01]wFMCommunicate OK [00:22:01]wFMCommunicate request_size=4 [00:22:01]MH_SAM_APDU [00:22:01]CAPDU: 80 17 00 00 [00:22:01]Write to MH i2c: E2 08 00 83 38 80 17 00 00 00 00 00 00 3B [00:22:01]Write i2c OK [00:22:01]MH_I2C_Read... [00:22:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:01]Read from MH i2c: E2 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 FD 00 [00:22:01]MH_I2C_Read... [00:22:01]Read from MH i2c: E2 FD 00 83 38 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 90 00 AD [00:22:01]RAPDU: 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 90 00 [00:22:01]wFMCommunicate OK [00:22:01]wFMCommunicate request_size=4 [00:22:01]MH_SAM_APDU [00:22:01]CAPDU: 80 17 00 00 [00:22:01]Write to MH i2c: E2 08 00 84 38 80 17 00 00 00 00 00 00 3C [00:22:01]Write i2c OK [00:22:01]MH_I2C_Read... [00:22:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:22:02]Read from MH i2c: E2 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: E2 BD 00 [00:22:02]MH_I2C_Read... [00:22:02]Read from MH i2c: E2 BD 00 84 38 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [00:22:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:22:02]wFMCommunicate OK [00:22:02]SAM_PROTO_GetShiftData done [00:22:02]requested_item shift.sale.total_cash is exist - process it [00:22:02]requested_item shift.sale_refund.total is exist - process it [00:22:02]requested_item shift.sale_refund.total_cash is exist - process it [00:22:02]requested_item shift.buy.total is exist - process it [00:22:02]requested_item shift.buy.total_cash is exist - process it [00:22:02]produce_requested_data done [00:22:02]produce_requested_data return {"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.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} [00:22:02]process_action_free get_value [00:22:02]json_value_free [00:22:02]json_value_free done [00:22:02]process_json_proto returns [00:22:02]Send response to host [00:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133355188.06,"fm.sale_refund.total":37032260.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.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}}} [00:22:02]free response buf [00:22:02]execute_script done [00:22:02]execute_script returns [00:22:02]free content buf [00:22:02]Sock 9.Close socket [00:22:02]Sock 9.Thread stoped [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:33]accept exits with 7 [00:27:33]New connection [00:27:33]New thread 3067030884 created [00:27:33]Thread 3067174244 joined [00:27:33]Waiting for new connection... [00:27:33] Sock 7.Parse request [00:27:33]Sock 7.Check first char [00:27:33]Sock 7.First char is OK [00:27:33]request: POST /json_proto HTTP/1.0 [00:27:33]Method: POST [00:27:33]URL: /json_proto [00:27:33]Method is POST - this is cgi request [00:27:33]url: /json_proto [00:27:33]query_string will be loaded in cgi processing [00:27:33]execute_cgi json_proto POST (null) [00:27:33]execute_cgi path=json_proto method=POST [00:27:33]POST find Content-Length [00:27:33]Host: 172.17.41.195:8080 [00:27:33]Content-Length: 677 [00:27:33]Content-Type: application/json [00:27:33] [00:27:33]POST finish read [00:27:33]Found Content-Length = 677 [00:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507379", "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" ] } } [00:27:33]execute_script... [00:27: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)507379", "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" ] } } [00:27:33]POST & json_proto [00:27:33]process_json_proto [00:27:33]json parsed OK: [00:27:33]protocol is kg_v1.0 [00:27:33]action value=close_receipt [00:27:33]process_action close_receipt [00:27:33]cmd_close_receipt [00:27:33]MH_GetDate [00:27:33]Write to MH i2c: F0 00 00 85 38 AC [00:27:33]Write i2c OK [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: F0 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: F0 09 00 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: F0 09 00 85 38 00 F8 52 45 66 FC 21 6F 64 9A [00:27:33]GetLastDocTimeStamp 1715818916 [00:27:33]current date 1715819256 [00:27:33]FM_GetShiftState [00:27:33]SAM_PROTO_GetShiftState [00:27:33]wFMCommunicate request_size=4 [00:27:33]MH_SAM_APDU [00:27:33]CAPDU: 80 13 01 00 [00:27:33]Write to MH i2c: E2 08 00 86 38 80 13 01 00 00 00 00 00 3B [00:27:33]Write i2c OK [00:27:33]MH_I2C_Read... [00:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:33]Read from MH i2c: E2 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 0E 00 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: E2 0E 00 86 38 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E7 [00:27:33]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:27:33]wFMCommunicate OK [00:27:33]SAM_PROTO_GetShiftState done [00:27:33]FM_GetShiftState done [00:27:33]opened in 1715818916 [00:27:33]opened+sec_in_day 1715905316 [00:27:33]quantity*price = 50033 [00:27:33]sum+1 = 50034 [00:27:33]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 СНО: Общий режим Чек 1 16.05.2024 00:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67403 ФПД: 178261975672747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T002737&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67403&fm=178261975672747&tin=02508201610067®Number=0000000000091845&sum=50000 [00:27:34]StoreToDocumentArchive [00:27:34]shift 357 fd 67403 [00:27:34]save to /storage/0357/doc_00067403 [00:27:34]save last doc name /storage/0357/doc_00067403 to /storage/kkm_last_doc_name [00:27:34]save OK [00:27:34]Clear old archive folders... [00:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:34]tlvbuf is 00C388F0 [00:27:34]SAM_PROTO_ClearQueue [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 09 00 00 [00:27:34]Write to MH i2c: E2 08 00 93 38 80 09 00 00 00 00 00 00 3D [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 03 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 03 00 93 38 00 90 00 3F [00:27:34]RAPDU: 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_ClearQueue done [00:27:34]KKMCreateOFDPacket [00:27:34]OFDProtocolAddRootSTLVToBuf [00:27:34]FM_MakeSignedData [00:27:34]FM_MakeSignedData [00:27:34]SAM_PROTO_SignData [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 0D 01 02 [00:27:34]Write to MH i2c: E2 08 00 94 38 80 0D 01 02 00 00 00 00 45 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 03 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 03 00 94 38 00 90 00 40 [00:27:34]RAPDU: 90 00 [00:27:34]wFMCommunicate OK [00:27:34]wFMCommunicate request_size=255 [00:27:34]MH_SAM_APDU [00:27: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 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 01 00 00 00 F4 03 04 00 F9 52 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4B 07 01 00 35 04 06 00 A2 [00:27:34]Write to MH i2c: E2 02 01 95 38 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 01 00 00 00 F4 03 04 00 F9 52 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4B 07 01 00 35 04 06 00 A2 00 00 22 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 03 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 03 00 95 38 00 90 00 41 [00:27:35]RAPDU: 90 00 [00:27:35]wFMCommunicate OK [00:27:35]wFMCommunicate request_size=10 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 0D 02 02 05 20 D9 BC A7 AB [00:27:35]Write to MH i2c: E2 0D 00 96 38 80 0D 02 02 05 00 20 D9 BC A7 AB 00 00 59 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 03 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 03 00 96 38 00 90 00 42 [00:27:35]RAPDU: 90 00 [00:27:35]wFMCommunicate OK [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 0D 03 02 [00:27:35]Write to MH i2c: E2 08 00 97 38 80 0D 03 02 00 00 00 00 4A [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0B 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 0B 00 97 38 00 36 6F 3F 19 F6 C7 84 EB 90 00 74 [00:27:35]RAPDU: 36 6F 3F 19 F6 C7 84 EB 90 00 [00:27:35]wFMCommunicate OK [00:27:35]SAM_PROTO_SignData done [00:27:35]FM_MakeSignedData done [00:27:35]CreateOFDProtocolMessage [00:27:35]wFMCommunicate request_size=4 [00:27:35]MH_SAM_APDU [00:27:35]CAPDU: 80 11 00 00 [00:27:35]Write to MH i2c: E2 08 00 98 38 80 11 00 00 00 00 00 00 4A [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:35]Read from MH i2c: E2 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 17 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: E2 17 00 98 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A0 [00:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:27:35]wFMCommunicate OK [00:27:35]CreateOFDProtocolMessage done [00:27:35]OFDSenderStorePacket 67403 [00:27:35]StoreOFDPacket docnum=67403 [00:27: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 73 5A 07 01 AF 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 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 01 00 00 00 F4 03 04 00 F9 52 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4B 07 01 00 35 04 06 00 A2 20 D9 BC A7 AB 36 6F 3F 19 F6 C7 84 EB [00:27:35]CheckFolder [00:27:35]dirname=/storage/ofd_packets [00:27:35]CheckFolder done [00:27:35]ProducePacketName [00:27:35]name=ofd_packets/00067403 [00:27:35]NVStorageSaveData ofd_packets/00067403 [00:27:35]File name is /storage/ofd_packets/00067403 [00:27:35]Write 301 bytes [00:27:35]NVStorageSaveData done [00:27:35]OFDSenderStorePacket done [00:27:35]KKMCreateOFDPacket done [00:27:35]NVStorageSaveData kkm_last_timestamp [00:27:35]File name is /storage/kkm_last_timestamp [00:27:35]Write 4 bytes [00:27:35]NVStorageSaveData done [00:27:35]ExternCall_PrintAddStr [00:27:35]wPrintStart [00:27:35]Write to MH i2c: 01 00 00 99 38 D1 [00:27:35]Write i2c OK [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: 01 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: 01 07 00 [00:27:35]MH_I2C_Read... [00:27:35]Read from MH i2c: 01 07 00 99 38 00 00 00 00 00 FF 0F E6 [00:27:35]RasterBufferAndPrint [00:27:35]line Счет N : (1)507379 [00:27:35]line ИНН: 02508201610067 [00:27:35]line Контрольно-Кассовый Чек [00:27:35]line ПРОДАЖА [00:27:35]line ТРК (МРК, ГНК) : 43 [00:27:35]line Товар: 2710124130 [00:27:35]line Аи-92-К-5 [00:27:35]line 7.490 * 66.80 [00:27:35]line = 500.33 [00:27:35]line НДС 12% НСП 1% [00:27:35]line > о реализуемом товаре [00:27:35]line ОКРУГЛЕНИЕ: -0.33 [00:27:35]line ИТОГО: 500.00 [00:27:35]line Внесено: 500.00 [00:27:35]line СДАЧА: 0.00 [00:27:35]line НСП 1% : 4.43 [00:27:35]line НДС 12% : 53.13 [00:27:35]line Наличными: 500.00 [00:27:35]line Безнал.: 0.00 [00:27:35]line Место: АЗС № 91 "Партнер Нефть" [00:27:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:27:35]line СНО: Общий режим [00:27:35]line Чек 1 16.05.2024 00:27 [00:27:35]line Смена: 357 ФФД: 1.0 [00:27:35]line ЗНМ: 0300000119 [00:27:35]line РНМ: 0000000000091845 [00:27:35]line Версия ККМ: 001 [00:27:35]line ФМ: 0000000000871829 [00:27:35]line ФД: 67403 [00:27:35]line ФПД: 178261975672747 [00:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T002737&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67403&fm=178261975672747&tin=02508201610067®Number=0000000000091845&sum=50000 [00:27:35]OFD Sender: Processing packet 67403 [packets to send 35, broken 34] [00:27:35]ProducePacketName [00:27:35]name=ofd_packets/00067403 [00:27:35]OFD Sender: To server: pG, [00:27:35]CommunicateWithHost lk.salyk.kg:30040 [00:27:35]ConnectInit lk.salyk.kg [00:27:35]written 0, free lines is 4095 [00:27:35]Connected sock=10 [00:27: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 73 5A 07 01 AF 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 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 01 00 00 00 F4 03 04 00 F9 52 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4B 07 01 00 35 04 06 00 A2 20 D9 BC A7 AB 36 6F 3F 19 F6 C7 84 EB [00:27: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 A2 30 47 00 1B 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 4B 07 01 00 F4 03 04 00 D5 FA 44 66 B6 04 01 00 00 A0 4D 65 E4 C1 D1 F3 DB [00:27:36]CommunicateWithHost err = 0 [00:27:36]CheckOFDResponse [00:27:36]1017 (14) - 77093643461234 [00:27:36]1041 (16) - 0000000000871829 [00:27:36]1040 (4) - 67403 [00:27:36]1012 (4) - 15.05.2024 18:11 [00:27:36]1206 (1) - 0 [00:27:36]OFD Sender: Remove packet 67403 [00:27:36]ProducePacketName [00:27:36]name=ofd_packets/00067403 [00:27:36]NVStorageDeleteData [00:27:36]Write to MH i2c: 01 00 00 C3 38 FB [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: 01 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: 01 07 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: 01 07 00 C3 38 00 00 00 00 00 DF 0C ED [00:27:36]RasterBufferAndPrint [00:27:36]line [00:27:36]line [00:27:36]line [00:27:36]line [00:27:36]line [00:27:36]written 0, free lines is 3301 [00:27:36]MH_Cut [00:27:36]Write to MH i2c: D1 01 00 CA 38 01 D4 [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: D1 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: D1 01 00 [00:27:36]MH_I2C_Read... [00:27:36]Read from MH i2c: D1 01 00 CA 38 00 D3 [00:27:36]Write to MH i2c: 01 00 00 CB 38 03 [00:27:36]Write i2c OK [00:27:36]MH_I2C_Read... [00:27:36]OFD Sender: No OFD packet to send [00:27:37]*** Cut start [00:27:37]*** Purtial cut [00:27:37]*** CUTSNS_PIN = 0 [00:27:37]*** Stage 1: CUTSNS_PIN = 1 [00:27:39]Read from MH i2c: 01 [00:27:39]MH_I2C_Read... [00:27:39]*** Stop cut motor [00:27:39]*** Cut end [00:27:39]Read from MH i2c: 01 07 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: 01 07 00 CB 38 00 00 00 00 00 FF 0F 18 [00:27:39]process_action close_receipt done [00:27:39]requested_data is exist [00:27:39]produce_requested_data [00:27:39]requested_item fm.sn is exist - process it [00:27:39]wFMCommunicate request_size=4 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 11 00 00 [00:27:39]Write to MH i2c: E2 08 00 CC 38 80 11 00 00 00 00 00 00 7E [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:39]Read from MH i2c: E2 17 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 17 00 CC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D4 [00: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 [00:27:39]wFMCommunicate OK [00:27:39]requested_item fd.num is exist - process it [00:27:39]SAM_PROTO_GetFieldsCounters [00:27:39]wFMCommunicate request_size=4 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 13 00 00 [00:27:39]Write to MH i2c: E2 08 00 CD 38 80 13 00 00 00 00 00 00 81 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 62 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 62 00 CD 38 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 4B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [00:27: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 4B 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:39]wFMCommunicate OK [00:27:39]SAM_PROTO_GetFieldsCounters done [00:27:39]requested_item shift.num is exist - process it [00:27:39]requested_item shift.opened is exist - process it [00:27:39]req_shift_opened [00:27:39]FM_GetShiftState [00:27:39]SAM_PROTO_GetShiftState [00:27:39]wFMCommunicate request_size=4 [00:27:39]MH_SAM_APDU [00:27:39]CAPDU: 80 13 01 00 [00:27:39]Write to MH i2c: E2 08 00 CE 38 80 13 01 00 00 00 00 00 83 [00:27:39]Write i2c OK [00:27:39]MH_I2C_Read... [00:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:39]Read from MH i2c: E2 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 0E 00 [00:27:39]MH_I2C_Read... [00:27:39]Read from MH i2c: E2 0E 00 CE 38 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2F [00:27:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:27:39]wFMCommunicate OK [00:27:39]SAM_PROTO_GetShiftState done [00:27:39]FM_GetShiftState done [00:27:39]req_shift_opened done [00:27:39]requested_item shift.open_date is exist - process it [00:27:39]req_shift_open_date [00:27:39]req_shift_open_date done [00:27:39]produce_requested_data done [00:27:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67403,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:27:39]process_action_free close_receipt [00:27:39]json_value_free [00:27:39]json_value_free done [00:27:39]process_json_proto returns [00:27:39]Send response to host [00:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67403,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:27:39]free response buf [00:27:39]execute_script done [00:27:39]execute_script returns [00:27:39]free content buf [00:27:39]Sock 7.Close socket [00:27:39]Sock 7.Thread stoped [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]accept exits with 9 [00:54:27]New connection [00:54:27]New thread 3067174244 created [00:54:27]Thread 3067030884 joined [00:54:27]Waiting for new connection... [00:54:27] Sock 9.Parse request [00:54:27]Sock 9.Check first char [00:54:27]Sock 9.First char is OK [00:54:27]request: POST /json_proto HTTP/1.0 [00:54:27]Method: POST [00:54:27]URL: /json_proto [00:54:27]Method is POST - this is cgi request [00:54:27]url: /json_proto [00:54:27]query_string will be loaded in cgi processing [00:54:27]execute_cgi json_proto POST (null) [00:54:27]execute_cgi path=json_proto method=POST [00:54:27]POST find Content-Length [00:54:27]Host: 172.17.41.195:8080 [00:54:27]Content-Length: 675 [00:54:27]Content-Type: application/json [00:54:27] [00:54:27]POST finish read [00:54:27]Found Content-Length = 675 [00:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507380", "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 }]} ], "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" ] } } [00:54:27]execute_script... [00:54: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)507380", "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 }]} ], "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" ] } } [00:54:27]POST & json_proto [00:54:27]process_json_proto [00:54:27]json parsed OK: [00:54:27]protocol is kg_v1.0 [00:54:27]action value=close_receipt [00:54:27]process_action close_receipt [00:54:27]cmd_close_receipt [00:54:27]MH_GetDate [00:54:27]Write to MH i2c: F0 00 00 CF 38 F6 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: F0 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: F0 09 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: F0 09 00 CF 38 00 46 59 45 66 FC 21 6F 64 39 [00:54:27]GetLastDocTimeStamp 1715819257 [00:54:27]current date 1715820870 [00:54:27]FM_GetShiftState [00:54:27]SAM_PROTO_GetShiftState [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 13 01 00 [00:54:27]Write to MH i2c: E2 08 00 D0 38 80 13 01 00 00 00 00 00 85 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0E 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0E 00 D0 38 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 31 [00:54:27]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:54:27]wFMCommunicate OK [00:54:27]SAM_PROTO_GetShiftState done [00:54:27]FM_GetShiftState done [00:54:27]opened in 1715818916 [00:54:27]opened+sec_in_day 1715905316 [00:54:27]quantity*price = 100005 [00:54:27]sum+1 = 100006 [00:54:27]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 СНО: Общий режим Чек 2 16.05.2024 00:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67404 ФПД: 247005780582609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T005430&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67404&fm=247005780582609&tin=02508201610067®Number=0000000000091845&sum=100000 [00:54:28]StoreToDocumentArchive [00:54:28]shift 357 fd 67404 [00:54:28]save to /storage/0357/doc_00067404 [00:54:28]save last doc name /storage/0357/doc_00067404 to /storage/kkm_last_doc_name [00:54:28]save OK [00:54:28]Clear old archive folders... [00:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:54:28]tlvbuf is 00BA4A40 [00:54:28]SAM_PROTO_ClearQueue [00:54:28]wFMCommunicate request_size=4 [00:54:28]MH_SAM_APDU [00:54:28]CAPDU: 80 09 00 00 [00:54:28]Write to MH i2c: E2 08 00 DD 38 80 09 00 00 00 00 00 00 87 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:28]Read from MH i2c: E2 03 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 DD 38 00 90 00 89 [00:54:28]RAPDU: 90 00 [00:54:28]wFMCommunicate OK [00:54:28]SAM_PROTO_ClearQueue done [00:54:28]KKMCreateOFDPacket [00:54:28]OFDProtocolAddRootSTLVToBuf [00:54:28]FM_MakeSignedData [00:54:28]FM_MakeSignedData [00:54:28]SAM_PROTO_SignData [00:54:28]wFMCommunicate request_size=4 [00:54:28]MH_SAM_APDU [00:54:28]CAPDU: 80 0D 01 02 [00:54:28]Write to MH i2c: E2 08 00 DE 38 80 0D 01 02 00 00 00 00 8F [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 DE 38 00 90 00 8A [00:54:28]RAPDU: 90 00 [00:54:28]wFMCommunicate OK [00:54:28]wFMCommunicate request_size=255 [00:54:28]MH_SAM_APDU [00:54:28]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 02 00 00 00 F4 03 04 00 46 59 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4C 07 01 00 35 04 06 00 [00:54:28]Write to MH i2c: E2 02 01 DF 38 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 02 00 00 00 F4 03 04 00 46 59 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4C 07 01 00 35 04 06 00 00 00 D2 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 DF 38 00 90 00 8B [00:54:28]RAPDU: 90 00 [00:54:28]wFMCommunicate OK [00:54:28]wFMCommunicate request_size=11 [00:54:28]MH_SAM_APDU [00:54:28]CAPDU: 80 0D 02 02 06 E0 A6 83 CF 20 D1 [00:54:28]Write to MH i2c: E2 0E 00 E0 38 80 0D 02 02 06 00 E0 A6 83 CF 20 D1 00 00 67 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 03 00 E0 38 00 90 00 8C [00:54:28]RAPDU: 90 00 [00:54:28]wFMCommunicate OK [00:54:28]wFMCommunicate request_size=4 [00:54:28]MH_SAM_APDU [00:54:28]CAPDU: 80 0D 03 02 [00:54:28]Write to MH i2c: E2 08 00 E1 38 80 0D 03 02 00 00 00 00 94 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 0B 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 0B 00 E1 38 00 A0 0C 4B EB BE 92 65 1C 90 00 48 [00:54:28]RAPDU: A0 0C 4B EB BE 92 65 1C 90 00 [00:54:28]wFMCommunicate OK [00:54:28]SAM_PROTO_SignData done [00:54:28]FM_MakeSignedData done [00:54:28]CreateOFDProtocolMessage [00:54:28]wFMCommunicate request_size=4 [00:54:28]MH_SAM_APDU [00:54:28]CAPDU: 80 11 00 00 [00:54:28]Write to MH i2c: E2 08 00 E2 38 80 11 00 00 00 00 00 00 94 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:28]Read from MH i2c: E2 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 17 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: E2 17 00 E2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EA [00:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:54:28]wFMCommunicate OK [00:54:28]CreateOFDProtocolMessage done [00:54:28]OFDSenderStorePacket 67404 [00:54:28]StoreOFDPacket docnum=67404 [00:54: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 10 01 00 00 F7 C8 08 01 5A 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 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 02 00 00 00 F4 03 04 00 46 59 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4C 07 01 00 35 04 06 00 E0 A6 83 CF 20 D1 A0 0C 4B EB BE 92 65 1C [00:54:28]CheckFolder [00:54:28]dirname=/storage/ofd_packets [00:54:28]CheckFolder done [00:54:28]ProducePacketName [00:54:28]name=ofd_packets/00067404 [00:54:28]NVStorageSaveData ofd_packets/00067404 [00:54:28]File name is /storage/ofd_packets/00067404 [00:54:28]Write 302 bytes [00:54:28]NVStorageSaveData done [00:54:28]OFDSenderStorePacket done [00:54:28]KKMCreateOFDPacket done [00:54:28]NVStorageSaveData kkm_last_timestamp [00:54:28]File name is /storage/kkm_last_timestamp [00:54:28]Write 4 bytes [00:54:28]NVStorageSaveData done [00:54:28]ExternCall_PrintAddStr [00:54:28]wPrintStart [00:54:28]Write to MH i2c: 01 00 00 E3 38 1B [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 07 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 07 00 E3 38 00 00 00 00 00 FF 0F 30 [00:54:28]RasterBufferAndPrint [00:54:28]line Счет N : (1)507380 [00:54:28]line ИНН: 02508201610067 [00:54:28]line Контрольно-Кассовый Чек [00:54:28]line ПРОДАЖА [00:54:28]line ТРК (МРК, ГНК) : 42 [00:54:28]line Товар: 2710124130 [00:54:28]line Super-92-К-5 [00:54:28]line 14.750 * 67.80 [00:54:28]line = 1000.05 [00:54:28]line НДС 12% НСП 1% [00:54:28]line > о реализуемом товаре [00:54:28]line ОКРУГЛЕНИЕ: -0.05 [00:54:28]line ИТОГО: 1000.00 [00:54:28]line Внесено: 1000.00 [00:54:28]line СДАЧА: 0.00 [00:54:28]line НСП 1% : 8.85 [00:54:28]line НДС 12% : 106.20 [00:54:28]line Наличными: 1000.00 [00:54:28]line Безнал.: 0.00 [00:54:28]line Место: АЗС № 91 "Партнер Нефть" [00:54:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:54:28]line СНО: Общий режим [00:54:28]line Чек 2 16.05.2024 00:54 [00:54:28]line Смена: 357 ФФД: 1.0 [00:54:28]line ЗНМ: 0300000119 [00:54:28]line РНМ: 0000000000091845 [00:54:28]line Версия ККМ: 001 [00:54:28]line ФМ: 0000000000871829 [00:54:28]line ФД: 67404 [00:54:28]line ФПД: 247005780582609 [00:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T005430&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67404&fm=247005780582609&tin=02508201610067®Number=0000000000091845&sum=100000 [00:54:29]written 0, free lines is 4095 [00:54:29]OFD Sender: Processing packet 67404 [packets to send 35, broken 34] [00:54:29]ProducePacketName [00:54:29]name=ofd_packets/00067404 [00:54:29]OFD Sender: To server: pG, [00:54:29]CommunicateWithHost lk.salyk.kg:30040 [00:54:29]ConnectInit lk.salyk.kg [00:54:29]Connected sock=7 [00:54: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 10 01 00 00 F7 C8 08 01 5A 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 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 02 00 00 00 F4 03 04 00 46 59 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4C 07 01 00 35 04 06 00 E0 A6 83 CF 20 D1 A0 0C 4B EB BE 92 65 1C [00:54: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 2F 71 47 00 66 6F 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 4C 07 01 00 F4 03 04 00 22 01 45 66 B6 04 01 00 00 9E 06 38 19 1E 77 49 BD [00:54:29]CommunicateWithHost err = 0 [00:54:29]CheckOFDResponse [00:54:29]1017 (14) - 77093643461234 [00:54:29]1041 (16) - 0000000000871829 [00:54:29]1040 (4) - 67404 [00:54:29]1012 (4) - 15.05.2024 18:38 [00:54:29]1206 (1) - 0 [00:54:29]OFD Sender: Remove packet 67404 [00:54:29]ProducePacketName [00:54:29]name=ofd_packets/00067404 [00:54:29]NVStorageDeleteData [00:54:29]Write to MH i2c: 01 00 00 0D 39 46 [00:54:29]Write i2c OK [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: 01 [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: 01 07 00 [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: 01 07 00 0D 39 00 00 00 00 00 D7 0C 30 [00:54:29]RasterBufferAndPrint [00:54:29]line [00:54:29]line [00:54:29]line [00:54:29]line [00:54:29]line [00:54:29]written 0, free lines is 3294 [00:54:29]MH_Cut [00:54:29]Write to MH i2c: D1 01 00 14 39 01 1F [00:54:29]Write i2c OK [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: D1 [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: D1 01 00 [00:54:29]MH_I2C_Read... [00:54:29]Read from MH i2c: D1 01 00 14 39 00 1E [00:54:29]Write to MH i2c: 01 00 00 15 39 4E [00:54:29]Write i2c OK [00:54:29]MH_I2C_Read... [00:54:30]OFD Sender: No OFD packet to send [00:54:30]*** Cut start [00:54:30]*** Purtial cut [00:54:30]*** Stage 1: CUTSNS_PIN = 1 [00:54:30]Read from MH i2c: 01 [00:54:30]MH_I2C_Read... [00:54:30]*** Stop cut motor [00:54:30]*** Cut end [00:54:30]Read from MH i2c: 01 07 00 [00:54:30]MH_I2C_Read... [00:54:30]Read from MH i2c: 01 07 00 15 39 00 00 00 00 00 FF 0F 63 [00:54:30]process_action close_receipt done [00:54:30]requested_data is exist [00:54:30]produce_requested_data [00:54:30]requested_item fm.sn is exist - process it [00:54:30]wFMCommunicate request_size=4 [00:54:30]MH_SAM_APDU [00:54:30]CAPDU: 80 11 00 00 [00:54:30]Write to MH i2c: E2 08 00 16 39 80 11 00 00 00 00 00 00 C9 [00:54:30]Write i2c OK [00:54:30]MH_I2C_Read... [00:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:30]Read from MH i2c: E2 [00:54:30]MH_I2C_Read... [00:54:30]Read from MH i2c: E2 17 00 [00:54:30]MH_I2C_Read... [00:54:30]Read from MH i2c: E2 17 00 16 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [00:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:54:30]wFMCommunicate OK [00:54:30]requested_item fd.num is exist - process it [00:54:30]SAM_PROTO_GetFieldsCounters [00:54:30]wFMCommunicate request_size=4 [00:54:30]MH_SAM_APDU [00:54:30]CAPDU: 80 13 00 00 [00:54:30]Write to MH i2c: E2 08 00 17 39 80 13 00 00 00 00 00 00 CC [00:54:30]Write i2c OK [00:54:30]MH_I2C_Read... [00:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:31]Read from MH i2c: E2 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 62 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 62 00 17 39 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 4C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [00:54: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 4C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:31]wFMCommunicate OK [00:54:31]SAM_PROTO_GetFieldsCounters done [00:54:31]requested_item shift.num is exist - process it [00:54:31]requested_item shift.opened is exist - process it [00:54:31]req_shift_opened [00:54:31]FM_GetShiftState [00:54:31]SAM_PROTO_GetShiftState [00:54:31]wFMCommunicate request_size=4 [00:54:31]MH_SAM_APDU [00:54:31]CAPDU: 80 13 01 00 [00:54:31]Write to MH i2c: E2 08 00 18 39 80 13 01 00 00 00 00 00 CE [00:54:31]Write i2c OK [00:54:31]MH_I2C_Read... [00:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:31]Read from MH i2c: E2 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 0E 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 0E 00 18 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 7A [00:54:31]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:54:31]wFMCommunicate OK [00:54:31]SAM_PROTO_GetShiftState done [00:54:31]FM_GetShiftState done [00:54:31]req_shift_opened done [00:54:31]requested_item shift.open_date is exist - process it [00:54:31]req_shift_open_date [00:54:31]req_shift_open_date done [00:54:31]produce_requested_data done [00:54:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67404,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:54:31]process_action_free close_receipt [00:54:31]json_value_free [00:54:31]json_value_free done [00:54:31]process_json_proto returns [00:54:31]Send response to host [00:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67404,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:54:31]free response buf [00:54:31]execute_script done [00:54:31]execute_script returns [00:54:31]free content buf [00:54:31]Sock 9.Close socket [00:54:31]Sock 9.Thread stoped [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:23]accept exits with 10 [00:58:23]New connection [00:58:23]New thread 3067030884 created [00:58:23]Thread 3067174244 joined [00:58:23]Waiting for new connection... [00:58:23] Sock 10.Parse request [00:58:23]Sock 10.Check first char [00:58:23]Sock 10.First char is OK [00:58:23]request: POST /json_proto HTTP/1.0 [00:58:23]Method: POST [00:58:23]URL: /json_proto [00:58:23]Method is POST - this is cgi request [00:58:23]url: /json_proto [00:58:23]query_string will be loaded in cgi processing [00:58:23]execute_cgi json_proto POST (null) [00:58:23]execute_cgi path=json_proto method=POST [00:58:23]POST find Content-Length [00:58:23]Host: 172.17.41.195:8080 [00:58:23]Content-Length: 1209 [00:58:23]Content-Type: application/json [00:58:23] [00:58:23]POST finish read [00:58:23]Found Content-Length = 1209 [00:58:23]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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507381\u000A16.05.2024 00:40\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 46.860 x 74.70\u000A\u0418\u0422\u041E\u0413: 3500.44\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" ] } } [00:58:23]execute_script... [00:58:23]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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507381\u000A16.05.2024 00:40\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 46.860 x 74.70\u000A\u0418\u0422\u041E\u0413: 3500.44\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" ] } } [00:58:23]POST & json_proto [00:58:23]process_json_proto [00:58:23]json parsed OK: [00:58:23]protocol is kg_v1.0 [00:58:23]action value=print_text [00:58:23]process_action print_text [00:58:23]cmd_print_text [00:58:23]ExternCall_PrintAddStr [00:58:23]wPrintStart [00:58:23]Write to MH i2c: 01 00 00 19 39 52 [00:58:23]Write i2c OK [00:58:23]MH_I2C_Read... [00:58:23]Read from MH i2c: 01 [00:58:23]MH_I2C_Read... [00:58:23]Read from MH i2c: 01 07 00 [00:58:23]MH_I2C_Read... [00:58:23]Read from MH i2c: 01 07 00 19 39 00 00 00 00 00 FF 0F 67 [00:58:23]RasterBufferAndPrint [00:58:23]line *****ТОВАРНЫЙ ЧЕК***** [00:58:23]line АЗС-91 [00:58:23]line Партнер нефть [00:58:23]line 02508201610067 [00:58:23]line Кассир : Пайзулдаева А. [00:58:23]line Счет N : (1)507381 [00:58:23]line 16.05.2024 00:40 [00:58:23]line ПРОДАЖА [00:58:23]line ТРК (МРК, ГНК): 31 [00:58:23]line Вид ГСМ : 2710194210 [00:58:23]line ДТ-К-5 [00:58:23]line 46.860 x 74.70 [00:58:23]line ИТОГ: 3500.44 [00:58:23]line Тип оплаты: Талоны: Топливная Карта [00:58:23]line 02750 [00:58:23]line ______________________ [00:58:23]line (подпись) [00:58:23]written 0, free lines is 4095 [00:58:24]Write to MH i2c: 01 00 00 2D 39 66 [00:58:24]Write i2c OK [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: 01 [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: 01 07 00 [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: 01 07 00 2D 39 00 00 00 00 00 10 0E 8B [00:58:24]RasterBufferAndPrint [00:58:24]line [00:58:24]line [00:58:24]line [00:58:24]line [00:58:24]line [00:58:24]written 0, free lines is 3602 [00:58:24]MH_Cut [00:58:24]Write to MH i2c: D1 01 00 34 39 01 3F [00:58:24]Write i2c OK [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: D1 [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: D1 01 00 [00:58:24]MH_I2C_Read... [00:58:24]Read from MH i2c: D1 01 00 34 39 00 3E [00:58:24]Write to MH i2c: 01 00 00 35 39 6E [00:58:24]Write i2c OK [00:58:24]MH_I2C_Read... [00:58:24]*** Cut start [00:58:24]*** Purtial cut [00:58:24]*** CUTSNS_PIN = 0 [00:58:24]*** Stage 1: CUTSNS_PIN = 1 [00:58:25]OFD Sender: No OFD packet to send [00:58:26]Read from MH i2c: 01 [00:58:26]MH_I2C_Read... [00:58:26]*** Stop cut motor [00:58:26]*** Cut end [00:58:26]Read from MH i2c: 01 07 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: 01 07 00 35 39 00 00 00 00 00 FF 0F 83 [00:58:26]process_action print_text done [00:58:26]requested_data is exist [00:58:26]produce_requested_data [00:58:26]requested_item fm.sn is exist - process it [00:58:26]wFMCommunicate request_size=4 [00:58:26]MH_SAM_APDU [00:58:26]CAPDU: 80 11 00 00 [00:58:26]Write to MH i2c: E2 08 00 36 39 80 11 00 00 00 00 00 00 E9 [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:26]Read from MH i2c: E2 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 17 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 17 00 36 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [00:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:58:26]wFMCommunicate OK [00:58:26]requested_item fd.num is exist - process it [00:58:26]SAM_PROTO_GetFieldsCounters [00:58:26]wFMCommunicate request_size=4 [00:58:26]MH_SAM_APDU [00:58:26]CAPDU: 80 13 00 00 [00:58:26]Write to MH i2c: E2 08 00 37 39 80 13 00 00 00 00 00 00 EC [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:26]Read from MH i2c: E2 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 62 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 62 00 37 39 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 4C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [00:58: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 4C 07 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:26]wFMCommunicate OK [00:58:26]SAM_PROTO_GetFieldsCounters done [00:58:26]requested_item shift.num is exist - process it [00:58:26]requested_item shift.opened is exist - process it [00:58:26]req_shift_opened [00:58:26]FM_GetShiftState [00:58:26]SAM_PROTO_GetShiftState [00:58:26]wFMCommunicate request_size=4 [00:58:26]MH_SAM_APDU [00:58:26]CAPDU: 80 13 01 00 [00:58:26]Write to MH i2c: E2 08 00 38 39 80 13 01 00 00 00 00 00 EE [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:26]Read from MH i2c: E2 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 0E 00 [00:58:26]MH_I2C_Read... [00:58:26]Read from MH i2c: E2 0E 00 38 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9A [00:58:26]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [00:58:26]wFMCommunicate OK [00:58:26]SAM_PROTO_GetShiftState done [00:58:26]FM_GetShiftState done [00:58:26]req_shift_opened done [00:58:26]requested_item shift.open_date is exist - process it [00:58:26]req_shift_open_date [00:58:26]req_shift_open_date done [00:58:26]produce_requested_data done [00:58:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67404,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [00:58:26]process_action_free print_text [00:58:26]json_value_free [00:58:26]json_value_free done [00:58:26]process_json_proto returns [00:58:26]Send response to host [00:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67404,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [00:58:26]free response buf [00:58:26]execute_script done [00:58:26]execute_script returns [00:58:26]free content buf [00:58:26]Sock 10.Close socket [00:58:26]Sock 10.Thread stoped [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:06]accept exits with 7 [01:10:06]New connection [01:10:06]New thread 3067174244 created [01:10:06]Thread 3067030884 joined [01:10:06]Waiting for new connection... [01:10:06] Sock 7.Parse request [01:10:06]Sock 7.Check first char [01:10:06]Sock 7.First char is OK [01:10:06]request: POST /json_proto HTTP/1.0 [01:10:06]Method: POST [01:10:06]URL: /json_proto [01:10:06]Method is POST - this is cgi request [01:10:06]url: /json_proto [01:10:06]query_string will be loaded in cgi processing [01:10:06]execute_cgi json_proto POST (null) [01:10:06]execute_cgi path=json_proto method=POST [01:10:06]POST find Content-Length [01:10:06]Host: 172.17.41.195:8080 [01:10:06]Content-Length: 803 [01:10:06]Content-Type: application/json [01:10:06] [01:10:06]POST finish read [01:10:06]Found Content-Length = 803 [01:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507382", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:06]execute_script... [01:10: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)507382", "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" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:06]POST & json_proto [01:10:06]process_json_proto [01:10:06]json parsed OK: [01:10:06]protocol is kg_v1.0 [01:10:06]action value=close_receipt [01:10:06]process_action close_receipt [01:10:06]cmd_close_receipt [01:10:06]MH_GetDate [01:10:06]Write to MH i2c: F0 00 00 39 39 61 [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: F0 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: F0 09 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: F0 09 00 39 39 00 F1 5C 45 66 FC 21 6F 64 52 [01:10:06]GetLastDocTimeStamp 1715820870 [01:10:06]current date 1715821809 [01:10:06]FM_GetShiftState [01:10:06]SAM_PROTO_GetShiftState [01:10:06]wFMCommunicate request_size=4 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 13 01 00 [01:10:06]Write to MH i2c: E2 08 00 3A 39 80 13 01 00 00 00 00 00 F0 [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 0E 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 0E 00 3A 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 9C [01:10:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:10:06]wFMCommunicate OK [01:10:06]SAM_PROTO_GetShiftState done [01:10:06]FM_GetShiftState done [01:10:06]opened in 1715818916 [01:10:06]opened+sec_in_day 1715905316 [01:10:06]quantity*price = 200066 [01:10:06]sum+1 = 200067 [01:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 3 16.05.2024 01:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67405 ФПД: 50620918908339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T011009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67405&fm=50620918908339&tin=02508201610067®Number=0000000000091845&sum=200066 [01:10:07]StoreToDocumentArchive [01:10:07]shift 357 fd 67405 [01:10:07]save to /storage/0357/doc_00067405 [01:10:07]save last doc name /storage/0357/doc_00067405 to /storage/kkm_last_doc_name [01:10:07]save OK [01:10:07]Clear old archive folders... [01:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:10:07]tlvbuf is B6EF75E0 [01:10:07]SAM_PROTO_ClearQueue [01:10:07]wFMCommunicate request_size=4 [01:10:07]MH_SAM_APDU [01:10:07]CAPDU: 80 09 00 00 [01:10:07]Write to MH i2c: E2 08 00 47 39 80 09 00 00 00 00 00 00 F2 [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 47 39 00 90 00 F4 [01:10:07]RAPDU: 90 00 [01:10:07]wFMCommunicate OK [01:10:07]SAM_PROTO_ClearQueue done [01:10:07]KKMCreateOFDPacket [01:10:07]OFDProtocolAddRootSTLVToBuf [01:10:07]FM_MakeSignedData [01:10:07]FM_MakeSignedData [01:10:07]SAM_PROTO_SignData [01:10:07]wFMCommunicate request_size=4 [01:10:07]MH_SAM_APDU [01:10:07]CAPDU: 80 0D 01 02 [01:10:07]Write to MH i2c: E2 08 00 48 39 80 0D 01 02 00 00 00 00 FA [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 48 39 00 90 00 F5 [01:10:07]RAPDU: 90 00 [01:10:07]wFMCommunicate OK [01:10:07]wFMCommunicate request_size=255 [01:10:07]MH_SAM_APDU [01:10: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 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 03 00 00 00 F4 03 04 00 F1 5C 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 07 01 00 35 04 06 00 2E [01:10:07]Write to MH i2c: E2 02 01 49 39 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 03 00 00 00 F4 03 04 00 F1 5C 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 07 01 00 35 04 06 00 2E 00 00 87 [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 49 39 00 90 00 F6 [01:10:07]RAPDU: 90 00 [01:10:07]wFMCommunicate OK [01:10:07]wFMCommunicate request_size=10 [01:10:07]MH_SAM_APDU [01:10:07]CAPDU: 80 0D 02 02 05 0A 19 E3 C5 B3 [01:10:07]Write to MH i2c: E2 0D 00 4A 39 80 0D 02 02 05 00 0A 19 E3 C5 B3 00 00 85 [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 03 00 4A 39 00 90 00 F7 [01:10:07]RAPDU: 90 00 [01:10:07]wFMCommunicate OK [01:10:07]wFMCommunicate request_size=4 [01:10:07]MH_SAM_APDU [01:10:07]CAPDU: 80 0D 03 02 [01:10:07]Write to MH i2c: E2 08 00 4B 39 80 0D 03 02 00 00 00 00 FF [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 0B 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 0B 00 4B 39 00 AE 88 18 F6 88 5D 92 7F 90 00 3A [01:10:07]RAPDU: AE 88 18 F6 88 5D 92 7F 90 00 [01:10:07]wFMCommunicate OK [01:10:07]SAM_PROTO_SignData done [01:10:07]FM_MakeSignedData done [01:10:07]CreateOFDProtocolMessage [01:10:07]wFMCommunicate request_size=4 [01:10:07]MH_SAM_APDU [01:10:07]CAPDU: 80 11 00 00 [01:10:07]Write to MH i2c: E2 08 00 4C 39 80 11 00 00 00 00 00 00 FF [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:07]Read from MH i2c: E2 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 17 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: E2 17 00 4C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 55 [01:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:10:07]wFMCommunicate OK [01:10:07]CreateOFDProtocolMessage done [01:10:07]OFDSenderStorePacket 67405 [01:10:07]StoreOFDPacket docnum=67405 [01:10: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 0F 01 00 00 23 59 07 01 5E 80 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 03 00 00 00 F4 03 04 00 F1 5C 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 07 01 00 35 04 06 00 2E 0A 19 E3 C5 B3 AE 88 18 F6 88 5D 92 7F [01:10:07]CheckFolder [01:10:07]dirname=/storage/ofd_packets [01:10:07]CheckFolder done [01:10:07]ProducePacketName [01:10:07]name=ofd_packets/00067405 [01:10:07]NVStorageSaveData ofd_packets/00067405 [01:10:07]File name is /storage/ofd_packets/00067405 [01:10:07]Write 301 bytes [01:10:07]NVStorageSaveData done [01:10:07]OFDSenderStorePacket done [01:10:07]KKMCreateOFDPacket done [01:10:07]NVStorageSaveData kkm_last_timestamp [01:10:07]File name is /storage/kkm_last_timestamp [01:10:07]Write 4 bytes [01:10:07]NVStorageSaveData done [01:10:07]ExternCall_PrintAddStr [01:10:07]wPrintStart [01:10:07]Write to MH i2c: 01 00 00 4D 39 86 [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 4D 39 00 00 00 00 00 FF 0F 9B [01:10:07]RasterBufferAndPrint [01:10:07]line Счет N : (1)507382 [01:10:07]line ИНН: 02508201610067 [01:10:07]line Контрольно-Кассовый Чек [01:10:07]line ПРОДАЖА [01:10:07]line ТРК (МРК, ГНК) : 43 [01:10:07]line Товар: 2710124130 [01:10:07]line Аи-92-К-5 [01:10:07]line 29.950 * 66.80 [01:10:07]line = 2000.66 [01:10:07]line НДС 12% НСП 1% [01:10:07]line > о реализуемом товаре [01:10:07]line ИТОГО: 2000.66 [01:10:07]line НСП 1% : 17.70 [01:10:07]line НДС 12% : 212.46 [01:10:07]line Наличными: 0.00 [01:10:07]line Безнал.: 2000.66 [01:10:07]line Место: АЗС № 91 "Партнер Нефть" [01:10:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:10:07]line СНО: Общий режим [01:10:07]line Чек 3 16.05.2024 01:10 [01:10:07]line Смена: 357 ФФД: 1.0 [01:10:07]line ЗНМ: 0300000119 [01:10:07]line РНМ: 0000000000091845 [01:10:07]line Версия ККМ: 001 [01:10:07]line Платежная система: O! деньги [01:10:07]line ФМ: 0000000000871829 [01:10:07]line ФД: 67405 [01:10:07]line ФПД: 50620918908339 [01:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T011009&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67405&fm=50620918908339&tin=02508201610067®Number=0000000000091845&sum=200066 [01:10:07]written 0, free lines is 4095 [01:10:07]OFD Sender: Processing packet 67405 [packets to send 35, broken 34] [01:10:07]ProducePacketName [01:10:07]name=ofd_packets/00067405 [01:10:07]OFD Sender: To server: pG, [01:10:07]CommunicateWithHost lk.salyk.kg:30040 [01:10:07]ConnectInit lk.salyk.kg [01:10:07]Connected sock=10 [01:10: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 0F 01 00 00 23 59 07 01 5E 80 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 03 00 00 00 F4 03 04 00 F1 5C 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 07 01 00 35 04 06 00 2E 0A 19 E3 C5 B3 AE 88 18 F6 88 5D 92 7F [01:10: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 EB A4 47 00 5C 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 4D 07 01 00 F4 03 04 00 CD 04 45 66 B6 04 01 00 00 19 B0 E2 CE DE 5B 99 9B [01:10:08]CommunicateWithHost err = 0 [01:10:08]CheckOFDResponse [01:10:08]1017 (14) - 77093643461234 [01:10:08]1041 (16) - 0000000000871829 [01:10:08]1040 (4) - 67405 [01:10:08]1012 (4) - 15.05.2024 18:54 [01:10:08]1206 (1) - 0 [01:10:08]OFD Sender: Remove packet 67405 [01:10:08]ProducePacketName [01:10:08]name=ofd_packets/00067405 [01:10:08]NVStorageDeleteData [01:10:08]Write to MH i2c: 01 00 00 76 39 AF [01:10:08]Write i2c OK [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: 01 [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: 01 07 00 [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: 01 07 00 76 39 00 00 00 00 00 E8 0C AA [01:10:08]RasterBufferAndPrint [01:10:08]line [01:10:08]line [01:10:08]line [01:10:08]line [01:10:08]line [01:10:08]written 0, free lines is 3313 [01:10:08]MH_Cut [01:10:08]Write to MH i2c: D1 01 00 7D 39 01 88 [01:10:08]Write i2c OK [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: D1 [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: D1 01 00 [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: D1 01 00 7D 39 00 87 [01:10:08]Write to MH i2c: 01 00 00 7E 39 B7 [01:10:08]Write i2c OK [01:10:08]MH_I2C_Read... [01:10:08]OFD Sender: No OFD packet to send [01:10:09]*** Cut start [01:10:09]*** Purtial cut [01:10:09]*** Stage 1: CUTSNS_PIN = 1 [01:10:09]Read from MH i2c: 01 [01:10:09]MH_I2C_Read... [01:10:09]*** Stop cut motor [01:10:09]*** Cut end [01:10:09]Read from MH i2c: 01 07 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 7E 39 00 00 00 00 00 FF 0F CC [01:10:09]process_action close_receipt done [01:10:09]requested_data is exist [01:10:09]produce_requested_data [01:10:09]requested_item fm.sn is exist - process it [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 11 00 00 [01:10:09]Write to MH i2c: E2 08 00 7F 39 80 11 00 00 00 00 00 00 32 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 17 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 17 00 7F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [01:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:10:09]wFMCommunicate OK [01:10:09]requested_item fd.num is exist - process it [01:10:09]SAM_PROTO_GetFieldsCounters [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 13 00 00 [01:10:09]Write to MH i2c: E2 08 00 80 39 80 13 00 00 00 00 00 00 35 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 62 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 62 00 80 39 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 4D 07 01 00 0E 04 04 00 65 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 1F [01:10: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 4D 07 01 00 0E 04 04 00 65 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 [01:10:09]wFMCommunicate OK [01:10:09]SAM_PROTO_GetFieldsCounters done [01:10:09]requested_item shift.num is exist - process it [01:10:09]requested_item shift.opened is exist - process it [01:10:09]req_shift_opened [01:10:09]FM_GetShiftState [01:10:09]SAM_PROTO_GetShiftState [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 13 01 00 [01:10:09]Write to MH i2c: E2 08 00 81 39 80 13 01 00 00 00 00 00 37 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 81 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 E3 [01:10:09]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:10:09]wFMCommunicate OK [01:10:09]SAM_PROTO_GetShiftState done [01:10:09]FM_GetShiftState done [01:10:09]req_shift_opened done [01:10:09]requested_item shift.open_date is exist - process it [01:10:09]req_shift_open_date [01:10:09]req_shift_open_date done [01:10:09]produce_requested_data done [01:10:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [01:10:09]process_action_free close_receipt [01:10:09]json_value_free [01:10:09]json_value_free done [01:10:09]process_json_proto returns [01:10:09]Send response to host [01:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [01:10:09]free response buf [01:10:09]execute_script done [01:10:09]execute_script returns [01:10:09]free content buf [01:10:09]Sock 7.Close socket [01:10:09]Sock 7.Thread stoped [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]accept exits with 9 [01:27:59]New connection [01:27:59]New thread 3067030884 created [01:27:59]Thread 3067174244 joined [01:27:59]Waiting for new connection... [01:27:59] Sock 9.Parse request [01:27:59]Sock 9.Check first char [01:27:59]Sock 9.First char is OK [01:27:59]request: POST /json_proto HTTP/1.0 [01:27:59]Method: POST [01:27:59]URL: /json_proto [01:27:59]Method is POST - this is cgi request [01:27:59]url: /json_proto [01:27:59]query_string will be loaded in cgi processing [01:27:59]execute_cgi json_proto POST (null) [01:27:59]execute_cgi path=json_proto method=POST [01:27:59]POST find Content-Length [01:27:59]Host: 172.17.41.195:8080 [01:27:59]Content-Length: 1209 [01:27:59]Content-Type: application/json [01:27:59] [01:27:59]POST finish read [01:27:59]Found Content-Length = 1209 [01:27:59]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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507383\u000A16.05.2024 01:10\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 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" ] } } [01:27:59]execute_script... [01:27:59]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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507383\u000A16.05.2024 01:10\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 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" ] } } [01:27:59]POST & json_proto [01:27:59]process_json_proto [01:27:59]json parsed OK: [01:27:59]protocol is kg_v1.0 [01:27:59]action value=print_text [01:27:59]process_action print_text [01:27:59]cmd_print_text [01:27:59]ExternCall_PrintAddStr [01:27:59]wPrintStart [01:27:59]Write to MH i2c: 01 00 00 82 39 BB [01:27:59]Write i2c OK [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 07 00 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 07 00 82 39 00 00 00 00 00 FF 0F D0 [01:27:59]RasterBufferAndPrint [01:27:59]line *****ТОВАРНЫЙ ЧЕК***** [01:27:59]line АЗС-91 [01:27:59]line Партнер нефть [01:27:59]line 02508201610067 [01:27:59]line Кассир : Пайзулдаева А. [01:27:59]line Счет N : (1)507383 [01:27:59]line 16.05.2024 01:10 [01:27:59]line ПРОДАЖА [01:27:59]line ТРК (МРК, ГНК): 31 [01:27:59]line Вид ГСМ : 2710194210 [01:27:59]line ДТ-К-5 [01:27:59]line 24.100 x 74.70 [01:27:59]line ИТОГ: 1800.27 [01:27:59]line Тип оплаты: Талоны: Топливная Карта [01:27:59]line 02750 [01:27:59]line ______________________ [01:27:59]line (подпись) [01:27:59]written 0, free lines is 4095 [01:27:59]OFD Sender: No OFD packet to send [01:27:59]Write to MH i2c: 01 00 00 96 39 CF [01:27:59]Write i2c OK [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 07 00 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: 01 07 00 96 39 00 00 00 00 00 10 0E F4 [01:27:59]RasterBufferAndPrint [01:27:59]line [01:27:59]line [01:27:59]line [01:27:59]line [01:27:59]line [01:27:59]written 0, free lines is 3602 [01:27:59]MH_Cut [01:27:59]Write to MH i2c: D1 01 00 9D 39 01 A8 [01:27:59]Write i2c OK [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: D1 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: D1 01 00 [01:27:59]MH_I2C_Read... [01:27:59]Read from MH i2c: D1 01 00 9D 39 00 A7 [01:27:59]Write to MH i2c: 01 00 00 9E 39 D7 [01:27:59]Write i2c OK [01:27:59]MH_I2C_Read... [01:28:00]*** Cut start [01:28:00]*** Purtial cut [01:28:00]*** CUTSNS_PIN = 0 [01:28:00]*** Stage 1: CUTSNS_PIN = 1 [01:28:02]Read from MH i2c: 01 [01:28:02]MH_I2C_Read... [01:28:02]*** Stop cut motor [01:28:02]*** Cut end [01:28:02]Read from MH i2c: 01 07 00 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: 01 07 00 9E 39 00 00 00 00 00 FF 0F EC [01:28:02]process_action print_text done [01:28:02]requested_data is exist [01:28:02]produce_requested_data [01:28:02]requested_item fm.sn is exist - process it [01:28:02]wFMCommunicate request_size=4 [01:28:02]MH_SAM_APDU [01:28:02]CAPDU: 80 11 00 00 [01:28:02]Write to MH i2c: E2 08 00 9F 39 80 11 00 00 00 00 00 00 52 [01:28:02]Write i2c OK [01:28:02]MH_I2C_Read... [01:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:02]Read from MH i2c: E2 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 17 00 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 17 00 9F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [01:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:28:02]wFMCommunicate OK [01:28:02]requested_item fd.num is exist - process it [01:28:02]SAM_PROTO_GetFieldsCounters [01:28:02]wFMCommunicate request_size=4 [01:28:02]MH_SAM_APDU [01:28:02]CAPDU: 80 13 00 00 [01:28:02]Write to MH i2c: E2 08 00 A0 39 80 13 00 00 00 00 00 00 55 [01:28:02]Write i2c OK [01:28:02]MH_I2C_Read... [01:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:02]Read from MH i2c: E2 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 62 00 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 62 00 A0 39 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 4D 07 01 00 0E 04 04 00 65 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 3F [01:28: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 4D 07 01 00 0E 04 04 00 65 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 [01:28:02]wFMCommunicate OK [01:28:02]SAM_PROTO_GetFieldsCounters done [01:28:02]requested_item shift.num is exist - process it [01:28:02]requested_item shift.opened is exist - process it [01:28:02]req_shift_opened [01:28:02]FM_GetShiftState [01:28:02]SAM_PROTO_GetShiftState [01:28:02]wFMCommunicate request_size=4 [01:28:02]MH_SAM_APDU [01:28:02]CAPDU: 80 13 01 00 [01:28:02]Write to MH i2c: E2 08 00 A1 39 80 13 01 00 00 00 00 00 57 [01:28:02]Write i2c OK [01:28:02]MH_I2C_Read... [01:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:02]Read from MH i2c: E2 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 0E 00 [01:28:02]MH_I2C_Read... [01:28:02]Read from MH i2c: E2 0E 00 A1 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 03 [01:28:02]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:28:02]wFMCommunicate OK [01:28:02]SAM_PROTO_GetShiftState done [01:28:02]FM_GetShiftState done [01:28:02]req_shift_opened done [01:28:02]requested_item shift.open_date is exist - process it [01:28:02]req_shift_open_date [01:28:02]req_shift_open_date done [01:28:02]produce_requested_data done [01:28:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [01:28:02]process_action_free print_text [01:28:02]json_value_free [01:28:02]json_value_free done [01:28:02]process_json_proto returns [01:28:02]Send response to host [01:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [01:28:02]free response buf [01:28:02]execute_script done [01:28:02]execute_script returns [01:28:02]free content buf [01:28:02]Sock 9.Close socket [01:28:02]Sock 9.Thread stoped [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:46]accept exits with 7 [01:40:46]New connection [01:40:46]New thread 3067174244 created [01:40:46]Thread 3067030884 joined [01:40:46]Waiting for new connection... [01:40:46] Sock 7.Parse request [01:40:46]Sock 7.Check first char [01:40:46]Sock 7.First char is OK [01:40:46]request: POST /json_proto HTTP/1.0 [01:40:46]Method: POST [01:40:46]URL: /json_proto [01:40:46]Method is POST - this is cgi request [01:40:46]url: /json_proto [01:40:46]query_string will be loaded in cgi processing [01:40:46]execute_cgi json_proto POST (null) [01:40:46]execute_cgi path=json_proto method=POST [01:40:46]POST find Content-Length [01:40:46]Host: 172.17.41.195:8080 [01:40:46]Content-Length: 1209 [01:40:46]Content-Type: application/json [01:40:46] [01:40:46]POST finish read [01:40:46]Found Content-Length = 1209 [01:40: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507386\u000A16.05.2024 01: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 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" ] } } [01:40:46]execute_script... [01:40: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507386\u000A16.05.2024 01: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 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" ] } } [01:40:46]POST & json_proto [01:40:46]process_json_proto [01:40:46]json parsed OK: [01:40:46]protocol is kg_v1.0 [01:40:46]action value=print_text [01:40:46]process_action print_text [01:40:46]cmd_print_text [01:40:46]ExternCall_PrintAddStr [01:40:46]wPrintStart [01:40:46]Write to MH i2c: 01 00 00 A2 39 DB [01:40:46]Write i2c OK [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 07 00 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 07 00 A2 39 00 00 00 00 00 FF 0F F0 [01:40:46]RasterBufferAndPrint [01:40:46]line *****ТОВАРНЫЙ ЧЕК***** [01:40:46]line АЗС-91 [01:40:46]line Партнер нефть [01:40:46]line 02508201610067 [01:40:46]line Кассир : Пайзулдаева А. [01:40:46]line Счет N : (1)507386 [01:40:46]line 16.05.2024 01:23 [01:40:46]line ПРОДАЖА [01:40:46]line ТРК (МРК, ГНК): 31 [01:40:46]line Вид ГСМ : 2710194210 [01:40:46]line ДТ-К-5 [01:40:46]line 13.390 x 74.70 [01:40:46]line ИТОГ: 1000.23 [01:40:46]line Тип оплаты: Талоны: Топливная Карта [01:40:46]line 02750 [01:40:46]line ______________________ [01:40:46]line (подпись) [01:40:46]written 0, free lines is 4095 [01:40:46]Write to MH i2c: 01 00 00 B6 39 EF [01:40:46]Write i2c OK [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 07 00 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 10 0E 14 [01:40:46]RasterBufferAndPrint [01:40:46]line [01:40:46]line [01:40:46]line [01:40:46]line [01:40:46]line [01:40:46]written 0, free lines is 3602 [01:40:46]MH_Cut [01:40:46]Write to MH i2c: D1 01 00 BD 39 01 C8 [01:40:46]Write i2c OK [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: D1 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: D1 01 00 [01:40:46]MH_I2C_Read... [01:40:46]Read from MH i2c: D1 01 00 BD 39 00 C7 [01:40:46]Write to MH i2c: 01 00 00 BE 39 F7 [01:40:46]Write i2c OK [01:40:46]MH_I2C_Read... [01:40:47]*** Cut start [01:40:47]*** Purtial cut [01:40:47]*** Stage 1: CUTSNS_PIN = 1 [01:40:47]Read from MH i2c: 01 [01:40:47]MH_I2C_Read... [01:40:47]*** Stop cut motor [01:40:47]*** Cut end [01:40:47]Read from MH i2c: 01 07 00 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [01:40:47]process_action print_text done [01:40:47]requested_data is exist [01:40:47]produce_requested_data [01:40:47]requested_item fm.sn is exist - process it [01:40:47]wFMCommunicate request_size=4 [01:40:47]MH_SAM_APDU [01:40:47]CAPDU: 80 11 00 00 [01:40:47]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [01:40:47]Write i2c OK [01:40:47]MH_I2C_Read... [01:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:47]Read from MH i2c: E2 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 17 00 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [01:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:40:47]wFMCommunicate OK [01:40:47]requested_item fd.num is exist - process it [01:40:47]SAM_PROTO_GetFieldsCounters [01:40:47]wFMCommunicate request_size=4 [01:40:47]MH_SAM_APDU [01:40:47]CAPDU: 80 13 00 00 [01:40:47]Write to MH i2c: E2 08 00 C0 39 80 13 00 00 00 00 00 00 75 [01:40:47]Write i2c OK [01:40:47]MH_I2C_Read... [01:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:47]Read from MH i2c: E2 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 62 00 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 62 00 C0 39 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 4D 07 01 00 0E 04 04 00 65 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 5F [01:40: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 4D 07 01 00 0E 04 04 00 65 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 [01:40:47]wFMCommunicate OK [01:40:47]SAM_PROTO_GetFieldsCounters done [01:40:47]requested_item shift.num is exist - process it [01:40:47]requested_item shift.opened is exist - process it [01:40:47]req_shift_opened [01:40:47]FM_GetShiftState [01:40:47]SAM_PROTO_GetShiftState [01:40:47]wFMCommunicate request_size=4 [01:40:47]MH_SAM_APDU [01:40:47]CAPDU: 80 13 01 00 [01:40:47]Write to MH i2c: E2 08 00 C1 39 80 13 01 00 00 00 00 00 77 [01:40:47]Write i2c OK [01:40:47]MH_I2C_Read... [01:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:47]Read from MH i2c: E2 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 0E 00 [01:40:47]MH_I2C_Read... [01:40:47]Read from MH i2c: E2 0E 00 C1 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 23 [01:40:47]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:40:47]wFMCommunicate OK [01:40:47]SAM_PROTO_GetShiftState done [01:40:47]FM_GetShiftState done [01:40:47]req_shift_opened done [01:40:47]requested_item shift.open_date is exist - process it [01:40:47]req_shift_open_date [01:40:47]req_shift_open_date done [01:40:47]produce_requested_data done [01:40:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [01:40:47]process_action_free print_text [01:40:47]json_value_free [01:40:47]json_value_free done [01:40:47]process_json_proto returns [01:40:47]Send response to host [01:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [01:40:47]free response buf [01:40:47]execute_script done [01:40:47]execute_script returns [01:40:47]free content buf [01:40:47]Sock 7.Close socket [01:40:47]Sock 7.Thread stoped [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:03]accept exits with 9 [01:41:03]New connection [01:41:03]New thread 3067030884 created [01:41:03]Thread 3067174244 joined [01:41:03]Waiting for new connection... [01:41:03] Sock 9.Parse request [01:41:03]Sock 9.Check first char [01:41:03]Sock 9.First char is OK [01:41:03]request: POST /json_proto HTTP/1.0 [01:41:03]Method: POST [01:41:03]URL: /json_proto [01:41:03]Method is POST - this is cgi request [01:41:03]url: /json_proto [01:41:03]query_string will be loaded in cgi processing [01:41:03]execute_cgi json_proto POST (null) [01:41:03]execute_cgi path=json_proto method=POST [01:41:03]POST find Content-Length [01:41:03]Host: 172.17.41.195:8080 [01:41:03]Content-Length: 1209 [01:41:03]Content-Type: application/json [01:41:03] [01:41:03]POST finish read [01:41:03]Found Content-Length = 1209 [01:41: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507384\u000A16.05.2024 01: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 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" ] } } [01:41:03]execute_script... [01:41: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507384\u000A16.05.2024 01: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 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" ] } } [01:41:03]POST & json_proto [01:41:03]process_json_proto [01:41:03]json parsed OK: [01:41:03]protocol is kg_v1.0 [01:41:03]action value=print_text [01:41:03]process_action print_text [01:41:03]cmd_print_text [01:41:03]ExternCall_PrintAddStr [01:41:03]wPrintStart [01:41:03]Write to MH i2c: 01 00 00 C2 39 FB [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 07 00 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 07 00 C2 39 00 00 00 00 00 FF 0F 10 [01:41:03]RasterBufferAndPrint [01:41:03]line *****ТОВАРНЫЙ ЧЕК***** [01:41:03]line АЗС-91 [01:41:03]line Партнер нефть [01:41:03]line 02508201610067 [01:41:03]line Кассир : Пайзулдаева А. [01:41:03]line Счет N : (1)507384 [01:41:03]line 16.05.2024 01:23 [01:41:03]line ПРОДАЖА [01:41:03]line ТРК (МРК, ГНК): 11 [01:41:03]line Вид ГСМ : 2710194210 [01:41:03]line ДТ-К-5 [01:41:03]line 40.000 x 74.70 [01:41:03]line ИТОГ: 2988.00 [01:41:03]line Тип оплаты: Талоны: Топливная Карта [01:41:03]line 02750 [01:41:03]line ______________________ [01:41:03]line (подпись) [01:41:03]written 0, free lines is 4095 [01:41:03]Write to MH i2c: 01 00 00 D6 39 0F [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 07 00 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 11 0E 35 [01:41:03]RasterBufferAndPrint [01:41:03]line [01:41:03]line [01:41:03]line [01:41:03]line [01:41:03]line [01:41:03]written 0, free lines is 3602 [01:41:03]MH_Cut [01:41:03]Write to MH i2c: D1 01 00 DD 39 01 E8 [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: D1 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: D1 01 00 [01:41:03]MH_I2C_Read... [01:41:03]Read from MH i2c: D1 01 00 DD 39 00 E7 [01:41:03]Write to MH i2c: 01 00 00 DE 39 17 [01:41:03]Write i2c OK [01:41:03]MH_I2C_Read... [01:41:04]*** Cut start [01:41:04]*** Purtial cut [01:41:04]*** CUTSNS_PIN = 0 [01:41:04]*** Stage 1: CUTSNS_PIN = 1 [01:41:05]OFD Sender: No OFD packet to send [01:41:06]Read from MH i2c: 01 [01:41:06]MH_I2C_Read... [01:41:06]*** Stop cut motor [01:41:06]*** Cut end [01:41:06]Read from MH i2c: 01 07 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: 01 07 00 DE 39 00 00 00 00 00 FF 0F 2C [01:41:06]process_action print_text done [01:41:06]requested_data is exist [01:41:06]produce_requested_data [01:41:06]requested_item fm.sn is exist - process it [01:41:06]wFMCommunicate request_size=4 [01:41:06]MH_SAM_APDU [01:41:06]CAPDU: 80 11 00 00 [01:41:06]Write to MH i2c: E2 08 00 DF 39 80 11 00 00 00 00 00 00 92 [01:41:06]Write i2c OK [01:41:06]MH_I2C_Read... [01:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:06]Read from MH i2c: E2 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 17 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 17 00 DF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [01: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 [01:41:06]wFMCommunicate OK [01:41:06]requested_item fd.num is exist - process it [01:41:06]SAM_PROTO_GetFieldsCounters [01:41:06]wFMCommunicate request_size=4 [01:41:06]MH_SAM_APDU [01:41:06]CAPDU: 80 13 00 00 [01:41:06]Write to MH i2c: E2 08 00 E0 39 80 13 00 00 00 00 00 00 95 [01:41:06]Write i2c OK [01:41:06]MH_I2C_Read... [01:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:06]Read from MH i2c: E2 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 62 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 62 00 E0 39 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 4D 07 01 00 0E 04 04 00 65 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 7F [01: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 4D 07 01 00 0E 04 04 00 65 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 [01:41:06]wFMCommunicate OK [01:41:06]SAM_PROTO_GetFieldsCounters done [01:41:06]requested_item shift.num is exist - process it [01:41:06]requested_item shift.opened is exist - process it [01:41:06]req_shift_opened [01:41:06]FM_GetShiftState [01:41:06]SAM_PROTO_GetShiftState [01:41:06]wFMCommunicate request_size=4 [01:41:06]MH_SAM_APDU [01:41:06]CAPDU: 80 13 01 00 [01:41:06]Write to MH i2c: E2 08 00 E1 39 80 13 01 00 00 00 00 00 97 [01:41:06]Write i2c OK [01:41:06]MH_I2C_Read... [01:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:06]Read from MH i2c: E2 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 0E 00 [01:41:06]MH_I2C_Read... [01:41:06]Read from MH i2c: E2 0E 00 E1 39 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 43 [01:41:06]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:41:06]wFMCommunicate OK [01:41:06]SAM_PROTO_GetShiftState done [01:41:06]FM_GetShiftState done [01:41:06]req_shift_opened done [01:41:06]requested_item shift.open_date is exist - process it [01:41:06]req_shift_open_date [01:41:06]req_shift_open_date done [01:41:06]produce_requested_data done [01:41:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [01:41:06]process_action_free print_text [01:41:06]json_value_free [01:41:06]json_value_free done [01:41:06]process_json_proto returns [01:41:06]Send response to host [01:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [01:41:06]free response buf [01:41:06]execute_script done [01:41:06]execute_script returns [01:41:06]free content buf [01:41:06]Sock 9.Close socket [01:41:06]Sock 9.Thread stoped [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:47]accept exits with 7 [01:41:47]New connection [01:41:47]New thread 3067174244 created [01:41:47]Thread 3067030884 joined [01:41:47]Waiting for new connection... [01:41:47] Sock 7.Parse request [01:41:47]Sock 7.Check first char [01:41:47]Sock 7.First char is OK [01:41:47]request: POST /json_proto HTTP/1.0 [01:41:47]Method: POST [01:41:47]URL: /json_proto [01:41:47]Method is POST - this is cgi request [01:41:47]url: /json_proto [01:41:47]query_string will be loaded in cgi processing [01:41:47]execute_cgi json_proto POST (null) [01:41:47]execute_cgi path=json_proto method=POST [01:41:47]POST find Content-Length [01:41:47]Host: 172.17.41.195:8080 [01:41:47]Content-Length: 1209 [01:41:47]Content-Type: application/json [01:41:47] [01:41:47]POST finish read [01:41:47]Found Content-Length = 1209 [01:41: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507387\u000A16.05.2024 01:24\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" ] } } [01:41:47]execute_script... [01:41: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507387\u000A16.05.2024 01:24\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" ] } } [01:41:47]POST & json_proto [01:41:47]process_json_proto [01:41:47]json parsed OK: [01:41:47]protocol is kg_v1.0 [01:41:47]action value=print_text [01:41:47]process_action print_text [01:41:47]cmd_print_text [01:41:47]ExternCall_PrintAddStr [01:41:47]wPrintStart [01:41:47]Write to MH i2c: 01 00 00 E2 39 1B [01:41:47]Write i2c OK [01:41:47]MH_I2C_Read... [01:41:47]Read from MH i2c: 01 [01:41:47]MH_I2C_Read... [01:41:47]Read from MH i2c: 01 07 00 [01:41:47]MH_I2C_Read... [01:41:47]Read from MH i2c: 01 07 00 E2 39 00 00 00 00 00 FF 0F 30 [01:41:47]RasterBufferAndPrint [01:41:47]line *****ТОВАРНЫЙ ЧЕК***** [01:41:47]line АЗС-91 [01:41:47]line Партнер нефть [01:41:47]line 02508201610067 [01:41:47]line Кассир : Пайзулдаева А. [01:41:47]line Счет N : (1)507387 [01:41:47]line 16.05.2024 01:24 [01:41:47]line ПРОДАЖА [01:41:47]line ТРК (МРК, ГНК): 41 [01:41:47]line Вид ГСМ : 2710194210 [01:41:47]line ДТ-К-5 [01:41:47]line 26.780 x 74.70 [01:41:47]line ИТОГ: 2000.47 [01:41:47]line Тип оплаты: Талоны: Топливная Карта [01:41:47]line 02750 [01:41:47]line ______________________ [01:41:47]line (подпись) [01:41:47]written 0, free lines is 4095 [01:41:48]Write to MH i2c: 01 00 00 F6 39 2F [01:41:48]Write i2c OK [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: 01 [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: 01 07 00 [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: 01 07 00 F6 39 00 00 00 00 00 11 0E 55 [01:41:48]RasterBufferAndPrint [01:41:48]line [01:41:48]line [01:41:48]line [01:41:48]line [01:41:48]line [01:41:48]written 0, free lines is 3602 [01:41:48]MH_Cut [01:41:48]Write to MH i2c: D1 01 00 FD 39 01 08 [01:41:48]Write i2c OK [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: D1 [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: D1 01 00 [01:41:48]MH_I2C_Read... [01:41:48]Read from MH i2c: D1 01 00 FD 39 00 07 [01:41:48]Write to MH i2c: 01 00 00 FE 39 37 [01:41:48]Write i2c OK [01:41:48]MH_I2C_Read... [01:41:48]*** Cut start [01:41:48]*** Purtial cut [01:41:48]*** Stage 1: CUTSNS_PIN = 1 [01:41:49]Read from MH i2c: 01 [01:41:49]MH_I2C_Read... [01:41:49]*** Stop cut motor [01:41:49]*** Cut end [01:41:49]Read from MH i2c: 01 07 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: 01 07 00 FE 39 00 00 00 00 00 FF 0F 4C [01:41:49]process_action print_text done [01:41:49]requested_data is exist [01:41:49]produce_requested_data [01:41:49]requested_item fm.sn is exist - process it [01:41:49]wFMCommunicate request_size=4 [01:41:49]MH_SAM_APDU [01:41:49]CAPDU: 80 11 00 00 [01:41:49]Write to MH i2c: E2 08 00 FF 39 80 11 00 00 00 00 00 00 B2 [01:41:49]Write i2c OK [01:41:49]MH_I2C_Read... [01:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:49]Read from MH i2c: E2 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 17 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 17 00 FF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [01:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:41:49]wFMCommunicate OK [01:41:49]requested_item fd.num is exist - process it [01:41:49]SAM_PROTO_GetFieldsCounters [01:41:49]wFMCommunicate request_size=4 [01:41:49]MH_SAM_APDU [01:41:49]CAPDU: 80 13 00 00 [01:41:49]Write to MH i2c: E2 08 00 00 3A 80 13 00 00 00 00 00 00 B6 [01:41:49]Write i2c OK [01:41:49]MH_I2C_Read... [01:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:49]Read from MH i2c: E2 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 62 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 62 00 00 3A 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 4D 07 01 00 0E 04 04 00 65 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 A0 [01:41: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 4D 07 01 00 0E 04 04 00 65 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 [01:41:49]wFMCommunicate OK [01:41:49]SAM_PROTO_GetFieldsCounters done [01:41:49]requested_item shift.num is exist - process it [01:41:49]requested_item shift.opened is exist - process it [01:41:49]req_shift_opened [01:41:49]FM_GetShiftState [01:41:49]SAM_PROTO_GetShiftState [01:41:49]wFMCommunicate request_size=4 [01:41:49]MH_SAM_APDU [01:41:49]CAPDU: 80 13 01 00 [01:41:49]Write to MH i2c: E2 08 00 01 3A 80 13 01 00 00 00 00 00 B8 [01:41:49]Write i2c OK [01:41:49]MH_I2C_Read... [01:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:49]Read from MH i2c: E2 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 0E 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 0E 00 01 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 64 [01:41:49]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [01:41:49]wFMCommunicate OK [01:41:49]SAM_PROTO_GetShiftState done [01:41:49]FM_GetShiftState done [01:41:49]req_shift_opened done [01:41:49]requested_item shift.open_date is exist - process it [01:41:49]req_shift_open_date [01:41:49]req_shift_open_date done [01:41:49]produce_requested_data done [01:41:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [01:41:49]process_action_free print_text [01:41:49]json_value_free [01:41:49]json_value_free done [01:41:49]process_json_proto returns [01:41:49]Send response to host [01:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67405,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [01:41:49]free response buf [01:41:49]execute_script done [01:41:49]execute_script returns [01:41:49]free content buf [01:41:49]Sock 7.Close socket [01:41:49]Sock 7.Thread stoped [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:39]accept exits with 9 [02:09:39]New connection [02:09:39]New thread 3067030884 created [02:09:39]Thread 3067174244 joined [02:09:39]Waiting for new connection... [02:09:39] Sock 9.Parse request [02:09:39]Sock 9.Check first char [02:09:39]Sock 9.First char is OK [02:09:39]request: POST /json_proto HTTP/1.0 [02:09:39]Method: POST [02:09:39]URL: /json_proto [02:09:39]Method is POST - this is cgi request [02:09:39]url: /json_proto [02:09:39]query_string will be loaded in cgi processing [02:09:39]execute_cgi json_proto POST (null) [02:09:39]execute_cgi path=json_proto method=POST [02:09:39]POST find Content-Length [02:09:39]Host: 172.17.41.195:8080 [02:09:39]Content-Length: 674 [02:09:39]Content-Type: application/json [02:09:39] [02:09:39]POST finish read [02:09:39]Found Content-Length = 674 [02:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507388", "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" : 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" ] } } [02:09:39]execute_script... [02:09: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)507388", "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" : 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" ] } } [02:09:39]POST & json_proto [02:09:39]process_json_proto [02:09:39]json parsed OK: [02:09:39]protocol is kg_v1.0 [02:09:39]action value=close_receipt [02:09:39]process_action close_receipt [02:09:39]cmd_close_receipt [02:09:39]MH_GetDate [02:09:39]Write to MH i2c: F0 00 00 02 3A 2B [02:09:39]Write i2c OK [02:09:39]MH_I2C_Read... [02:09:39]Read from MH i2c: F0 [02:09:39]MH_I2C_Read... [02:09:39]Read from MH i2c: F0 09 00 [02:09:39]MH_I2C_Read... [02:09:39]Read from MH i2c: F0 09 00 02 3A 00 E7 6A 45 66 FC 21 6F 64 20 [02:09:39]GetLastDocTimeStamp 1715821809 [02:09:39]current date 1715825383 [02:09:39]FM_GetShiftState [02:09:39]SAM_PROTO_GetShiftState [02:09:39]wFMCommunicate request_size=4 [02:09:39]MH_SAM_APDU [02:09:39]CAPDU: 80 13 01 00 [02:09:39]Write to MH i2c: E2 08 00 03 3A 80 13 01 00 00 00 00 00 BA [02:09:39]Write i2c OK [02:09:39]MH_I2C_Read... [02:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:39]Read from MH i2c: E2 [02:09:39]MH_I2C_Read... [02:09:39]Read from MH i2c: E2 0E 00 [02:09:39]MH_I2C_Read... [02:09:39]Read from MH i2c: E2 0E 00 03 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 66 [02:09:39]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [02:09:39]wFMCommunicate OK [02:09:39]SAM_PROTO_GetShiftState done [02:09:39]FM_GetShiftState done [02:09:39]opened in 1715818916 [02:09:39]opened+sec_in_day 1715905316 [02:09:39]quantity*price = 40039 [02:09:39]sum+1 = 40040 [02:09:39]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 СНО: Общий режим Чек 4 16.05.2024 02:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67406 ФПД: 157797647431671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T020943&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67406&fm=157797647431671&tin=02508201610067®Number=0000000000091845&sum=40000 [02:09:40]StoreToDocumentArchive [02:09:40]shift 357 fd 67406 [02:09:40]save to /storage/0357/doc_00067406 [02:09:40]save last doc name /storage/0357/doc_00067406 to /storage/kkm_last_doc_name [02:09:40]save OK [02:09:40]Clear old archive folders... [02:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:09:40]tlvbuf is 00B3B710 [02:09:40]SAM_PROTO_ClearQueue [02:09:40]wFMCommunicate request_size=4 [02:09:40]MH_SAM_APDU [02:09:40]CAPDU: 80 09 00 00 [02:09:40]Write to MH i2c: E2 08 00 10 3A 80 09 00 00 00 00 00 00 BC [02:09:40]Write i2c OK [02:09:40]MH_I2C_Read... [02:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:40]Read from MH i2c: E2 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [02:09:40]RAPDU: 90 00 [02:09:40]wFMCommunicate OK [02:09:40]SAM_PROTO_ClearQueue done [02:09:40]KKMCreateOFDPacket [02:09:40]OFDProtocolAddRootSTLVToBuf [02:09:40]FM_MakeSignedData [02:09:40]FM_MakeSignedData [02:09:40]SAM_PROTO_SignData [02:09:40]wFMCommunicate request_size=4 [02:09:40]MH_SAM_APDU [02:09:40]CAPDU: 80 0D 01 02 [02:09:40]Write to MH i2c: E2 08 00 11 3A 80 0D 01 02 00 00 00 00 C4 [02:09:40]Write i2c OK [02:09:40]MH_I2C_Read... [02:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:40]Read from MH i2c: E2 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 11 3A 00 90 00 BF [02:09:40]RAPDU: 90 00 [02:09:40]wFMCommunicate OK [02:09:40]wFMCommunicate request_size=255 [02:09:40]MH_SAM_APDU [02:09:40]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 04 00 00 00 F4 03 04 00 E7 6A 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4E 07 01 00 35 04 06 00 8F 84 20 B8 [02:09:40]Write to MH i2c: E2 02 01 12 3A 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 04 00 00 00 F4 03 04 00 E7 6A 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4E 07 01 00 35 04 06 00 8F 84 20 B8 00 00 E6 [02:09:40]Write i2c OK [02:09:40]MH_I2C_Read... [02:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:40]Read from MH i2c: E2 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 [02:09:40]MH_I2C_Read... [02:09:40]Read from MH i2c: E2 03 00 12 3A 00 90 00 C0 [02:09:40]RAPDU: 90 00 [02:09:40]wFMCommunicate OK [02:09:40]wFMCommunicate request_size=7 [02:09:40]MH_SAM_APDU [02:09:40]CAPDU: 80 0D 02 02 02 B7 F7 [02:09:40]Write to MH i2c: E2 0A 00 13 3A 80 0D 02 02 02 00 B7 F7 00 00 79 [02:09:40]Write i2c OK [02:09:40]MH_I2C_Read... [02:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:41]Read from MH i2c: E2 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 03 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 03 00 13 3A 00 90 00 C1 [02:09:41]RAPDU: 90 00 [02:09:41]wFMCommunicate OK [02:09:41]wFMCommunicate request_size=4 [02:09:41]MH_SAM_APDU [02:09:41]CAPDU: 80 0D 03 02 [02:09:41]Write to MH i2c: E2 08 00 14 3A 80 0D 03 02 00 00 00 00 C9 [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:41]Read from MH i2c: E2 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 0B 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 0B 00 14 3A 00 80 52 B2 EE 3F E7 83 28 90 00 0D [02:09:41]RAPDU: 80 52 B2 EE 3F E7 83 28 90 00 [02:09:41]wFMCommunicate OK [02:09:41]SAM_PROTO_SignData done [02:09:41]FM_MakeSignedData done [02:09:41]CreateOFDProtocolMessage [02:09:41]wFMCommunicate request_size=4 [02:09:41]MH_SAM_APDU [02:09:41]CAPDU: 80 11 00 00 [02:09:41]Write to MH i2c: E2 08 00 15 3A 80 11 00 00 00 00 00 00 C9 [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:41]Read from MH i2c: E2 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 17 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: E2 17 00 15 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [02:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [02:09:41]wFMCommunicate OK [02:09:41]CreateOFDProtocolMessage done [02:09:41]OFDSenderStorePacket 67406 [02:09:41]StoreOFDPacket docnum=67406 [02:09: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 F6 3E 04 01 13 B1 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 04 00 00 00 F4 03 04 00 E7 6A 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4E 07 01 00 35 04 06 00 8F 84 20 B8 B7 F7 80 52 B2 EE 3F E7 83 28 [02:09:41]CheckFolder [02:09:41]dirname=/storage/ofd_packets [02:09:41]CheckFolder done [02:09:41]ProducePacketName [02:09:41]name=ofd_packets/00067406 [02:09:41]NVStorageSaveData ofd_packets/00067406 [02:09:41]File name is /storage/ofd_packets/00067406 [02:09:41]Write 298 bytes [02:09:41]NVStorageSaveData done [02:09:41]OFDSenderStorePacket done [02:09:41]KKMCreateOFDPacket done [02:09:41]NVStorageSaveData kkm_last_timestamp [02:09:41]File name is /storage/kkm_last_timestamp [02:09:41]Write 4 bytes [02:09:41]NVStorageSaveData done [02:09:41]ExternCall_PrintAddStr [02:09:41]wPrintStart [02:09:41]Write to MH i2c: 01 00 00 16 3A 50 [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 07 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 07 00 16 3A 00 00 00 00 00 FF 0F 65 [02:09:41]RasterBufferAndPrint [02:09:41]line Счет N : (1)507388 [02:09:41]line ИНН: 02508201610067 [02:09:41]line Контрольно-Кассовый Чек [02:09:41]line ПРОДАЖА [02:09:41]line ТРК (МРК, ГНК) : 31 [02:09:41]line Товар: 2710194210 [02:09:41]line ДТ-К-5 [02:09:41]line 5.360 * 74.70 [02:09:41]line = 400.39 [02:09:41]line НДС 12% НСП 1% [02:09:41]line > о реализуемом товаре [02:09:41]line ОКРУГЛЕНИЕ: -0.39 [02:09:41]line ИТОГО: 400.00 [02:09:41]line Внесено: 400.00 [02:09:41]line СДАЧА: 0.00 [02:09:41]line НСП 1% : 3.54 [02:09:41]line НДС 12% : 42.52 [02:09:41]line Наличными: 400.00 [02:09:41]line Безнал.: 0.00 [02:09:41]line Место: АЗС № 91 "Партнер Нефть" [02:09:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [02:09:41]line СНО: Общий режим [02:09:41]line Чек 4 16.05.2024 02:09 [02:09:41]line Смена: 357 ФФД: 1.0 [02:09:41]line ЗНМ: 0300000119 [02:09:41]line РНМ: 0000000000091845 [02:09:41]line Версия ККМ: 001 [02:09:41]line ФМ: 0000000000871829 [02:09:41]line ФД: 67406 [02:09:41]line ФПД: 157797647431671 [02:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T020943&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67406&fm=157797647431671&tin=02508201610067®Number=0000000000091845&sum=40000 [02:09:41]written 0, free lines is 4095 [02:09:41]OFD Sender: Processing packet 67406 [packets to send 35, broken 34] [02:09:41]ProducePacketName [02:09:41]name=ofd_packets/00067406 [02:09:41]OFD Sender: To server: pG, [02:09:41]CommunicateWithHost lk.salyk.kg:30040 [02:09:41]ConnectInit lk.salyk.kg [02:09:41]Connected sock=10 [02:09: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 0C 01 00 00 F6 3E 04 01 13 B1 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 04 00 00 00 F4 03 04 00 E7 6A 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4E 07 01 00 35 04 06 00 8F 84 20 B8 B7 F7 80 52 B2 EE 3F E7 83 28 [02:09: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 8B FD 47 00 52 DF 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 4E 07 01 00 F4 03 04 00 C2 12 45 66 B6 04 01 00 00 FB 83 F8 19 34 1D 85 D0 [02:09:41]CommunicateWithHost err = 0 [02:09:41]CheckOFDResponse [02:09:41]1017 (14) - 77093643461234 [02:09:41]1041 (16) - 0000000000871829 [02:09:41]1040 (4) - 67406 [02:09:41]1012 (4) - 15.05.2024 19:53 [02:09:41]1206 (1) - 0 [02:09:41]OFD Sender: Remove packet 67406 [02:09:41]ProducePacketName [02:09:41]name=ofd_packets/00067406 [02:09:41]NVStorageDeleteData [02:09:41]Write to MH i2c: 01 00 00 40 3A 7A [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 07 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: 01 07 00 40 3A 00 00 00 00 00 C4 0C 51 [02:09:41]RasterBufferAndPrint [02:09:41]line [02:09:41]line [02:09:41]line [02:09:41]line [02:09:41]line [02:09:41]written 0, free lines is 3273 [02:09:41]MH_Cut [02:09:41]Write to MH i2c: D1 01 00 47 3A 01 53 [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: D1 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: D1 01 00 [02:09:41]MH_I2C_Read... [02:09:41]Read from MH i2c: D1 01 00 47 3A 00 52 [02:09:41]Write to MH i2c: 01 00 00 48 3A 82 [02:09:41]Write i2c OK [02:09:41]MH_I2C_Read... [02:09:41]OFD Sender: No OFD packet to send [02:09:42]*** Cut start [02:09:42]*** Purtial cut [02:09:42]*** CUTSNS_PIN = 0 [02:09:42]*** Stage 1: CUTSNS_PIN = 1 [02:09:44]Read from MH i2c: 01 [02:09:44]MH_I2C_Read... [02:09:44]*** Stop cut motor [02:09:44]*** Cut end [02:09:44]Read from MH i2c: 01 07 00 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: 01 07 00 48 3A 00 00 00 00 00 FF 0F 97 [02:09:44]process_action close_receipt done [02:09:44]requested_data is exist [02:09:44]produce_requested_data [02:09:44]requested_item fm.sn is exist - process it [02:09:44]wFMCommunicate request_size=4 [02:09:44]MH_SAM_APDU [02:09:44]CAPDU: 80 11 00 00 [02:09:44]Write to MH i2c: E2 08 00 49 3A 80 11 00 00 00 00 00 00 FD [02:09:44]Write i2c OK [02:09:44]MH_I2C_Read... [02:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:44]Read from MH i2c: E2 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 17 00 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 17 00 49 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 53 [02: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 [02:09:44]wFMCommunicate OK [02:09:44]requested_item fd.num is exist - process it [02:09:44]SAM_PROTO_GetFieldsCounters [02:09:44]wFMCommunicate request_size=4 [02:09:44]MH_SAM_APDU [02:09:44]CAPDU: 80 13 00 00 [02:09:44]Write to MH i2c: E2 08 00 4A 3A 80 13 00 00 00 00 00 00 00 [02:09:44]Write i2c OK [02:09:44]MH_I2C_Read... [02:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:44]Read from MH i2c: E2 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 62 00 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 62 00 4A 3A 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 4E 07 01 00 0E 04 04 00 65 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 EE [02: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 4E 07 01 00 0E 04 04 00 65 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 [02:09:44]wFMCommunicate OK [02:09:44]SAM_PROTO_GetFieldsCounters done [02:09:44]requested_item shift.num is exist - process it [02:09:44]requested_item shift.opened is exist - process it [02:09:44]req_shift_opened [02:09:44]FM_GetShiftState [02:09:44]SAM_PROTO_GetShiftState [02:09:44]wFMCommunicate request_size=4 [02:09:44]MH_SAM_APDU [02:09:44]CAPDU: 80 13 01 00 [02:09:44]Write to MH i2c: E2 08 00 4B 3A 80 13 01 00 00 00 00 00 02 [02:09:44]Write i2c OK [02:09:44]MH_I2C_Read... [02:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:44]Read from MH i2c: E2 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 0E 00 [02:09:44]MH_I2C_Read... [02:09:44]Read from MH i2c: E2 0E 00 4B 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 AE [02:09:44]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [02:09:44]wFMCommunicate OK [02:09:44]SAM_PROTO_GetShiftState done [02:09:44]FM_GetShiftState done [02:09:44]req_shift_opened done [02:09:44]requested_item shift.open_date is exist - process it [02:09:44]req_shift_open_date [02:09:44]req_shift_open_date done [02:09:44]produce_requested_data done [02:09:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [02:09:44]process_action_free close_receipt [02:09:44]json_value_free [02:09:44]json_value_free done [02:09:44]process_json_proto returns [02:09:44]Send response to host [02:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [02:09:44]free response buf [02:09:44]execute_script done [02:09:44]execute_script returns [02:09:44]free content buf [02:09:44]Sock 9.Close socket [02:09:44]Sock 9.Thread stoped [02:09:46]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:26]accept exits with 7 [02:50:26]New connection [02:50:26]New thread 3067174244 created [02:50:26]Thread 3067030884 joined [02:50:26]Waiting for new connection... [02:50:26] Sock 7.Parse request [02:50:26]Sock 7.Check first char [02:50:26]Sock 7.First char is OK [02:50:26]request: POST /json_proto HTTP/1.0 [02:50:26]Method: POST [02:50:26]URL: /json_proto [02:50:26]Method is POST - this is cgi request [02:50:26]url: /json_proto [02:50:26]query_string will be loaded in cgi processing [02:50:26]execute_cgi json_proto POST (null) [02:50:26]execute_cgi path=json_proto method=POST [02:50:26]POST find Content-Length [02:50:26]Host: 172.17.41.195:8080 [02:50:26]Content-Length: 1209 [02:50:26]Content-Type: application/json [02:50:26] [02:50:26]POST finish read [02:50:26]Found Content-Length = 1209 [02:50: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507389\u000A16.05.2024 02:33\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" ] } } [02:50:26]execute_script... [02:50: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507389\u000A16.05.2024 02:33\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" ] } } [02:50:26]POST & json_proto [02:50:26]process_json_proto [02:50:26]json parsed OK: [02:50:26]protocol is kg_v1.0 [02:50:26]action value=print_text [02:50:26]process_action print_text [02:50:26]cmd_print_text [02:50:26]ExternCall_PrintAddStr [02:50:26]wPrintStart [02:50:26]Write to MH i2c: 01 00 00 4C 3A 86 [02:50:26]Write i2c OK [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 07 00 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 07 00 4C 3A 00 00 00 00 00 FF 0F 9B [02:50:26]RasterBufferAndPrint [02:50:26]line *****ТОВАРНЫЙ ЧЕК***** [02:50:26]line АЗС-91 [02:50:26]line Партнер нефть [02:50:26]line 02508201610067 [02:50:26]line Кассир : Пайзулдаева А. [02:50:26]line Счет N : (1)507389 [02:50:26]line 16.05.2024 02:33 [02:50:26]line ПРОДАЖА [02:50:26]line ТРК (МРК, ГНК): 31 [02:50:26]line Вид ГСМ : 2710194210 [02:50:26]line ДТ-К-5 [02:50:26]line 40.170 x 74.70 [02:50:26]line ИТОГ: 3000.70 [02:50:26]line Тип оплаты: Талоны: Топливная Карта [02:50:26]line 02750 [02:50:26]line ______________________ [02:50:26]line (подпись) [02:50:26]written 0, free lines is 4095 [02:50:26]Write to MH i2c: 01 00 00 60 3A 9A [02:50:26]Write i2c OK [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 07 00 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: 01 07 00 60 3A 00 00 00 00 00 0F 0E BE [02:50:26]RasterBufferAndPrint [02:50:26]line [02:50:26]line [02:50:26]line [02:50:26]line [02:50:26]line [02:50:26]written 0, free lines is 3601 [02:50:26]MH_Cut [02:50:26]Write to MH i2c: D1 01 00 67 3A 01 73 [02:50:26]Write i2c OK [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: D1 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: D1 01 00 [02:50:26]MH_I2C_Read... [02:50:26]Read from MH i2c: D1 01 00 67 3A 00 72 [02:50:26]Write to MH i2c: 01 00 00 68 3A A2 [02:50:26]Write i2c OK [02:50:26]MH_I2C_Read... [02:50:27]*** Cut start [02:50:27]*** Purtial cut [02:50:27]*** Stage 1: CUTSNS_PIN = 1 [02:50:27]Read from MH i2c: 01 [02:50:27]MH_I2C_Read... [02:50:27]Read from MH i2c: 01 07 00 [02:50:27]MH_I2C_Read... [02:50:27]*** Stop cut motor [02:50:27]*** Cut end [02:50:27]Read from MH i2c: 01 07 00 68 3A 00 00 00 00 00 FF 0F B7 [02:50:27]process_action print_text done [02:50:27]requested_data is exist [02:50:27]produce_requested_data [02:50:27]requested_item fm.sn is exist - process it [02:50:27]wFMCommunicate request_size=4 [02:50:27]MH_SAM_APDU [02:50:27]CAPDU: 80 11 00 00 [02:50:27]Write to MH i2c: E2 08 00 69 3A 80 11 00 00 00 00 00 00 1D [02:50:27]Write i2c OK [02:50:27]MH_I2C_Read... [02:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:27]Read from MH i2c: E2 [02:50:27]MH_I2C_Read... [02:50:27]Read from MH i2c: E2 17 00 [02:50:27]MH_I2C_Read... [02:50:27]Read from MH i2c: E2 17 00 69 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [02:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [02:50:27]wFMCommunicate OK [02:50:27]requested_item fd.num is exist - process it [02:50:27]SAM_PROTO_GetFieldsCounters [02:50:27]wFMCommunicate request_size=4 [02:50:27]MH_SAM_APDU [02:50:27]CAPDU: 80 13 00 00 [02:50:27]Write to MH i2c: E2 08 00 6A 3A 80 13 00 00 00 00 00 00 20 [02:50:27]Write i2c OK [02:50:27]MH_I2C_Read... [02:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:28]Read from MH i2c: E2 [02:50:28]MH_I2C_Read... [02:50:28]Read from MH i2c: E2 62 00 [02:50:28]MH_I2C_Read... [02:50:28]Read from MH i2c: E2 62 00 6A 3A 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 4E 07 01 00 0E 04 04 00 65 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 0E [02:50:28]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 4E 07 01 00 0E 04 04 00 65 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 [02:50:28]wFMCommunicate OK [02:50:28]SAM_PROTO_GetFieldsCounters done [02:50:28]requested_item shift.num is exist - process it [02:50:28]requested_item shift.opened is exist - process it [02:50:28]req_shift_opened [02:50:28]FM_GetShiftState [02:50:28]SAM_PROTO_GetShiftState [02:50:28]wFMCommunicate request_size=4 [02:50:28]MH_SAM_APDU [02:50:28]CAPDU: 80 13 01 00 [02:50:28]Write to MH i2c: E2 08 00 6B 3A 80 13 01 00 00 00 00 00 22 [02:50:28]Write i2c OK [02:50:28]MH_I2C_Read... [02:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:28]Read from MH i2c: E2 [02:50:28]MH_I2C_Read... [02:50:28]Read from MH i2c: E2 0E 00 [02:50:28]MH_I2C_Read... [02:50:28]Read from MH i2c: E2 0E 00 6B 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 CE [02:50:28]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [02:50:28]wFMCommunicate OK [02:50:28]SAM_PROTO_GetShiftState done [02:50:28]FM_GetShiftState done [02:50:28]req_shift_opened done [02:50:28]requested_item shift.open_date is exist - process it [02:50:28]req_shift_open_date [02:50:28]req_shift_open_date done [02:50:28]produce_requested_data done [02:50:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [02:50:28]process_action_free print_text [02:50:28]json_value_free [02:50:28]json_value_free done [02:50:28]process_json_proto returns [02:50:28]Send response to host [02:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [02:50:28]free response buf [02:50:28]execute_script done [02:50:28]execute_script returns [02:50:28]free content buf [02:50:28]Sock 7.Close socket [02:50:28]Sock 7.Thread stoped [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:55]accept exits with 9 [03:01:55]New connection [03:01:55]New thread 3067030884 created [03:01:55]Thread 3067174244 joined [03:01:55]Waiting for new connection... [03:01:55] Sock 9.Parse request [03:01:55]Sock 9.Check first char [03:01:55]Sock 9.First char is OK [03:01:55]request: POST /json_proto HTTP/1.0 [03:01:55]Method: POST [03:01:55]URL: /json_proto [03:01:55]Method is POST - this is cgi request [03:01:55]url: /json_proto [03:01:55]query_string will be loaded in cgi processing [03:01:55]execute_cgi json_proto POST (null) [03:01:55]execute_cgi path=json_proto method=POST [03:01:55]POST find Content-Length [03:01:55]Host: 172.17.41.195:8080 [03:01:55]Content-Length: 1209 [03:01:55]Content-Type: application/json [03:01:55] [03:01:55]POST finish read [03:01:55]Found Content-Length = 1209 [03:01: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507390\u000A16.05.2024 02:44\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" ] } } [03:01:55]execute_script... [03:01: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507390\u000A16.05.2024 02:44\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" ] } } [03:01:55]POST & json_proto [03:01:55]process_json_proto [03:01:55]json parsed OK: [03:01:55]protocol is kg_v1.0 [03:01:55]action value=print_text [03:01:55]process_action print_text [03:01:55]cmd_print_text [03:01:55]ExternCall_PrintAddStr [03:01:55]wPrintStart [03:01:55]Write to MH i2c: 01 00 00 6C 3A A6 [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 07 00 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [03:01:55]RasterBufferAndPrint [03:01:55]line *****ТОВАРНЫЙ ЧЕК***** [03:01:55]line АЗС-91 [03:01:55]line Партнер нефть [03:01:55]line 02508201610067 [03:01:55]line Кассир : Пайзулдаева А. [03:01:55]line Счет N : (1)507390 [03:01:55]line 16.05.2024 02:44 [03:01:55]line ПРОДАЖА [03:01:55]line ТРК (МРК, ГНК): 21 [03:01:55]line Вид ГСМ : 2710194210 [03:01:55]line ДТ-К-5 [03:01:55]line 40.000 x 74.70 [03:01:55]line ИТОГ: 2988.00 [03:01:55]line Тип оплаты: Талоны: Топливная Карта [03:01:55]line 02750 [03:01:55]line ______________________ [03:01:55]line (подпись) [03:01:55]written 0, free lines is 4095 [03:01:55]Write to MH i2c: 01 00 00 80 3A BA [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 07 00 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: 01 07 00 80 3A 00 00 00 00 00 10 0E DF [03:01:55]RasterBufferAndPrint [03:01:55]line [03:01:55]line [03:01:55]line [03:01:55]line [03:01:55]line [03:01:55]written 0, free lines is 3601 [03:01:55]MH_Cut [03:01:55]Write to MH i2c: D1 01 00 87 3A 01 93 [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: D1 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: D1 01 00 [03:01:55]MH_I2C_Read... [03:01:55]Read from MH i2c: D1 01 00 87 3A 00 92 [03:01:55]Write to MH i2c: 01 00 00 88 3A C2 [03:01:55]Write i2c OK [03:01:55]MH_I2C_Read... [03:01:56]*** Cut start [03:01:56]*** Purtial cut [03:01:56]*** CUTSNS_PIN = 0 [03:01:56]*** Stage 1: CUTSNS_PIN = 1 [03:01:58]Read from MH i2c: 01 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: 01 07 00 [03:01:58]MH_I2C_Read... [03:01:58]*** Stop cut motor [03:01:58]*** Cut end [03:01:58]Read from MH i2c: 01 07 00 88 3A 00 00 00 00 00 FF 0F D7 [03:01:58]process_action print_text done [03:01:58]requested_data is exist [03:01:58]produce_requested_data [03:01:58]requested_item fm.sn is exist - process it [03:01:58]wFMCommunicate request_size=4 [03:01:58]MH_SAM_APDU [03:01:58]CAPDU: 80 11 00 00 [03:01:58]Write to MH i2c: E2 08 00 89 3A 80 11 00 00 00 00 00 00 3D [03:01:58]Write i2c OK [03:01:58]MH_I2C_Read... [03:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:58]Read from MH i2c: E2 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 17 00 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 17 00 89 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [03:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:01:58]wFMCommunicate OK [03:01:58]requested_item fd.num is exist - process it [03:01:58]SAM_PROTO_GetFieldsCounters [03:01:58]wFMCommunicate request_size=4 [03:01:58]MH_SAM_APDU [03:01:58]CAPDU: 80 13 00 00 [03:01:58]Write to MH i2c: E2 08 00 8A 3A 80 13 00 00 00 00 00 00 40 [03:01:58]Write i2c OK [03:01:58]MH_I2C_Read... [03:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:58]Read from MH i2c: E2 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 62 00 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 62 00 8A 3A 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 4E 07 01 00 0E 04 04 00 65 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 2E [03:01: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 4E 07 01 00 0E 04 04 00 65 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:01:58]wFMCommunicate OK [03:01:58]SAM_PROTO_GetFieldsCounters done [03:01:58]requested_item shift.num is exist - process it [03:01:58]requested_item shift.opened is exist - process it [03:01:58]req_shift_opened [03:01:58]FM_GetShiftState [03:01:58]SAM_PROTO_GetShiftState [03:01:58]wFMCommunicate request_size=4 [03:01:58]MH_SAM_APDU [03:01:58]CAPDU: 80 13 01 00 [03:01:58]Write to MH i2c: E2 08 00 8B 3A 80 13 01 00 00 00 00 00 42 [03:01:58]Write i2c OK [03:01:58]MH_I2C_Read... [03:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:58]Read from MH i2c: E2 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 0E 00 [03:01:58]MH_I2C_Read... [03:01:58]Read from MH i2c: E2 0E 00 8B 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 EE [03:01:58]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [03:01:58]wFMCommunicate OK [03:01:58]SAM_PROTO_GetShiftState done [03:01:58]FM_GetShiftState done [03:01:58]req_shift_opened done [03:01:58]requested_item shift.open_date is exist - process it [03:01:58]req_shift_open_date [03:01:58]req_shift_open_date done [03:01:58]produce_requested_data done [03:01:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [03:01:58]process_action_free print_text [03:01:58]json_value_free [03:01:58]json_value_free done [03:01:58]process_json_proto returns [03:01:58]Send response to host [03:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [03:01:58]free response buf [03:01:58]execute_script done [03:01:58]execute_script returns [03:01:58]free content buf [03:01:58]Sock 9.Close socket [03:01:58]Sock 9.Thread stoped [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:11]accept exits with 7 [03:04:11]New connection [03:04:11]New thread 3067174244 created [03:04:11]Thread 3067030884 joined [03:04:11]Waiting for new connection... [03:04:11] Sock 7.Parse request [03:04:11]Sock 7.Check first char [03:04:11]Sock 7.First char is OK [03:04:11]request: POST /json_proto HTTP/1.0 [03:04:11]Method: POST [03:04:11]URL: /json_proto [03:04:11]Method is POST - this is cgi request [03:04:11]url: /json_proto [03:04:11]query_string will be loaded in cgi processing [03:04:11]execute_cgi json_proto POST (null) [03:04:11]execute_cgi path=json_proto method=POST [03:04:11]POST find Content-Length [03:04:11]Host: 172.17.41.195:8080 [03:04:11]Content-Length: 1209 [03:04:11]Content-Type: application/json [03:04:11] [03:04:11]POST finish read [03:04:11]Found Content-Length = 1209 [03:04: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507391\u000A16.05.2024 02:46\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:04:11]execute_script... [03:04: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507391\u000A16.05.2024 02:46\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:04:11]POST & json_proto [03:04:11]process_json_proto [03:04:11]json parsed OK: [03:04:11]protocol is kg_v1.0 [03:04:11]action value=print_text [03:04:11]process_action print_text [03:04:11]cmd_print_text [03:04:11]ExternCall_PrintAddStr [03:04:11]wPrintStart [03:04:11]Write to MH i2c: 01 00 00 8C 3A C6 [03:04:11]Write i2c OK [03:04:11]MH_I2C_Read... [03:04:11]Read from MH i2c: 01 [03:04:11]MH_I2C_Read... [03:04:11]Read from MH i2c: 01 07 00 [03:04:11]MH_I2C_Read... [03:04:11]Read from MH i2c: 01 07 00 8C 3A 00 00 00 00 00 FF 0F DB [03:04:11]RasterBufferAndPrint [03:04:11]line *****ТОВАРНЫЙ ЧЕК***** [03:04:11]line АЗС-91 [03:04:11]line Партнер нефть [03:04:11]line 02508201610067 [03:04:11]line Кассир : Пайзулдаева А. [03:04:11]line Счет N : (1)507391 [03:04:11]line 16.05.2024 02:46 [03:04:11]line ПРОДАЖА [03:04:11]line ТРК (МРК, ГНК): 11 [03:04:11]line Вид ГСМ : 2710194210 [03:04:11]line ДТ-К-5 [03:04:11]line 40.000 x 74.70 [03:04:11]line ИТОГ: 2988.00 [03:04:11]line Тип оплаты: Талоны: Топливная Карта [03:04:11]line 02750 [03:04:11]line ______________________ [03:04:11]line (подпись) [03:04:11]written 0, free lines is 4095 [03:04:12]Write to MH i2c: 01 00 00 A0 3A DA [03:04:12]Write i2c OK [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: 01 [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: 01 07 00 [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: 01 07 00 A0 3A 00 00 00 00 00 0F 0E FE [03:04:12]RasterBufferAndPrint [03:04:12]line [03:04:12]line [03:04:12]line [03:04:12]line [03:04:12]line [03:04:12]written 0, free lines is 3601 [03:04:12]MH_Cut [03:04:12]Write to MH i2c: D1 01 00 A7 3A 01 B3 [03:04:12]Write i2c OK [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: D1 [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: D1 01 00 [03:04:12]MH_I2C_Read... [03:04:12]Read from MH i2c: D1 01 00 A7 3A 00 B2 [03:04:12]Write to MH i2c: 01 00 00 A8 3A E2 [03:04:12]Write i2c OK [03:04:12]MH_I2C_Read... [03:04:12]*** Cut start [03:04:12]*** Purtial cut [03:04:12]*** Stage 1: CUTSNS_PIN = 1 [03:04:13]Read from MH i2c: 01 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: 01 07 00 [03:04:13]MH_I2C_Read... [03:04:13]*** Stop cut motor [03:04:13]*** Cut end [03:04:13]Read from MH i2c: 01 07 00 A8 3A 00 00 00 00 00 FF 0F F7 [03:04:13]process_action print_text done [03:04:13]requested_data is exist [03:04:13]produce_requested_data [03:04:13]requested_item fm.sn is exist - process it [03:04:13]wFMCommunicate request_size=4 [03:04:13]MH_SAM_APDU [03:04:13]CAPDU: 80 11 00 00 [03:04:13]Write to MH i2c: E2 08 00 A9 3A 80 11 00 00 00 00 00 00 5D [03:04:13]Write i2c OK [03:04:13]MH_I2C_Read... [03:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:13]Read from MH i2c: E2 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 17 00 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 17 00 A9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [03:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:04:13]wFMCommunicate OK [03:04:13]requested_item fd.num is exist - process it [03:04:13]SAM_PROTO_GetFieldsCounters [03:04:13]wFMCommunicate request_size=4 [03:04:13]MH_SAM_APDU [03:04:13]CAPDU: 80 13 00 00 [03:04:13]Write to MH i2c: E2 08 00 AA 3A 80 13 00 00 00 00 00 00 60 [03:04:13]Write i2c OK [03:04:13]MH_I2C_Read... [03:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:13]Read from MH i2c: E2 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 62 00 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 62 00 AA 3A 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 4E 07 01 00 0E 04 04 00 65 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 4E [03:04: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 4E 07 01 00 0E 04 04 00 65 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:04:13]wFMCommunicate OK [03:04:13]SAM_PROTO_GetFieldsCounters done [03:04:13]requested_item shift.num is exist - process it [03:04:13]requested_item shift.opened is exist - process it [03:04:13]req_shift_opened [03:04:13]FM_GetShiftState [03:04:13]SAM_PROTO_GetShiftState [03:04:13]wFMCommunicate request_size=4 [03:04:13]MH_SAM_APDU [03:04:13]CAPDU: 80 13 01 00 [03:04:13]Write to MH i2c: E2 08 00 AB 3A 80 13 01 00 00 00 00 00 62 [03:04:13]Write i2c OK [03:04:13]MH_I2C_Read... [03:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:13]Read from MH i2c: E2 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 0E 00 [03:04:13]MH_I2C_Read... [03:04:13]Read from MH i2c: E2 0E 00 AB 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 0E [03:04:13]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [03:04:13]wFMCommunicate OK [03:04:13]SAM_PROTO_GetShiftState done [03:04:13]FM_GetShiftState done [03:04:13]req_shift_opened done [03:04:13]requested_item shift.open_date is exist - process it [03:04:13]req_shift_open_date [03:04:13]req_shift_open_date done [03:04:13]produce_requested_data done [03:04:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [03:04:13]process_action_free print_text [03:04:13]json_value_free [03:04:13]json_value_free done [03:04:13]process_json_proto returns [03:04:13]Send response to host [03:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [03:04:13]free response buf [03:04:13]execute_script done [03:04:13]execute_script returns [03:04:13]free content buf [03:04:13]Sock 7.Close socket [03:04:13]Sock 7.Thread stoped [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:32]accept exits with 9 [03:05:32]New connection [03:05:32]New thread 3067030884 created [03:05:32]Thread 3067174244 joined [03:05:32]Waiting for new connection... [03:05:32] Sock 9.Parse request [03:05:32]Sock 9.Check first char [03:05:32]Sock 9.First char is OK [03:05:32]request: POST /json_proto HTTP/1.0 [03:05:32]Method: POST [03:05:32]URL: /json_proto [03:05:32]Method is POST - this is cgi request [03:05:32]url: /json_proto [03:05:32]query_string will be loaded in cgi processing [03:05:32]execute_cgi json_proto POST (null) [03:05:32]execute_cgi path=json_proto method=POST [03:05:32]POST find Content-Length [03:05:32]Host: 172.17.41.195:8080 [03:05:32]Content-Length: 1209 [03:05:32]Content-Type: application/json [03:05:32] [03:05:32]POST finish read [03:05:32]Found Content-Length = 1209 [03:05: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507392\u000A16.05.2024 02: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 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" ] } } [03:05:32]execute_script... [03:05: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 : \u041F\u0430\u0439\u0437\u0443\u043B\u0434\u0430\u0435\u0432\u0430 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)507392\u000A16.05.2024 02: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 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" ] } } [03:05:32]POST & json_proto [03:05:32]process_json_proto [03:05:32]json parsed OK: [03:05:32]protocol is kg_v1.0 [03:05:32]action value=print_text [03:05:32]process_action print_text [03:05:32]cmd_print_text [03:05:32]ExternCall_PrintAddStr [03:05:32]wPrintStart [03:05:32]Write to MH i2c: 01 00 00 AC 3A E6 [03:05:32]Write i2c OK [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 07 00 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 07 00 AC 3A 00 00 00 00 00 FF 0F FB [03:05:32]RasterBufferAndPrint [03:05:32]line *****ТОВАРНЫЙ ЧЕК***** [03:05:32]line АЗС-91 [03:05:32]line Партнер нефть [03:05:32]line 02508201610067 [03:05:32]line Кассир : Пайзулдаева А. [03:05:32]line Счет N : (1)507392 [03:05:32]line 16.05.2024 02:48 [03:05:32]line ПРОДАЖА [03:05:32]line ТРК (МРК, ГНК): 21 [03:05:32]line Вид ГСМ : 2710194210 [03:05:32]line ДТ-К-5 [03:05:32]line 15.000 x 74.70 [03:05:32]line ИТОГ: 1120.50 [03:05:32]line Тип оплаты: Талоны: Топливная Карта [03:05:32]line 02750 [03:05:32]line ______________________ [03:05:32]line (подпись) [03:05:32]written 0, free lines is 4095 [03:05:32]Write to MH i2c: 01 00 00 C0 3A FA [03:05:32]Write i2c OK [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 07 00 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: 01 07 00 C0 3A 00 00 00 00 00 0F 0E 1E [03:05:32]RasterBufferAndPrint [03:05:32]line [03:05:32]line [03:05:32]line [03:05:32]line [03:05:32]line [03:05:32]written 0, free lines is 3600 [03:05:32]MH_Cut [03:05:32]Write to MH i2c: D1 01 00 C7 3A 01 D3 [03:05:32]Write i2c OK [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: D1 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: D1 01 00 [03:05:32]MH_I2C_Read... [03:05:32]Read from MH i2c: D1 01 00 C7 3A 00 D2 [03:05:32]Write to MH i2c: 01 00 00 C8 3A 02 [03:05:32]Write i2c OK [03:05:32]MH_I2C_Read... [03:05:33]*** Cut start [03:05:33]*** Purtial cut [03:05:33]*** CUTSNS_PIN = 0 [03:05:33]*** Stage 1: CUTSNS_PIN = 1 [03:05:34]OFD Sender: No OFD packet to send [03:05:35]Read from MH i2c: 01 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: 01 07 00 [03:05:35]MH_I2C_Read... [03:05:35]*** Stop cut motor [03:05:35]*** Cut end [03:05:35]Read from MH i2c: 01 07 00 C8 3A 00 00 00 00 00 FF 0F 17 [03:05:35]process_action print_text done [03:05:35]requested_data is exist [03:05:35]produce_requested_data [03:05:35]requested_item fm.sn is exist - process it [03:05:35]wFMCommunicate request_size=4 [03:05:35]MH_SAM_APDU [03:05:35]CAPDU: 80 11 00 00 [03:05:35]Write to MH i2c: E2 08 00 C9 3A 80 11 00 00 00 00 00 00 7D [03:05:35]Write i2c OK [03:05:35]MH_I2C_Read... [03:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:35]Read from MH i2c: E2 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 17 00 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 17 00 C9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [03:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:05:35]wFMCommunicate OK [03:05:35]requested_item fd.num is exist - process it [03:05:35]SAM_PROTO_GetFieldsCounters [03:05:35]wFMCommunicate request_size=4 [03:05:35]MH_SAM_APDU [03:05:35]CAPDU: 80 13 00 00 [03:05:35]Write to MH i2c: E2 08 00 CA 3A 80 13 00 00 00 00 00 00 80 [03:05:35]Write i2c OK [03:05:35]MH_I2C_Read... [03:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:35]Read from MH i2c: E2 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 62 00 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 62 00 CA 3A 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 4E 07 01 00 0E 04 04 00 65 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 6E [03:05: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 4E 07 01 00 0E 04 04 00 65 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:05:35]wFMCommunicate OK [03:05:35]SAM_PROTO_GetFieldsCounters done [03:05:35]requested_item shift.num is exist - process it [03:05:35]requested_item shift.opened is exist - process it [03:05:35]req_shift_opened [03:05:35]FM_GetShiftState [03:05:35]SAM_PROTO_GetShiftState [03:05:35]wFMCommunicate request_size=4 [03:05:35]MH_SAM_APDU [03:05:35]CAPDU: 80 13 01 00 [03:05:35]Write to MH i2c: E2 08 00 CB 3A 80 13 01 00 00 00 00 00 82 [03:05:35]Write i2c OK [03:05:35]MH_I2C_Read... [03:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:35]Read from MH i2c: E2 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 0E 00 [03:05:35]MH_I2C_Read... [03:05:35]Read from MH i2c: E2 0E 00 CB 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 2E [03:05:35]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [03:05:35]wFMCommunicate OK [03:05:35]SAM_PROTO_GetShiftState done [03:05:35]FM_GetShiftState done [03:05:35]req_shift_opened done [03:05:35]requested_item shift.open_date is exist - process it [03:05:35]req_shift_open_date [03:05:35]req_shift_open_date done [03:05:35]produce_requested_data done [03:05:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [03:05:35]process_action_free print_text [03:05:35]json_value_free [03:05:35]json_value_free done [03:05:35]process_json_proto returns [03:05:35]Send response to host [03:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67406,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [03:05:35]free response buf [03:05:35]execute_script done [03:05:35]execute_script returns [03:05:35]free content buf [03:05:35]Sock 9.Close socket [03:05:35]Sock 9.Thread stoped [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:16]accept exits with 7 [03:06:16]New connection [03:06:16]New thread 3067174244 created [03:06:16]Thread 3067030884 joined [03:06:16]Waiting for new connection... [03:06:16] Sock 7.Parse request [03:06:16]Sock 7.Check first char [03:06:16]Sock 7.First char is OK [03:06:16]request: POST /json_proto HTTP/1.0 [03:06:16]Method: POST [03:06:16]URL: /json_proto [03:06:16]Method is POST - this is cgi request [03:06:16]url: /json_proto [03:06:16]query_string will be loaded in cgi processing [03:06:16]execute_cgi json_proto POST (null) [03:06:16]execute_cgi path=json_proto method=POST [03:06:16]POST find Content-Length [03:06:16]Host: 172.17.41.195:8080 [03:06:16]Content-Length: 677 [03:06:16]Content-Type: application/json [03:06:16] [03:06:16]POST finish read [03:06:16]Found Content-Length = 677 [03:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507393", "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" ] } } [03:06:16]execute_script... [03: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)507393", "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" ] } } [03:06:16]POST & json_proto [03:06:16]process_json_proto [03:06:16]json parsed OK: [03:06:16]protocol is kg_v1.0 [03:06:16]action value=close_receipt [03:06:16]process_action close_receipt [03:06:16]cmd_close_receipt [03:06:16]MH_GetDate [03:06:16]Write to MH i2c: F0 00 00 CC 3A F5 [03:06:16]Write i2c OK [03:06:16]MH_I2C_Read... [03:06:16]Read from MH i2c: F0 [03:06:16]MH_I2C_Read... [03:06:16]Read from MH i2c: F0 09 00 [03:06:16]MH_I2C_Read... [03:06:16]Read from MH i2c: F0 09 00 CC 3A 00 2C 78 45 66 FC 21 6F 64 3D [03:06:16]GetLastDocTimeStamp 1715825383 [03:06:16]current date 1715828780 [03:06:16]FM_GetShiftState [03:06:16]SAM_PROTO_GetShiftState [03:06:16]wFMCommunicate request_size=4 [03:06:16]MH_SAM_APDU [03:06:16]CAPDU: 80 13 01 00 [03:06:16]Write to MH i2c: E2 08 00 CD 3A 80 13 01 00 00 00 00 00 84 [03:06:16]Write i2c OK [03:06:16]MH_I2C_Read... [03:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:16]Read from MH i2c: E2 [03:06:16]MH_I2C_Read... [03:06:16]Read from MH i2c: E2 0E 00 [03:06:16]MH_I2C_Read... [03:06:16]Read from MH i2c: E2 0E 00 CD 3A 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 30 [03:06:16]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [03:06:16]wFMCommunicate OK [03:06:16]SAM_PROTO_GetShiftState done [03:06:16]FM_GetShiftState done [03:06:16]opened in 1715818916 [03:06:16]opened+sec_in_day 1715905316 [03:06:16]quantity*price = 40013 [03:06:16]sum+1 = 40014 [03:06:16]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 СНО: Общий режим Чек 5 16.05.2024 03:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67407 ФПД: 134540557539123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T030620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67407&fm=134540557539123&tin=02508201610067®Number=0000000000091845&sum=40000 [03:06:18]StoreToDocumentArchive [03:06:18]shift 357 fd 67407 [03:06:18]save to /storage/0357/doc_00067407 [03:06:18]save last doc name /storage/0357/doc_00067407 to /storage/kkm_last_doc_name [03:06:18]save OK [03:06:18]Clear old archive folders... [03:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:06:18]tlvbuf is 00BF6740 [03:06:18]SAM_PROTO_ClearQueue [03:06:18]wFMCommunicate request_size=4 [03:06:18]MH_SAM_APDU [03:06:18]CAPDU: 80 09 00 00 [03:06:18]Write to MH i2c: E2 08 00 DA 3A 80 09 00 00 00 00 00 00 86 [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 DA 3A 00 90 00 88 [03:06:18]RAPDU: 90 00 [03:06:18]wFMCommunicate OK [03:06:18]SAM_PROTO_ClearQueue done [03:06:18]KKMCreateOFDPacket [03:06:18]OFDProtocolAddRootSTLVToBuf [03:06:18]FM_MakeSignedData [03:06:18]FM_MakeSignedData [03:06:18]SAM_PROTO_SignData [03:06:18]wFMCommunicate request_size=4 [03:06:18]MH_SAM_APDU [03:06:18]CAPDU: 80 0D 01 02 [03:06:18]Write to MH i2c: E2 08 00 DB 3A 80 0D 01 02 00 00 00 00 8E [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 DB 3A 00 90 00 89 [03:06:18]RAPDU: 90 00 [03:06:18]wFMCommunicate OK [03:06:18]wFMCommunicate request_size=255 [03:06:18]MH_SAM_APDU [03:06:18]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 05 00 00 00 F4 03 04 00 2C 78 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4F 07 01 00 35 04 06 00 7A [03:06:18]Write to MH i2c: E2 02 01 DC 3A 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 05 00 00 00 F4 03 04 00 2C 78 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4F 07 01 00 35 04 06 00 7A 00 00 84 [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 DC 3A 00 90 00 8A [03:06:18]RAPDU: 90 00 [03:06:18]wFMCommunicate OK [03:06:18]wFMCommunicate request_size=10 [03:06:18]MH_SAM_APDU [03:06:18]CAPDU: 80 0D 02 02 05 5D 2A 23 D7 33 [03:06:18]Write to MH i2c: E2 0D 00 DD 3A 80 0D 02 02 05 00 5D 2A 23 D7 33 00 00 4F [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 03 00 DD 3A 00 90 00 8B [03:06:18]RAPDU: 90 00 [03:06:18]wFMCommunicate OK [03:06:18]wFMCommunicate request_size=4 [03:06:18]MH_SAM_APDU [03:06:18]CAPDU: 80 0D 03 02 [03:06:18]Write to MH i2c: E2 08 00 DE 3A 80 0D 03 02 00 00 00 00 93 [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 0B 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 0B 00 DE 3A 00 82 3E C9 ED 12 9C 9C 90 90 00 E4 [03:06:18]RAPDU: 82 3E C9 ED 12 9C 9C 90 90 00 [03:06:18]wFMCommunicate OK [03:06:18]SAM_PROTO_SignData done [03:06:18]FM_MakeSignedData done [03:06:18]CreateOFDProtocolMessage [03:06:18]wFMCommunicate request_size=4 [03:06:18]MH_SAM_APDU [03:06:18]CAPDU: 80 11 00 00 [03:06:18]Write to MH i2c: E2 08 00 DF 3A 80 11 00 00 00 00 00 00 93 [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:18]Read from MH i2c: E2 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 17 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: E2 17 00 DF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [03: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 [03:06:18]wFMCommunicate OK [03:06:18]CreateOFDProtocolMessage done [03:06:18]OFDSenderStorePacket 67407 [03:06:18]StoreOFDPacket docnum=67407 [03: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 24 40 07 01 B3 E2 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 05 00 00 00 F4 03 04 00 2C 78 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4F 07 01 00 35 04 06 00 7A 5D 2A 23 D7 33 82 3E C9 ED 12 9C 9C 90 [03:06:18]CheckFolder [03:06:18]dirname=/storage/ofd_packets [03:06:18]CheckFolder done [03:06:18]ProducePacketName [03:06:18]name=ofd_packets/00067407 [03:06:18]NVStorageSaveData ofd_packets/00067407 [03:06:18]File name is /storage/ofd_packets/00067407 [03:06:18]Write 301 bytes [03:06:18]NVStorageSaveData done [03:06:18]OFDSenderStorePacket done [03:06:18]KKMCreateOFDPacket done [03:06:18]NVStorageSaveData kkm_last_timestamp [03:06:18]File name is /storage/kkm_last_timestamp [03:06:18]Write 4 bytes [03:06:18]NVStorageSaveData done [03:06:18]ExternCall_PrintAddStr [03:06:18]wPrintStart [03:06:18]Write to MH i2c: 01 00 00 E0 3A 1A [03:06:18]Write i2c OK [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: 01 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: 01 07 00 [03:06:18]MH_I2C_Read... [03:06:18]Read from MH i2c: 01 07 00 E0 3A 00 00 00 00 00 FF 0F 2F [03:06:18]RasterBufferAndPrint [03:06:18]line Счет N : (1)507393 [03:06:18]line ИНН: 02508201610067 [03:06:18]line Контрольно-Кассовый Чек [03:06:18]line ПРОДАЖА [03:06:18]line ТРК (МРК, ГНК) : 43 [03:06:18]line Товар: 2710124130 [03:06:18]line Аи-92-К-5 [03:06:18]line 5.990 * 66.80 [03:06:18]line = 400.13 [03:06:18]line НДС 12% НСП 1% [03:06:18]line > о реализуемом товаре [03:06:18]line ОКРУГЛЕНИЕ: -0.13 [03:06:18]line ИТОГО: 400.00 [03:06:18]line Внесено: 400.00 [03:06:18]line СДАЧА: 0.00 [03:06:18]line НСП 1% : 3.54 [03:06:18]line НДС 12% : 42.49 [03:06:18]line Наличными: 400.00 [03:06:18]line Безнал.: 0.00 [03:06:18]line Место: АЗС № 91 "Партнер Нефть" [03:06:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [03:06:18]line СНО: Общий режим [03:06:18]line Чек 5 16.05.2024 03:06 [03:06:18]line Смена: 357 ФФД: 1.0 [03:06:18]line ЗНМ: 0300000119 [03:06:18]line РНМ: 0000000000091845 [03:06:18]line Версия ККМ: 001 [03:06:18]line ФМ: 0000000000871829 [03:06:18]line ФД: 67407 [03:06:18]line ФПД: 134540557539123 [03:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T030620&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67407&fm=134540557539123&tin=02508201610067®Number=0000000000091845&sum=40000 [03:06:18]written 0, free lines is 4095 [03:06:18]OFD Sender: Processing packet 67407 [packets to send 35, broken 34] [03:06:18]ProducePacketName [03:06:18]name=ofd_packets/00067407 [03:06:18]OFD Sender: To server: pG, [03:06:18]CommunicateWithHost lk.salyk.kg:30040 [03:06:18]ConnectInit lk.salyk.kg [03:06:19]Connected sock=10 [03:06: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 0F 01 00 00 24 40 07 01 B3 E2 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 05 00 00 00 F4 03 04 00 2C 78 45 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4F 07 01 00 35 04 06 00 7A 5D 2A 23 D7 33 82 3E C9 ED 12 9C 9C 90 [03:06: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 FA 02 47 00 48 42 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 4F 07 01 00 F4 03 04 00 08 20 45 66 B6 04 01 00 00 60 0E 8E B2 CA 6F E8 B1 [03:06:19]CommunicateWithHost err = 0 [03:06:19]CheckOFDResponse [03:06:19]1017 (14) - 77093643461234 [03:06:19]1041 (16) - 0000000000871829 [03:06:19]1040 (4) - 67407 [03:06:19]1012 (4) - 15.05.2024 20:50 [03:06:19]1206 (1) - 0 [03:06:19]OFD Sender: Remove packet 67407 [03:06:19]ProducePacketName [03:06:19]name=ofd_packets/00067407 [03:06:19]NVStorageDeleteData [03:06:19]Write to MH i2c: 01 00 00 0A 3B 45 [03:06:19]Write i2c OK [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: 01 [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: 01 07 00 [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: 01 07 00 0A 3B 00 00 00 00 00 C5 0C 1D [03:06:19]RasterBufferAndPrint [03:06:19]line [03:06:19]line [03:06:19]line [03:06:19]line [03:06:19]line [03:06:19]written 0, free lines is 3275 [03:06:19]MH_Cut [03:06:19]Write to MH i2c: D1 01 00 11 3B 01 1E [03:06:19]Write i2c OK [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: D1 [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: D1 01 00 [03:06:19]MH_I2C_Read... [03:06:19]Read from MH i2c: D1 01 00 11 3B 00 1D [03:06:19]Write to MH i2c: 01 00 00 12 3B 4D [03:06:19]Write i2c OK [03:06:19]MH_I2C_Read... [03:06:19]OFD Sender: No OFD packet to send [03:06:20]*** Cut start [03:06:20]*** Purtial cut [03:06:20]*** Stage 1: CUTSNS_PIN = 1 [03:06:20]Read from MH i2c: 01 [03:06:20]MH_I2C_Read... [03:06:20]*** Stop cut motor [03:06:20]*** Cut end [03:06:20]Read from MH i2c: 01 07 00 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: 01 07 00 12 3B 00 00 00 00 00 FF 0F 62 [03:06:20]process_action close_receipt done [03:06:20]requested_data is exist [03:06:20]produce_requested_data [03:06:20]requested_item fm.sn is exist - process it [03:06:20]wFMCommunicate request_size=4 [03:06:20]MH_SAM_APDU [03:06:20]CAPDU: 80 11 00 00 [03:06:20]Write to MH i2c: E2 08 00 13 3B 80 11 00 00 00 00 00 00 C8 [03:06:20]Write i2c OK [03:06:20]MH_I2C_Read... [03:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:20]Read from MH i2c: E2 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 17 00 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 17 00 13 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [03:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:06:20]wFMCommunicate OK [03:06:20]requested_item fd.num is exist - process it [03:06:20]SAM_PROTO_GetFieldsCounters [03:06:20]wFMCommunicate request_size=4 [03:06:20]MH_SAM_APDU [03:06:20]CAPDU: 80 13 00 00 [03:06:20]Write to MH i2c: E2 08 00 14 3B 80 13 00 00 00 00 00 00 CB [03:06:20]Write i2c OK [03:06:20]MH_I2C_Read... [03:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:20]Read from MH i2c: E2 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 62 00 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 62 00 14 3B 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 4F 07 01 00 0E 04 04 00 65 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 BD [03:06: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 4F 07 01 00 0E 04 04 00 65 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 [03:06:20]wFMCommunicate OK [03:06:20]SAM_PROTO_GetFieldsCounters done [03:06:20]requested_item shift.num is exist - process it [03:06:20]requested_item shift.opened is exist - process it [03:06:20]req_shift_opened [03:06:20]FM_GetShiftState [03:06:20]SAM_PROTO_GetShiftState [03:06:20]wFMCommunicate request_size=4 [03:06:20]MH_SAM_APDU [03:06:20]CAPDU: 80 13 01 00 [03:06:20]Write to MH i2c: E2 08 00 15 3B 80 13 01 00 00 00 00 00 CD [03:06:20]Write i2c OK [03:06:20]MH_I2C_Read... [03:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:20]Read from MH i2c: E2 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 0E 00 [03:06:20]MH_I2C_Read... [03:06:20]Read from MH i2c: E2 0E 00 15 3B 00 09 00 01 A4 51 45 66 00 00 00 00 90 00 79 [03:06:20]RAPDU: 09 00 01 A4 51 45 66 00 00 00 00 90 00 [03:06:20]wFMCommunicate OK [03:06:20]SAM_PROTO_GetShiftState done [03:06:20]FM_GetShiftState done [03:06:20]req_shift_opened done [03:06:20]requested_item shift.open_date is exist - process it [03:06:20]req_shift_open_date [03:06:20]req_shift_open_date done [03:06:20]produce_requested_data done [03:06:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67407,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916} [03:06:20]process_action_free close_receipt [03:06:20]json_value_free [03:06:20]json_value_free done [03:06:20]process_json_proto returns [03:06:20]Send response to host [03:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67407,"shift.num":357,"shift.opened":1,"shift.open_date":1715818916}}} [03:06:20]free response buf [03:06:20]execute_script done [03:06:20]execute_script returns [03:06:20]free content buf [03:06:20]Sock 7.Close socket [03:06:20]Sock 7.Thread stoped [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send